Traditionally I could edit scripts in /etc/acpi to accomplish things, but on EL7 I'm seeing that some combination of upower and systemd/logind appear to be the way to control responses to ACPI events.
I want to have custom things happen on lid close, and I'm not seeing how to accomplish it as yet. logind.conf(5) and the web page at https://www.freedesktop.org/software/systemd/man/logind.conf.html both enumerate the options for HandleLidSwitch: Can be one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", and "lock". If "ignore", logind will never handle these keys. I thought at first kexec was a way I might hook in behaviour, but now I see that kexec is for fast reboots. Nothing else seems appropriate there. How can I do this? The default RHEL7 Gnome seems to be able to inject custom behaviour, as it locks the screen on lid close before sleep, but it's not yet clear how they do it. Thanks in advance for clues. -- Mason Loring Bliss [email protected] Ewige Blumenkraft! awake ? sleep : random() & 2 ? dream : sleep; -- Hamlet, Act III, Scene I
signature.asc
Description: Digital signature
_______________________________________________ systemd-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/systemd-devel
