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
1answer
79 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. ...
2
votes
2answers
647 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" ...
3
votes
1answer
52 views

Acpid action works when ran as root but not when started by systemd

On Fedora 23 I wanted to add custom action when laptop lid is opened. I have installed acpid and created three files: /etc/acpi/events/lidconf event=button/lid action=/etc/acpi/actions/lid.sh "%e" ...
3
votes
2answers
1k 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
98 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[ ...
1
vote
1answer
133 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
2answers
3k 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 ...
0
votes
0answers
74 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 ...
2
votes
2answers
266 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
259 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
1answer
567 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 ...
2
votes
0answers
117 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 ...
0
votes
1answer
554 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
687 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
1k 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.
1
vote
0answers
97 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
855 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 ...