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

Re: apm / standby

On Mon, Jun 05, 2000 at 11:07:39PM +0200, Hugo van der Merwe wrote:
> After a certain amount of time of inactivity, I get the following error:
> apm: set display standby: Unable to enter requested state
> Any ideas where this error comes from?

Don't know.

> Second thing, since the X servers cannot restore properly after a suspend,
> I want to tell my laptop to go to vt1 (`chvt 1`) just before it is
> suspended or enters sleep mode, if it is currently in X. I tried to play
> with `tty`, comparisons, ||, && and `chvt 1` in a bash script in
> /etc/apm/event.d, but due to my lack of a solid understanding of
> comparisons/"if statements" in bash scripts I was unable to get it working
> correctly. I suppose I should also have checked the first parameter... at
> the moment my laptop switches to vt 1 at any event, even pluggin in/out
> the power...

My laptop won't recover if it suspends from X either. I force the laptop to
switch to vt 1 when it suspends.


# change to vt1 when suspending to keep X from locking

if [ "$1" = suspend ]; then
  chvt 1

Lee Bradshaw                 lee@sectionIV.com (preferred)
Alantro Communications       lee@alantro.com

Reply to: