[Trac #263] X doesn't use DCON mode

Zarro Boogs per Child bugtracker at laptop.org
Thu Nov 2 15:27:06 EST 2006


#263: X doesn't use DCON mode
--------------------+-------------------------------------------------------
 Reporter:  dwmw2   |       Owner:  blizzard
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:  BTest-1 
Component:  distro  |    Keywords:          
--------------------+-------------------------------------------------------
 We should use DCON mode in X where appropriate.

 http://david.woodhou.se/xorg.conf.dcon has an appropriate config (albeit
 fc5-based).

 A really simple hack would be to provide both xorg.conf.dcon and
 xorg.conf.vga in /etc/X11 and then symlink based on the contents of the
 'DCON' bit in CMOS:

 if  dd if=/dev/nvram bs=1 count=1 skip=$((0x37)) | od -A none -t x1 | grep
 -q 01 ; then
     ln -sf xorg.conf.dcon xorg.conf
 else
     ln -sf xorg.conf.vga xorg.conf
 fi

 It's better for the flash if we readlink and check that it's correct, and
 change it only if not. Or put the symlink into a ramfs and make
 /etc/X11/xorg.conf point to the ramfs where we create the symlink.

 Even better if we can make X do it automatically with only one config
 file. Using the UseFBDEV option might do that, since it'll ask the kernel
 to set the mode, and the kernel won't do anything but 1200x900 when
 there's a DCON present (unless we change that scheme as has been
 suggested, but I don't like that much)

-- 
Ticket URL: <http://dev.laptop.org/ticket/263>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list