LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1730|回复: 26

[解决]升级了一下系统,进入x之后键盘鼠标不能动了

[复制链接]
发表于 2009-7-22 20:43:31 | 显示全部楼层 |阅读模式
遇到这种问题真的很郁闷,只能重启系统重启系统。
 楼主| 发表于 2009-7-22 20:44:11 | 显示全部楼层

[解决]升级了一下系统,进入x之后键盘鼠标不能动了

遇到这种问题真的很郁闷,只能重启系统重启系统。
http://www.linuxsir.cn/bbs/thread351668.html
参考了这个帖子,还是无效。

[如何解决]
Post by xcxxb;2008625
参考 http://www.linuxsir.cn/bbs/post2008624-8.html
简言之:可以升级新的hal,但不要用新的hal.conf
回复 支持 反对

使用道具 举报

发表于 2009-7-22 20:56:27 | 显示全部楼层
qlist -I -C x11-drivers/
把显示的软件都重新编译一边,然后再startx
回复 支持 反对

使用道具 举报

发表于 2009-7-22 21:02:39 | 显示全部楼层
  1. Section "ServerLayout"
  2.     .........
  3.     Option         "AllowEmptyInput" "no"
  4. EndSection
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-7-22 21:12:21 | 显示全部楼层
现在好像xorg.conf里都不用写输入设备的动西了,我用的是xf86-input-evdev,全由它控制,挂载设备的工作都交给hal,配置在/etc/hal/fdi/policy/下。
回复 支持 反对

使用道具 举报

发表于 2009-7-22 21:36:00 | 显示全部楼层
我也碰到这个问题了,用USE="-hal" emerge xorg-server
后就好了。
但是thunar也必须去掉hal,否则没法启动,不知道为什么
回复 支持 反对

使用道具 举报

发表于 2009-7-22 21:58:59 | 显示全部楼层
最新的hal 0.5.13有Bug,无法监测新插入的输入设备,在package.mask中mask掉,使用旧的hal就没事了
回复 支持 反对

使用道具 举报

发表于 2009-7-22 22:32:32 | 显示全部楼层
重新编译一下xf86-input-evdev
回复 支持 反对

使用道具 举报

发表于 2009-7-22 22:44:35 | 显示全部楼层
综合起来试试:
1.hal USE标志
2.启用evdev支持,包括内核和xorg-server
3.安装xf86-input-evdev
4.
Post by hihihihi;2008578
  1. Section "ServerLayout"
  2.     .........
  3.     Option         "AllowEmptyInput" "no"
  4. EndSection
复制代码


qlist -I -C x11-drivers/
或者直接mv /etc/X11/xorg.conf ./
~~~~~
startx
回复 支持 反对

使用道具 举报

发表于 2009-7-22 23:02:18 | 显示全部楼层
我有个最简单的方法,升级hal后,etc-update时不要覆盖掉原来的/etc/dbus-1/system.d/hal.conf 。
如果已经覆盖掉,替换回去
附我的旧hal.conf:
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- This configuration file specifies the required security policies
       for the HAL to work. -->

  <!-- Only root or user haldaemon can own the HAL service -->
  <policy user="haldaemon">
    <allow own="org.freedesktop.Hal"/>
  </policy>
  <policy user="root">
    <allow own="org.freedesktop.Hal"/>
    <allow send_destination="org.freedesktop.Hal"
        send_interface="org.freedesktop.Hal.Device"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Manager"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.KillSwitch"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Leds"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Storage"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.WakeOnLan"/>
  </policy>

  <!-- Gentoo specific rules to allow 'plugdev' group to access Volumes and Power Management -->
  <policy group="plugdev">
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.DBus.Introspectable"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.DBus.Properties" />

    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Manager"/>

    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.DockStation"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.KillSwitch"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.KeyboardBacklight"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Leds"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.LightSensor"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Storage"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
    <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.WakeOnLan"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>

  </policy>

</busconfig>

哪位大侠对照下新旧hal.conf的区别,看看能不能发现具体原因在哪里。

ps:我没有xorg.conf
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表