Commit 616b094d authored by Florent Revest's avatar Florent Revest

systemd: Disable power key handling which would shut down the watch when...

systemd: Disable power key handling which would shut down the watch when pressed. MCE is there for that.
parent 3bb98d62
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=yes
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%
...@@ -3,7 +3,8 @@ SRC_URI_append = " file://50-video.rules \ ...@@ -3,7 +3,8 @@ SRC_URI_append = " file://50-video.rules \
file://65-android.rules \ file://65-android.rules \
file://dbus.service \ file://dbus.service \
file://dbus.socket \ file://dbus.socket \
file://dbus.conf " file://dbus.conf \
file://logind.conf"
do_install_append() { do_install_append() {
# Setup udev rules for the rights of Android and graphic cards specific devices # Setup udev rules for the rights of Android and graphic cards specific devices
...@@ -26,6 +27,8 @@ do_install_append() { ...@@ -26,6 +27,8 @@ do_install_append() {
fi fi
install -d ${D}/etc/systemd/system/user@.service.d/ install -d ${D}/etc/systemd/system/user@.service.d/
install -m 0644 ${WORKDIR}/dbus.conf ${D}/etc/systemd/system/user@.service.d/dbus.conf install -m 0644 ${WORKDIR}/dbus.conf ${D}/etc/systemd/system/user@.service.d/dbus.conf
install -m 0644 ${WORKDIR}/logind.conf ${D}/etc/systemd/logind.conf
} }
FILES_${PN} += "/home/ceres/.config/systemd/user/default.target.wants/" FILES_${PN} += "/home/ceres/.config/systemd/user/default.target.wants/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment