The cpufreqd daemon fails to load and complains about being unable to get battery attributes on a laptop, resulting in poor power management. Without a plugged-in battery, it works correctly. [root@Laptop etc]# cpufreqd -D parse_config_general : Remote control enabled. get_class_device_attribute: couldn't open /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/PNP0C0A:00/power_supply/BAT0/current_now (No such file or directory) acpi_battery_init : Couldn't open BAT0 attributes get_class_device_attribute: couldn't open /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/PNP0C0A:00/power_supply/BAT0/current_now (No such file or directory) acpi_battery_init : Couldn't open BAT0 attributes *** Error in `cpufreqd': free(): invalid pointer: 0x0000000000b2f3e0 *** ======= Backtrace: ========= /lib64/libc.so.6[0x3aef27b1d6] /lib64/libsysfs.so.2(sysfs_read_attribute+0xa9)[0x3aeee03429] /usr/lib64/cpufreqd_acpi.so(read_value+0x9)[0x7f8ee532e259] /usr/lib64/cpufreqd_acpi.so(read_int+0x19)[0x7f8ee532e2b9] /usr/lib64/cpufreqd_acpi.so(acpi_battery_update+0xb1)[0x7f8ee532f281] /usr/lib64/cpufreqd_acpi.so(+0x1fd5)[0x7f8ee532dfd5] cpufreqd(update_plugin_states+0x34)[0x406c14] cpufreqd(main+0x82f)[0x4031af] /lib64/libc.so.6(__libc_start_main+0xf5)[0x3aef221ba5] cpufreqd[0x403e09] ======= Memory map: ======== 00400000-0040b000 r-xp 00000000 fc:01 2536060 /usr/sbin/cpufreqd 0060a000-0060b000 r--p 0000a000 fc:01 2536060 /usr/sbin/cpufreqd 0060b000-0060e000 rw-p 0000b000 fc:01 2536060 /usr/sbin/cpufreqd 00b23000-00b46000 rw-p 00000000 00:00 0 [heap] 30d3c00000-30d3c05000 r-xp 00000000 fc:01 2537713 /usr/lib64/libcpufreq.so.0.0.0 30d3c05000-30d3e04000 ---p 00005000 fc:01 2537713 /usr/lib64/libcpufreq.so.0.0.0 30d3e04000-30d3e05000 r--p 00004000 fc:01 2537713 /usr/lib64/libcpufreq.so.0.0.0 30d3e05000-30d3e06000 rw-p 00005000 fc:01 2537713 /usr/lib64/libcpufreq.so.0.0.0 3aeea00000-3aeea1f000 r-xp 00000000 fc:01 2533148 /usr/lib64/ld-2.17.so 3aeec1e000-3aeec1f000 r--p 0001e000 fc:01 2533148 /usr/lib64/ld-2.17.so 3aeec1f000-3aeec21000 rw-p 0001f000 fc:01 2533148 /usr/lib64/ld-2.17.so 3aeee00000-3aeee0b000 r-xp 00000000 fc:01 2522422 /usr/lib64/libsysfs.so.2.0.1 3aeee0b000-3aef00a000 ---p 0000b000 fc:01 2522422 /usr/lib64/libsysfs.so.2.0.1 3aef00a000-3aef00b000 r--p 0000a000 fc:01 2522422 /usr/lib64/libsysfs.so.2.0.1 3aef00b000-3aef00c000 rw-p 0000b000 fc:01 2522422 /usr/lib64/libsysfs.so.2.0.1 3aef200000-3aef3a9000 r-xp 00000000 fc:01 2533298 /usr/lib64/libc-2.17.so 3aef3a9000-3aef5a8000 ---p 001a9000 fc:01 2533298 /usr/lib64/libc-2.17.so 3aef5a8000-3aef5ac000 r--p 001a8000 fc:01 2533298 /usr/lib64/libc-2.17.so 3aef5ac000-3aef5ae000 rw-p 001ac000 fc:01 2533298 /usr/lib64/libc-2.17.so 3aef5ae000-3aef5b2000 rw-p 00000000 00:00 0 3aef600000-3aef616000 r-xp 00000000 fc:01 2527343 /usr/lib64/libpthread-2.17.so 3aef616000-3aef816000 ---p 00016000 fc:01 2527343 /usr/lib64/libpthread-2.17.so 3aef816000-3aef817000 r--p 00016000 fc:01 2527343 /usr/lib64/libpthread-2.17.so 3aef817000-3aef818000 rw-p 00017000 fc:01 2527343 /usr/lib64/libpthread-2.17.so 3aef818000-3aef81c000 rw-p 00000000 00:00 0 3aefa00000-3aefa03000 r-xp 00000000 fc:01 2533302 /usr/lib64/libdl-2.17.so 3aefa03000-3aefc02000 ---p 00003000 fc:01 2533302 /usr/lib64/libdl-2.17.so 3aefc02000-3aefc03000 r--p 00002000 fc:01 2533302 /usr/lib64/libdl-2.17.so 3aefc03000-3aefc04000 rw-p 00003000 fc:01 2533302 /usr/lib64/libdl-2.17.so 3af1e00000-3af1e15000 r-xp 00000000 fc:01 2533307 /usr/lib64/libgcc_s-4.7.2.so.1 3af1e15000-3af2014000 ---p 00015000 fc:01 2533307 /usr/lib64/libgcc_s-4.7.2.so.1 3af2014000-3af2015000 r--p 00014000 fc:01 2533307 /usr/lib64/libgcc_s-4.7.2.so.1 3af2015000-3af2016000 rw-p 00015000 fc:01 2533307 /usr/lib64/libgcc_s-4.7.2.so.1 7f8ee3d21000-7f8ee3d22000 ---p 00000000 00:00 0 7f8ee3d22000-7f8ee4522000 rw-p 00000000 00:00 0 [stack:11686] 7f8ee4522000-7f8ee4524000 r-xp 00000000 fc:01 2537563 /usr/lib64/cpufreqd_apm.so 7f8ee4524000-7f8ee4723000 ---p 00002000 fc:01 2537563 /usr/lib64/cpufreqd_apm.so 7f8ee4723000-7f8ee4724000 r--p 00001000 fc:01 2537563 /usr/lib64/cpufreqd_apm.so 7f8ee4724000-7f8ee4725000 rw-p 00002000 fc:01 2537563 /usr/lib64/cpufreqd_apm.so 7f8ee4725000-7f8ee4727000 r-xp 00000000 fc:01 2537573 /usr/lib64/cpufreqd_pmu.so 7f8ee4727000-7f8ee4926000 ---p 00002000 fc:01 2537573 /usr/lib64/cpufreqd_pmu.so 7f8ee4926000-7f8ee4927000 r--p 00001000 fc:01 2537573 /usr/lib64/cpufreqd_pmu.so 7f8ee4927000-7f8ee4928000 rw-p 00002000 fc:01 2537573 /usr/lib64/cpufreqd_pmu.so 7f8ee4928000-7f8ee4929000 ---p 00000000 00:00 0 7f8ee4929000-7f8ee5129000 rw-p 00000000 00:00 0 7f8ee532c000-7f8ee5332000 r-xp 00000000 fc:01 2537561 /usr/lib64/cpufreqd_acpi.so 7f8ee5332000-7f8ee5531000 ---p 00006000 fc:01 2537561 /usr/lib64/cpufreqd_acpi.so 7f8ee5531000-7f8ee5532000 r--p 00005000 fc:01 2537561 /usr/lib64/cpufreqd_acpi.so 7f8ee5532000-7f8ee5533000 rw-p 00006000 fc:01 2537561 /usr/lib64/cpufreqd_acpi.so 7f8ee5533000-7f8ee5534000 rw-p 00000000 00:00 0 7f8ee5737000-7f8ee5739000 r-xp 00000000 fc:01 2537575 /usr/lib64/cpufreqd_programs.so 7f8ee5739000-7f8ee5938000 ---p 00002000 fc:01 2537575 /usr/lib64/cpufreqd_programs.so 7f8ee5938000-7f8ee5939000 r--p 00001000 fc:01 2537575 /usr/lib64/cpufreqd_programs.so 7f8ee5939000-7f8ee593a000 rw-p 00002000 fc:01 2537575 /usr/lib64/cpufreqd_programs.so 7f8ee593a000-7f8ee593c000 r-xp 00000000 fc:01 2537565 /usr/lib64/cpufreqd_cpu.so 7f8ee593c000-7f8ee5b3c000 ---p 00002000 fc:01 2537565 /usr/lib64/cpufreqd_cpu.so 7f8ee5b3c000-7f8ee5b3d000 r--p 00002000 fc:01 2537565 /usr/lib64/cpufreqd_cpu.so 7f8ee5b3d000-7f8ee5b3e000 rw-p 00003000 fc:01 2537565 /usr/lib64/cpufreqd_cpu.so 7f8ee5b3e000-7f8ee5b41000 r-xp 00000000 fc:01 2537569 /usr/lib64/cpufreqd_governor_parameters.so 7f8ee5b41000-7f8ee5d40000 ---p 00003000 fc:01 2537569 /usr/lib64/cpufreqd_governor_parameters.so 7f8ee5d40000-7f8ee5d41000 r--p 00002000 fc:01 2537569 /usr/lib64/cpufreqd_governor_parameters.so 7f8ee5d41000-7f8ee5d42000 rw-p 00003000 fc:01 2537569 /usr/lib64/cpufreqd_governor_parameters.so 7f8ee5f46000-7f8ee5f49000 rw-p 00000000 00:00 0 7f8ee5fa3000-7f8ee5fa6000 rw-p 00000000 00:00 0 7f8ee5fa6000-7f8ee5fa8000 r-xp 00000000 00:00 0 [vdso] 7fffa79df000-7fffa7a01000 rw-p 00000000 00:00 0 [stack] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Aborted (`core' generated) Version affected: cpufreqd-2.4.2-7.mga3 How reproducible: Every time a switch on the laptop with the battery the daemon doesn't start even it's enabled in systemd. Reproducible: Steps to Reproduce:
Hardware: i586 => x86_64
Remove the cpufreqd daemon and if you already don't have it, then install cpupower. Edit this file: /etc/sysconfig/cpupower and make sure that cpupower.service is enabled and started. Does it work this way?
CC: (none) => sander.lepik
It worked for me, thanks. But I think there must be an issue with cpufreqd anyway. It's not the way it's suppossed to work, is it?
Well, it's quite possible that we'll drop it for Mageia 4. cpupower usually gets the job done and does it better.
I didn't know about cpupower, but I like what I see. It's simpler and easy to configure and to change settings on the fly.
Mageia 3 changed to end-of-life (EOL) status 4 months ago. http://blog.mageia.org/en/2014/11/26/lets-say-goodbye-to-mageia-3/ Mageia 3 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Mageia please feel free to click on "Version" change it against that version of Mageia and reopen this bug. Thank you for reporting this bug and we are sorry it could not be fixed. -- The Mageia Bugsquad
Status: NEW => RESOLVEDResolution: (none) => OLD