LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices

Reply
 
Search this Thread
Old 01-04-2013, 04:50 PM   #1
stoppage
Member
 
Registered: Oct 2007
Posts: 74

Rep: Reputation: 15
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
 
Old 01-04-2013, 09:26 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,139
Blog Entries: 54

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
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.
 
1 members found this post helpful.
Old 01-05-2013, 04:16 PM   #3
stoppage
Member
 
Registered: Oct 2007
Posts: 74

Original Poster
Rep: Reputation: 15
Monitor wont take the settings (even after setting the execute bit)......
 
Old 01-06-2013, 06:00 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,139
Blog Entries: 54

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
Quote:
Originally Posted by stoppage View Post
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to write a .sh script to read configuration file and write into .txt file ISStaras Linux - Newbie 8 09-06-2012 06:03 PM
using growisofs to write dvd causes small file names sumeet inani Linux - Newbie 1 06-29-2009 04:22 AM
small script Kassel Programming 2 11-19-2004 04:22 AM
Need help with very small script. Franklin Programming 8 10-14-2003 12:37 PM
small script msj Programming 1 08-26-2001 11:42 AM


All times are GMT -5. The time now is 10:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration