Posts: 69
Joined: Feb 2013
Reputation:
1
Thanks for the info nabz but I have OE installed on the hard drive.
@ kreeturez glad to hear it worked for you on rPi....
Does anyone know the command to suspend OE? I would like to program one of the remote buttons to suspend my machine but I been looking all over and can not find how to write the command.
Posts: 3,544
Joined: Mar 2010
Reputation:
119
What happens if you run pm-suspend from a terminal? Also are you trying to suspend a RPI?
Posts: 3,544
Joined: Mar 2010
Reputation:
119
2014-02-18, 08:07
(This post was last modified: 2014-02-18, 08:15 by teeedubb.)
Can you run sleep.sh from terminal? Maybe its not executable, run
chmod +x sleep.sh
Also why not put pm-suspend in .lircrc instead of the script?
Posts: 69
Joined: Feb 2013
Reputation:
1
You were right it was not executable. After running chmod +x sleep.sh from the terminal my button now works. Thank you teeedubb.
Now that it is a executable will that change when openelec updates? Will have to pro form that command every time openelec updates?
Posts: 3,544
Joined: Mar 2010
Reputation:
119
Nah it'll be fine, OE updates don't touch the things that are writable by the user, eg /storage/
Posts: 3,544
Joined: Mar 2010
Reputation:
119
You need to remove the hash from in front of killall and I would run the killall command after pm-suspend - killing xbmc before suspending has given me problems before. Probably better to use a resume hook to kill xbmc though, there's an example of a resume hook on the first page.
Posts: 3,544
Joined: Mar 2010
Reputation:
119
No, the resume hook isn't part of sleep.sh, its a separate file, the location where it should be placed is on the first page. Plus on the resume line delete everything after the first && and replace it with killall -9 xbmc
Posts: 69
Joined: Feb 2013
Reputation:
1
My suspend button has been working for about a week and now it stopped. Every time i try to put my machine to sleep using the button on the remote or even when i use suspend by pressing it on xbmc it does work.
When I press it looks like it goes into suspend for about a second but then it turns right back on. Has this happened to anyone before?