You are not logged in.

#1 2012-07-11 22:49:07

sasosito
Member
Registered: 2012-07-11
Posts: 25

[SOLVED]Resolution changes every session.

Hi,
I've just bought a new computer, intel pentium g620 (sandy bridge) with HD3000 graphics, plugged in to a really bad TV (Telefunken TLFK 22LEDPVR), actually it looks worst than my old computer, with SiS integrated and a 15" monitor.
The point is that every time I switch it on or every time I start X server resolution is set to 1024x768, and maximum resolution for the screen is 1920x1200 (specified on the TV instructions). I'm using openbox, and I've already wrote this resolution in xorg.conf, but it doesn't do anything. I post here my xorg.conf so maybe you can help me:

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/misc/"
	FontPath     "/usr/share/fonts/TTF/"
	FontPath     "/usr/share/fonts/OTF/"
	FontPath     "/usr/share/fonts/Type1/"
	FontPath     "/usr/share/fonts/100dpi/"
	FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
	Load  "dbe"
	Load  "record"
	Load  "dri"
	Load  "extmod"
	Load  "glx"
	Load  "dri2"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "LinearFramebuffer"  	# [<bool>]
        #Option     "Tiling"             	# [<bool>]
        #Option     "XvPreferOverlay"    	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "VideoKey"           	# <i>
        #Option     "HotPlug"            	# [<bool>]
        #Option     "Throttle"           	# [<bool>]
        #Option     "UseRelaxedFencing"  	# [<bool>]
        #Option     "UseVmap"            	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "DelayedFlush"       	# [<bool>]
	Identifier  "Card0"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes	"1920x1200" "1920x1080" "1680x1050" "1600x1200"
	EndSubSection
EndSection

All of these resolutions are specified on the TV instructions.
Thank you.

Moderator edit: Added [ code ] tags to keep this stuff readable. Please do so yourself in future. -- bernarcher

Last edited by sasosito (2012-07-12 09:39:20)

Offline

#2 2012-07-11 23:07:10

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED]Resolution changes every session.

It could be that the configuration for some DE specific randr client is messing it up. You would be able to override this with "xrandr --output FOO --mode 1920x1200" Is X choosing 24bpp or something else? You can set this with "DefaultDepth 24". Also, code tags would be great smile.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#3 2012-07-11 23:11:20

sasosito
Member
Registered: 2012-07-11
Posts: 25

Re: [SOLVED]Resolution changes every session.

Thanks for your answer. I'm using openbox, so I don't use anything but xrandr (I change resolution manually every time...). Where should I set 24 as default?

Offline

#4 2012-07-12 09:40:59

sasosito
Member
Registered: 2012-07-11
Posts: 25

Re: [SOLVED]Resolution changes every session.

I've solved it adding this lines to /etc/X11/xorg.conf.d/10-evdev.conf:
Section "Monitor"
   Identifier      "VGA1"
   Modeline "1920x1200"  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync
   Option "PreferredMode" "1920x1200"
EndSection
Thank you.

Offline

Board footer

Powered by FluxBB