Bug 1363632

Summary: acpid is NOT enabled by `systemctl enable acpid`
Product: [Fedora] Fedora Reporter: Artem S. Tashkinov <aros>
Component: acpidAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 24CC: jskarvad, ted
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: acpid-2.0.27-4.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-15 21:27:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Artem S. Tashkinov 2016-08-03 09:07:21 UTC
Description of problem: I need my brightness buttons to work even when the Xorg server is not running so I wrote two handlers for brightness buttons in acpid. However when I enable acpid they still do not work, unless I run acpi_listen


Version-Release number of selected component (if applicable): acpid-2.0.27-1.fc24.x86_64


How reproducible: always


Steps to Reproduce:
1. systemctl enable acpid
2. reboot
3. press power buttons

Actual results: acpid will not handle them, because it's not running


Expected results: acpid handlers doing something


Additional info: the only solution #systemd guys told me is this one:

# systemctl add-wants multi-user.target acpid.service

http://pastebin.com/3cDDBGT1

Comment 1 Jaroslav Škarvada 2016-08-03 09:41:13 UTC
Thanks for report, that's probably the result of the recently added socket activation support. I asked systemd guys what's the best option how to handle it.

Comment 2 Fedora Update System 2016-08-03 15:27:33 UTC
acpid-2.0.27-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f34b739a83

Comment 3 Jaroslav Škarvada 2016-08-03 15:30:19 UTC
Currently with the updated package you can:

- enable both the service and socket activation by running:
# systemctl enable acpid.service
or simply by using:
# systemctl enable acpid

- enable only socket activation by running:
# systemctl enable acpid.socket

Comment 4 Artem S. Tashkinov 2016-08-03 15:38:10 UTC
(In reply to Jaroslav Škarvada from comment #3)

Great many thanks!

Comment 5 Fedora Update System 2016-08-04 01:54:07 UTC
acpid-2.0.27-4.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f34b739a83

Comment 6 Fedora Update System 2016-08-15 21:26:59 UTC
acpid-2.0.27-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.