Skip to content

Instantly share code, notes, and snippets.

@thamudi
Last active September 19, 2022 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thamudi/27627f0e3d9318b9127c44b6be934ef0 to your computer and use it in GitHub Desktop.
Save thamudi/27627f0e3d9318b9127c44b6be934ef0 to your computer and use it in GitHub Desktop.
Power management scripts
#!/bin/bash
# Author: thamudi
# profile: https://github.com/thamudi
## You will need iwconfig to run the script
## Keep in mind that wlp4s0 is my wifi interface and you will need to change it with yours accordingly
## You can find out which one is yours by simply running iwconfig
## Use the below script to toggle power saving on
# /sbin/iwconfig wlp4s0 power on
## Use the below script to toggle power saving off
# iwconfig wlp4s0 power off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment