![]() |
APMD-List: |
to APMD Home
|
Index:
[thread]
[date]
[subject]
[author]
From: Pavel Machek <pavel@atrey.karlin.mff.cuni.cz> To : Avery Pennarun <apenwarr@worldvisions.ca> Date: Mon, 28 Sep 1998 11:30:19 +0200 Re: apm proposed changesHi! > > * ability for user-level code to *reject* a pending standby or > > suspend event. Very handy if something nasty is going on. > > Sounds interesting, although I don't know what kind of rules you'd use to > decide this. As far as I know (and I'll be happy if you correct me) the > only reasons you might want to avoid suspending are that the buffer cache > hasn't been flushed, or you haven't finished cleaning up yet... and There are user-defined reasons not to suspend. Normally, I want my notebook to suspend when closed, but NOT if I've just ran long compilation. In such case I want to do > /etc/nosuspend and just close the notebook so that it does not eat space on my desk. > > including both apmd and apm (based on Faith's 2.4 version). It seems > > we may have diverged here. Hmmm. > > Looks that way. I took Rik's pre-3.0 version, fixed some bugs, made it work > with hwclock<->clock CMOS clock setting programs (with GMT support), and > added a patch by Pavel Machek to make it work better with IBM Thinkpads. I > don't understand the issues in his patch, but it didn't hurt on my laptop so > I let it pass. :-) There were some problems with need to poll (which you corrected independently) and thinkpad used rather strange combinations of flags (which made apm unhappy). And I cleaned up a code a little bit. Pavel -- The best software in life is free (not shareware)! Pavel GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+ Index: [thread] [date] [subject] [author] |