mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-07-27 15:44:16 +02:00
parent
40d0671b1a
commit
dd5d871769
@ -198,6 +198,10 @@ def charging():
|
|||||||
# we found some power supplies, lets check their state
|
# we found some power supplies, lets check their state
|
||||||
else:
|
else:
|
||||||
for supply in power_supplies:
|
for supply in power_supplies:
|
||||||
|
# skip battery of hid devices
|
||||||
|
# see issue #321
|
||||||
|
if "hid" in supply.lower():
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
with open(Path(power_supply_path + supply + "/type")) as f:
|
with open(Path(power_supply_path + supply + "/type")) as f:
|
||||||
supply_type = f.read()[:-1]
|
supply_type = f.read()[:-1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user