问题描述 : (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系统呢?
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。