LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 05-31-2003, 12:40 PM   #1
cmisip
Member
 
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 :

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


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

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
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 01:50 AM.

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