|
|
@ -2236,6 +2236,7 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
|
|
|
|
if (devicesubsystem == "power_supply") {
|
|
|
|
if (devicesubsystem == "power_supply") {
|
|
|
|
TQString powersupplyname(udev_device_get_property_value(dev, "POWER_SUPPLY_NAME"));
|
|
|
|
TQString powersupplyname(udev_device_get_property_value(dev, "POWER_SUPPLY_NAME"));
|
|
|
|
if ((devicedriver == "ac")
|
|
|
|
if ((devicedriver == "ac")
|
|
|
|
|
|
|
|
|| (devicedriver.contains("charger"))
|
|
|
|
|| (powersupplyname.upper().startsWith("AC"))) {
|
|
|
|
|| (powersupplyname.upper().startsWith("AC"))) {
|
|
|
|
if (!device) device = new TDEMainsPowerDevice(TDEGenericDeviceType::PowerSupply);
|
|
|
|
if (!device) device = new TDEMainsPowerDevice(TDEGenericDeviceType::PowerSupply);
|
|
|
|
}
|
|
|
|
}
|
|
|
|