特殊:Badtitle/NS100:BadDeviceError
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/BadDeviceError }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/af | • {{#if: UbuntuHelp:BadDeviceError|Afrikaans| [[::BadDeviceError/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/ar | • {{#if: UbuntuHelp:BadDeviceError|العربية| [[::BadDeviceError/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/az | • {{#if: UbuntuHelp:BadDeviceError|azərbaycanca| [[::BadDeviceError/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/bcc | • {{#if: UbuntuHelp:BadDeviceError|جهلسری بلوچی| [[::BadDeviceError/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/bg | • {{#if: UbuntuHelp:BadDeviceError|български| [[::BadDeviceError/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/br | • {{#if: UbuntuHelp:BadDeviceError|brezhoneg| [[::BadDeviceError/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/ca | • {{#if: UbuntuHelp:BadDeviceError|català| [[::BadDeviceError/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/cs | • {{#if: UbuntuHelp:BadDeviceError|čeština| [[::BadDeviceError/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/de | • {{#if: UbuntuHelp:BadDeviceError|Deutsch| [[::BadDeviceError/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/el | • {{#if: UbuntuHelp:BadDeviceError|Ελληνικά| [[::BadDeviceError/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/es | • {{#if: UbuntuHelp:BadDeviceError|español| [[::BadDeviceError/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/fa | • {{#if: UbuntuHelp:BadDeviceError|فارسی| [[::BadDeviceError/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/fi | • {{#if: UbuntuHelp:BadDeviceError|suomi| [[::BadDeviceError/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/fr | • {{#if: UbuntuHelp:BadDeviceError|français| [[::BadDeviceError/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/gu | • {{#if: UbuntuHelp:BadDeviceError|ગુજરાતી| [[::BadDeviceError/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/he | • {{#if: UbuntuHelp:BadDeviceError|עברית| [[::BadDeviceError/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/hu | • {{#if: UbuntuHelp:BadDeviceError|magyar| [[::BadDeviceError/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/id | • {{#if: UbuntuHelp:BadDeviceError|Bahasa Indonesia| [[::BadDeviceError/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/it | • {{#if: UbuntuHelp:BadDeviceError|italiano| [[::BadDeviceError/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/ja | • {{#if: UbuntuHelp:BadDeviceError|日本語| [[::BadDeviceError/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/ko | • {{#if: UbuntuHelp:BadDeviceError|한국어| [[::BadDeviceError/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/ksh | • {{#if: UbuntuHelp:BadDeviceError|Ripoarisch| [[::BadDeviceError/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/mr | • {{#if: UbuntuHelp:BadDeviceError|मराठी| [[::BadDeviceError/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/ms | • {{#if: UbuntuHelp:BadDeviceError|Bahasa Melayu| [[::BadDeviceError/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/nl | • {{#if: UbuntuHelp:BadDeviceError|Nederlands| [[::BadDeviceError/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/no | • {{#if: UbuntuHelp:BadDeviceError|norsk| [[::BadDeviceError/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/oc | • {{#if: UbuntuHelp:BadDeviceError|occitan| [[::BadDeviceError/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/pl | • {{#if: UbuntuHelp:BadDeviceError|polski| [[::BadDeviceError/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/pt | • {{#if: UbuntuHelp:BadDeviceError|português| [[::BadDeviceError/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/ro | • {{#if: UbuntuHelp:BadDeviceError|română| [[::BadDeviceError/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/ru | • {{#if: UbuntuHelp:BadDeviceError|русский| [[::BadDeviceError/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/si | • {{#if: UbuntuHelp:BadDeviceError|සිංහල| [[::BadDeviceError/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/sq | • {{#if: UbuntuHelp:BadDeviceError|shqip| [[::BadDeviceError/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/sr | • {{#if: UbuntuHelp:BadDeviceError|српски / srpski| [[::BadDeviceError/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/sv | • {{#if: UbuntuHelp:BadDeviceError|svenska| [[::BadDeviceError/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/th | • {{#if: UbuntuHelp:BadDeviceError|ไทย| [[::BadDeviceError/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/tr | • {{#if: UbuntuHelp:BadDeviceError|Türkçe| [[::BadDeviceError/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/vi | • {{#if: UbuntuHelp:BadDeviceError|Tiếng Việt| [[::BadDeviceError/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/yue | • {{#if: UbuntuHelp:BadDeviceError|粵語| [[::BadDeviceError/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/zh | • {{#if: UbuntuHelp:BadDeviceError|中文| [[::BadDeviceError/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/zh-hans | • {{#if: UbuntuHelp:BadDeviceError|中文(简体)| [[::BadDeviceError/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BadDeviceError | UbuntuHelp:BadDeviceError | {{#if: | :}}BadDeviceError}}/zh-hant | • {{#if: UbuntuHelp:BadDeviceError|中文(繁體)| [[::BadDeviceError/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:BadDeviceError|:BadDeviceError|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :BadDeviceError/zh | | {{#ifexist: BadDeviceError/zh | | {{#ifeq: {{#titleparts:BadDeviceError|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:BadDeviceError|1|-1|}} | zh | | }}
Removing the 'BadDevice' Errors
This page describes how to get rid of the BadDevice errors when starting a GUI application from a Terminal:
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
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:
gksu gedit /etc/X11/xorg.conf
For Ubuntu, or
kdesu kate /etc/X11/xorg.conf
For Kubuntu
Then choose File -> Save As and save it as xorg.conf.backup
Now to change the file, Find this part:
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
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:
InputDevice "stylus" "SendCoreEvents" InputDevice "cursor" "SendCoreEvents" InputDevice "eraser" "SendCoreEvents"
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:
sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf
That will restore your X configuration back to how it was before, then restart the login manager:
In Ubuntu
sudo /etc/init.d/gdm restart
In Kubuntu
sudo /etc/init.d/kdm restart
Then you can log back in and try again.