On 05-Nov-04 adam@thebowery.co.uk wrote:
On Fri, Nov 05, 2004 at 12:19:14PM +0100, Ted Harding wrote:
So: if closing the lid, I do Ctrl-Alt-F1 first.
Also: I have written a little script (loaded at boot) which monitors
If you are running acpid you could create events tied to actions (such as closing the lid) so that when pushing the lid button it goes to sleep (or whatever it does) and then when opening the lid runs the script you have written which would save you having to wait 5 minutes.
Maybe I didn't explain clearly.
The point of the script is to circumvent the situation where, if I leave the machine alone for 10 minutes (whereupon it automatically goes into "suspend"), it is not displaying X when it suspends, since this renders the machine unusable.
The script ensures that the machine is in "console" mode after 5 minutes of inactivity, so that suspend does not cause any problems.
Likewise, if I close the lid, I make sure it is in "console" mode (with Ctrl-Alt-F1) before doing so.
Then, on resumption (whether by opening the lid or moving the mouse or tapping a key), the machine responds instantly (but in console mode since that's where it was when it went to sleep); then I can get X back with Alt-F7. It only takes a couple of seconds, and I certainly don't have to wait 5 minutes!
Best wishes, Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@nessie.mcc.ac.uk Fax-to-email: +44 (0)870 094 0861 [NB: New number!] Date: 05-Nov-04 Time: 14:13:33 ------------------------------ XFMail ------------------------------