Skip to main content

Questions tagged [acpid]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

IceWM. How to lock screen after laptop lid is closed?

I use the IceWM window manager. I would like the screen to lock after closing the laptop lid. I've found a couple of guides that looked promising (1, 2) but unfortunately didn't work for me. Maybe ...
Fyodor's user avatar
  • 3
1 vote
0 answers
20 views

Thinkpad Fn keys randomly stop working

Running void linux on a Thinkpad E15 with KDE. Sometimes, my Fn keys (F1 to F12) stop working. What's interesting is that the FnLock and Fn+Space to toggle keyboard backlight work normally. Just like ...
dave's user avatar
  • 11
2 votes
1 answer
458 views

How to control laptop lid behaviour in Debian 12 in XFCE

I have recently installed Debian 12 amd64 on a Lenovo IdeaPad 100s. There seem to be a problem with the laptop lid, in paricular I do not find where the behaviour the system should take is set. In ...
Rho Phi's user avatar
  • 319
2 votes
0 answers
1k views

How to disable KDE power devil?

For some reason, KDE's power manager doesn't work for me (laptop doesn't go to sleep properly when the lid is closed). I would like to use ACPI events to handle the power management However, when I ...
Simon Tran's user avatar
2 votes
0 answers
59 views

Problems with brightness media buttons

While setting up hotkeys in my window manager I find out that if I would press the brightnessup\brightnessdown button(which changes brightness as it should) and after that go to terminal, pressing '...
TheShellOfAMan's user avatar
1 vote
0 answers
269 views

Capture sleep, hibernate and wakeup events on Linux

I need to capture these on both laptop and desktop environmetns. Explored 2 options, but unfortunately none of them worked as expected. DBus works on desktop but these events also need to be captured ...
apoorva-ask03's user avatar
0 votes
2 answers
862 views

Root does not have access to Master control

TL;DR: root doesn't have access to the Master controls on ALSA My problem I cannot control volume with my keyboard The diagnostics I have done journalctl -f reveals the error amixer: Unable to find ...
Vincent Bechmann's user avatar
0 votes
1 answer
684 views

Switch Pulseeffects profiles on headphones connection/disconnection

this is related to... [https://unix.stackexchange.com/questions/25776/detecting-headphone-connection-disconnection-in-linux][1] as the title states, I wanted to switch pulseffects profiles on ...
NGStaph's user avatar
1 vote
1 answer
847 views

Debian 10 fails to manage laptop battery (was working fine few days ago)

Debian 10 fails to manage laptop battery (was working fine few days ago). is battery still detected ? : upower -i /org/freedesktop/UPower/devices/battery_BAT0 native-path: BAT0 vendor: ...
francois P's user avatar
  • 1,239
-1 votes
1 answer
2k views

Debian 10 - Power off server using power button, how can I test acpi?

I want to be able to power off my server using the power button on the front of the case, rather than having to login and power it off manually. From my research thus far I believe I have to install ...
user3728501's user avatar
3 votes
2 answers
590 views

Which daemon or Linux command makes init 0 or shutdown happen when I press the power button?

When I press the power button, Linux goes to init 0 (or shutdown clean). In the old times (2003) I had to configure acpid to give the shutdown function to the power button. Today on Slackware-current ...
elbarna's user avatar
  • 12.8k
0 votes
1 answer
2k views

Why journalctl don't save my logs of the boot before forced shutdown?

My PC freezes a third time and I have to shut it down forcibly. Why doesn't journalctl save the boot logs before forced shutdown? When I do journalctl --list-boots I only get the boot after crash. I'...
dlag's user avatar
  • 15
2 votes
1 answer
625 views

How do I actually write acpid event scripts that detect when headphones are plugged in?

I'm using acpid to detect when my headphones are plugged in. According to acpid_listen, the relevant events are jack/headphone HEADPHONE unplug jack/headphone HEADPHONE plug I created the file /etc/...
Michael A's user avatar
  • 1,623
2 votes
1 answer
2k views

Is there a way to restart acpid on reboot?

I've installed a package called thinkpad-scripts. Simply put its a bunch of scripts that activate various functionalities on thinkpad devices on linux that wouldn't work out of the box on fresh ...
PrimRock's user avatar
  • 133
4 votes
1 answer
10k views

Change the cpufreq driver from intel pstate to acpi

I am trying to disable the intel pstate cpufreq driver and replace it with acpi to get maximum cpu control. I tried this. vim /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable quiet ...
JRD's user avatar
  • 71
1 vote
1 answer
2k views

Wake on lid open but don't suspend on lid close?

I am currently running GNOME on openSUSE on my laptop, there is the setting in the GNOME tweak tool to enable suspend on lid close, which works. However, I want to do the opposite, so that the ...
user avatar
2 votes
1 answer
2k views

Do we need acpid service to be running for soft shutdown if acpi module is enabled in kernel?

What I understood is acpid caputures power events like closing lid and according to defined rules, it triggers a activity like shutdown, sleep etc. So, can I say that acpid service is not required ...
GP92's user avatar
  • 825
5 votes
2 answers
13k views

SMBus/IPMI/GenericSerialBus write requires Buffer of length 66, found length 32

today my nas debian 9 based started to write out this error in the startup phase, the same is reported in red by calling journalctl -xe: ACPI Error: SMBus/IPMI/Generic write requires Buffer of length ...
user3450548's user avatar
  • 2,954
3 votes
1 answer
1k 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" ...
Fenikso's user avatar
  • 171
4 votes
1 answer
2k 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. ...
laur's user avatar
  • 568
34 votes
4 answers
110k 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, ...
Reyx_0's user avatar
  • 961
2 votes
1 answer
401 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[ /]...
boolean.is.null's user avatar
0 votes
0 answers
692 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 ...
ceremcem's user avatar
  • 2,361
2 votes
1 answer
2k 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 ...
Andrew Sun's user avatar
13 votes
2 answers
7k 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 ...
Pythonist's user avatar
  • 747
3 votes
0 answers
240 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 ...
user avatar
5 votes
2 answers
12k 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 ...
royskatt's user avatar
  • 237
5 votes
2 answers
2k 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" &...
user avatar
1 vote
1 answer
1k 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 ...
Jake's user avatar
  • 95
3 votes
1 answer
1k 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, ...
Glutanimate's user avatar
  • 2,288
8 votes
3 answers
3k 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.
daisy's user avatar
  • 54.8k
2 votes
1 answer
971 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 ...
user avatar
1 vote
0 answers
120 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 ...
daisy's user avatar
  • 54.8k
5 votes
1 answer
3k views

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 ...
daisy's user avatar
  • 54.8k