mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
feat: fix temperature ranaway; add hibernation from sway
This commit is contained in:
parent
9a1143d1f4
commit
3254d748fd
3 changed files with 15 additions and 9 deletions
|
|
@ -889,14 +889,12 @@ My work machine. Built for more security, this is the gold standard of my config
|
||||||
extraRemotes = [ "lvfs" ];
|
extraRemotes = [ "lvfs" ];
|
||||||
};
|
};
|
||||||
udev.extraRules = ''
|
udev.extraRules = ''
|
||||||
# Make Framework 16 Ethernet Module work reliably
|
# disable Wakeup on Framework Laptop 16 Keyboard (ANSI)
|
||||||
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20"
|
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0012", ATTR{power/wakeup}="disabled"
|
||||||
|
# disable Wakeup on Framework Laptop 16 Numpad Module
|
||||||
# disable Wakup on Framework Laptop 16 Keyboard
|
|
||||||
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0018", ATTR{power/wakeup}="disabled"
|
|
||||||
|
|
||||||
# disable Wakup on Framework Laptop 16 Numpad Module
|
|
||||||
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0014", ATTR{power/wakeup}="disabled"
|
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0014", ATTR{power/wakeup}="disabled"
|
||||||
|
# disable Wakeup on Framework Laptop 16 Trackpad
|
||||||
|
ACTION=="add", SUBSYSTEM=="i2c", DRIVERS=="i2c_hid_acpi", ATTRS{name}=="PIXA3854:00", ATTR{power/wakeup}="disabled"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -1088,7 +1086,10 @@ My work machine. Built for more security, this is the gold standard of my config
|
||||||
kernelModules = [ "kvm-amd" ];
|
kernelModules = [ "kvm-amd" ];
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"mem_sleep_default=deep"
|
"mem_sleep_default=deep"
|
||||||
"amd_pstate=passive"
|
# supposedly, this helps save power on laptops
|
||||||
|
# in reality (at least on this model), this just generate excessive heat on the CPUs
|
||||||
|
# "amd_pstate=passive"
|
||||||
|
|
||||||
# Fix screen flickering issue at the cost of battery life (disable PSR and PSR-SU, keep PR enabled)
|
# Fix screen flickering issue at the cost of battery life (disable PSR and PSR-SU, keep PR enabled)
|
||||||
# TODO: figure out if this is worth it
|
# TODO: figure out if this is worth it
|
||||||
# test PSR/PR state with 'sudo grep '' /sys/kernel/debug/dri/0000*/eDP-2/*_capability'
|
# test PSR/PR state with 'sudo grep '' /sys/kernel/debug/dri/0000*/eDP-2/*_capability'
|
||||||
|
|
@ -11122,6 +11123,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
|
||||||
mode $exit {
|
mode $exit {
|
||||||
bindsym --to-code {
|
bindsym --to-code {
|
||||||
s exec \"systemctl suspend\", mode \"default\"
|
s exec \"systemctl suspend\", mode \"default\"
|
||||||
|
h exec \"systemctl hibernate\", mode \"default\"
|
||||||
l exec \"swaylock --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2 --daemonize\", mode \"default\
|
l exec \"swaylock --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2 --daemonize\", mode \"default\
|
||||||
p exec \"systemctl poweroff\"
|
p exec \"systemctl poweroff\"
|
||||||
r exec \"systemctl reboot\"
|
r exec \"systemctl reboot\"
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,10 @@
|
||||||
kernelModules = [ "kvm-amd" ];
|
kernelModules = [ "kvm-amd" ];
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"mem_sleep_default=deep"
|
"mem_sleep_default=deep"
|
||||||
"amd_pstate=passive"
|
# supposedly, this helps save power on laptops
|
||||||
|
# in reality (at least on this model), this just generate excessive heat on the CPUs
|
||||||
|
# "amd_pstate=passive"
|
||||||
|
|
||||||
# Fix screen flickering issue at the cost of battery life (disable PSR and PSR-SU, keep PR enabled)
|
# Fix screen flickering issue at the cost of battery life (disable PSR and PSR-SU, keep PR enabled)
|
||||||
# TODO: figure out if this is worth it
|
# TODO: figure out if this is worth it
|
||||||
# test PSR/PR state with 'sudo grep '' /sys/kernel/debug/dri/0000*/eDP-2/*_capability'
|
# test PSR/PR state with 'sudo grep '' /sys/kernel/debug/dri/0000*/eDP-2/*_capability'
|
||||||
|
|
|
||||||
|
|
@ -292,6 +292,7 @@ in
|
||||||
mode $exit {
|
mode $exit {
|
||||||
bindsym --to-code {
|
bindsym --to-code {
|
||||||
s exec \"systemctl suspend\", mode \"default\"
|
s exec \"systemctl suspend\", mode \"default\"
|
||||||
|
h exec \"systemctl hibernate\", mode \"default\"
|
||||||
l exec \"swaylock --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2 --daemonize\", mode \"default\
|
l exec \"swaylock --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2 --daemonize\", mode \"default\
|
||||||
p exec \"systemctl poweroff\"
|
p exec \"systemctl poweroff\"
|
||||||
r exec \"systemctl reboot\"
|
r exec \"systemctl reboot\"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue