Bug 128148

Summary: system-config-display --reconfig --noui fails
Product: [Fedora] Fedora Reporter: Michael Young <m.a.young>
Component: system-config-displayAssignee: Brent Fox <bfox>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: barryn
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 1.0.16-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-07-20 14:44:16 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:

Description Michael Young 2004-07-19 12:09:56 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.6)
Gecko/20040116

Description of problem:
When I run the command
system-config-display --reconfig --noui
I get the error
Traceback (most recent call last):
  File "/usr/share/system-config-display/xconf.py", line 412, in ?
    hardware_state.merge_into(xconfig)
NameError: name 'hardware_state' is not defined

The problem seems to be the lines 336-7
    if reconfig and loop_count == 0:
        continue
in /usr/share/system-config-display/xconf.py
which discards the first card in the card list. Since the system in
question only finds one card the configuration fails. If I comment out
these lines, the command works as expected.
Package versions are system-config-display-1.0.14-1 and rhpl-0.143-1

Comment 1 Michael Young 2004-07-20 14:44:16 UTC
Actually, it seems this bug is already fixed in the rawhide version.

Comment 2 Sindre Pedersen Bjørdal 2004-08-30 20:13:25 UTC
I really do think there should be an update for this for the current
release (Core 2). If users get stuck without X and this doesn't work
they're kind of lost. This is a severe bug IMHO. 

Comment 3 Barry K. Nathan 2004-09-02 04:21:27 UTC
I was just bitten by on a production system. :(


Here's a possible workaround though:

mkdir /root/old-x-files
mv /etc/X11/xorg.conf* /etc/X11/XF86Config* /root/old-x-files
system-config-display

rather than
system-config-display --reconfig