You are not logged in.

#1 2007-09-24 07:23:01

vasdee
Member
Registered: 2006-07-15
Posts: 55

suspend works... too well

On a whim, i tried a echo -n mem > /sys/power/state on my mythtv box and it worked...problem is that it resumes instantly! As soon as i hear the click of the case turning off and everything beginning to spin down, it starts spinning back up again.

Something is triggering the PC to turn on again, maybe the wireless keyboard, IR remote?? Anyone got any ideas, had similar issues? My mythtv box is so close to being completely usable it's just not funny!

Offline

#2 2007-09-25 00:59:45

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: suspend works... too well

That's usually a BIOS issue, I'd say. See if you can find any settings related to power management, powerloss or wakeup events.


1000

Offline

#3 2007-09-25 01:48:09

vasdee
Member
Registered: 2006-07-15
Posts: 55

Re: suspend works... too well

byte wrote:

That's usually a BIOS issue, I'd say. See if you can find any settings related to power management, powerloss or wakeup events.

great, i'll have a look after work and report back.

Cheers,

Offline

#4 2007-09-26 01:06:01

vasdee
Member
Registered: 2006-07-15
Posts: 55

Re: suspend works... too well

no luck. All those related power management features were listed under APM and i disabled everything. I left acpi features enabled, but as far as i could tell there weren't  any power management features, just options like "enable acpi 2.0" - really high level options.

Do i need to have acpid running if i am using the echo -n mem command ?

FYI this is the script i use for suspending ( taken and altered from another post).

#!/bin/sh
sudo killall mythfrontend
sudo /etc/rc.d/mythbackend stop               #Sevice to be stopped
sudo /etc/rc.d/mysqld stop
sudo /etc/rc.d/lircd stop
sudo netcfg --stop woopfi                     #Stop wireless network
sudo modprobe -r ndiswrapper                  #Unload wireless card modules


sudo echo -n mem > /sys/power/state           #Suspend

sudo modprobe ndiswrapper                     #Reload wireless network card module
sudo netcfg woopfi                            #Restart wireless network
sudo /etc/rc.d/mysqld start
sudo /etc/rc.d/lircd start
irexec -d /home/mythtv/.mythtv/lircrc
sudo /etc/rc.d/mythbackend start              #Restart service
sudo -H -u mythtv mythfrontend > /dev/null &

Offline

#5 2007-09-26 02:49:28

nesl247
Member
Registered: 2006-05-30
Posts: 191
Website

Re: suspend works... too well

I don't know too much about it, but I would venture to guess the fact that you have something starting to run right as you are telling the computer to suspend. So it suspends, and then goes to execute the next bit.

Offline

Board footer

Powered by FluxBB