LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-22-2012, 07:05 AM   #1
jlparsons
LQ Newbie
 
Registered: Mar 2012
Posts: 9
Blog Entries: 1

Rep: Reputation: Disabled
Run script when monitor donnected/disconnected


Anyone know how I can cause a script to run whenever a monitor is plugged in or disconnected?

I'm running Debian 6 stable LXDE. I want to use this to send commands to xrandr to turn off my laptop monitor when an external one is connected and to maximise resolution of the external monitor.

Ta much!
 
Old 03-22-2012, 08:23 AM   #2
Master_CAPS
Member
 
Registered: Mar 2012
Location: I live at ::1 usually...
Distribution: Yes.
Posts: 55

Rep: Reputation: Disabled
im NOT too smart about this stuff but maybe i can give some ideas...

possibly some kind of "if" "else" statement and for the if statement, I think it would have to detect if an RGA is in use in the /dev section... than some command in the brackets{} to disable it... I think you would have to compile it?

Humm now im going to try to do this
 
  


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
How to run script automatically when mouse is connected/disconnected? layr Linux - General 1 02-13-2012 09:41 AM
how to run a shell script with super user privs when my network get disconnected!!! sd|| Linux - Newbie 1 12-02-2009 05:14 AM
Screen resolution incorrect when starting up with disconnected monitor ejellard Linux - Software 2 01-01-2009 12:50 PM
Using PHP, run bash script and see results on Server's Monitor xmrkite Linux - Software 6 10-17-2006 01:28 PM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration