Description of problem: system-config-display terminates at startup if XF86Config contains manually crafted ModeLines which have "uncommon" names, such as "1024x768@85", accepting only lines of the sort "1024x768". Version-Release number of selected component (if applicable): 1.0.8-1 How reproducible: always Steps to Reproduce: 1. manually add such a ModeLine to /etc/X11/XF86Config: ModeLine "1600x1000@91" 215.50 1600 1688 2104 2264 1000 1003 1016 1046 #91Hz 2. call system-config-display 3. Actual results: (system-config-display:10492): Gtk-WARNING **: GModule initialization check failed: Gtk+ version too old (micro mismatch) * ddcprobe returned bogus values: ID: SNY00ea Name: SNY00ea HorizSync: None VertSync: None Traceback (most recent call last): File "/usr/share/system-config-display/xconf.py", line 348, in ? hardware_state = XF86HardwareState(xconfig) File "/usr/lib/python2.3/site-packages/rhpl/xhwstate.py", line 146, in __init__ self.init_from_xconfig(xconfig) File "/usr/lib/python2.3/site-packages/rhpl/xhwstate.py", line 275, in init_from_xconfig self.all_resolutions.sort (compare_resolution) File "/usr/lib/python2.3/site-packages/rhpl/xhwstate.py", line 50, in compare_resolution a1 = resolution_area(res1) File "/usr/lib/python2.3/site-packages/rhpl/xhwstate.py", line 46, in resolution_area (w, h) = resolution_from_string(res) File "/usr/lib/python2.3/site-packages/rhpl/xhwstate.py", line 43, in resolution_from_string return (string.atoi(w), string.atoi(h)) File "/usr/lib/python2.3/string.py", line 220, in atoi return _int(s, base) ValueError: invalid literal for int(): 1000@91 Expected results: Program UI starts. Additional info: (Dunno why ddcprobe fails, but that's not the reason.) I need to craft ModeLines manually, because my 16/10 monitor a) reports stupid 4/3 lines, and b) I may want other resolutions or timings. I use programs such as "modeline" or online services, and all these use the syntax "1024x768@80" to differentiate the different vertical frequencies. s-c-d cannot parse this, and fails here ("/usr/lib/python2.3/site-packages/rhpl/xhwstate.py", line 43): def resolution_from_string(res): (w, h) = string.split (res, "x") return (string.atoi(w), string.atoi(h)) Any chance in making this possible?
Can you attach your XF86Config file?
Sorry about the delay - I'm at work now, will attach the file in about 10 hours.
Okay, here's the config file. Hope this helps.
Created attachment 98302 [details] XF86Config which causes s-c-d to crash Is it perhaps the "Modes" line, and not the Modeline itself?
The parser is expecting the "Modes" section to begin with something like "1024x768"...not "1024x768@56". I've modified the parser a little to handle this situation. It's still not smart enough to handle more random names. For example, if somebody created a ModeLine called "Foobar" and then created a Modes line with "Foobar" in it, the parser would break even though the file would be syntactically correct. Should be fixed in rhpl-0.130-1. Thanks for your report.
Indeed, rhpl-0.131-1 works fine. Thanks!