2018-01-07, 15:02
I updated my setup slightly - built in a new SDD-drive, went for lubuntu 16.04.3 LTS and so on.
I now have my box more or less running but I am having a problem for suspending it.
Actually with pm-suspend my machine suspends and resumes just fine. I also have everything ready for tvheadend recording.
My only problem is that when I shutdown the machine from menu with suspend it suspends (somehow) but it is not reading my
file in /etc/pm/sleep.d
What is the system command for suspend that is used by kodi to put the machine in sleep?
I have something like this in /etc/pm/sleep.d/100resume:
#!/bin/bash
case $1 in
hibernate)
date
echo "Hey honey, we are going to suspend to disk!"
;;
suspend)
echo "Oh, this time we're doing a suspend to RAM. Cool!"
;;
thaw)
date
echo "oh, suspend to disk is over, we are resuming..."
;;
resume)
date
echo "hey, the suspend to RAM seems to be over..."
;;
*)
date
echo "somebody is calling me totally wrong."
;;
esac
When I give manually the pm-suspend I get the correct actions and I get the stuff in /var/log/pm-suspend
When I execute the suspend from kodi I get nothing (not even pm-hibernate or so)
I now have my box more or less running but I am having a problem for suspending it.
Actually with pm-suspend my machine suspends and resumes just fine. I also have everything ready for tvheadend recording.
My only problem is that when I shutdown the machine from menu with suspend it suspends (somehow) but it is not reading my
file in /etc/pm/sleep.d
What is the system command for suspend that is used by kodi to put the machine in sleep?
I have something like this in /etc/pm/sleep.d/100resume:
#!/bin/bash
case $1 in
hibernate)
date
echo "Hey honey, we are going to suspend to disk!"
;;
suspend)
echo "Oh, this time we're doing a suspend to RAM. Cool!"
;;
thaw)
date
echo "oh, suspend to disk is over, we are resuming..."
;;
resume)
date
echo "hey, the suspend to RAM seems to be over..."
;;
*)
date
echo "somebody is calling me totally wrong."
;;
esac
When I give manually the pm-suspend I get the correct actions and I get the stuff in /var/log/pm-suspend
When I execute the suspend from kodi I get nothing (not even pm-hibernate or so)