1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-29 09:57:46 +00:00

Revert "treewide: finish renaming to Watt"

This reverts commit 5a197951d9.
This commit is contained in:
RGBCube 2025-06-07 00:41:46 +03:00
parent d33659209e
commit b328c948e0
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
14 changed files with 132 additions and 132 deletions

View file

@ -1,5 +1,5 @@
<h1 id="header" align="center">
Watt
Superfreq
</h1>
<div align="center">
@ -8,15 +8,15 @@
<div align="center">
<br/>
<a href="#what-is-watt">Synopsis</a><br/>
<a href="#what-is-superfreq">Synopsis</a><br/>
<a href="#features">Features</a> | <a href="#usage">Usage</a><br/>
<a href="#contributing">Contributing</a>
<br/>
</div>
## What is Watt
## What is Superfreq
Watt is a modern CPU frequency and power management utility for Linux
Superfreq is a modern CPU frequency and power management utility for Linux
systems. It provides intelligent control of CPU governors, frequencies, and
power-saving features, helping optimize both performance and battery life.
@ -48,81 +48,81 @@ but most common usecases are already implemented.
```bash
# Show current system information
watt info
superfreq info
# Run as a daemon in the background
sudo watt daemon
sudo superfreq daemon
# Run with verbose logging
sudo watt daemon --verbose
sudo superfreq daemon --verbose
# Display comprehensive debug information
watt debug
superfreq debug
```
### CPU Governor Control
```bash
# Set CPU governor for all cores
sudo watt set-governor performance
sudo superfreq set-governor performance
# Set CPU governor for a specific core
sudo watt set-governor powersave --core-id 0
sudo superfreq set-governor powersave --core-id 0
# Force a specific governor mode persistently
sudo watt force-governor performance
sudo superfreq force-governor performance
```
### Turbo Boost Management
```bash
# Always enable turbo boost
sudo watt set-turbo always
sudo superfreq set-turbo always
# Disable turbo boost
sudo watt set-turbo never
sudo superfreq set-turbo never
# Let Watt manage turbo boost based on conditions
sudo watt set-turbo auto
# Let Superfreq manage turbo boost based on conditions
sudo superfreq set-turbo auto
```
### Power and Performance Settings
```bash
# Set Energy Performance Preference (EPP)
sudo watt set-epp performance
sudo superfreq set-epp performance
# Set Energy Performance Bias (EPB)
sudo watt set-epb 4
sudo superfreq set-epb 4
# Set ACPI platform profile
sudo watt set-platform-profile balanced
sudo superfreq set-platform-profile balanced
```
### Frequency Control
```bash
# Set minimum CPU frequency (in MHz)
sudo watt set-min-freq 800
sudo superfreq set-min-freq 800
# Set maximum CPU frequency (in MHz)
sudo watt set-max-freq 3000
sudo superfreq set-max-freq 3000
# Set per-core frequency limits
sudo watt set-min-freq 1200 --core-id 0
sudo watt set-max-freq 2800 --core-id 1
sudo superfreq set-min-freq 1200 --core-id 0
sudo superfreq set-max-freq 2800 --core-id 1
```
### Battery Management
```bash
# Set battery charging thresholds to extend battery lifespan
sudo watt set-battery-thresholds 40 80 # Start charging at 40%, stop at 80%
sudo superfreq set-battery-thresholds 40 80 # Start charging at 40%, stop at 80%
```
Battery charging thresholds help extend battery longevity by preventing constant
charging to 100%. Different laptop vendors implement this feature differently,
but Watt attempts to support multiple vendor implementations including:
but Superfreq attempts to support multiple vendor implementations including:
- Lenovo ThinkPad/IdeaPad (Standard implementation)
- ASUS laptops
@ -135,12 +135,12 @@ more than issue reports, as supporting hardware _needs_ hardware.
## Configuration
Watt uses TOML configuration files. Default locations:
Superfreq uses TOML configuration files. Default locations:
- `/etc/xdg/watt/config.toml`
- `/etc/watt.toml`
- `/etc/xdg/superfreq/config.toml`
- `/etc/superfreq.toml`
You can also specify a custom path by setting the `WATT_CONFIG` environment
You can also specify a custom path by setting the `SUPERFREQ_CONFIG` environment
variable.
### Sample Configuration
@ -214,7 +214,7 @@ throttle_on_battery = true
# Logging level: Error, Warning, Info, Debug
log_level = "Info"
# Optional stats file path
stats_file_path = "/var/run/watt-stats"
stats_file_path = "/var/run/superfreq-stats"
# Optional: List of power supplies to ignore
[power_supply_ignore_list]
@ -224,13 +224,13 @@ mouse_battery = "hid-12:34:56:78:90:ab-battery"
## Advanced Features
Those are the more advanced features of Watt that some users might be more
Those are the more advanced features of Superfreq that some users might be more
inclined to use than others. If you have a use-case that is not covered, please
create an issue.
### Dynamic Turbo Boost Management
When using `turbo = "auto"` with `enable_auto_turbo = true`, Watt
When using `turbo = "auto"` with `enable_auto_turbo = true`, Superfreq
dynamically controls CPU turbo boost based on:
- **CPU Load Thresholds**: Enables turbo when load exceeds `load_threshold_high`
@ -260,16 +260,16 @@ The table below explains how different combinations of `turbo` and
| ------------------ | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| `turbo = "always"` | **Always enabled**<br>Turbo is always active regardless of CPU load or temperature | **Always enabled**<br>Turbo is always active regardless of CPU load or temperature |
| `turbo = "never"` | **Always disabled**<br>Turbo is always disabled regardless of CPU load or temperature | **Always disabled**<br>Turbo is always disabled regardless of CPU load or temperature |
| `turbo = "auto"` | **Dynamically managed**<br>Watt enables/disables turbo based on CPU load and temperature thresholds | **System default**<br>Turbo is reset to system's default enabled state and is managed by the hardware/kernel |
| `turbo = "auto"` | **Dynamically managed**<br>Superfreq enables/disables turbo based on CPU load and temperature thresholds | **System default**<br>Turbo is reset to system's default enabled state and is managed by the hardware/kernel |
> [!NOTE]
> When `turbo = "auto"` and `enable_auto_turbo = false`, Watt ensures that
> When `turbo = "auto"` and `enable_auto_turbo = false`, Superfreq ensures that
> any previous turbo state restrictions are removed, allowing the
> hardware/kernel to manage turbo behavior according to its default algorithms.
### Adaptive Polling
Watt includes a "sophisticated" (euphemism for complicated) adaptive
Superfreq includes a "sophisticated" (euphemism for complicated) adaptive
polling system to try and maximize power efficiency
- **Battery Discharge Analysis** - Automatically adjusts polling frequency based
@ -294,7 +294,7 @@ idle periods, while maintaining responsiveness when needed.
### Power Supply Filtering
Configure Watt to ignore certain power supplies (like peripheral batteries)
Configure Superfreq to ignore certain power supplies (like peripheral batteries)
that might interfere with power state detection.
## Troubleshooting
@ -319,11 +319,11 @@ Not all features are available on all hardware:
2. **CPU frequencies fluctuating**: May be due to thermal throttling
3. **Missing CPU information**: Verify kernel module support for your CPU
While reporting issues, please attach the results from `watt debug`.
While reporting issues, please attach the results from `superfreq debug`.
## Contributing
Contributions to Watt are always welcome! Whether it's bug reports, feature
Contributions to Superfreq are always welcome! Whether it's bug reports, feature
requests, or code contributions, please feel free to contribute.
> [!NOTE]
@ -357,5 +357,5 @@ before committing to catch possible code smell early.
## License
Watt is available under [Mozilla Public License v2.0](LICENSE) for your
Superfreq is available under [Mozilla Public License v2.0](LICENSE) for your
convenience, and at our expense. Please see the license file for more details.