-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
214 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Documentation=https://wiki.archlinux.org/index.php/CPU_frequency_scaling | ||
Description=Set CPU governor to performance to avoid contex switcing between ondemand and performance | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/bin/cpupower frequency-set -g performance | ||
ExecStop=/usr/bin/cpupower frequency-set -g ondemand | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=default.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Disable wlan0 powersave | ||
After=network-online.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/sbin/iw wlan0 set power_save off | ||
ExecStop=/sbin/iw wlan0 set power_save on | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=default.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[zram0] | ||
zram-size = ram / 2 | ||
compression-algorithm = lzo-rle | ||
swap-priority = 100 | ||
fs-type = swap |