Bug 213027

Summary: S-C-D error: ValueError: need more than 1 value to unpack
Product: [Fedora] Fedora Reporter: Clyde E. Kunkel <clydekunkel7734>
Component: system-config-displayAssignee: Adam Jackson <ajax>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7CC: brownwk, cra, dennis_cranston, michal
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-11 18:53:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
xorg.conf in play when error occurs none

Description Clyde E. Kunkel 2006-10-30 16:51:01 UTC
Description of problem:
As root from a terminal:
[root@P4C800ED ~]# system-config-display
Traceback (most recent call last):
  File "/usr/share/system-config-display/xconf.py", line 311, in ?
    hardware_state = XF86HardwareState(xconfig)
  File "/usr/lib/python2.4/site-packages/rhpxl/xhwstate.py", line 177, in __init__
    self.init_from_xconfig(xconfig)
  File "/usr/lib/python2.4/site-packages/rhpxl/xhwstate.py", line 296, in
init_from_xconfig
    self.all_resolutions.sort (compare_resolution)
  File "/usr/lib/python2.4/site-packages/rhpxl/xhwstate.py", line 60, in
compare_resolution
    (w1, h1) = resolution_from_string(res1)
  File "/usr/lib/python2.4/site-packages/rhpxl/xhwstate.py", line 49, in
resolution_from_string
    (w, h) = string.split (res, "x")
ValueError: need more than 1 value to unpack


Version-Release number of selected component (if applicable):
system-config-display-1.0.45-1

How reproducible:
Every time, except when --reconfig parameter is used.

Steps to Reproduce:
1. as root in a terminal:  system-config-display
2.
3.
  
Actual results:
Error as above

Expected results:
gui comes up allowing changes to xorg configuration.

Additional info:  xorg.conf attached (renamed xorg.conf.bad)

Comment 1 Clyde E. Kunkel 2006-10-30 16:51:01 UTC
Created attachment 139731 [details]
xorg.conf in play when error occurs

Comment 2 Adam Jackson 2006-10-31 00:07:10 UTC
Yep, check out the capital X in "1680X1050".  Does it work if you change that to
lowercase x?

Comment 3 Clyde E. Kunkel 2006-10-31 03:09:03 UTC
Yep.  Gui comes up.

Comment 4 Adam Jackson 2006-10-31 22:47:31 UTC
Sweet, taking.

Comment 5 Adam Jackson 2007-01-30 00:26:19 UTC
*** Bug 223430 has been marked as a duplicate of this bug. ***

Comment 6 Adam Jackson 2007-01-30 00:26:30 UTC
*** Bug 222610 has been marked as a duplicate of this bug. ***

Comment 7 Adam Jackson 2007-01-30 14:28:26 UTC
*** Bug 220684 has been marked as a duplicate of this bug. ***

Comment 8 Adam Jackson 2007-03-26 21:29:29 UTC
Should be fixed in rhpxl 0.44, coming soon to a theater near you.

Comment 9 Michal Jaegermann 2007-06-21 00:49:47 UTC
Still broken with rhpxl-0.47-1.fc7.  I got this on F7 x86_64 installation
trying to configure dual-head display (system-config-display-1.0.51-1.fc7):

Traceback (most recent call last):
  File "/usr/share/system-config-display/xConfigDialog.py", line 137, in ok
    lower_vrefresh, upper_vrefresh =
string.split(str(self.second_monitor_vrefresh), "-")
ValueError: need more than 1 value to unpack
Traceback (most recent call last):
  File "/usr/share/system-config-display/xConfigDialog.py", line 137, in ok
    lower_vrefresh, upper_vrefresh =
string.split(str(self.second_monitor_vrefresh), "-")
ValueError: need more than 1 value to unpack

What is even more interesting - by picking up a lower resolution
for the second monitor one may even get this to work.


Comment 10 Michal Jaegermann 2007-06-21 19:19:14 UTC
I done some more experiments.  If I will tell s-c-d that the second
monitor for a dual panel is "Generic LCD Display 1680x1050" then
I am getting consistently a traceback like in a comment #9.  OTOH
if I will drop resolution to 1440x900 then something gets written.
I did not try all possible resolutions.

Even if xorg.conf is produced then for dualhead is not really
usable without firing up editor and fixing results.  Regardless
how I try to set up first and second monitors something is always
screwy if not that hard to straighten up if you have some idea what
could be a meaning of various entries in that file.  Try yourself
starting with a blank xorg.conf.


Comment 11 Adam Jackson 2008-04-11 18:53:57 UTC
That's a different bug, which is fixed in git now.

*** This bug has been marked as a duplicate of 236327 ***