[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#575053: xserver-xorg-video-intel: Wrong resolution after, coming out of hibernate



Erik de Castro Lopo wrote:

> After coming out of hibernate, the X server goes a resolution of
> 2128x800 as displayed by xdpyinfo:
>
>     screen #0:
>       dimensions:    2128x800 pixels (563x212 millimeters)
>       resolution:    96x96 dots per inch
>       depths (7):    24, 1, 4, 8, 15, 16, 32
>       root window id:    0x122
>
> which should be 1280x800. Running gnome-display-preoperties causes
> it to snap back to the correct resolution.


I have noticed the same problem on my laptop after upgrading to Ubuntu 10.04 which uses xserver-xorg-video-intel version 2:2.9.1-3ubuntu5. But I mostly encounter this problem after simply (re)booting.

I have tried to work around this problem by making an xorg.conf file. After trying all kinds of crazy things which didn't have the desired effect, I noticed that I sometimes had the following line in my /var/log/Xorg.0.log

  (II) intel(0): Output TV1 connected

which seemed very strange to me because I don't have a "TV" port on my laptop. This gave me the idea to modify my xorg.conf file to tell the X server to ignore the TV1 output. I found how to do this from this site: http://www.thinkwiki.org/wiki/Xorg_RandR_1.2#xorg.conf

Below I have appended a copy of my /etc/X11/xorg.conf, which seems to effectively prevent the wrong resolution glitches on my laptop. The Modeline is probably not necessary, the essential thing seems to be to tell the intel driver to ignore the TV1 output.


Section "Device"
	Identifier	"Configured Video Device"
	Driver		"intel"
	Option		"Monitor-LVDS1" "Configured Monitor"
	Option		"Monitor-TV1"	"TV"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
Modeline "1280x800" 68.94 1280 1296 1344 1408 800 801 804 816 -hsync -vsync
#	Option "PreferredMode" "1280x800"
EndSection

Section "Monitor"
	Identifier	"TV"
	Option		"Ignore" "true"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
	Device		"Configured Video Device"
	DefaultDepth	24
	SubSection "Display"
	    Depth   24
	    Virtual 1280 800
	    Modes   "1280x800"
	EndSubSection
EndSection





Reply to: