Comment 2 for bug 92550

Revision history for this message
Georg (georg-an) wrote :

I am not sure how to do it right. I tried it once as a normal user and the second time using sudo.

1)
georg@ubuntu:~$ guidance-power-manager
georg@ubuntu:~$ 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
KCrash: Application 'guidance-power-manager.py' crashing...

2)
georg@ubuntu:~$ sudo guidance-power-manager
Password:
georg@ubuntu:~$ 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
No protocol specified
kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
No protocol specified
kded: cannot connect to X server :0.0
DCOP aborting call from 'anonymous-6473' to 'kded'
kded: ERROR: Communication problem with kded, it probably crashed.
No protocol specified
Traceback (most recent call last):
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 1045, in <module>
    mainWindow = PowermanagerApp(None, "main window")
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 982, in __init__
    self.pmwidget = PowerManager(self,name)
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 96, in __init__
    self.powermanager = PowerManage()
  File "/usr/share/python-support/kde-guidance/powermanage.py", line 69, in __init__
    xg = xf86misc.XF86Server()
  File "/usr/share/python-support/kde-guidance/xf86misc.py", line 133, in __init__
    raise XF86Error, "Couldn't connect to X server."
xf86misc.XF86Error: Couldn't connect to X server.
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport/python_hook.py", line 44, in apport_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
IndexError: list index out of range

Original exception was:
Traceback (most recent call last):
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 1045, in <module>
    mainWindow = PowermanagerApp(None, "main window")
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 982, in __init__
    self.pmwidget = PowerManager(self,name)
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 96, in __init__
    self.powermanager = PowerManage()
  File "/usr/share/python-support/kde-guidance/powermanage.py", line 69, in __init__
    xg = xf86misc.XF86Server()
  File "/usr/share/python-support/kde-guidance/xf86misc.py", line 133, in __init__
    raise XF86Error, "Couldn't connect to X server."
xf86misc.XF86Error: Couldn't connect to X server.

I hope this is what you meant.