public inbox for gentoo-laptop@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-laptop] ACPI and HP Pavilion laptop
@ 2006-09-03 15:17 Devon Miller
  2006-09-24 10:52 ` Gabor BOROS
  0 siblings, 1 reply; 2+ messages in thread
From: Devon Miller @ 2006-09-03 15:17 UTC (permalink / raw
  To: gentoo-user, gentoo-laptop

[-- Attachment #1: Type: text/plain, Size: 909 bytes --]

In the course of updating to 2006.1, sys-power/acpid got remerged and in
merging some changes to /etc/acpid/default.sh.
I decided to try getting it to work again. I currently have it working for
the power button and for the lid open/close events. But I'm stumped when it
comes to AC vs battery.

My laptop generates these events when going from AC to battery:

processor CPU0 00000080 00000000
processor CPU0 00000080 00000000
processor CPU0 00000080 00000000
battery BAT0 00000080 00000001
battery BAT0 00000081 00000001

And when AC is restored it generates these:

processor CPU0 00000080 00000000
processor CPU0 00000080 00000000
processor CPU0 00000080 00000000
battery BAT0 00000080 00000001
battery BAT0 00000081 00000001
processor CPU0 00000080 00000000
battery BAT0 00000080 00000001
battery BAT0 00000081 00000001

Is there a document anywhere that explains what the id and value fields
mean?


dcm

[-- Attachment #2: Type: text/html, Size: 992 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-laptop] ACPI and HP Pavilion laptop
  2006-09-03 15:17 [gentoo-laptop] ACPI and HP Pavilion laptop Devon Miller
@ 2006-09-24 10:52 ` Gabor BOROS
  0 siblings, 0 replies; 2+ messages in thread
From: Gabor BOROS @ 2006-09-24 10:52 UTC (permalink / raw
  To: gentoo-laptop

Hi!

I also have an hp pavilion, i configured the events from this doc:
http://www.gentoo.org/doc/en/power-management-guide.xml

i use 1.0.4-r3 acpid, and i get the following info when switching from
ac to battery, and back:


[Sun Sep 24 12:48:25 2006] received event "battery BAT1 00000080 00000001"
[Sun Sep 24 12:48:25 2006] notifying client 7654[102:408]
[Sun Sep 24 12:48:25 2006] executing action "/etc/acpi/default.sh
battery BAT1 00000080 00000001"
[Sun Sep 24 12:48:25 2006] BEGIN HANDLER MESSAGES
[Sun Sep 24 12:48:25 2006] END HANDLER MESSAGES
[Sun Sep 24 12:48:25 2006] action exited with status 0
[Sun Sep 24 12:48:25 2006] executing action
"/etc/acpi/actions/pmg_switch_runlevel.sh battery BAT1 00000080
00000001"
[Sun Sep 24 12:48:25 2006] BEGIN HANDLER MESSAGES

 * Starting laptop_mode ...                                               [ ok ]
 * Activating Power Management for Wireless LAN ...                       [ ok ]
[Sun Sep 24 12:48:32 2006] END HANDLER MESSAGES
..........

and when is push back the ac power:


[Sun Sep 24 12:51:32 2006] received event "battery BAT1 00000080 00000001"
[Sun Sep 24 12:51:32 2006] notifying client 7654[102:408]
[Sun Sep 24 12:51:32 2006] executing action "/etc/acpi/default.sh
battery BAT1 00000080 00000001"
[Sun Sep 24 12:51:32 2006] BEGIN HANDLER MESSAGES
[Sun Sep 24 12:51:32 2006] END HANDLER MESSAGES
[Sun Sep 24 12:51:32 2006] action exited with status 0
[Sun Sep 24 12:51:32 2006] executing action
"/etc/acpi/actions/pmg_switch_runlevel.sh battery BAT1 00000080
00000001"
[Sun Sep 24 12:51:32 2006] BEGIN HANDLER MESSAGES
 * Deactivating Power Management for Wireless LAN ...                     [ ok ]
 * Stopping laptop_mode ...                                               [ ok ]
[Sun Sep 24 12:51:36 2006] END HANDLER MESSAGES
......

hope it helped something, i used that doc, and everything works fine..


borosgabor



2006/9/3, Devon Miller <devon.c.miller@gmail.com>:
> In the course of updating to 2006.1, sys-power/acpid got remerged and in
> merging some changes to /etc/acpid/default.sh.
> I decided to try getting it to work again. I currently have it working for
> the power button and for the lid open/close events. But I'm stumped when it
> comes to AC vs battery.
>
> My laptop generates these events when going from AC to battery:
>
> processor CPU0 00000080 00000000
>  processor CPU0 00000080 00000000
>  processor CPU0 00000080 00000000
>  battery BAT0 00000080 00000001
> battery BAT0 00000081 00000001
>
> And when AC is restored it generates these:
>
> processor CPU0 00000080 00000000
>  processor CPU0 00000080 00000000
>  processor CPU0 00000080 00000000
>  battery BAT0 00000080 00000001
> battery BAT0 00000081 00000001
> processor CPU0 00000080 00000000
> battery BAT0 00000080 00000001
> battery BAT0 00000081 00000001
>
> Is there a document anywhere that explains what the id and value fields
> mean?
>
>
> dcm
-- 
gentoo-laptop@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-24 10:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-03 15:17 [gentoo-laptop] ACPI and HP Pavilion laptop Devon Miller
2006-09-24 10:52 ` Gabor BOROS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox