acpid is a small daemon that responds power-related events, such as closing the laptop lid. It is responsible for behaviors such as suspending the computera when a laptop lid is closed. acpid services may be provided by the traditional acpid implementation, as well as a systemd-provided version.

learn more… | top users | synonyms

0
votes
0answers
36 views

What's the difference between udev and acpi(d)

They both seem to be receiving & processing kernel events, so why do they both exist? From what I gather, ACPI seems to be more high-level compared to udev, but apart from that can't really tell. ...
4
votes
2answers
194 views

message at shutdown: watchdog did not stop!

At shutdown I often get the message watchdog did not stop! and then the laptop freezes after few other lines without shutting down. Any idea on how to fix this? Recently it happened very often, ...
2
votes
1answer
43 views

Possible race condition when scripting headphone plug-in event

I'm currently trying to script the headphone plug-in/out event. I found out that I can script this quite easily as an acpi event.. I created a file in /etc/acpi/events/ with the event event=jack[ ...
0
votes
0answers
46 views

Power Button script runs only for the first time

I'm using Debian 8 and I'm booting my system with Linux 4.1.2 with systemd. I had a working script that does something and suspends the pc. After upgrades, the script was not working anymore. When I ...
1
vote
1answer
74 views

What do the parts of an acpi event mean?

I have a ThinkPad laptop with dual batteries, and I want to write an indicator app for GNOME which performs an action when the external battery is plugged/unplugged. To read these events I connect to ...
2
votes
0answers
221 views

Where to put the SElinux policy to allow acpid shutdown the system?

I'm using Centos7 minimal. I've installed acpid and the daemon is running. When I hit the power button, I get the following in /var/log/messages May 2 18:52:53 localhost systemd-logind: Power key ...
2
votes
2answers
134 views

Power button does not trigger suspend (nor anything)

I would like to set the power button in my laptop to initiate suspension. Note that I can trigger suspension by closing the lid, or using pm-suspend, so the problem is the button, not the suspend ...
2
votes
0answers
99 views

Acpid event denied by SELinux, how can I savely allow the event without opening security holes?

I installed Fedora (3.17.2-200.fc20.x86_64) on my new Notebook (Lenovo Yoga Pad) and wanted to add this script to trigger whenever I flip over my screen. The script triggered whith the event is ...
1
vote
2answers
2k views

Graceful shutdown via power button

I want to be able to shutdown my CentOS 7 machine by pressing the power button. Since it doesn't work out of the box, I tried the following: yum -y install acpid service acpid start chkconfig acpid ...
2
votes
1answer
582 views

ACPId suspend-to-ram: can you specify waking up using keyboard events?

This is Gentoo Linux with OpenRC (updated to systemd later on), and ACPI + some power management features in the kernel for Intel. ACPId is up and running. I can suspend to ram using: echo -n "mem" ...
0
votes
1answer
519 views

acpid - Hibernate When Unplugged

I'm new to programming for Linux (lubuntu specifically) and I'm working on a project to get an old, discarded laptop up and running the way I want it. I have acpi and acpid installed, and when I run ...
3
votes
1answer
667 views

Why won't this shutdown script work when executed by ACPID?

Based on this thread I modified my /etc/acpi/powerbtn.sh script to account for LXDE sessions: # getXuser gets the X user belonging to the display in $displaynum. # If you want the foreground X user, ...
5
votes
2answers
898 views

Do I need acpid in a virtual machine?

I'm always wondering if power management facilities in a virtual machine is necessary? i.e acpid. And I'm not sure if they still function in a virtual machine.
2
votes
1answer
541 views

Acpid and Startup Brightness

On Arch Linux on my laptop, I have acpid control the brightness level based on AC plug events. Plugging in gives me max brightness and running on battery sets it at the minimum. My problem is that ...
1
vote
0answers
95 views

Can't run vlock-cmatrixreloaded with acpid anymore, after switching to systemd

In the old days, I configured acpid to launch vlock-cmatrixreloaded when I press Fn + F2, now it no longer works since systemd handles TTYs, I just got a screen flash when I press those keys. The ...
5
votes
1answer
814 views

Needs help on setting up kernel keyboard mapping

I already got the keycode from kernel, but acpi_listen won't recognize it in Arch Linux: # /usr/lib/udev/keymap -i /dev/input/by-path/platform-thinkpad_acpi-event Press ESC to finish, or Control-C if ...