You are not logged in.

#1 2008-07-20 13:57:48

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

CLI suspend via HAL

Is there a way to invoke pm-suspend using HAL from the command line? I'm looking for a way to suspend from the CLI (or from a window manager's menu) without invoking sudo...

Offline

#2 2008-07-20 21:55:22

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: CLI suspend via HAL

Alright, I've tried running /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux, and nothing happens... How do I do this? Anyone?

Offline

#3 2008-07-22 02:37:12

kalasmannen
Member
From: Örebro, Sweden
Registered: 2008-02-27
Posts: 39
Website

Re: CLI suspend via HAL

You could always try using the following:

# echo mem > /sys/power/state

I do that from time to time, and it works. As you've might have guessed, it does suspend to ram. Should be possible to do suspend to disk too, by using "disk" instead of "mem", but i've never got that working right.

Edit: Sorry, didn't quite catch that it had to be via HAL, please disregard this post if it's irrelevant.

Last edited by kalasmannen (2008-07-22 03:14:19)

Offline

#4 2008-07-22 03:12:44

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: CLI suspend via HAL

It's alright... Looks like I'm stuck with lxsession or sudo for now, anyway - the FD.O devs seem to have placed a command line interface for HAL PM functions on very low priority, for some reason, so it doesn't exist yet.

Offline

Board footer

Powered by FluxBB