[xorg-bugzilla-noise] [Bug 1223] New: libxf86config contains an annoying bug

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Aug 28 12:08:09 PDT 2004


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://freedesktop.org/bugzilla/show_bug.cgi?id=1223        
   
           Summary: libxf86config contains an annoying bug
           Product: xorg
           Version: CVS_head
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Lib/other
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: mharris at www.linux.org.uk


XFree86.org changed libxf86config to write out the HorizSync and VertRefresh
lines to the config file commented out by default.  I believe they made this
change due to the autoconfig stuff, with the mindframe that the horiz and
vert ranges could be autodetected via DDC probing now.

There are multiple problems with this.  Firstly, every time a config file
is re-edited using a tool that uses this library, it causes the existing
commented out entries to be treated like any comment, and new commented
out Horiz/Vert lines to be added again.  Over time, this causes the
config file to have many many commented out Horiz/Vert lines, which just
looks messy.  If the user actually changes monitors, the commented out
lines may differ in frequency and it wouldn't be clear which is correct
for their monitor in any case.  The person could end up using incorrect
frequencies if they were to uncomment the wrong ones.

Personally however, I think adding the lines uncommented at all is wrong
period.  Either the X server can always know the monitor frequencies 100%
of the time, or it can't.  If it can, then there's no need to write out
the lines for the user to be able to easily uncomment them.  If there is
any chance that "auto probe" of monitor wont work, then the default should
not be to comment out these lines.

While most modern displays do handle DDC, there are many scenarios where
DDC probing does not work.  It is just not reasonable to expect that DDC
will work "by default" on most systems, and making commented out horiz/vert
frequencies the default, with no way to override it, forces the user to
have to hand edit the config file always.  As such, OS vendor supplied
tools that use libxf86config as the underlying config file parser library,
must modify the library to not comment these lines out, in order to generate
config files that will work for all users regardless of wether DDC probing
works or not.

Please revert this XFree86.org change to libxf86config that comments out
the HorizSync/VertRefresh lines by default.  The library should not make
this choice, rather the config tool using the library should decide wether
or not the lines get written out.  The way it is now, is just plain broken.

Attaching patch to fix this...        
   
   
--         
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list