Comment 1 for bug 162378

Revision history for this message
tmp (skrald) wrote :

If I run displayconfig from the terminal with
  sudo displayconfig
I get the following output when I press the "Second Screen" checkbox:

Traceback (most recent call last):
  File "/usr/bin/displayconfig", line 1474, in slotSecondMonitorToggled
    self.xsetup.setLayout(self.secondary_options[pressed_id])
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 969
, in setLayout
    gfxcard.setLayout(XSetup.LAYOUT_SINGLE_XINERAMA)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 117
7, in setLayout
    screen._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 185
4, in _resyncResolution
    self.gfx_card.setup.getPrimaryScreen()._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 181
0, in _resyncResolution
    (preferred_width,preferred_height) = self.getAvailableResolutions()[-1]
IndexError: list index out of range
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, in ap port_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 1474, in slotSecondMonitorToggled
    self.xsetup.setLayout(self.secondary_options[pressed_id])
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 969 , in setLayout
    gfxcard.setLayout(XSetup.LAYOUT_SINGLE_XINERAMA)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 117 7, in setLayout
    screen._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 185 4, in _resyncResolution
    self.gfx_card.setup.getPrimaryScreen()._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 181 0, in _resyncResolution
    (preferred_width,preferred_height) = self.getAvailableResolutions()[-1]
IndexError: list index out of range