Gentoo Archives: gentoo-laptop

From: Gabor BOROS <user.boros.gabor@×××××.com>
To: gentoo-laptop@l.g.o
Subject: Re: [gentoo-laptop] ACPI and HP Pavilion laptop
Date: Sun, 24 Sep 2006 10:53:57
Message-Id: 1bae73740609240352l27afd8e5vf1d8e2ebfcb50803@mail.gmail.com
In Reply to: [gentoo-laptop] ACPI and HP Pavilion laptop by Devon Miller
1 Hi!
2
3 I also have an hp pavilion, i configured the events from this doc:
4 http://www.gentoo.org/doc/en/power-management-guide.xml
5
6 i use 1.0.4-r3 acpid, and i get the following info when switching from
7 ac to battery, and back:
8
9
10 [Sun Sep 24 12:48:25 2006] received event "battery BAT1 00000080 00000001"
11 [Sun Sep 24 12:48:25 2006] notifying client 7654[102:408]
12 [Sun Sep 24 12:48:25 2006] executing action "/etc/acpi/default.sh
13 battery BAT1 00000080 00000001"
14 [Sun Sep 24 12:48:25 2006] BEGIN HANDLER MESSAGES
15 [Sun Sep 24 12:48:25 2006] END HANDLER MESSAGES
16 [Sun Sep 24 12:48:25 2006] action exited with status 0
17 [Sun Sep 24 12:48:25 2006] executing action
18 "/etc/acpi/actions/pmg_switch_runlevel.sh battery BAT1 00000080
19 00000001"
20 [Sun Sep 24 12:48:25 2006] BEGIN HANDLER MESSAGES
21
22 * Starting laptop_mode ... [ ok ]
23 * Activating Power Management for Wireless LAN ... [ ok ]
24 [Sun Sep 24 12:48:32 2006] END HANDLER MESSAGES
25 ..........
26
27 and when is push back the ac power:
28
29
30 [Sun Sep 24 12:51:32 2006] received event "battery BAT1 00000080 00000001"
31 [Sun Sep 24 12:51:32 2006] notifying client 7654[102:408]
32 [Sun Sep 24 12:51:32 2006] executing action "/etc/acpi/default.sh
33 battery BAT1 00000080 00000001"
34 [Sun Sep 24 12:51:32 2006] BEGIN HANDLER MESSAGES
35 [Sun Sep 24 12:51:32 2006] END HANDLER MESSAGES
36 [Sun Sep 24 12:51:32 2006] action exited with status 0
37 [Sun Sep 24 12:51:32 2006] executing action
38 "/etc/acpi/actions/pmg_switch_runlevel.sh battery BAT1 00000080
39 00000001"
40 [Sun Sep 24 12:51:32 2006] BEGIN HANDLER MESSAGES
41 * Deactivating Power Management for Wireless LAN ... [ ok ]
42 * Stopping laptop_mode ... [ ok ]
43 [Sun Sep 24 12:51:36 2006] END HANDLER MESSAGES
44 ......
45
46 hope it helped something, i used that doc, and everything works fine..
47
48
49 borosgabor
50
51
52
53 2006/9/3, Devon Miller <devon.c.miller@×××××.com>:
54 > In the course of updating to 2006.1, sys-power/acpid got remerged and in
55 > merging some changes to /etc/acpid/default.sh.
56 > I decided to try getting it to work again. I currently have it working for
57 > the power button and for the lid open/close events. But I'm stumped when it
58 > comes to AC vs battery.
59 >
60 > My laptop generates these events when going from AC to battery:
61 >
62 > processor CPU0 00000080 00000000
63 > processor CPU0 00000080 00000000
64 > processor CPU0 00000080 00000000
65 > battery BAT0 00000080 00000001
66 > battery BAT0 00000081 00000001
67 >
68 > And when AC is restored it generates these:
69 >
70 > processor CPU0 00000080 00000000
71 > processor CPU0 00000080 00000000
72 > processor CPU0 00000080 00000000
73 > battery BAT0 00000080 00000001
74 > battery BAT0 00000081 00000001
75 > processor CPU0 00000080 00000000
76 > battery BAT0 00000080 00000001
77 > battery BAT0 00000081 00000001
78 >
79 > Is there a document anywhere that explains what the id and value fields
80 > mean?
81 >
82 >
83 > dcm
84 --
85 gentoo-laptop@g.o mailing list