You are not logged in.

#1 2006-08-26 20:58:41

strike_anywhere
Member
Registered: 2005-12-24
Posts: 9

acpid causes cpu overload when lid is closed

Hi to all.
I've got strange problems regarding acpi stuff.
In fact, when i close lid of my laptop, cpu percentage and temperature suddenly increase, although no apps are running; when i reopen lid, values returns normal.

Some info:

Laptop Model: Acer Aspire 1641 WLMI

[root@crackdown paint_it_black]# uname -r
2.6.17-beyond3

[root@crackdown paint_it_black]# uname -p
Intel(R) Pentium(R) M processor 1.60GHz

[root@crackdown paint_it_black]# acpid -v   
acpid-1.0.4

[root@crackdown paint_it_black]# acpi -v
acpi 0.09

[root@crackdown paint_it_black]# cat /etc/rc.conf |grep DAEMONS
# DAEMONS
DAEMONS=(syslog-ng acpid cpufreq hal !laptop-mode alsa @privoxy @tor !netfs !portmap)

[root@crackdown paint_it_black]# cat /usr/src/linux-2.6.17-beyond3/.config|grep ACPI
# Power management options (ACPI, APM)
# ACPI (Advanced Configuration and Power Interface) Support
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
# CONFIG_ACPI_SLEEP_PROC_SLEEP is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=m
# CONFIG_ACPI_HOTKEY is not set
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_CUSTOM_DSDT=y
CONFIG_ACPI_CUSTOM_DSDT_FILE="/boot/DSDT.hex"
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_CONTAINER is not set
CONFIG_X86_ACPI_CPUFREQ=m
CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
# CONFIG_PNPACPI is not set

Snip of /etc/acpi/handler.sh

button/lid)
                #echo "LID switched!">/dev/tty2
                echo "LID switched!"

                #if grep open /proc/acpi/button/lid/LID/state; then
                #       #lid opened
                #else
                #       #lid closed
                #       /usr/bin/xset dpms force off
                #fi
                ;;



#When lid is OPEN (things are normal - temperature 41°C):

Tasks:  58 total,   1 running,  57 sleeping,   0 stopped,   0 zombie
Cpu(s):  3.6%us,  1.4%sy,  0.0%ni, 92.0%id,  2.7%wa,  0.3%hi, 0.0%si,  0.0%st
Mem:    506456k total,   205136k used,   301320k free,    27160k buffers
Swap:   867468k total,        0k used,   867468k free,    80832k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    1 root       0   0  1512  540  472 S  0.0  0.1   0:00.19 init
    2 root       0  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
    3 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    4 root       0  -5     0    0    0 S  0.0  0.0   0:00.03 events/0
    5 root       0  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
    6 root       3  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
    8 root       0  -5     0    0    0 S  0.0  0.0   0:00.00 kblockd/0
    9 root       0  -5     0    0    0 S  0.0  0.0   0:00.08 kacpid
    [...]


#When lid is CLOSED (things become strange - temperature 50°C)

Tasks:  59 total,   2 running,  57 sleeping,   0 stopped,   0 zombie
Cpu(s): 60.5%us, 20.0%sy,  0.0%ni, 18.0%id,  0.0%wa,  1.5%hi, 0.0%si, 0.0%st
Mem:    506456k total,   205952k used,   300504k free,    27160k buffers
Swap:   867468k total,        0k used,   867468k free,    80884k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
21634 hal        0   0  4732 3352 1484 S  1.0  0.7   0:00.53 hald
1177 root      13   0  1640  556  460 S  0.7  0.1   0:00.38 acpid
    9 root       0  -5     0    0    0 S  0.2  0.0   0:00.09 kacpid
1195 dbus       0   0  1972  688  568 S  0.2  0.1   0:00.10 dbus-daemon
21641 hal        0   0  1820  804  696 S  0.2  0.2   0:00.01 hald-addon-acpi
    1 root       0   0  1512  540  472 S  0.0  0.1   0:00.19 init
[...]


#lid is STILL CLOSED:

Tasks:  60 total,   2 running,  58 sleeping,   0 stopped,   0 zombie
Cpu(s): 69.2%us, 23.3%sy,  0.0%ni,  0.5%id,  5.3%wa,  1.8%hi,  0.0%si,  0.0%st
Mem:    506456k total,   206076k used,   300380k free,    27328k buffers
Swap:   867468k total,        0k used,   867468k free,    80940k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
21634 hal        0   0  4732 3352 1484 S  0.7  0.7   0:00.56 hald
21641 hal        0   0  1820  804  696 S  0.7  0.2   0:00.04 hald-addon-acpi
    9 root       0  -5     0    0    0 S  0.2  0.0   0:00.10 kacpid
1177 root      15   0  1640  556  460 S  0.2  0.1   0:00.39 acpid
23985 root      27   0  2564 1280 1052 R  0.2  0.3   0:00.01 laptop_mode
[...]


#lid is STILL CLOSED

Tasks:  61 total,   3 running,  58 sleeping,   0 stopped,   0 zombie
Cpu(s): 73.2%us, 24.2%sy,  0.0%ni,  0.5%id,  0.0%wa,  2.0%hi,  0.0%si,  0.0%st
Mem:    506456k total,   206324k used,   300132k free,    27492k buffers
Swap:   867468k total,        0k used,   867468k free,    80996k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                           
21634 hal        0   0  4732 3352 1484 S  1.2  0.7   0:00.61 hald
1177 root      18   0  1640  556  460 S  0.5  0.1   0:00.41 acpid
21641 hal        0   0  1820  804  696 S  0.5  0.2   0:00.06 hald-addon-acpi
    9 root       0  -5     0    0    0 S  0.2  0.0   0:00.11 kacpid
1195 dbus       0   0  1972  688  568 S  0.2  0.1   0:00.11 dbus-daemon       
[...]


When I reopen the lid values of top command returns to the first showed above, and I see that temperature has arrived during this time at about
56°C (also fan has activated in the meantime)

If I stop acpid daemon (/etc/rc.d/acpid stop) problem disappears.

Any suggestions?


Thanks in advance,
strike_anywhere

PS: Sorry for lenght of this post.

Offline

Board footer

Powered by FluxBB