diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-08-20 21:02:00 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-08-20 21:02:00 -0300 |
commit | 0220c9924c6fb633e7cd55be548a1604fdf4f63c (patch) | |
tree | 08d2f1e4b5c5b1c3556fc81893619e73b0835285 /powersaving | |
parent | e851401694daacaf1aba2c87ed557e5dbf00af02 (diff) | |
download | scripts-master.tar.gz scripts-master.tar.bz2 |
Diffstat (limited to 'powersaving')
-rwxr-xr-x | powersaving | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/powersaving b/powersaving deleted file mode 100755 index 75c5605..0000000 --- a/powersaving +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# from https://geoff.greer.fm/2017/07/16/thinkpad-x62/ - -# Disable the NMI watchdog -echo '0' > '/proc/sys/kernel/nmi_watchdog'; - -# Runtime power management for I2C devices -for i in /sys/bus/i2c/devices/*/device/power/control ; do - echo auto > ${i} -done - -# Runtime power-management for PCI devices -for i in /sys/bus/pci/devices/*/power/control ; do - echo auto > ${i} -done - -# Runtime power-management for USB devices -for i in /sys/bus/usb/devices/*/power/control ; do - echo auto > ${i} -done - -# Low power SATA -for i in /sys/class/scsi_host/*/link_power_management_policy ; do - echo min_power > ${i} -done - -# Disable Wake-on-LAN on ethernet port -#ethtool -s wlan0 wol d; -#ethtool -s eth0 wol d - -#Enable Audio codec power management -echo '1' > '/sys/module/snd_hda_intel/parameters/power_save'; - -# Low power wireless -iw dev wlan0 set power_save on |