Author Topic: Wake on IR After Suspend  (Read 740 times)

Offline SandmanUT

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 1
  • Peppermint OS User
    • View Profile
  • Peppermint version(s): 7,8
Wake on IR After Suspend
« on: April 03, 2017, 04:38:15 pm »
Most of the guides for using an IR remote (in my case, a Harmony with a MCSE receiver) revolve around making the changes via rc.local. Since Peppermint doesn't use rc.local (or I'm completely blind not seeing it in etc/), what's the best way to enable it to wake up with the remote?

The receiver and remote work fine in Kodi using Lirc and the receiver is recognized properly using lsusb. It suspends properly and will wake with a usb keyboard with no issues.

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 2170
  • Karma: 455
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: Wake on IR After Suspend
« Reply #1 on: April 03, 2017, 04:41:54 pm »
You should have an /etc/rc.local and there's no harm in creating one if it's somehow not there.

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2343
  • Karma: 616
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Wake on IR After Suspend
« Reply #2 on: April 04, 2017, 03:17:23 am »
Hi SandmanUT,

If you do not have a file in /etc named rc.local, then create one (as murraymint suggested) with the following contents (this is what is in mine, in a stock Peppermint 7 installation):

Code: [Select]
#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.

exit 0

Then make sure that it is executable and make the changes to it that you require.


-- Slim
Respect science, respect nature, respect each other.

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome