displayconfig doesn't open any more

Joan Tur joantur at cancullet.org
Sun Oct 14 13:55:13 BST 2007


Es Diumenge, 14 de Octubre de 2007, en Hex Star va escriure:
| On 10/12/07, Joan Tur <joantur at cancullet.org> wrote:
| > Hi,
| >
| > I'm using Kubuntu 7.10 up to date, upgraded 1 month ago from feisty.
| >
| > Everything is working fine but displayconfig as it doesn't open; if run
| > from
| > konsole, it shows the following errors:
| >
| > -----
| > quini at quinilg:~$ displayconfig
| > X Error: BadDevice, invalid or uninitialized input device 158
| >   Major opcode:  146
| >   Minor opcode:  3
| >   Resource id:  0x0
| > Failed to open device
| > X Error: BadDevice, invalid or uninitialized input device 158
| >   Major opcode:  146
| >   Minor opcode:  3
| >   Resource id:  0x0
| > Failed to open device
| > Traceback (most recent call last):
| >   File "/usr/bin/displayconfig", line 1720, in <module>
| >     displayapp = DisplayApp()
| >   File "/usr/bin/displayconfig", line 478, in __init__
| >     self._loadConfig()
| >   File "/usr/bin/displayconfig", line 1031, in _loadConfig
| >     self.targetgamma = self.availabletargetgammas.index(t)
| > ValueError: list.index(x): x not in list
| > Error in sys.excepthook:
| > Traceback (most recent call last):
| >   File "/var/lib/python-support/python2.5/apport_python_hook.py", line
| > 42, 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/bin/displayconfig", line 1720, in <module>
| >     displayapp = DisplayApp()
| >   File "/usr/bin/displayconfig", line 478, in __init__
| >     self._loadConfig()
| >   File "/usr/bin/displayconfig", line 1031, in _loadConfig
| >     self.targetgamma = self.availabletargetgammas.index(t)
| > ValueError: list.index(x): x not in list
| > -----
|
| Try in a terminal session executing the following commands:
|
| sudo apt-get --purge remove displayconfig
| sudo apt-get install displayconfig

As there's no displayconfig package, I've purged kde-guidance:

-----
root at quinilg:~# dpkg -S bin/displayconfig
kde-guidance: /usr/bin/displayconfig-restore
kde-guidance: /usr/bin/displayconfig
displayconfig-gtk: /usr/bin/displayconfig-gtk
root at quinilg:~# apt-get remove --purge kde-guidance
S'està llegint la llista de paquets... Fet
S'està construint l'arbre de dependències
Reading state information... Fet
The following packages were automatically installed and are no longer 
required:
  libnl1-pre6 python-software-properties network-manager libnm-util0 
python-libxml2 hwdb-client-kde gdebi-core apport kde-icons-mono
  apport-qt kdesudo kbstate python-launchpad-bugs dhcdbd hwdb-client-common 
kvkbd digikam unattended-upgrades kde-style-polyester
  python-problem-report networkstatus kio-umountwrapper gdebi-kde 
ttf-arphic-ukai software-properties-kde language-selector-qt
  cups-pdf python-apport kmousetool kmag network-manager-kde
Use 'apt-get autoremove' to remove them.
S'ELIMINARAN els següents paquets:
  kde-guidance* kde-guidance-powermanager* kubuntu-desktop*
0 actualitzats, 0 nous a instal·lar, 3 a eliminar i 0 no actualitzats.
Es necessita obtenir 0B d'arxius.
Després de desempaquetar s'alliberaran 2425kB d'espai en disc.
Voleu continuar [S/n]?
(S'està llegint la base de dades ... hi ha 194645 fitxers i directoris 
instal·lats actualment.)
S'està desinstal·lant kubuntu-desktop ...
S'està desinstal·lant kde-guidance-powermanager ...
S'està desinstal·lant kde-guidance ...
S'estan purgant els fitxers de configuració de kde-guidance ...
dpkg - avís: al desinstal·lar kde-guidance, el 
directori «/usr/share/python-support/kde-guidance» no està buit, no 
s'esborra.
dpkg - avís: al desinstal·lar kde-guidance, el directori «/var/lib/guidance» 
no està buit, no s'esborra.
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root at quinilg:~# aptitude install kde-guidance kubuntu-desktop
...
-----

But it still shows the same error  8-(  any other idea?

TIA  ;)

Note: error after purging the package and installing it again seems the same 
to me:
-----
quini at quinilg:~$ displayconfig
X Error: BadDevice, invalid or uninitialized input device 158
  Major opcode:  146
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 158
  Major opcode:  146
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
Traceback (most recent call last):
  File "/usr/bin/displayconfig", line 1720, in <module>
    displayapp = DisplayApp()
  File "/usr/bin/displayconfig", line 478, in __init__
    self._loadConfig()
  File "/usr/bin/displayconfig", line 1031, in _loadConfig
    self.targetgamma = self.availabletargetgammas.index(t)
ValueError: list.index(x): x not in list
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, 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/bin/displayconfig", line 1720, in <module>
    displayapp = DisplayApp()
  File "/usr/bin/displayconfig", line 478, in __init__
    self._loadConfig()
  File "/usr/bin/displayconfig", line 1031, in _loadConfig
    self.targetgamma = self.availabletargetgammas.index(t)
ValueError: list.index(x): x not in list
-----

-- 
Joan Tur (aka Quini), Eivissa-Spain
    Jabber: quini2k at jabber.org
        www.ClubIbosim.org
  Linux #190.783 - Ubuntu #15.255
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : https://lists.ubuntu.com/archives/kubuntu-users/attachments/20071014/dd4b92e6/attachment.pgp 


More information about the kubuntu-users mailing list