Skip to contentSkip to conversation

Support of sonypi module/code

DISCUSSION Lee Packham 3 participants 4 messages Dec 8, 2001 – Dec 10, 2001

lore
Share & tools
lore
#0 lore raw

Am I going to be treading on anybody's toes if I release a patch for the sonypi module to add battery and AC power information support?

The reason is thus, to stop the fan spinning all the time on my laptop I have to use ACPI (I have a Vaio FX-103). It doesn't work great, but it works...

ACPI can't report battery info. Nor can APM!

You have to use the Programmable Interrupts thing to get them out of the system. I wrote a program that did this (vaiod) on a polling interval to set my screen brightness automagically but I would have to poll things manually. It would be great to do this though /dev/sonypi.

It doesn't look like the code has been updated for ages. So is anybody going to complain if I do it?

Lee Packham

#1 lore raw
Quoted 2 lines · Lee Packham

Am I going to be treading on anybody's toes if I release a patch for the sonypi module to add battery and AC power information support?

Mines. The driver _is_ maintained.

Quoted 5 lines

The reason is thus, to stop the fan spinning all the time on my laptop I have to use ACPI (I have a Vaio FX-103). It doesn't work great, but it works...

ACPI can't report battery info. Nor can APM!

The latest versions of ACPI work pretty well, if it doesn't work for you it must be because of buggy ACPI bios. At least in my case, I found out that flashing a newer bios (look out for bioses that support Windows XP on the sony site) solves most of the problems.

Quoted 4 lines

You have to use the Programmable Interrupts thing to get them out of the system. I wrote a program that did this (vaiod) on a polling interval to set my screen brightness automagically but I would have to poll things manually. It would be great to do this though /dev/sonypi.

Why not. We already do this with ioctls for brightness control.

Quoted 2 lines

It doesn't look like the code has been updated for ages. So is anybody going to complain if I do it?

Your significance of 'ages' must be different that mines...

Stelian.

Signature · 4 lines
Stelian Pop <[email protected]>
|---------------- Free Software Engineer -----------------|
| Alcôve - http://www.alcove.com - Tel: +33 1 49 22 68 00 |
|------------- Alcôve, liberating software ---------------|
#2 lore raw
In reply to Lee Packham

Hi!

Quoted 2 lines

Am I going to be treading on anybody's toes if I release a patch for the sonypi module to add battery and AC power information support?

Releasing patch to l-k is *always* okay, as long as you don't mail it linus or marcelo for inclusion.
Pavel

Signature · 2 lines
"I do not steal MS software. It is not worth it."
                                -- Pavel Kankovsky
#3 lore raw
In reply to Lee Packham
Quoted 5 lines · Pavel Machek
Quoted 2 lines

Am I going to be treading on anybody's toes if I release a patch for the sonypi module to add battery and AC power information support?

Releasing patch to l-k is *always* okay, as long as you don't mail it linus or marcelo for inclusion.

Indeed. However, sending a copy to the known maintainer of the code in question is always a good idea.

Stelian.

Signature · 4 lines
Stelian Pop <[email protected]>
|---------------- Free Software Engineer -----------------|
| Alcôve - http://www.alcove.com - Tel: +33 1 49 22 68 00 |
|------------- Alcôve, liberating software ---------------|