Preseeding xserver-xorg configuration is awkward

Bug #19606 reported by Timo Aaltonen
10
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Fix Released
Medium
Daniel Stone

Bug Description

I've successfully used preseeding on hoary but it doesn't work with breezy. Not
a single one get's in the config.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

now the version -49 doesn't even create an initial (somewhat working) config.

Revision history for this message
Daniel Stone (daniels) wrote :

that is not even close to enough information for me to begin attempting to debug
your problem. what exact problems are you having, what steps are you taking to
preseed and also generate a new configuration, and what is the new, allegedly
broken, configuration?

noting that preseeding has worked for the ltsp package for quite some time now.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Uh, sorry.. I have these preseeded:

xserver-xorg xserver-xorg/config/device/driver select nvidia
xserver-xorg xserver-xorg/config/display/default_depth select 24
xserver-xorg xserver-xorg/config/display/modes multiselect
1280x1024, 800x600, 640x480
xserver-xorg xserver-xorg/config/inputdevice/keyboard/layout string fi
xserver-xorg xserver-xorg/config/inputdevice/mouse/emulate3buttons boolean
false
xserver-xorg xserver-xorg/config/monitor/horiz-sync string 25-100
xserver-xorg xserver-xorg/config/monitor/vert-refresh string 40-150

debconf gets them (I can see those values with 'debconf-get-selections'), but
they are not found on xorg.conf. With -49 the file was completely empty.. I'm
now doing a test installation with -50 and will report how it went.

Revision history for this message
Daniel Stone (daniels) wrote :

you have to preseed xserver-xorg/autodetect_{monitor,mouse,video_card}=false to
disable the autodetection.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

ok, things are partially better, but even then the display driver is
automatically set, this time as 'apm'

xserver-xorg xserver-xorg/config/device/driver select apm

although I preseeded 'nvidia'. Resolutions are now correct, but the horiz-sync
and vert-refresh strings are nowhere to be found in the config =) So something
is not right here.

Revision history for this message
Daniel Stone (daniels) wrote :

driver would probably be getting forced to apm because nvidia isn't actually a
valid choice, since we don't ship with it. as for the sync ranges,
xserver-xorg/config/monitor/use_sync_ranges=true, or something.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

well, the admin should be able to force the driver to be whatever he likes.. so
I'd like to think that as a bug.

I haven't tested the sync-range stuff, but believe you on that. So the driver is
the only remaining issue ;)

Revision history for this message
Daniel Stone (daniels) wrote :

due to the way that question is implemented (historical baggage from Debian),
changing this is seriously non-trivial, and certainly won't be fixed for breezy.
 so I'm marking this one as FIXED.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Thanks. It effectively makes preseeding xorg useless for us. Why did this work
on hoary, then?

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

horiz-sync and vert-refresh are not preseeded if I set use_sync_ranges=true, but
instead these are applied:

xserver-xorg xserver-xorg/config/monitor/vert-refresh string 50-160
xserver-xorg xserver-xorg/config/monitor/horiz-sync string 30-70

Revision history for this message
Daniel Stone (daniels) wrote :

try preseeding xserver-xorg/config/monitor/selection-method=Advanced

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

yes, that did the trick, thanks!

Revision history for this message
Daniel Stone (daniels) wrote :

fixed per previous comments

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.