Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd: don't power off when power button is pressed #2658

Merged
merged 2 commits into from
Apr 30, 2018

Conversation

HiassofT
Copy link
Member

@HiassofT HiassofT commented Apr 21, 2018

Kodi is already handling KEY_POWER and as it's currently grabbing input devices it prevents systemd-logind from receiving power button events.

If kodi and eventlircd are stopped though, eg when testing IR remote configurations, systemd-logind receives KEY_POWER events and immediately inits a shutdown - which is rather annoying.

So change the HandlePowerKey setting in /etc/systemd/logind.conf from the default (poweroff) to ignore and add the possibility to override systemd-logind settings via /storage/.config/logind.conf.d/*.conf files by users.

@lrusak with this change it should be safe to disable input grabbing in libinput

Signed-off-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Matthias Reichl <hias@horus.com>
@MilhouseVH MilhouseVH merged commit 7231813 into LibreELEC:master Apr 30, 2018
@HiassofT HiassofT deleted the le9-systemd-logind branch May 1, 2018 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants