Op maandag 14 mei 2018 19:53:31 CEST schreef David C. Rankin:
All,
I'm looking for the openSuSE way to configure my laptop power-button to suspend instead of power-off. Is there a yast module or some similar app for tweaking ACPI config that avoids writing a custom event-handler from scratch? Is there a current event-handler that can be tweaked? I would like the power-button to activate suspend just like lid-close does.
There are a number of lacpi_id listed during boot, e.g.
$ dmesg | grep acpi [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1]) [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1]) [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1]) [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1]) [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x04] high edge lint[0x1]) [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x05] high edge lint[0x1]) [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x06] high edge lint[0x1]) [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x07] high edge lint[0x1]) [ 0.162541] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 [ 1.826877] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI] [ 1.829522] acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability] [ 1.829524] acpi PNP0A08:00: FADT indicates ASPM is unsupported, using BIOS configuration [ 1.889085] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns [ 3.300854] acpi LNXPWRBN:00: hash matches [ 5.746644] acpi device:01: registered as cooling_device0
However, the only button interface configured in /proc/acpi/button is 'lid'?
$ ll /proc/acpi/button/ total 0 dr-xr-xr-x 3 root root 0 May 14 12:45 lid
On Leap 42.3 the kernel module for the button is present
/lib/modules/4.4.126-48-default/kernel/drivers/acpi/button.ko
What is the best way to configure the power-button to suspend? AFAIK no YaST module, but configurable in KDE and GNOME.
-- Gertjan Lettink a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org