You are not logged in.

#1 2014-04-16 18:58:33

guydbg
Member
Registered: 2014-01-25
Posts: 8

acpi events

Hello, i have a thinkpad laptop
all of my /etc/systemd/logind.conf lines are commented out.
the ACPI events my laptop generates are still handled by something, i.e when i close the lid, the screen goes off, power button does what it should, etc
I read that the logind.conf file is responsible for the actions that will be run by systemd when certain acpi events occur. so:

1. what triggers these actions even though my logind.conf is empty? does systemd have some defaults?

2. how can i debug all the acpi events that occur?

TY!

Offline

#2 2014-04-16 19:02:22

guydbg
Member
Registered: 2014-01-25
Posts: 8

Re: acpi events

(Before i'm being asked that, ive tried to install acpid. no acpid.log file was created... i don't know why)

Offline

#3 2014-04-16 20:13:09

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: acpi events

Having these lines commented out in logind.conf indeed means defaults are used, you need to set them to "ignore" if you want to get rid of that functionality.

There's acpi_listen in the acpid package, you can use it to see what events your laptop produces.

Offline

#4 2014-04-16 20:42:54

guydbg
Member
Registered: 2014-01-25
Posts: 8

Re: acpi events

Thanks... it's weird that if i press the power button no event is generated, only if i hold it for a few seconds

Offline

#5 2014-04-18 17:30:35

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: acpi events

Wait, if you hold the power button for a few seconds, it is normal that your computer shuts off. Standard behaviour...

Offline

#6 2014-04-19 21:00:29

guydbg
Member
Registered: 2014-01-25
Posts: 8

Re: acpi events

orschiro wrote:

Wait, if you hold the power button for a few seconds, it is normal that your computer shuts off. Standard behaviour...

Sure it is... but i'd expect it to generate some event just for clicking on it

Offline

#7 2014-04-20 06:04:52

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: acpi events

Neither does my power button on a Thinkpad X200T create events when pressing the power button just shortly.

Tested with xev.

Offline

#8 2014-04-20 11:00:26

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: acpi events

orschiro wrote:

Tested with xev.

Test with something that listens to *ACPI* events wink

You'll need to check what systemd is doing with ACPI these days - it used to be simply /etc/acpi/handler.sh

Offline

Board footer

Powered by FluxBB