Comment 13 for bug 188764

Revision history for this message
Mario Limonciello (superm1) wrote : Re: [Bug 188764] Re: [hardy]640x480 usplash on a 1024x768 LCD laptop

Saïvann Carignan wrote:
> Unfortunately, xrandr will only work when X is running so it does not
> seem to be a viable option.. And the new xserver-xorg does not set
> xserver-xorg/config/display/modes debconf variable anymore. What can-we
> use to fix this issue?
>
Well here's what I think.

Check for a valid DISPLAY variable in the postinst. If there is one, try to
query it via xrandr. If not, then fall back to a default of 640x480. I'm not
sure if generally DISPLAY is exposed though when running dpkg. It might be
cleared from the environment.

--
Mario Limonciello
<email address hidden>