Re: kernel apm code

John Fremlin (chief@bandits.org)
28 Mar 2001 16:05:38 +0100


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 :-)

[...]

> > 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. Stephen said this was something wrong with my implementation
(???). 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).

[...]

-- 

http://www.penguinpowered.com/~vii - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/