[问题]终端运行gedit等编辑器时提示failed to open device (已解决)

为当前最终发行版之前的所有版本提供支持
回复
zuii
帖子: 65
注册时间: 2007-03-17 10:11
送出感谢: 0
接收感谢: 0
联系:

[问题]终端运行gedit等编辑器时提示failed to open device (已解决)

#1

帖子 zuii » 2007-08-10 22:40

提示下面一段,然后可以打开:

zuii@zuii-desktop:~/shell$ gedit
X Error: BadDevice, invalid or uninitialized input device 167
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 167
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device


--------------------------------------------

解决办法:

修改/etc/X11/xorg.conf


------------------
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

----------------------------------------

Section "ServerLayout"
Identifier "Default Layout"
screen 0 "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
EndSection

------------------------------


把上面两段中注释掉的行在你的XORG.CONF中也注释掉就OK了 没有的行就不用了





而且在终端运行的程序都不能脱离终端,就是运行了过后关掉终端程序也就终止了.
上次由 zuii 在 2007-08-10 23:16,总共编辑 1 次。
头像
Nile
帖子: 990
注册时间: 2006-07-15 11:20
来自: 枫叶刀市
送出感谢: 2 次
接收感谢: 0

#2

帖子 Nile » 2007-08-10 22:47

gedit用终端打开不能脱离终端,gvim可以。
Thinkpad T400
zuii
帖子: 65
注册时间: 2007-03-17 10:11
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 zuii » 2007-08-10 22:56

其他应用程序也不能脱离阿
LUMAQQ等等.....
主要是那个提示的问题




.
回复

回到 “老旧版本支持”