[原创]终端输入命令qt相关命令的报错解决方法

Ubuntu中文汉化版
回复
wzh
帖子: 21
注册时间: 2006-03-29 22:53
送出感谢: 0
接收感谢: 0
联系:

[原创]终端输入命令qt相关命令的报错解决方法

#1

帖子 wzh » 2006-10-15 17:57

这个问题应该是QT的问题。 出现问题的系统(我所用过的),UBUNTU6061及其衍生版本,Fedora5

使用和QT有关的软件,如果在终端输入命令,
例如

代码: 全选

$lyx-qt


会出现如下类似的错误报告:

X Error: BadDevice, invalid or uninitialized input device 168
Major opcode: 148
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 168
Major opcode: 148
Minor opcode: 3
Resource id: 0x0
Failed to open device


解决方法,修改 /etc/X11/xorg.conf

代码: 全选

$sudo gvim /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


xorg.conf 文件稍微后点的内容也需要注释掉,

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



之后再运行基于QT的程序,以上错误信息就不在显示。

是否会有副作用,目前还不知!
[i][b]
回复

回到 “Ubuntu中文衍生版”