LinuxSir.cn,穿越时空的Linuxsir!

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

[已解决]gentoo:X启动后,键盘和鼠标无效

[复制链接]
发表于 2009-4-22 10:18:59 | 显示全部楼层 |阅读模式
***************************************************
***   问题:startx后,进入gnome,但键盘和鼠标无效,至今未解决 ***
***************************************************

******************************************************************
我的老本本的显卡是:
localhost root # lspci | grep VGA
00:04.0 VGA compatible controller: ATI Technologies Inc Rage Mobility P/M (rev 64)
******************************************************************

具体操作如下:

==============================================================================================================================================================================
1、putty连接后,以root启动startx,显示如下:             //(用putty是为了方便查看执行命令结果)

login as: tsm
Using keyboard-interactive authentication.
Password:
Last login: Wed Apr 22 16:05:12 CST 2009 from 192.168.0.117 on pts/0
tsm@localhost ~ $ su
Password:
localhost tsm # startx
xauth:  creating new authority file /root/.serverauth.12393


X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.27-gentoo-r10 i686
Current Operating System: Linux localhost 2.6.27-gentoo-r10 #1 SMP Mon Apr 13 09:30:26 CST 2009 i686
Build Date: 22 April 2009  01:24:22AM

        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Apr 21 09:22:24 2009
(==) Using config file: "/etc/X11/xorg.conf"
xinit:  No such file or directory (errno 2):  Cannot register with ConsoleKit: org.freedesktop.CkConnector.Error: Unable to open session: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
^C
waiting for X server to shut down localhost tsm #

xinit:  unexpected signal 2.

localhost tsm #

==============================================================================================================================================================================

2、putty连接后,以普通用户tsm启动startx,显示如下:

login as: tsm
Using keyboard-interactive authentication.
Password:
Last login: Tue Apr 21 09:22:00 CST 2009 from 192.168.0.117 on pts/0
tsm@localhost ~ $ startx
xauth:  creating new authority file /home/tsm/.serverauth.12430

X.Org X Server 1.5.3

Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.27-gentoo-r10 i686
Current Operating System: Linux localhost 2.6.27-gentoo-r10 #1 SMP Mon Apr 13 09:30:26 CST 2009 i686
Build Date: 22 April 2009  01:24:22AM

        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Apr 21 09:24:41 2009
(==) Using config file: "/etc/X11/xorg.conf"
xinit:  No such file or directory (errno 2):  Cannot register with ConsoleKit: org.freedesktop.CkConnector.Error: Unable to open session: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
SESSION_MANAGER=local/localhost/tmp/.ICE-unix/12451,unix/localhost:/tmp/.ICE-unix/12451
1240277087.617962 Session manager: disconnected...
1240277087.776277 Session manager: disconnected...
1240277087.968984 Session manager: disconnected...
1240277088.136357 Session manager: disconnected...
1240277088.318821 Session manager: disconnected...
1240277088.467622 Session manager: disconnected...
1240277088.659345 Session manager: disconnected...
1240277088.840848 Session manager: disconnected...
1240277088.987610 Session manager: disconnected...
1240277089.180870 Session manager: disconnected...
1240277089.335395 Session manager: disconnected...

** (gnome-session:12451): CRITICAL **: dbus_g_proxy_add_signal: assertion `DBUS_IS_G_PROXY (proxy)' failed

** (gnome-session:12451): CRITICAL **: dbus_g_proxy_connect_signal: assertion `DBUS_IS_G_PROXY (proxy)' failed
窗口管理器警告:无法读取保存的会话文件 /home/tsm/.config/metacity/sessions/default0.ms:打开文件“/home/tsm/.config/metacity/sessions/default0.ms”失败:没有那个文件或目录
Failed to play sound: Sound disabled
21/04/2009 09时25分00秒 Autoprobing TCP port
21/04/2009 09时25分00秒 Autoprobing selected port 5900
21/04/2009 09时25分00秒 Advertising authentication type: 'No Authentication' (1)
21/04/2009 09时25分00秒 Advertising security type: 'No Authentication' (1)

(nautilus:12519): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.Private.HalVolumeMonitor is not supported

** (nautilus:12519): WARNING **: Unable to add monitor: 不支持

(gnome-panel:12508): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.Private.HalVolumeMonitor is not supported

(gnome-panel:12508): Gdk-WARNING **: gdkdrawable-x11.c:878 drawable is not a pixmap or window
^C
FCITX -- Get Signal No.: 1

waiting for X server to shut down X connection to :0.0 broken (explicit kill or server shutdown).
tsm@localhost ~ $

xinit:  unexpected signal 2.

tsm@localhost ~ $

==============================================================================================================================================================================

3、make.conf如下:

tsm@localhost ~ $ cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-O2 -mtune=i686 -pipe"
CXXFLAGS="-O2 -mtune=i686 -pipe"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i486-pc-linux-gnu"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo    http://gentoo.tom.com"
SYNC="rsync://gentoo.tom.com/gentoo-portage"
MAKEOPTS="-j2"
INPUT_DEVICES="keyboard mouse evdev"
VIDEO_CARDS="fbdev vesa mach64"
USE="X nptl nptlonly -ipv6 -fortran unicode svg hal dbus -kde -qt3 -qt4 -arts -eds -esd gnome gstreamer gtk firefox cairo xft"
LINGUAS="zh_CN"
----------------------------------------------------
其间试过VIDEO_CARDS="fbdev vesa mach64" fgrx,radeon,ati,mach64都不行,到最后执行emerge xf86-vedio-mach64后,方可Xorg -configure执行成功。
==============================================================================================================================================================================

4、普通用户startx进入桌面后,跳出一对话框,错误提示如下:

启动GNOME设置守护进程出错。
主题、声音或者背景设置等可能不会正常工作。
设置守护进程重新启动的次数太多。
GNOME在您下次登录时仍将试图重启动设置守护进程。
==============================================================================================================================================================================

寻找帮助中中。。。。。。。
help me.
发表于 2009-4-22 11:03:27 | 显示全部楼层
http://www.linuxsir.cn/bbs/thread339907.html

btw: 这 url 我都不知道给人贴了多少遍了。。。
回复 支持 反对

使用道具 举报

发表于 2009-4-22 11:35:45 | 显示全部楼层
重新emerge一遍xorg-server xf86-input-evdev  xf86-video-xxx就好了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-22 14:25:49 | 显示全部楼层
Post by wd_afei;1977798
http://www.linuxsir.cn/bbs/thread339907.html

btw: 这 url 我都不知道给人贴了多少遍了。。。




解决了;
参照你的贴子,其中,第1,2,3,4步做了都无效,
只有最后的第5步,管用了;
第5步是: 或许你还需要添加下面的配置 (这个是备用方案,以禁用X的hal)

Section "ServerFlags"
        Option "AllowEmptyInput" "False"
        Option "AutoAddDevices" "False"
EndSection
即:在/etc/X11/xorg.conf中添加这一段内容;


谢谢!
回复 支持 反对

使用道具 举报

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

本版积分规则

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