On 05/14/2018 01:26 PM, Knurpht @ openSUSE wrote:
What is the best way to configure the power-button to suspend? AFAIK no YaST module, but configurable in KDE and GNOME.
I guess we will have to find the source code for one of the modules and see how it is interfacing with acpica. There is virtually no documentation provided by the acpica package installed by default. What happens in KDE or Gnome is of little help for XFCE, fluxbox, Icewm, LXDE, etc... Since acpi isn't a desktop function, it seems like there should be a system-wide interface for configuring these events, rather than relying on the happenstance of having one WM installed verses another. acpica is new to me, as acpi was the general interface in the past with a simple config in /etc/acpi/handler.sh. Apparently acpica is what is integrated with the kernel code, so using it makes sense, but as with most latest-greatest tools, documentation is the last thing to be developed. As OS-Dev put it: "I didn't find any good description of integrating the ACPICA source code into an operating system, and the released package is basically just a bundle of C files with little organization." https://wiki.osdev.org/ACPICA And https://www.acpica.org/documentation -- isn't exactly user-centric, unless you are looking what it is: https://acpica.org/sites/acpica/files/ACPI-Introduction.pdf or the API/Programming Reference: https://acpica.org/sites/acpica/files/acpica-reference_18.pdf -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org