displayconfig fails to start on Gutsy t5

Bug #135353 reported by MFeif
12
Affects Status Importance Assigned to Milestone
displayconfig-gtk
Confirmed
Undecided
Craig Maloney

Bug Description

Here's a python traceback:

 sudo displayconfig-gtk
[]
Traceback (most recent call last):
  File "/usr/bin/displayconfig-gtk", line 66, in <module>
    app = DisplayConfig(options)
  File "/usr/lib/python2.5/site-packages/displayconfiggtk/DisplayConfig.py", line 179, in __init__
    debug_scan_pci_filename=self.options.pcitable)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 392, in __init__
    self._finalizeInit()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 411, in _finalizeInit
    self.setLayout(gfxcard._getDetectedLayout())
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 965, in setLayout
    gfxcard.setLayout(XSetup.LAYOUT_CLONE)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1173, in setLayout
    screen._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1848, in _resyncResolution
    self.gfx_card.setup.getPrimaryScreen()._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1804, in _resyncResolution
    (preferred_width,preferred_height) = self.getAvailableResolutions()[-1]
IndexError: list index out of range

Not sure what other data you need, but here's the spec on the gfx card:
ATI Technologies Inc M22 [Mobility Radeon X300]

I'm pretty sure I'm using the radeon driver (not the fglrx) but I don't know where to look now, as I don't know how this package works vis-a-vis xorg.conf.

I'm running compiz via the control panel "Normal Effects" setting.

Revision history for this message
davie (daviemoston) wrote :

I'm seeing something similar.
It was previously working fine, then i enabled dual monitor support, with cloned displays, and while X works fine, displayconfig-gtk no longer starts.
I'm using the non-free nvidia driver, and latest displayconfig-gtk from gutsy (0.3.2)

me@my-laptop:~$ sudo displayconfig-gtk
[]
Traceback (most recent call last):
  File "/usr/bin/displayconfig-gtk", line 75, in <module>
    app = DisplayConfig(options)
  File "/usr/lib/python2.5/site-packages/displayconfiggtk/DisplayConfig.py", line 190, in __init__
    debug_scan_pci_filename=self.options.pcitable)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 392, in __init__
    self._finalizeInit()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 411, in _finalizeInit
    self.setLayout(gfxcard._getDetectedLayout())
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 965, in setLayout
    gfxcard.setLayout(XSetup.LAYOUT_CLONE)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1177, in setLayout
    screen._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1854, in _resyncResolution
    self.gfx_card.setup.getPrimaryScreen()._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1810, in _resyncResolution
    (preferred_width,preferred_height) = self.getAvailableResolutions()[-1]
IndexError: list index out of range

Revision history for this message
Laszlo Kupcsik (koopac) wrote :

It does not start on my computer either (on Gutsy). I have a slightly different error, but same category:
Traceback (most recent call last):
  File "/usr/bin/displayconfig-gtk", line 75, in <module>
    app = DisplayConfig(options)
  File "/usr/lib/python2.5/site-packages/displayconfiggtk/DisplayConfig.py", line 190, in __init__
    debug_scan_pci_filename=self.options.pcitable)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 392, in __init__
    self._finalizeInit()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 397, in _finalizeInit
    gfxcard._finalizeInit()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1116, in _finalizeInit
    screen._finalizeInit()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1652, in _finalizeInit
    self.settingall) = self._getGammaFromXorg()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1696, in _getGammaFromXorg
    elif len(gamma_row.row)==3:
AttributeError: 'list' object has no attribute 'row

I attach the xorg.conf as well (it is messy, cause I used to edit it in many different ways)

Revision history for this message
Pik Master (pikmaster) wrote :

I have the same situation. I configured my dual head as a forced 2-screen display, when one is not present at X starting but is forced to be dtetected. This way I can eg. plug in my beamer (projector) and use nvidia-settings to activate the second screen. I don't have to restart, which is a BIG advantage. Prebiously, when the beamer was not connected when X server was starting, it was able to display only 640x480 maximum resolution.

When I try to run displayconfig-gtk 0.3.2 on this configuration I get:

$ displayconfig-gtk
[]
Traceback (most recent call last):
  File "/usr/bin/displayconfig-gtk", line 75, in <module>
    app = DisplayConfig(options)
  File "/usr/lib/python2.5/site-packages/displayconfiggtk/DisplayConfig.py", line 190, in __init__
    debug_scan_pci_filename=self.options.pcitable)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 392, in __init__
    self._finalizeInit()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 411, in _finalizeInit
    self.setLayout(gfxcard._getDetectedLayout())
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 965, in setLayout
    gfxcard.setLayout(XSetup.LAYOUT_CLONE)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1177, in setLayout
    screen._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1854, in _resyncResolution
    self.gfx_card.setup.getPrimaryScreen()._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1810, in _resyncResolution
    (preferred_width,preferred_height) = self.getAvailableResolutions()[-1]
IndexError: list index out of range

Revision history for this message
Craig Maloney (craig-decafbad) wrote :

I'm seeing this behavior on a HP ZD7010 using Gutsy 7.10 release (upgrade from Feisty). The application fails to start, and gives the same traceback as described.

Changed in displayconfig-gtk:
status: New → Confirmed
assignee: nobody → craig-decafbad
Revision history for this message
Craig Maloney (craig-decafbad) wrote :

Seems to occur when I have a second monitor attached to the laptop. If I remove the second monitor and restart the computer, it comes up fine. Could someone else verify this behavior?

Revision history for this message
duane (duane-tech) wrote :

Laszlo Kupcsik: I also had a problem similar to yours: output ending with "AttributeError: 'list' object has no attribute 'row'".
The problem was in my xorg.conf file. Commenting out the Gamma portion of...

Section "Monitor"
        Identifier "monitor2"
       Gamma 0.77 0.67 0.78
EndSection

solved the problem.
I didn't have to restart X or anything. I guess the python script reads the config file each time displayconfig is called.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.