LIRC Config Help
Powering on Devices from Remote | Powering on Devices from Remote |
|
|
|
|
Powering on device using the 'Power' button on your remote is one case of the Remote Translator. First, we'll look at a basic example then show how to extend it to other devices. Toggling Power on One DeviceUse LIRC's irexec command to trigger an "irsend" when a certain key is pressed:
begin remote = hauppauge_pvr button = power
Power Toggling Multiple DevicesSimply create a script with your irsend commands to be run by irexec: #!/bin/bash irsend send_once my_tv power irsend send_once my_dvd_player power irsend send_ once my_audio_receiver power Modify the original .lircrc to call your script instead of irsend. Ensure your script is executable by your LIRC user. Add irexec to a start-up script to load at boot-time. Example Files and Commands main-power-toggle.sh: irexec /home/mythtv/lircrc begin
|