Page 1 of 1

resolution changes itself when i reboot or close session

Posted: 25. Jul 2013, 00:58
by pr0t0typee
Resolution changes itself to a default 1920x1080 every time i reboot or close session ... i can't keep another resolution except this, and i tried VGA , HDMI, DVI, and even the propietary Nvidia driver...

Re: resolution changes itself when i reboot or close session

Posted: 25. Jul 2013, 09:31
by mimosa
Try searching the forum for xrandr. If you can fix your problem this way, then you can set it up to do so automatically at boot. I had a similar problem which was ahrdware-related - that monitor was on the way out.

Re: resolution changes itself when i reboot or close session

Posted: 29. Jul 2013, 14:17
by kcirick
Something that could be relevant here. I use the following script when I first start xorg or connect to an external monitor.

Code: Select all

#!/bin/bash

if [ `xrandr | grep -c ' connected '` -eq 2 ]; then # dual monitor
	if [ `xrandr | grep -c 'VGA-0 connected'` -eq 1 ]; then
		xrandr --output LVDS --auto --primary --output VGA-0 --auto --right-of LVDS
	fi
	if [ `xrandr | grep -c 'HDMI-0 connected'` -eq 1 ]; then
		xrandr --output LVDS --auto --primary --output HDMI-0 --auto --right-of LVDS
	fi
#	xsetroot -solid \#333333
else
	xrandr --output LVDS --auto --primary --output VGA-0 --off --output HDMI-0 --off
#	feh --bg-center ~/Pictures/Wallpapers/kiwi-wallpaper.jpg
fi
I hope this is somehow helpful

Re: resolution changes itself when i reboot or close session

Posted: 30. Jul 2013, 09:38
by gapan
That's a nice script!