Skip to content

Commit

Permalink
Some performance fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ngr31 committed Feb 19, 2024
1 parent 035ba20 commit e805688
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/files/etc/udev/rules.d/99-power.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_STATUS}=="Charging", RUN+="/usr/bin/on-ac"
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_STATUS}=="Discharging", RUN+="/usr/bin/on-battery"
3 changes: 3 additions & 0 deletions config/files/usr/bin/on-ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

system76-power profile performance
3 changes: 3 additions & 0 deletions config/files/usr/bin/on-battery
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

system76-power profile battery
1 change: 1 addition & 0 deletions config/files/usr/lib/sysctl.d/swappiness.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vm.swappiness=1

0 comments on commit e805688

Please sign in to comment.