summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdehardwaredevices.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-08-25 15:59:43 -0500
committerTimothy Pearson <[email protected]>2013-08-25 15:59:43 -0500
commitcb9c3ed914b0b1578a3fcaea3e35add08cc0bdfb (patch)
tree1f235fabb0b34970b1096f61878a8aa37e353211 /tdecore/tdehw/tdehardwaredevices.cpp
parent1fdeea09282c898d637d61178a64a870439e45f5 (diff)
downloadtdelibs-cb9c3ed914b0b1578a3fcaea3e35add08cc0bdfb.tar.gz
tdelibs-cb9c3ed914b0b1578a3fcaea3e35add08cc0bdfb.zip
Fix ACPI button event detection on machines with an independent ACPI event controller module such as Thinkpads
Only detect the ACPI key press event, not the key release event
Diffstat (limited to 'tdecore/tdehw/tdehardwaredevices.cpp')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index 2922ec4d8..211213112 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -3056,6 +3056,9 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist
else if (edevice->systemPath().contains("PNP0C0C") || edevice->systemPath().contains("/LNXPWRBN")) {
edevice->internalSetEventType(TDEEventDeviceType::ACPIPowerButton);
}
+ else if (edevice->systemPath().contains("_acpi")) {
+ edevice->internalSetEventType(TDEEventDeviceType::ACPIOtherInput);
+ }
else {
edevice->internalSetEventType(TDEEventDeviceType::Unknown);
}
@@ -3073,6 +3076,9 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist
else if (idevice->systemPath().contains("PNP0C0C") || idevice->systemPath().contains("/LNXPWRBN")) {
idevice->internalSetInputType(TDEInputDeviceType::ACPIPowerButton);
}
+ else if (idevice->systemPath().contains("_acpi")) {
+ idevice->internalSetInputType(TDEInputDeviceType::ACPIOtherInput);
+ }
else {
idevice->internalSetInputType(TDEInputDeviceType::Unknown);
}