Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-31-2003, 12:40 PM   #1
Registered: Aug 2002
Posts: 189

Rep: Reputation: 30
Is it possible to switch lirc modes with a script?

I have a creative infra remote control with very limited buttons. To switch modes ( for example tv mode or movie mode) I have to :

remote = XXXX
button = button1
program = irexec
config = irexec sleep 0
mode = tv

remote = XXXX
button = button2
program = irexec
config = irexec sleep 0
mode = movie

The irexec sleep is only so irexec will have something to do. It is the mode switching that is important to me. This method is a waste of one good button on my remote though. If it possible to switch to movie or tv mode with a script that irexec will run then that is the better solution. I can put a script after config = for setting tv mode and then follow it with another script for setting movie mode so that lirc will alternate running these two scripts when I press the button repeatedly. Thanks


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
is there a script that controls what happens when you switch a terminal? Fascistchicken Linux - General 2 09-29-2004 10:11 PM
2 video modes, can i switch without reboot? true_atlantis Linux - Hardware 4 05-30-2004 02:00 PM
Games that switch video modes make display into bars TCv1 Linux - Software 0 03-26-2004 03:55 PM
lirc init script... El_Angelo Slackware 4 09-25-2003 01:20 AM
switch users within a script kilobravo Linux - General 4 01-14-2003 03:39 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:51 AM.

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