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

Re: Wake up from standby



Andras Lorincz wrote:
>  
> 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?

One way would be to have the script create some file before it
suspends.

The same script can then check for the presence of the file on
resume and if this file is found, cancel the suspend, or execute
some other code.

This is called "a bodge". ;-)


Hope this helps,

-- 
George Borisov

DXSolutions Ltd

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: