Gentoo Archives: gentoo-user-de

From: Juergen Rose <rose@××××××××××××××.de>
To: gentoo-user-de@l.g.o
Subject: [gentoo-user-de] cpufreqd und ac=off
Date: Wed, 28 Apr 2010 16:37:36
Message-Id: 1272472575.3626.91.camel@moose.ibmt.intern
1 Hallo,
2
3 auf meinem Desktop PC waehlt cpufreqd den powersave governor aus, weil
4 er anscheinend der Meinung ist, dass das Netzteil keinen Wechselstrom
5 liefert. Wenn ich /etc/cpufreqd.conf die Verbosity auf 7 setze, finde
6 ich in /var/log/syslog die folgenden Ausgaben.
7
8 Apr 28 17:08:00 moose cpufreqd: alarm_handler : Caught ALARM
9 signal (Alarm clock).
10 Apr 28 17:08:00 moose cpufreqd: cpufreqd_loop : Current time
11 is: 1272467280::107891
12 Apr 28 17:08:00 moose cpufreqd: get_cpu : called
13 Apr 28 17:08:00 moose cpufreqd: get_cpu : CPU4
14 c_user=23506197 c_nice=173697 c_sys=3385811 c_idle=524786941
15 c_iowait=1490286 c_irq=20672 c_softirq=41746.
16 Apr 28 17:08:00 moose cpufreqd: get_cpu : CPU0
17 c_user=4911353 c_nice=43049 c_sys=774609 c_idle=130630871
18 c_iowait=460293 c_irq=6047 c_softirq=12547.
19 Apr 28 17:08:00 moose cpufreqd: get_cpu : CPU1
20 c_user=4479239 c_nice=42190 c_sys=727379 c_idle=133062909
21 c_iowait=445453 c_irq=5777 c_softirq=12469.
22 Apr 28 17:08:00 moose cpufreqd: get_cpu : CPU2
23 c_user=6756081 c_nice=43417 c_sys=947265 c_idle=130687674
24 c_iowait=289936 c_irq=4441 c_softirq=9055.
25 Apr 28 17:08:00 moose cpufreqd: get_cpu : CPU3
26 c_user=7359523 c_nice=45039 c_sys=936557 c_idle=130405486
27 c_iowait=294603 c_irq=4405 c_softirq=7675.
28 Apr 28 17:08:00 moose cpufreqd: insert_tnode : new node
29 (head)
30 Apr 28 17:08:00 moose cpufreqd: insert_tnode : new node
31 (sar)
32 Apr 28 17:08:00 moose cpufreqd: programs_update : read 219
33 processes
34 Apr 28 17:08:00 moose cpufreqd: acpi_battery_update : average
35 battery life -1%
36 Apr 28 17:08:00 moose cpufreqd: update_rule_scores : Considering
37 Rule "AC Rule"
38 Apr 28 17:08:00 moose cpufreqd: acpi_ac_evaluate : called: on
39 [off]
40 Apr 28 17:08:00 moose cpufreqd: update_rule_scores : Rule "AC
41 Rule" score: 0%
42 Apr 28 17:08:00 moose cpufreqd: update_rule_scores : Considering
43 Rule "AC Off - Low Battery"
44 Apr 28 17:08:00 moose cpufreqd: acpi_ac_evaluate : called: off
45 [off]
46 Apr 28 17:08:00 moose cpufreqd: rule_score : Rule "AC Off
47 - Low Battery": ac matches.
48 Apr 28 17:08:00 moose cpufreqd: acpi_battery_evaluate : called 0-30
49 [Avg:-1]
50 Apr 28 17:08:00 moose cpufreqd: update_rule_scores : Rule "AC Off
51 - Low Battery" score: 51%
52 Apr 28 17:08:00 moose cpufreqd: update_rule_scores : Considering
53 Rule "AC Off - Medium Battery"
54 Apr 28 17:08:00 moose cpufreqd: acpi_ac_evaluate : called: off
55 [off]
56 Apr 28 17:08:00 moose cpufreqd: rule_score : Rule "AC Off
57 - Medium Battery": ac matches.
58 Apr 28 17:08:00 moose cpufreqd: acpi_battery_evaluate : called 30-70
59 [Avg:-1]
60 Apr 28 17:08:00 moose cpufreqd: update_rule_scores : Rule "AC Off
61 - Medium Battery" score: 51%
62 Apr 28 17:08:00 moose cpufreqd: update_rule_scores : Considering
63 Rule "AC Off - High Power"
64 Apr 28 17:08:00 moose cpufreqd: acpi_ac_evaluate : called: off
65 [off]
66 Apr 28 17:08:00 moose cpufreqd: rule_score : Rule "AC Off
67 - High Power": ac matches.
68 Apr 28 17:08:00 moose cpufreqd: acpi_battery_evaluate : called 70-100
69 [Avg:-1]
70 Apr 28 17:08:00 moose cpufreqd: update_rule_scores : Rule "AC Off
71 - High Power" score: 51%
72 Apr 28 17:08:00 moose cpufreqd: update_rule_scores : Considering
73 Rule "CPU Too Hot"
74 Apr 28 17:08:00 moose cpufreqd: acpi_temperature_evaluate: called 55-100
75 [Avg:0.0]
76 Apr 28 17:08:00 moose cpufreqd: cpu_evaluate : CPU4
77 user=23506197 nice=173697 sys=3448229
78 Apr 28 17:08:00 moose cpufreqd: calculate_cpu_usage : CPU
79 delta_activity=376 delta_time=796 weighted_activity=27012325.
80 Apr 28 17:08:00 moose cpufreqd: cpu_evaluate : CPU4 47% -
81 min=50 max=100 scale=3.00
82 Apr 28 17:08:00 moose cpufreqd: update_rule_scores : Rule "CPU Too
83 Hot" score: 0%
84 Apr 28 17:08:00 moose cpufreqd: update_rule_scores : Considering
85 Rule "Movie Watcher"
86 Apr 28 17:08:00 moose cpufreqd: programs_evaluate : tree ptr
87 0x160cab0
88 Apr 28 17:08:00 moose cpufreqd: find_program : tree ptr
89 0x160cab0
90 Apr 28 17:08:00 moose cpufreqd: find_program : tree ptr
91 0x160cc70
92 Apr 28 17:08:00 moose cpufreqd: find_program : tree ptr
93 0x160cb20
94 Apr 28 17:08:00 moose cpufreqd: find_program : tree ptr
95 0x160cce0
96 Apr 28 17:08:00 moose cpufreqd: find_program : tree ptr
97 0x160cdc0
98 Apr 28 17:08:00 moose cpufreqd: find_program : tree ptr
99 0x160cb90
100 Apr 28 17:08:00 moose cpufreqd: find_program : tree ptr
101 0x160cc00
102 Apr 28 17:08:00 moose cpufreqd: find_program : tree ptr
103 0x160ce30
104 Apr 28 17:08:00 moose cpufreqd: find_program : tree ptr
105 0x160cd50
106 Apr 28 17:08:00 moose cpufreqd: acpi_battery_evaluate : called 0-100
107 [Avg:-1]
108 Apr 28 17:08:00 moose cpufreqd: acpi_temperature_evaluate: called 0-60
109 [Avg:0.0]
110 Apr 28 17:08:00 moose cpufreqd: rule_score : Rule "Movie
111 Watcher": acpi_temperature matches.
112 Apr 28 17:08:00 moose cpufreqd: update_rule_scores : Rule "Movie
113 Watcher" score: 34%
114 Apr 28 17:08:00 moose cpufreqd: cpufreqd_loop : Rule
115 unchanged ("AC Off - Low Battery"), doing nothing.
116
117 Wie kann cpufreqd denken, dass ac off ist, zumindest kriegen die "AC
118 OFF"-Regeln den hoechsten Score (51%)? Die CPU ist eine Core(TM)2 Quad
119 Q9650 CPU. Als Driver (nach cpufrq-info) wird acpi-cpufreq benutzt.
120
121 Die folgenden Kerneloptionen haben etwas mit dem SYSFS zu tun:
122 root@moose:/home/rose/ISOs(29)# gzip -cd /proc/config.gz | grep -i sysfs
123 # CONFIG_SYSFS_DEPRECATED_V2 is not set
124 CONFIG_ACPI_SYSFS_POWER=y
125 CONFIG_WIRELESS_EXT_SYSFS=y
126 CONFIG_SYSFS=y
127
128 oder mit POWER:
129
130 root@moose:/home/rose/ISOs(60)# gzip -cd /proc/config.gz | grep -i power
131 # Power management and ACPI options
132 CONFIG_ACPI_PROCFS_POWER=y
133 CONFIG_ACPI_POWER_METER=m
134 CONFIG_ACPI_SYSFS_POWER=y
135 # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
136 CONFIG_CPU_FREQ_GOV_POWERSAVE=m
137 # CONFIG_X86_POWERNOW_K8 is not set
138 # Memory power savings
139 # CONFIG_INPUT_POWERMATE is not set
140 CONFIG_POWER_SUPPLY=y
141 # CONFIG_POWER_SUPPLY_DEBUG is not set
142 # CONFIG_PDA_POWER is not set
143 # CONFIG_SND_HDA_POWER_SAVE is not set
144 # CONFIG_POWER_TRACER is not set
145
146 Die Directories /proc/acpi/power_resource/, /proc/acpi/ac_adapter
147 und /sys/class/power_supply/ sind leer. Warum eigentlich? Ist aber auf
148 allen anderen Rechner (mit Ausnahme meines Laptops) auch so, kann wohl
149 nicht die Ursache sein. Auf dem Laptop gibt es
150 unter /proc/acpi/ac_adapter ein Subdirectory AC/ mit der Datei state mit
151 dem Inhalt "online".
152
153 Wenn gnome-power-statistics starte habe ich nur den Prozessor Eintrag
154 und nicht den AC-Adapter und den Laptop-Batterie-Eintrag wie auf dem
155 Laptop.
156 Gibt es unter /proc oder /sys Eintraege, aus denen amn etwas ueber die
157 Vorstellungen von linux ueber die Stromversorgung des eigenen Rechners
158 erfahren kann?
159
160 Wenn ich on_ac_power aus den sys-power/pm-utils starte, erhalte ich
161 folgendes:
162 root@moose:/root(66)# on_ac_power
163 Error org.freedesktop.DBus.Error.ServiceUnknown: The name
164 org.freedesktop.UPower was not provided by any .service files
165 root@moose:/root(67)# echo $?
166 0
167 Neben der Fehlermeldung von freedesktop scheint der Rueckgabewert 0
168 anzuzeigen, dass mein Rechner doch denkt ac_power zu haben.
169
170 Alle Hinweise werden dankbar entgegengenommen.
171
172
173 --
174 Juergen Rose <rose@××××××××××××××.de>
175 Uni-Potsdam

Replies

Subject Author
Re: [gentoo-user-de] cpufreqd und ac=off Juergen Rose <rose@××××××××××××××.de>