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

Re: Wake up from standby



On Mon, Sep 11, 2006 at 15:09:50 +0300, Andras Lorincz wrote:
> Hello,
> 
> I'm using debian etch with kernel 2.6.16.28 on a desktop computer. After
> issuing the command "echo -n "standby" > /sys/power/states" the computer
> goes to standby as expected. When I press any key on the keyboard or move
> the mouse the system doesn't react. If I press the power button then the
> system wakes up but immediately proceeds to shutting down because I
> configured acpi to shutdown if I press the power button.
> 
> I see here 2 solutions:
> 
> 1. Catch the event for pressing a key or moving the mouse. I don't know
> which are these events and even if I knew, what should be executed in the
> corresponding scripts.

I don't think this is feasible. I believe the manufacturer determines
which keys/buttons are recognized while the unit is suspended.

> 2. Modify the script which reacts to the power button and verify what was
> the state of the system when the button was pressed and if the previous
> state was standby then don't shut down but wake up. This raises the question
> as for solution one: what event to handle and what to do?

This is indeed how I could circumvent the problem:

http://lists.debian.org/debian-user/2006/03/msg02688.html

As George has already pointed out, it is not really an elegant
solution, but it seems to work.

-- 
Regards,
          Florian



Reply to: