summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-04-18 16:08:47 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-04-18 16:08:47 -0500
commit3ed6d08a915a01928a1c5d9b89ca4c8b5ffad346 (patch)
tree10c716417daa388f4b6085f28e877ee0f808ceca
parent45426ff16cf5c43680ecf2305d55b8900e51de8a (diff)
downloadtdelibs-3ed6d08a915a01928a1c5d9b89ca4c8b5ffad346.tar.gz
tdelibs-3ed6d08a915a01928a1c5d9b89ca4c8b5ffad346.zip
Fix sleep button
-rw-r--r--tdecore/tdehardwaredevices.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdecore/tdehardwaredevices.cpp b/tdecore/tdehardwaredevices.cpp
index f44272b31..1a24f26f6 100644
--- a/tdecore/tdehardwaredevices.cpp
+++ b/tdecore/tdehardwaredevices.cpp
@@ -4026,7 +4026,7 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
if (edevice->systemPath().contains("PNP0C0D")) {
edevice->internalSetEventType(TDEEventDeviceType::ACPILidSwitch);
}
- else if (edevice->systemPath().contains("PNP0C0E")) {
+ else if (edevice->systemPath().contains("PNP0C0E") || edevice->systemPath().contains("/LNXSLPBN")) {
edevice->internalSetEventType(TDEEventDeviceType::ACPISleepButton);
}
else if (edevice->systemPath().contains("PNP0C0C") || edevice->systemPath().contains("/LNXPWRBN")) {