开发者社区> 问答> 正文

控制台安装 evdev,键盘无法使用,鼠标可以使用。

问题描述 : (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

展开
收起
aaronic1 2016-01-28 19:19:18 5902 0
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。

    您好,请问您是通过阿里云账户里的ECS连接终端来登录操作的吗?

    还是您是想安装如vncserver这样的软件来远程图形化管理CentOS系统呢?

    2019-07-17 18:27:04
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
DTS控制台一本通 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载