mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 06:28:00 +02:00
linux: Don't throw away large but possible energy rates
USB PD 3.1 allows up to 240W (48V, 5A) and some proprietary supplies already delivered more than 100W over USB-C (USB PD 3.0 limit). Closes: #147 Reported by StefanBruens
This commit is contained in:
parent
a14de39241
commit
3b91711e82
1 changed files with 2 additions and 2 deletions
|
|
@ -724,8 +724,8 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply,
|
|||
if (energy_rate == 0xffff)
|
||||
energy_rate = 0;
|
||||
|
||||
/* sanity check to less than 100W */
|
||||
if (energy_rate > 100)
|
||||
/* Ensure less than 300W, above the 240W possible with USB Power Delivery */
|
||||
if (energy_rate > 300)
|
||||
energy_rate = 0;
|
||||
|
||||
/* the hardware reporting failed -- try to calculate this */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue