LinuxSir.cn,穿越时空的Linuxsir!

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

键盘鼠标不工作(已解决)

[复制链接]
发表于 2009-6-4 23:03:06 | 显示全部楼层 |阅读模式
电脑(Thinkpad_T41)启动后,自动进入GNOME的登录界面,键盘鼠标不工作,

用另外一台电脑通过 ssh到Thinkpad_T41上得到如下信息

daniel@Thinkpad_T41 ~ $ cat /etc/X11/xorg.conf
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        FontPath     "/usr/share/fonts/xpfonts/"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "record"
        Load  "glx"
        Load  "dbe"
        Load  "extmod"
        Load  "xtrap"
        Load  "dri"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "auto"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
        VendorName  "ATI Technologies Inc"
        BoardName   "Radeon Mobility M7 LW [Radeon Mobility 7500]"
        BusID       "CI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

daniel@Thinkpad_T41 ~ $ eix -e hal
sys-apps/hal
     Available versions:  0.5.9.1-r3 (~)0.5.11-r4 0.5.11-r8 (~)0.5.12_rc1-r4 (~)0.5.12_rc1-r6 {X acpi apm consolekit crypt debug dell disk-partition doc kernel_FreeBSD kernel_linux laptop pcmcia policykit selinux}
     Installed versions:  0.5.12_rc1-r6(12:52:08 AM 06/04/2009)(X consolekit crypt kernel_linux -acpi -apm -debug -dell -disk-partition -doc -kernel_FreeBSD -laptop -policykit -selinux)
     Homepage:            http://www.freedesktop.org/wiki/Software/hal
     Description:         Hardware Abstraction Layer

daniel@Thinkpad_T41 ~ $ cat /etc/make.conf

CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo "
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
LINGUAS="en zh_CN"
APACHE2_MODULES="authz_host dir log_config mime rewrite mime_magic"
APACHE2_MPMS="worker"
ACCEPT_KEYWORDS="~x86"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="radeon"
ALSA_CARDS="intel8x0"
source /usr/local/portage/layman/make.conf
PORTDIR_OVERLAY="/usr/local/portage"
USE="-qt3 -qt4 -kde -arts -concurrentmodphp -lilo -debug -ldap -sni -static -suexec
        -big-tables -cluster -extraengine -latin1 -max-idx-128 -minimal -ipv6
        -adabas -bcmath -birdstep -cdb -concurrentmodphp -curlwrappers -db2 -dbase -dbmaker
         -discard-path -empress -empress-bcs -esoob -fastbuild -fdftk -filter -firebird
        -flatfile -force-cgi-redirect -frontbase -gmp -imap -inifile -interbase -iodbc
        -json -kerberos -kolab -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -oci8
        -oci8-instant-client -odbc -pcntl -pdo -posix -postgres -qdbm -recode -sapdb
        -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid -spell -sqlite -suhosin
        -sybase -sybase-ct -sysvipc -tidy -tokenizer -wddx -xpm -yaz

        X hal dbus gnome mysql ssl threads nautilus alsa exif firefox pdf svg rtf garmin
        mjpeg cjk cups jadetex gtk google pic cairo gdm xorg avahi mdnsresponder-compat
        midi png math sound truetype ogg ffmpeg flac mpeg vorbis mythtv gnome-keyring raw
        text http net -doc -docs msn ftp wma httpd svgz gimp jpeg gif wav tiff jpeg2k cdr dvdr
        consolekit -bluetooth gphoto2 mp3 faac gsm x264 xvid -embedded opengl mikmod java"

daniel@Thinkpad_T41 ~ $ emerge --info
Portage 2.2_rc33 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-Intel-R-_Pentium-R-_M_processor_1700MHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 03 Jun 2009 15:45:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en zh_CN"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
USE="X acl alsa avahi berkdb bzip2 cairo cdr cjk cli consolekit cracklib crypt cups dbus dri dvdr exif faac ffmpeg firefox flac fortran ftp garmin gdbm gdm gif gimp gnome gnome-keyring google gphoto2 gpm gsm gtk hal http httpd iconv isdnlog jadetex java jpeg jpeg2k math mdnsresponder-compat midi mikmod mjpeg mp3 mpeg msn mudflap mysql mythtv nautilus ncurses net nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pic png pppd python raw readline reflection rtf session sound spl ssl svg svgz sysfs tcpd text threads tiff truetype unicode vorbis wav wma x264 x86 xorg xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authz_host dir log_config mime rewrite mime_magic" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en zh_CN" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

daniel@Thinkpad_T41 ~ $ /etc/init.d/hald status
* status: started
发表于 2009-6-5 08:13:49 | 显示全部楼层
/etc/make.conf
INPUT_DEVICES="evdev keyboard mouse"
回复 支持 反对

使用道具 举报

发表于 2009-6-5 09:57:18 | 显示全部楼层
楼上说的对。
1. 安装evdev驱动。emerge xf86-input-evdev
2. 启动hald:/etc/init.d/hald start
回复 支持 反对

使用道具 举报

发表于 2009-6-5 19:17:53 | 显示全部楼层
内核里要有evdev支持
最新的xorg guide里有解释
http://www.gentoo.org/proj/zh_cn ... 5-upgrade-guide.xml
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-5 20:34:48 | 显示全部楼层
已按楼上的说法解决了,非常感谢!!
回复 支持 反对

使用道具 举报

发表于 2009-7-12 18:48:06 | 显示全部楼层
好文档,正需要呢,谢谢。
回复 支持 反对

使用道具 举报

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

本版积分规则

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