[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Toshiba suspend from command line

Yep, that does it. Thanks! The command is apm --suspend or apm -s. A guy 
sure learns a lot on this list...

I was just starting to poke through the wmtuxtime code. It seems to
accomplish the same thing using an ioctl call and dumping a struct 
directly into /proc/toshiba, while apm works with /proc/apm.

The nice thing about wmtuxtime is that the applet seems to work from a
normal user, whereas apm runs but cannot open the device. Of course it 
works with sudo, but I'd like to automate a shutdown after a task.

So now I have new questions: 

How would I adjust the permissions so apm -s could be run by a normal
Does this require me to adjust permissions to the /proc directory?  
How would I do that anyways? 
And, for my own curiosity, why can a windowmaker applet cause a suspend
when the normal user can't?


On Sun, 1 Aug 2004, dircha wrote:

> Ian Knopke wrote:
> > I'd like to be able to put my toshiba laptop in suspend mode from the 
> > command line. Currently I can do it using the wmtuxtime applet in 
> > Windowmaker, that comes in the toshutils package. Is there a way to do 
> > this without the applet?
> I'm not familiar with that applet. Are you using APM or ACPI?
> Also, do you mean suspend to RAM, or suspend to disk?
> If you are using APM, see 'man APM' for the list of commands you can use 
> with the command-line client 'apm' for 'apmd'.
> If you are using ACPI, 'echo [n] > /proc/acpi/sleep' where 'n' is the 
> sleep state you desire to put the machine into.
> --dircha

Reply to: