How to enable suspend and resume from a remote with mythbuntu
Add the following lines to the end of your /etc/init.d/acpi-support script
if [ -e /proc/acpi/wakeup ] ; then
echo "USB0" > /proc/acpi/wakeup ;
echo "USB2" > /proc/acpi/wakeup ;
fi
if [ -e /sys/bus/usb/devices/3-3/power/wakeup ] ; then
echo "enabled" > /sys/bus/usb/devices/3-3/power/wakeup ;
fi
Of course you will have to match the USB0, USB2, and devices/3-3 with your equivalent usb devices.
Add the following to your ~/.lirc/irexec file
begin remote = mceusb
prog = irexec
button = Power
config = xfce4-session-logout --suspend &
repeat = 0
delay = 0
end
Once again you'll have to submit the correct value for remote = and the correct button for Power.
0 Comments:
Post a Comment
<< Home