how to run xrandr command at startup

CS DBA cs_dba at consistentstate.com
Fri Jan 2 23:14:11 UTC 2015


On 1/2/15 3:44 PM, CS DBA wrote:
> Hi all;
>
> I want to run an xrandr command at startup.
>
> I Tried these solutions with no luck:
>
> 1) added command it to /etc/rc.d/rc.local (as a script with 
> #!/bin/bash as the first line)
>     created a soft link from /etc/rc.d/rc.local to /etc/rc.local
>     systemctl start rc-local.service
>
> 2) added command to /etc/kde/kdm/Xsetup
>     chmod a+x /etc/kde/kdm/Xsetup
>
>
> Neither of the above solutions work
>
>
> I'm running Fedora 21, KDE spin (64bit)
>
> Thanks in advance for any help...
>
>
Update:

I've tweaked my /etc/kde/kdm/Xsetup file to look like this:
/
//#!/bin/sh//
//
///bin/xrandr --newmode "1280x800_60.00"  83.50  1280 1352 1480 1680  
800 803 809 831 -hsync +vsync//
//
///bin/xrandr --addmode eDP1 "1280x800_60.00"//
//
///bin/xrandr -s 1280x800//
//
///bin/xrandr --output eDP1 --panning 1280x800 --scale 0.633x0.633/

If I login with this the screen is not right, cut off at the sides. If I 
then login and run the /etc/kde/kdm/Xsetup file as a script then the 
screen gets set correctly

Thoughts?

Thanks again in advance






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20150102/3f579e8b/attachment.html>


More information about the users mailing list