You are not logged in.

#1 2012-01-13 16:32:04

tle
Member
Registered: 2012-01-13
Posts: 2

Laptop (Thinkpad SL300) suspends on AC plug-in/out

Hi

I'm new to Arch, and have recently installed it on my laptop (Lenovo Thinkpad SL300). The Wiki has been an excellent resource when installing, but I'm having som trouble while trying to setup the machine to react to different ACPI events. The plan was to use the acpid package for controlling the CPU using cpufrequtils as descirbed in the Wiki.

Before doing anything to the standard handler.sh file, I'm noticing that machine suspends if the AC-cable is unplugged or plugged in. This only happens if I have started X (with the awesome window manager), and not after login to for example plain tty1.


acpi_listen output for ac-plug-in/out:

ac_adapter ACPI0003:00 00000080 00000000
hotkey ATK0101:00 00000057 00000002
processor LNXCPU:00 00000081 00000000
processor LNXCPU:01 00000081 00000000
battery PNP0C0A:00 00000080 00000001
battery PNP0C0A:00 00000081 00000001
ac_adapter ACPI0003:00 00000080 00000000
processor LNXCPU:00 00000081 00000000
processor LNXCPU:01 00000081 00000000
battery PNP0C0A:00 00000081 00000001
ac_adapter ACPI0003:00 00000080 00000000

ac_adapter ACPI0003:00 00000080 00000001
hotkey ATK0101:00 00000058 00000001
processor LNXCPU:00 00000081 00000000
processor LNXCPU:01 00000081 00000000
battery PNP0C0A:00 00000080 00000001
battery PNP0C0A:00 00000081 00000001
ac_adapter ACPI0003:00 00000080 00000001
processor LNXCPU:00 00000081 00000000
processor LNXCPU:01 00000081 00000000
battery PNP0C0A:00 00000081 00000001
ac_adapter ACPI0003:00 00000080 00000001

handler.sh content: http://pastebin.com/FuEZgwtG 

/etc/acpi/events/anything routes all events to the script above.

The acpid daemon is running.



Is there something I'm not aware of also reacting to ACPI events?
Thanks for any help.

Offline

#2 2012-01-15 10:22:26

tle
Member
Registered: 2012-01-13
Posts: 2

Re: Laptop (Thinkpad SL300) suspends on AC plug-in/out

I've removed both acpid and pm-utils, and still there is something trying calling 'pm-suspend' when I plug in/out AC.

From auth.log:

Jan 15 11:10:31 xyz sudo: pam_unix(sudo:auth): conversation failed
Jan 15 11:10:31 xyz sudo: pam_unix(sudo:auth): auth could not identify password for [username]
Jan 15 11:10:31 xyz sudo:   username : pam_authenticate: Conversation error ; TTY=tty1 ; PWD=/home/username ; USER=root ; COMMAND=pm-suspend

How can I check what program/module is calling this command?

Offline

Board footer

Powered by FluxBB