summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehardwaredevices.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-04-18 16:10:47 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-04-18 16:10:47 -0500
commite75b6fad67a8a86ecfcfab400698e60d2a48234a (patch)
tree51e68e5bbf64d0d54da5dfbe08e11dbf456479b4 /tdecore/tdehardwaredevices.cpp
parent3ed6d08a915a01928a1c5d9b89ca4c8b5ffad346 (diff)
downloadtdelibs-e75b6fad67a8a86ecfcfab400698e60d2a48234a.tar.gz
tdelibs-e75b6fad67a8a86ecfcfab400698e60d2a48234a.zip
Fix power and sleep button input classification
Diffstat (limited to 'tdecore/tdehardwaredevices.cpp')
-rw-r--r--tdecore/tdehardwaredevices.cpp4
1 files changed, 2 insertions, 2 deletions
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 {