public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Balazic <david.balazic@uni-mb.si>
To: John Fremlin <chief@bandits.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	linux-laptop@vger.kernel.org, apm@linuxcare.com.au,
	apenwarr@worldvisions.ca, sfr@linuxcare.com.au
Subject: Re: kernel apm code
Date: Thu, 29 Mar 2001 11:25:04 +0200	[thread overview]
Message-ID: <3AC2FF70.CA2317B6@uni-mb.si> (raw)
In-Reply-To: <3AC0A679.DFA9F74B@uni-mb.si> <"m28zlr58w9.fsf"@boreas.yi.org> <3AC1C406.652D0207@uni-mb.si> <"m2bsqmlyrh.fsf"@boreas.yi.org>

John Fremlin wrote:
> 
> David Balazic <david.balazic@uni-mb.si> writes:
> 
> > John Fremlin wrote:
> > >
> > >  David Balazic <david.balazic@uni-mb.si> writes:
> 
> [...]
> 
> > > The maintainer hasn't the time to do it. He promised me he would in
> > > February, when I telephone, but hasn't bothered to do anything
> > > AFAICS. I hacked together the following patch for it a while ago,
> > > which updated APM_IOC_REJECT for slightly more recent kernels (be
> > > warned, I think I made some mistakes)
> >
> > It uses the same version number ( 1.15 ) as the "official" apm.c (
> > at linuxcare.com.au/apm ). I don't think that is a good idea.  Maybe
> > 1.14b ?
> 
> Well it's not going to go anywhere unless you want to look after it so
> there's not much point in worrying about that :-)

And the 2.4.2-ac26 apm.c has version 1.14 changes listed that are different
from the 1.14. changes listed in the patch from linuxcare.com.au/apm,
so it is not as big problem as I thought.

> [...]
> 
> > > I made a (IMHO) better version called pmpolicy, based on different
> > > principles. More information is available at
> > >
> > >         http://john.snoop.dk/programs/linux/offbutton/
> 
> > To implement off-button you only need the APM_IOC_REJECT ioctl and
> 
> The problem on my computer with my (re)implementation of
> APM_IOC_REJECT is that the screen goes into powersaving when the user
> suspend is received, then turns it back on when APM_IOC_REJECT is sent
> by apmd.

What is wrong with that ?
Suspend is requested -> suspend is executed
Suspend is canceled (rejected) -> suspend is canceled

Seems perfectly OK to me.


> Stephen said this was something wrong with my implementation
> (???).

User error ? :-)

> Anyway it is fixed in my pmpolicy patch, and I don't need no
> daemon so the code is a lot cleaner and simpler (no binary magic
> number interfaces).

But there should be no policy in the kernel ! ;-)

-- 
David Balazic
--------------
"Be excellent to each other." - Bill & Ted
- - - - - - - - - - - - - - - - - - - - - -

  parent reply	other threads:[~2001-03-29  9:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-27 14:40 kernel apm code David Balazic
2001-03-27 19:06 ` John Fremlin
     [not found] ` <"m28zlr58w9.fsf"@boreas.yi.org>
     [not found]   ` <3AC1C406.652D0207@uni-mb.si>
     [not found]     ` <"m2bsqmlyrh.fsf"@boreas.yi.org>
2001-03-29  9:25       ` David Balazic [this message]
2001-03-29 16:44         ` John Fremlin
     [not found]         ` <"m24rwcjziu.fsf"@boreas.yi.org>
2001-03-30 10:20           ` David Balazic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3AC2FF70.CA2317B6@uni-mb.si \
    --to=david.balazic@uni-mb.si \
    --cc=apenwarr@worldvisions.ca \
    --cc=apm@linuxcare.com.au \
    --cc=chief@bandits.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-laptop@vger.kernel.org \
    --cc=sfr@linuxcare.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox