Posts: 25
Joined: Mar 2011
Reputation:
0
Hello Bj1
Thanks for your answer.
/home/bm/.xbmc/addons/script.program.pvrmanager/resources/lib
~/.xbmc/addons/script.program.pvrmanager/resources/lib$ ls -l
total 8
-rwxr-xr-x 1 bm bm 262 oct. 2 13:56 shutdown.sh
and the shutdown script (I added "sudo" in front of "shutdown -h now ....." in order to run it as root).
#! /bin/sh
sleep 2
case "$1" in
ACPI)
echo 0 > /sys/class/rtc/rtc0/wakealarm
echo $2 > /sys/class/rtc/rtc0/wakealarm
;;
NVRAM)
nvram-wakeup -C /etc/nvram-wakeup.conf --directisa -s $2
;;
esac
sudo /sbin/shutdown -h now "PVRManager shutdown the system"
This script runs very well (it shutdowns the system) when launch by "bm", my user.
./shutdown.sh
.....
stop the system.
And the sudoers:
bm All=NOPASSWD: /sbin/shutdown,/home/bm/.xbmc/addons/script.program.pvrmanager/resources/lib/shutdown.sh
In the config, I don't check ethernet connections.
Nothing in syslog, neither in wbmc.log (just the same things as pvrmanager.log):
05.10.2013 10:54:29: No PIDFile found, assuming that system just powered on.
05.10.2013 10:54:29: Service(900) finished.
05.10.2013 10:54:29: <<<
05.10.2013 10:54:44: Wakeup for Recording by ACPI at 05.10.2013 11:01:00 (UNIX-Time: 1380963660).
05.10.2013 10:54:49: Instruct the system to shut down.
05.10.2013 10:54:49: Service(838) finished.
05.10.2013 10:54:49: <<<
I don't understand ....
I'm going to make some other tests ....
thanks to you if you have any idea.
Have a good week end !
Posts: 25
Joined: Mar 2011
Reputation:
0
Hi,
I understood !
Issue was with sudoers. My ubuntu release doesn't like several lines like this:
bm All=NOPASSWD: /sbin/shutdown,/home/bm/.xbmc/addons/script.program.pvrmanager/resources/lib/shutdown.sh
For one user, we have to write all the command on the same line and not several lines "user ......" and below "user .....".
It works very well. Thanks for your job and your help.
Just a last question: is it normal this behavior ?
--- programming a timer
--- press F12
--- the system halts
---the system wakes up
--- the timer is recording
--- the system doesn't halt after this record.
Thanks a lot and good week end !
Posts: 950
Joined: Apr 2010
Reputation:
400
_BJ1
Posting Freak
Posts: 950
Update. For more informations see first post...
Posts: 117
Joined: Jan 2012
Reputation:
0
Thank you for this new release. I just installed the update. I did not have to change any setting.
Posts: 950
Joined: Apr 2010
Reputation:
400
_BJ1
Posting Freak
Posts: 950
2014-06-10, 12:52
(This post was last modified: 2014-06-10, 12:52 by _BJ1.)
Several smaller bugfixes. Mail was'nt delivered after a successfull recording. This has no effect for people who does'nt use this feature. Anyway it is fixed now.
Posts: 117
Joined: Jan 2012
Reputation:
0
Still no mail on my setup. Never got one!