Skip to content

Instantly share code, notes, and snippets.

@erikthered
Last active August 29, 2015 14:21
Show Gist options
  • Save erikthered/1237ce6856c656cd871f to your computer and use it in GitHub Desktop.
Save erikthered/1237ce6856c656cd871f to your computer and use it in GitHub Desktop.
Wake/suspend with remote from Kodibuntu 14.04.1
lsusb
sudo nano /etc/udev/rules.d/90-mcewakeup.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="1784", ATTRS{idProduct}=="0008" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"
sudo nano /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla (I think this is the one that matters)
[Actions for erik user]
Identity=unix-user:erik
Action=org.freedesktop.udisks.*;org.freedesktop.login1.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes
sudo nano /var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla (this might not do anything)
[Actions for xbmc user]
Identity=unix-user:erik
Action=org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedes$
ResultAny=yes
ResultInactive=no
ResultActive=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment