Advertisement
Guest User

Untitled

a guest
Nov 17th, 2021
1,799
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. sleep 15 &&
  4. echo 5 > /proc/sys/vm/laptop_mode &&
  5. echo 0 > /proc/sys/kernel/nmi_watchdog &&
  6. echo 1 > /sys/module/snd_hda_intel/parameters/power_save &&
  7. echo Y > /sys/module/snd_hda_intel/parameters/power_save_controller &&
  8. #echo 1 > /sys/devices/system/cpu/sched_mc_power_savings &&
  9. #echo ondemand | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor &&
  10. echo powersave | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor &&
  11. echo 1500 > /proc/sys/vm/dirty_writeback_centisecs &&
  12. echo powersave > /sys/module/pcie_aspm/parameters/policy &&
  13. #echo powersupersave > /sys/module/pcie_aspm/parameters/policy
  14. #for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 1 > $i; done &&
  15. #for i in /sys/bus/pci/devices/*/power_level ; do echo 5 > $i ; done 2>/dev/null
  16. ryzenadj -a 15000 -b 30000 -c 20000 --power-saving &&
  17. echo battery > /sys/class/drm/card0/device/power_dpm_state &&
  18. echo manual > /sys/class/drm/card0/device/power_dpm_force_performance_level &&
  19. echo 2 > /sys/class/drm/card0/device/pp_power_profile_mode &&
  20. echo 0 > /sys/devices/system/cpu/cpufreq/boost &&
  21. zenstates --disable -p 0 &&
  22. zenstates --disable -p 1
Advertisement
RAW Paste Data Copied
Advertisement