Re: Debian pmud package available

11 messages, 8 authors, 2000-06-07 · open the first message on its own page

Re: Debian pmud package available

From: Francois Felix Ingrand <hidden>
Date: 2000-05-31 13:20:09

Michael Schmitz [off-list ref] writes:
quoted
Sorry to step in this thread, but I am interested in having those
power management capabilities on my Pismo too. I use LinuxPPC 2000
(2.2.15pre19)

Where can I get the RPMS or tar files.
http://www3.jvc.nl/linuxppc/
I already installed this version on my pismo. As far as I can tell, it only
supports battery charge level on this powerbook model. Am I right?

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 "Renault, 97: le chômage pour Vilvorde, 98: 5 milliards, 99: 9 milliards pour
  les actionnaires, dont 60% pour les fonds de pension américains."
http://www.ingrand.net/felix                   http://www.laas.fr/~felix

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Debian pmud package available

From: Michael Schmitz <hidden>
Date: 2000-05-31 19:01:03

I already installed this version on my pismo. As far as I can tell, it only
supports battery charge level on this powerbook model. Am I right?
Yes. Sleep needs kernel support which isn't done yet.

	Michael


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Debian pmud package available

From: Michel D�nzer <hidden>
Date: 2000-06-01 08:53:13

Michael Schmitz wrote:
quoted
I already installed this version on my pismo. As far as I can tell, it
only supports battery charge level on this powerbook model. Am I right?
Yes.
How? At least the gkrellm pmud plugin doesn't show the charge level here.


Michel


--
Intel: where Quality is job number 0.9998782345!
______________________________________________________________________________
Earthling Michel Dänzer (MrCooper)  \  CS student and free software enthusiast
Debian GNU/Linux (powerpc,i386) user \   member of XFree86, Team *AMIGA*, AUGS

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Debian pmud package available

From: Michael Schmitz <hidden>
Date: 2000-06-06 18:44:55

quoted
quoted
I already installed this version on my pismo. As far as I can tell, it
only supports battery charge level on this powerbook model. Am I right?
Yes.
How? At least the gkrellm pmud plugin doesn't show the charge level here.
You need the -a flag for pmud to switch on apm support, plus the plugin
needs to read from /etc/power/apm instead from /proc somewhere.

	Michael


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Debian pmud package available

From: Joseph Garcia <hidden>
Date: 2000-06-06 19:12:21

Michael Schmitz wrote:
quoted
How? At least the gkrellm pmud plugin doesn't show the charge level here.
You need the -a flag for pmud to switch on apm support, plus the plugin
needs to read from /etc/power/apm instead from /proc somewhere.
the GKrellM PMU plugin uses PMUD directly rather than using the APM-frontend.
What PMU_VERSION id does the Pismo have?  the plugin is written to support up to
12 (keylargo/iBook).  My page lists Pismo as unsupported because I know nothing
about how PMUD handles it.  Looking at the code, it appears as if it is just
another smart battery.  But there is no evidence to a PMU_VERSION relating to
it.  Does Batmon display for Pismo systems?  I could update it to support Pismo
ASAP if I get some input.

For plugins like this, should the pmud.h be put in a public location, like
/usr/include/pmud?  It has useful info, like PMU_VERSION and related strings,
which dont need to be in several places.  also makes a nice dependancy to make
sure PMUD is installed.

Thanks.

--
Joseph P. Garcia      jpgarcia@execpc.com      jpgarcia@lidar.ssec.wisc.edu
CS Undergraduate                      Student Employee - Systems Programmer
University of Wisconsin - Madison                            UW Lidar Group

An error occurred while booting.  Please try again.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Debian pmud package available

From: Michel D�nzer <hidden>
Date: 2000-06-06 19:42:33

Joseph Garcia wrote:
What PMU_VERSION id does the Pismo have?  the plugin is written to support
up to 12 (keylargo/iBook).
Is reported as 12 on my Pismo.
My page lists Pismo as unsupported because I know nothing about how PMUD
handles it.  Looking at the code, it appears as if it is just another smart
battery.  But there is no evidence to a PMU_VERSION relating to it.
The gkrellm plugin (v0.9) always shows an empty battery and 0:00 rest time.
Does Batmon display for Pismo systems?  I could update it to support Pismo
ASAP if I get some input.
Francois told me it does; haven't tested it myself.


Michel


--
Been there, done that, can't remember why...
______________________________________________________________________________
Earthling Michel Dänzer (MrCooper)  \  CS student and free software enthusiast
Debian GNU/Linux (powerpc,i386) user \   member of XFree86, Team *AMIGA*, AUGS

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Pismo battery support (was 'Re: Debian pmud package available')

From: Joseph Garcia <hidden>
Date: 2000-06-06 20:00:12

Michel D舅zer wrote:
Is reported as 12 on my Pismo.
hmm..  Any handy way to tell the difference between the iBook's single and the
Pismo's dual battery capacities?
The gkrellm plugin (v0.9) always shows an empty battery and 0:00 rest time.
I think at that time, I hadn't thought about error handling.  Those are the
default values, and at the time of v0.9, I had never heard of keylargo.

Its been updated to 0.12 recently.  It handles id 12 the same as a G3 series,
but assumes it only has the left battery (lone iBook battery).  Maybe I should
make it the same as a g3 series.  Later today, I'll see about updating that.  in
the meantime, if you have the time, try the newer version.  Since I assumed 12
has only one battery, it should only show the left battery on a pismo.  you
could edit the sys_pmu.nbattery=1 line to =2 in the KEYLARGO section in
gkrellm-pmu.c:95, and that should fix that.

http://www.execpc.com/~jpgarcia/

Thanks for your help.  It is much appreceated.

--
Joseph P. Garcia      jpgarcia@execpc.com      jpgarcia@lidar.ssec.wisc.edu
CS Undergraduate                      Student Employee - Systems Programmer
University of Wisconsin - Madison                            UW Lidar Group

An error occurred while booting.  Please try again.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Debian pmud package available

From: Michel D�nzer <hidden>
Date: 2000-06-06 20:09:48

Michel Dänzer wrote:
The gkrellm plugin (v0.9) always shows an empty battery and 0:00 rest time.
Just realized there are later versions (things advance quickly there :). v0.12
works perfectly with gkrellm 0.9.10, only thing is it reports my Pismo as an
iBook...


Michel


--
So many Christians, so few lions.
______________________________________________________________________________
Earthling Michel Dänzer (MrCooper)  \  CS student and free software enthusiast
Debian GNU/Linux (powerpc,i386) user \   member of XFree86, Team *AMIGA*, AUGS

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Pismo battery support (was 'Re: Debian pmud package available')

From: Michel D�nzer <hidden>
Date: 2000-06-06 20:13:10

Joseph Garcia wrote:
quoted
Since I assumed 12 has only one battery, it should only show the left
battery on a pismo.  you could edit the sys_pmu.nbattery=1 line to =2 in
the KEYLARGO section in gkrellm-pmu.c:95, and that should fix that.
As I have only one battery (yet)...

Thanks for your help.  It is much appreceated.
Thanks for your good work!


Michel


--
I believe the technical term is "Oops!"
______________________________________________________________________________
Earthling Michel Dänzer (MrCooper)  \  CS student and free software enthusiast
Debian GNU/Linux (powerpc,i386) user \   member of XFree86, Team *AMIGA*, AUGS

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Pismo battery support (was 'Re: Debian pmud package available')

From: Stephan Leemburg <hidden>
Date: 2000-06-07 07:08:55

Hi to all,

FYI, in 2.2.16pre4, there is NO support for letting the Pismo and the
iBook sleep. It is however, as proven by the discussed battery monitors,
possible to get some info on the battery status. Supporting the KEYLARGO
is no trivial task, first of all, you need to have a iBook or Pismo to
experiment with and then get your hands dirty on trial and error kernel
modifications.
As I don't own a iBook or a Pismo, I cannot experiment with it and
experimenting over the net - that is one person writing the testcode and
the other testing it on a KEYLARGO based machine - is far to
inconvenient and will most probably not work.

For what that experimenting is concerned, I believe that in the latest
Darwin kernel there is some powermanagement code, which could be analysed.

Note that even though you cannot put the machines to sleep, you can have
pmud signal init that there is a powerfailure and have it shutdown...

--
Stephan

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Pismo battery support (was 'Re: Debian pmud package available')

From: Benjamin Herrenschmidt <hidden>
Date: 2000-06-07 07:55:01

On Wed, Jun 7, 2000, Stephan Leemburg [off-list ref] wrote:
FYI, in 2.2.16pre4, there is NO support for letting the Pismo and the
iBook sleep. It is however, as proven by the discussed battery monitors,
possible to get some info on the battery status. Supporting the KEYLARGO
is no trivial task, first of all, you need to have a iBook or Pismo to
experiment with and then get your hands dirty on trial and error kernel
modifications.
I'm the happy owner of a Pismo since one or two weeks. Implementing sleep
on this machine (and on the iBook) is on my to-do list (I already
gathered various infos on KeyLargo from the Darwin sources and some MacOS
hacking). I will first work on improving the gmac driver, which seems to
be more urgent, and then work on that sleep support.
As I don't own a iBook or a Pismo, I cannot experiment with it and
experimenting over the net - that is one person writing the testcode and
the other testing it on a KEYLARGO based machine - is far to
inconvenient and will most probably not work.

For what that experimenting is concerned, I believe that in the latest
Darwin kernel there is some powermanagement code, which could be analysed.
It's still not complete, but there are interesting bits scattered here or
there. The basic mecanism seems to be the same as for the wallstreet and
lombard: the CPU is powered OFF by the PMU after entering a special
sleep-loop. We need to fix this sleep-loop so that it resist to spurrious
wake-ups by the decrementer interrupt, but that's a detail.

The different thing is the way things are powered off before sleep and
turned back on after sleep. It's a lot different for KeyLargo that it was
for Heathrow and Paddington, but Darwin source is helpful here. I plan to
rework (again) the arch/ppc/kernel/features.c stuffs to add more
abstractions that match keylargo and uni-north new FCRs and power control.
Note that even though you cannot put the machines to sleep, you can have
pmud signal init that there is a powerfailure and have it shutdown...

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help