![]() |
APMD-List: |
to APMD Home
|
Index:
[thread]
[date]
[subject]
[author]
From: Craig Markwardt <craigm@pcasun3.gsfc.nasa.gov> To : Avery Pennarun <apenwarr@worldvisions.ca> Date: Tue, 27 Jul 1999 12:45:57 -0400 (EDT) Re: [FIX] X and suspend/resumeAvery Pennarun writes: > On Sat, Jul 24, 1999 at 11:38:23PM -0700, Nathan Myers wrote: > > > The first part is a tiny C program. It reports the Virtual Terminal > > that currently occupies the display: > > Handy... > > > The second part is a script that goes in /etc/apm/resume.d, > > called xserver-resume. It checks whether X is actually on the > > current display, because I have found that X servers crash if > > they receive certain events when not in control of the display. > > I would recommend using chvt to switch away from and back to the main X > display, _if_ your queryvt says we're on the current X terminal. This > avoids all Xauthentication complexity, and works regardless of the X server > configuration. > > Thoughts? Does anyone think this should/shouldn't be the default setting? > (It would be nice if suspending a Linux laptop worked for everyone out of > the box.) Hi Avery-- I submitted a little "chvt" snippet to you in my last round of patches to apmd_proxy. In my patch I simply change to virtual console 1 before suspend, and then leave it up to the user to change back after resume. The queryvt program would be nice, but would require keeping state around between suspend and resume (not necessarily a bad thing). Is that right? I decided to err on the side of not enabling "chvt 1" by default, since some people might get confused to see their X Windows vanish. Also, could some video cards freak out when changing out of graphics mode? Craig Index: [thread] [date] [subject] [author] |