问题描述 : (1)、安装 evdev
yum install xorg-x11-drv-evdev
(2)、生成/etc/X11/xorg.conf
这个文件默认是没有的,要通过Xorg -configure 命令生成一个xorg.conf.new,
(如果你运行的提示提示如下错误:
Xorg -configure
(EE)
Fatal server error:
(EE) Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
那么你需要使用命令ps aux | grep cat /tmp/.X0-lock
,查对应的xwindows的pid,并kill 这个id。
)
生成的文件默认路径是/root/xorg.conf.new。
然后把这个文件拷贝到/etc/X11/,并且命名为xorg.conf
cp /root/xorg.conf.new /etc/X11/xorg.conf
(3)、修改/etc/X11/xorg.conf,修改配置鼠标和键盘的驱动为 evdev 就可以了,具体配置如下:
Section "InputDevice"
Identifier "Keyboard0"
Driver "evdev"
Option "Device" "/dev/input/event3"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "evdev"
Option "Device" "/dev/input/event5"
Option "Mode" "Absolute"
EndSection
使用这个方法,控制台鼠标可以用了。但是键盘无法使用。为啥???
2016-01-28 17:15:12
您好,请问您是通过阿里云账户里的ECS连接终端来登录操作的吗?
还是您是想安装如vncserver这样的软件来远程图形化管理CentOS系统呢?
时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。