resolution changes itself when i reboot or close session

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
pr0t0typee
Posts: 10
Joined: 22. Jul 2013, 21:12
Location: Khorasan, between Syria and Irak.

resolution changes itself when i reboot or close session

Post 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...
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: resolution changes itself when i reboot or close session

Post 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.
kcirick
Posts: 41
Joined: 13. Dec 2012, 05:34

Re: resolution changes itself when i reboot or close session

Post 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
Image
User avatar
gapan
Salix Wizard
Posts: 6244
Joined: 6. Jun 2009, 17:40

Re: resolution changes itself when i reboot or close session

Post by gapan »

That's a nice script!
Image
Image
Post Reply