LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   Please help to write (small) script (https://www.linuxquestions.org/questions/linux-mint-84/please-help-to-write-small-script-4175444213/)

stoppage 01-04-2013 04:50 PM

Please help to write (small) script
 
Can somebody please help me out here...I'm on Mint 12 I need to make a script to load the following screen/TV particulars at startup and I haven't a clue where to start....

xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode HDMI3 1440x900_60.00
xrandr --output HDMI3 --mode 1440x900_60.00

Obliged

unSpawn 01-04-2013 09:26 PM

In your case you could add them to /etc/rc.local, just make sure you add your three lines just above the "exit 0" line.

stoppage 01-05-2013 04:16 PM

Monitor wont take the settings (even after setting the execute bit)......

unSpawn 01-06-2013 06:00 AM

Quote:

Originally Posted by stoppage (Post 4863623)
Monitor wont take the settings (even after setting the execute bit)......

rc.local is only run on boot (and runlevel change?) so there's a difference between the script not running (add "set -vx " on a line on its own about your xrandr commands, run script?), the commands running but not knowing what to apply it to (add "--verbose -display :0.0" to your xrandr commands) and the observation that "monitor not taking the settings" ('xrandr -q' should show).


All times are GMT -5. The time now is 09:42 PM.