个人工具
登录
查看“UbuntuHelp:BadDeviceError”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:BadDeviceError”的源代码
来自Ubuntu中文
←
UbuntuHelp:BadDeviceError
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/BadDeviceError}} {{Languages|UbuntuHelp:BadDeviceError}} === Removing the 'BadDevice' Errors === This page describes how to get rid of the BadDevice errors when starting a GUI application from a Terminal: <pre><nowiki> X Error: BadDevice, invalid or uninitialized input device 170 Major opcode: 146 Minor opcode: 3 Resource id: 0x0 Failed to open device X Error: BadDevice, invalid or uninitialized input device 170 Major opcode: 146 Minor opcode: 3 Resource id: 0x0 Failed to open device </nowiki></pre> ==== The Fix ==== To stop these errors from appearing you need to modify your ''/etc/X11/xorg.conf'' file and remove the relevant parts. First we'll make a backup, just in case. Open the file by pressing Alt+F2 and putting in: <pre><nowiki> gksu gedit /etc/X11/xorg.conf </nowiki></pre> For Ubuntu, or <pre><nowiki> kdesu kate /etc/X11/xorg.conf </nowiki></pre> For Kubuntu Then choose '''File -> Save As''' and save it as ''xorg.conf.backup'' Now to change the file, Find this part: <pre><nowiki> Section "InputDevice" Driver "wacom" Identifier "stylus" Option "Device" "/dev/input/wacom" Option "Type" "stylus" Option "ForceDevice" "ISDV4" # Tablet PC ONLY EndSection Section "InputDevice" Driver "wacom" Identifier "eraser" Option "Device" "/dev/input/wacom" Option "Type" "eraser" Option "ForceDevice" "ISDV4" # Tablet PC ONLY EndSection Section "InputDevice" Driver "wacom" Identifier "cursor" Option "Device" "/dev/input/wacom" Option "Type" "cursor" Option "ForceDevice" "ISDV4" # Tablet PC ONLY EndSection </nowiki></pre> and either delete or comment out the lines. (To comment out the lines you put a '#' character at the beginning of each line) Then find the lines: <pre><nowiki> InputDevice "stylus" "SendCoreEvents" InputDevice "cursor" "SendCoreEvents" InputDevice "eraser" "SendCoreEvents" </nowiki></pre> In the '''Section "ServerLayout"''' section and delete/comment out those too. Once you've done that, choose '''File -> Save As''' and save it as ''xorg.conf'' to replace the origional. You will then have to restart the X server for the settings to take effect. First save anything you are working on and logout, then from the login screen menu choose "Restart the X server", then you can log back in. === If Something Went Wrong === If, after you chose to restart the X server, you don't get the login screen back, then the you may have not competed the steps properly or just made a mistake somewhere, but that's why we created a backup. Login to the console and from there run this command: <pre><nowiki> sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf </nowiki></pre> That will restore your X configuration back to how it was before, then restart the login manager: In Ubuntu <pre><nowiki> sudo /etc/init.d/gdm restart </nowiki></pre> In Kubuntu <pre><nowiki> sudo /etc/init.d/kdm restart </nowiki></pre> Then you can log back in and try again. [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:BadDeviceError
。