Fix power and sleep button input classification

pull/16/head
Timothy Pearson 13 years ago
parent 3ed6d08a91
commit e75b6fad67

@ -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 {

Loading…
Cancel
Save