|
|
@ -3056,6 +3056,9 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist
|
|
|
|
else if (edevice->systemPath().contains("PNP0C0C") || edevice->systemPath().contains("/LNXPWRBN")) {
|
|
|
|
else if (edevice->systemPath().contains("PNP0C0C") || edevice->systemPath().contains("/LNXPWRBN")) {
|
|
|
|
edevice->internalSetEventType(TDEEventDeviceType::ACPIPowerButton);
|
|
|
|
edevice->internalSetEventType(TDEEventDeviceType::ACPIPowerButton);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (edevice->systemPath().contains("_acpi")) {
|
|
|
|
|
|
|
|
edevice->internalSetEventType(TDEEventDeviceType::ACPIOtherInput);
|
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
edevice->internalSetEventType(TDEEventDeviceType::Unknown);
|
|
|
|
edevice->internalSetEventType(TDEEventDeviceType::Unknown);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3073,6 +3076,9 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist
|
|
|
|
else if (idevice->systemPath().contains("PNP0C0C") || idevice->systemPath().contains("/LNXPWRBN")) {
|
|
|
|
else if (idevice->systemPath().contains("PNP0C0C") || idevice->systemPath().contains("/LNXPWRBN")) {
|
|
|
|
idevice->internalSetInputType(TDEInputDeviceType::ACPIPowerButton);
|
|
|
|
idevice->internalSetInputType(TDEInputDeviceType::ACPIPowerButton);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (idevice->systemPath().contains("_acpi")) {
|
|
|
|
|
|
|
|
idevice->internalSetInputType(TDEInputDeviceType::ACPIOtherInput);
|
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
idevice->internalSetInputType(TDEInputDeviceType::Unknown);
|
|
|
|
idevice->internalSetInputType(TDEInputDeviceType::Unknown);
|
|
|
|
}
|
|
|
|
}
|
|
|
|