Difference between revisions of "Customized Remote Control Keys"
From MythTV Official Wiki
(→Tips, Hints, and customised keys for remote controls) |
(→Restart Mythtv key) |
||
Line 11: | Line 11: | ||
<code> | <code> | ||
− | mythtv ALL=NOPASSWD: /etc/init.d/mythbackend | + | mythtv ALL=NOPASSWD: /etc/init.d/mythbackend |
</code> | </code> | ||
Line 22: | Line 22: | ||
<code> | <code> | ||
− | # Power Off/Exit | + | # Power Off/Exit |
− | begin | + | begin |
− | prog = irexec | + | prog = irexec |
− | button = OFF | + | button = OFF |
− | config = /script/to/re-cycle/everything | + | config = /script/to/re-cycle/everything |
− | end | + | end |
</code> | </code> | ||
Revision as of 04:50, 3 October 2006
Tips, Hints, and customised keys for remote controls
This page documents remote control tips, hints, and customised remote control keys. These are generally applicable to all remote control setups. For setup steps and customisations specific to a particular type of remote control see ???
Customised keys
Restart Mythtv key
Give the mythtv user permission via sudo. Edit /etc/sudoers and add the following line:
mythtv ALL=NOPASSWD: /etc/init.d/mythbackend
If you are running mythtv as a different user you will change mythtv to the user name you are using.
This sets up sudo so that user mythtv can do "sudo /etc/init.d/mythbackend restart".
Add something like this to your lircrc:
# Power Off/Exit begin prog = irexec button = OFF config = /script/to/re-cycle/everything end
From PaulPick in the mythtv mailing list.
--indulis 04:48, 3 October 2006 (UTC)