linux:notes:laptop_power_udev
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:notes:laptop_power_udev [2024/09/28 05:00] – Sean Rhone | linux:notes:laptop_power_udev [2024/10/06 17:54] (current) – removed Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Laptop Power Management ====== | ||
- | |||
- | ===== Testing ===== | ||
- | |||
- | * The following commands can be ran to see if they work on specific hardware | ||
- | |||
- | watch -n 0.5 grep \'cpu MHz\' '/ | ||
- | |||
- | sudo x86_energy_perf_policy --all ' | ||
- | |||
- | sudo x86_energy_perf_policy --all ' | ||
- | |||
- | ====== Dependencies ====== | ||
- | |||
- | **** | ||
- | |||
- | sudo dnf install ' | ||
- | |||
- | ====== Scripts ====== | ||
- | |||
- | ===== AC ===== | ||
- | |||
- | sudo mkdir -p '/ | ||
- | |||
- | < | ||
- | #!/bin/bash | ||
- | # AC | ||
- | x86_energy_perf_policy --all ' | ||
- | # End</ | ||
- | |||
- | ===== Battery ===== | ||
- | |||
- | sudo mkdir -p '/ | ||
- | |||
- | < | ||
- | #!/bin/bash | ||
- | # Battery | ||
- | x86_energy_perf_policy --all ' | ||
- | # End</ | ||
- | |||
- | ===== udev Rule ===== | ||
- | |||
- | * Requires the above AC and Battery scripts | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | < | ||
- | SUBSYSTEM==" | ||
- | SUBSYSTEM==" | ||
/srv/www/wiki/data/attic/linux/notes/laptop_power_udev.1727514013.txt.gz · Last modified: by Sean Rhone