Update 'Equivalent Commands'
parent
046442ad9e
commit
d1a668ec1f
1 changed files with 115 additions and 109 deletions
|
@ -1,6 +1,8 @@
|
||||||
In case you still want some of the functionality, without the nice GUI, here's some equivalent commands.
|
In case you still want some of the functionality, without the nice GUI, here's some equivalent commands.
|
||||||
These should all be run as superuser, i.e. run `sudo su` and then run these commands in that.
|
These should all be run as superuser, i.e. run `sudo su` and then run these commands in that.
|
||||||
|
|
||||||
|
NOTE: sysfs entries are subject to change with kernel updates. For example, hwmon indices may be incorrect if they were written for an older kernel. NGnius does not always keep this up to date with the latest numbers.
|
||||||
|
|
||||||
# Enable & Disable CPU threads
|
# Enable & Disable CPU threads
|
||||||
|
|
||||||
Enable: `echo 1 > /sys/devices/system/cpu/cpu{cpu_number}/online` where `{cpu_number}` is a number from 1 to 7 (inclusive).
|
Enable: `echo 1 > /sys/devices/system/cpu/cpu{cpu_number}/online` where `{cpu_number}` is a number from 1 to 7 (inclusive).
|
||||||
|
@ -23,7 +25,7 @@ Disable: `echo 0 > /sys/devices/system/cpu/cpufreq/boost` disables boost across
|
||||||
|
|
||||||
# Set CPU frequency
|
# Set CPU frequency
|
||||||
|
|
||||||
Refer to https://github.com/NGnius/PowerTools/issues/21
|
Refer to https://git.ngni.us/NG-SD-Plugins/PowerTools/issues/21
|
||||||
|
|
||||||
## Old method
|
## Old method
|
||||||
Use `cpupower` (usage: `cpupower --help`).
|
Use `cpupower` (usage: `cpupower --help`).
|
||||||
|
@ -40,11 +42,11 @@ Get the entry limits for those two commands with `cat /sys/class/hwmon/hwmon4/po
|
||||||
|
|
||||||
# Set GPU frequency
|
# Set GPU frequency
|
||||||
|
|
||||||
Refer to https://github.com/NGnius/PowerTools/issues/21
|
Refer to https://git.ngni.us/NG-SD-Plugins/PowerTools/issues/21
|
||||||
|
|
||||||
# Set Fan speed
|
# Set Fan speed
|
||||||
|
|
||||||
NOTE: PowerTools no longer supports this, since [Fantastic](https://github.com/NGnius/Fantastic) does it much better.
|
NOTE: PowerTools no longer supports this, since [Fantastic](https://git.ngni.us/NG-SD-Plugins/Fantastic) does it much better.
|
||||||
|
|
||||||
Enable automatic control: `echo 0 > /sys/class/hwmon/hwmon5/recalculate` enables automatic fan control.
|
Enable automatic control: `echo 0 > /sys/class/hwmon/hwmon5/recalculate` enables automatic fan control.
|
||||||
|
|
||||||
|
@ -77,9 +79,13 @@ That file is write only, so changes cannot be directly observed.
|
||||||
|
|
||||||
# Set battery charge mode
|
# Set battery charge mode
|
||||||
|
|
||||||
There exists a binary which may or may not be executable (depending on which SteamOS version) which can be used to set this and other things. [More details in the issue](https://github.com/NGnius/PowerTools/issues/50).
|
There exists a binary which may or may not be executable (depending on which SteamOS version) which can be used to set this and other things. [More details in the issue](https://git.ngni.us/NG-SD-Plugins/PowerTools/issues/50). Unfortunately recent SteamOS updates have removed that part of the binary's functionality.
|
||||||
|
|
||||||
Refer to [util.rs](https://github.com/NGnius/PowerTools/blob/main/backend/src/settings/steam_deck/util.rs) for how the firmware interface works.
|
Refer to [util.rs](https://git.ngni.us/NG-SD-Plugins/PowerTools/blob/main/backend/src/settings/steam_deck/util.rs) for how the firmware interface works.
|
||||||
|
|
||||||
|
# Set battery charge limit
|
||||||
|
|
||||||
|
This also used to require the binary in [this issue](https://git.ngni.us/NG-SD-Plugins/PowerTools/issues/50). Luckily this is replaced by a sysfs interface in SteamOS 3.5: `/sys/class/hwmon/hwmon4/max_battery_charge_level`. The number is the percent charge; 100 is full, 0 is empty.
|
||||||
|
|
||||||
# Steam Deck kernel patches
|
# Steam Deck kernel patches
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue