LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   where to place xrandr configuration (https://www.linuxquestions.org/questions/linux-newbie-8/where-to-place-xrandr-configuration-896263/)

mrbasilsmudge 08-08-2011 06:22 PM

where to place xrandr configuration
 
I have migrtaed from Arch, my first experience with linux for the past 2 months, to Debian and i'm currently setting up my system. I have a X61s Thinkpad with a cracked screen which i use with the ultrabase with an external monitor and keyboard. The monitor requires me to use fbset on console and xrandr for a graphical enviroment

Whilst i was using Arch i used 'startx' to access openbox and placed my xrandr configuration in ~/.xinitrc but with debian i have wanted to use a login manager, Slim.

Because i am using KMS for my intel based system i don't have an xorg.conf and because i am using slim i am not using ~/.xinitrc

I read somwhere that creating an ~/.xprofile file would solve this but i have not had any luck. So i am wondering where would be the best place to put the xrandr configuration?

I would be very appreciative to any suggestions, thanks.

mrbasilsmudge 08-09-2011 02:43 AM

What i did....
 
I am not sure if anyone is interested but on reading the /etc/slim.conf file i noticed that there was an option to use either /etc/X11/Xsession or ~/.xinit. So i added the xrandr configuration to Xsession after the variables files and it seems to have worked
Code:

# initialize variables for use by all session scripts

OPTIONFILE=/etc/X11/Xsession.options

SYSRESOURCES=/etc/X11/Xresources
USRRESOURCES=$HOME/.Xresources

SYSSESSIONDIR=/etc/X11/Xsession.d
USERXSESSION=$HOME/.xsession
USERXSESSIONRC=$HOME/.xsessionrc
ALTUSERXSESSION=$HOME/.Xsession
ERRFILE=$HOME/.xsession-errors

#Try to use xrandr

xrandr --output LVDS1 --off --output VGA1 --mode 1280x1024 --rate 75

I am sure that the more correct solution would have been to utilise one of the mentioned configuration files.. but at the moment i am just glad it works.

If anyone is kind enough to criticise this please do so.

Thanks


All times are GMT -5. The time now is 05:20 AM.