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

Re: Suspend and X



I set replies to go to debian-laptop.

I actually posted one solution to the debian-laptop list this morning. I
force the laptop to switch to vt 1 when it suspends. Add the following
script to /etc/apm/event.d/01chvt (be sure it's executable):

#!/bin/sh
# change to vt1 when suspending to keep X from locking

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

Of course after suspending the system comes back up on vt 1, but I can
easily switch back to X if it keeps the system from crashing.

Does anyone know how to grab Fn-F1 (Setup Menu) or Fn-F3 (Battery
status) that switch back to text mode? They also crash if you hit
those keys from X, but are fine from a text console.

If you find out how do suspend without switching to a text console
first, please let us know.

On Tue, Jun 06, 2000 at 08:11:24AM +0000, Mats Rynge wrote:
> Hi!
> 
> I'm running potato + kernel 2.2.14 on my laptop, a Dell Inspiron 7000. I
> used to be able to susend the thing without any problems at all, but
> then something happend. I can't recall that I changed anything or that I
> did see any updates on apmd. Now I can only suspend when I am in console
> mode. When I try it under X, the thing just freezes. I can tell that it
> does something right because it shuts down my pcmcia card before
> freezing. I have tried to recompile the kernel with different apm
> options and I have tried to run X with different window managers, but
> nothing helped. I have no clue on what to do now. Any ideas?
> 
> TIA
> 
> Mats
> 
> 

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



Reply to: