Re: Working script won't work in rc.local

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

 



Barry Yu wrote:

Below is the entire content of my script;

xrandr --output VGA --auto --output TMDS-1 --auto --right-of VGA

1: A shell script needs a shebang:

#!/bin/sh
xrandr --output VGA --auto --output TMDS-1 --auto --right-of VGA

2: X won't even be running when rc.local runs, so you can't do anything with X tools there.

3: You can do this in the xorg.conf file. You'll need to modify the "Device" section, and add one line for each of your monitors. The format of the line is Option "Monitor-<port name>" "<id>". The port name is the one that the xrandr tool prints out, and the id is whatever you want. You'll use that id in the "Monitor" sections to specify the xrandr options. For example, my system has these three sections in xorg.conf:

Section "Device"
       Identifier  "Videocard0"
       Driver      "radeon"
       Option      "Monitor-VGA-0" "first"
       Option      "Monitor-DVI-0" "second"
EndSection

Section "Monitor"
       Identifier  "first"
EndSection

Section "Monitor"
       Identifier  "second"
       Option      "RightOf" "first"
EndSection

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux