Skip to content

Commit

Permalink
add powertop opti
Browse files Browse the repository at this point in the history
  • Loading branch information
pad92 committed Feb 25, 2022
1 parent 4f745fa commit e2d6087
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/powertop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

powertop --auto-tune
HIDDEVICES=$(ls /sys/bus/usb/drivers/usbhid | grep -oE '^[0-9]+-[0-9\.]+' | sort -u)
for i in $HIDDEVICES; do
echo -n "Enabling " | cat - /sys/bus/usb/devices/$i/product
echo 'on' > /sys/bus/usb/devices/$i/power/control
done

0 comments on commit e2d6087

Please sign in to comment.