How to avoid password prompt on resume from sleep?
Jan Moren
jan.moren at lucs.lu.se
Sun Jun 4 02:12:04 UTC 2006
lör 2006-06-03 klockan 13:00 -0300 skrev Derek Broughton:
> Jan Moren wrote:
>
> > For various reasons I tend to put the laptop to sleep and resume several
> > times a day, and it quickly gets old to have to log in every time.
>
> "log in"? Username AND password? That sounds like a problem I was
> encountering with resume and kpowersave (don't let that scare you - keep
> reading, it's not KDE or powersave related). When you sleep (or suspend),
> and screensaver is configured, you should get a password-only prompt, but
> for some video cards X aborts if it tries to restore the video while you're
> in the X session, so you need to do a "chvt" to a console _before_
> sleep/suspend begins, and then "chvt" back to the X session after the video
> is reset.
Sorry - unclear. I meant the password prompt that xscreensaver pops up.
> If this is what's happening, you can test it by manually switching to a
> console before sleeping, and see if you still need to log in after resume
> (and switching back to your X session).
>
> When I used the acpi-support package, this seemed to be automatic (look
> for "chvt" in the suspend scripts - perhaps it only happens for actual
> suspend, not sleep, as I never used sleep). Now that I'm using powersave,
> I've had to modify a config parameter.
Ok. But my problem is the normal password prompt. I want to just wake up
directly to the desktop, with no having to enter my password (or,
ideally, xscreensaver involved so I don't have to trigger an input event
just to wake the screen up too).
We have a nice configuration setting to disable login prompting when
booting up; should perhaps be something for this in the power functions
setting too.
--
Dr. Jan Morén (mr)
Japan: 090-3622 8920 jan.moren at lucs.lu.se
Sweden: 031-360 7723 http://lucs.lu.se/people/jan.moren
More information about the ubuntu-users
mailing list