From e75b6fad67a8a86ecfcfab400698e60d2a48234a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 18 Apr 2012 16:10:47 -0500 Subject: Fix power and sleep button input classification --- tdecore/tdehardwaredevices.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tdecore') diff --git a/tdecore/tdehardwaredevices.cpp b/tdecore/tdehardwaredevices.cpp index 1a24f26f6..c916ded9a 100644 --- a/tdecore/tdehardwaredevices.cpp +++ b/tdecore/tdehardwaredevices.cpp @@ -4043,10 +4043,10 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD if (idevice->systemPath().contains("PNP0C0D")) { idevice->internalSetInputType(TDEInputDeviceType::ACPILidSwitch); } - else if (idevice->systemPath().contains("PNP0C0E")) { + else if (idevice->systemPath().contains("PNP0C0E") || idevice->systemPath().contains("/LNXSLPBN")) { idevice->internalSetInputType(TDEInputDeviceType::ACPISleepButton); } - else if (idevice->systemPath().contains("PNP0C0C")) { + else if (idevice->systemPath().contains("PNP0C0C") || idevice->systemPath().contains("/LNXPWRBN")) { idevice->internalSetInputType(TDEInputDeviceType::ACPIPowerButton); } else { -- cgit v1.2.1