Re: how to run xrandr command at startup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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






-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux