From a13921809f8201b5fa0d785a2745e47e2ffefbc1 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Mon, 14 Jun 2021 09:47:54 +0300 Subject: [PATCH] tlp: update config template for AC --- README.md | 8 +------- home/.local/share/gnupg/gpg.conf | 2 +- system/etc/nftables.conf | 4 ++-- system/etc/tlp.d/00-custom.conf | 15 +++++++++++++++ 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 7028d8a..c5f23a9 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,6 @@ ![sway](assets/sway.png) -### :package: Details - -- Run `deploy.sh` to deploy the dotfiles. -- `setup/` directory contains installers for additional packages. - > zsh requires adding `export ZDOTDIR=$HOME/.config/zsh` to **/etc/zsh/zshenv** ### :clipboard: TODO @@ -38,8 +33,7 @@ - [@ChristianChiarulli](https://github.com/ChristianChiarulli)'s Neovim config - [@hlissner](https://github.com/hlissner)'s zsh config -- [@daviwil](https://github.com/daviwil)'s Emacs streams -- [@tecosaur](https://tecosaur.github.io/emacs-config/config.html)'s Emacs configuration +- [@daviwil](https://github.com/daviwil)'s/[@tecosaur](https://tecosaur.github.io/emacs-config/config.html)'s Emacs configurations - [@begs](https://git.sr.ht/~begs/dotfiles)'s Waybar config - [@nathanielevan](https://github.com/nathanielevan/dotfiles)'s weechat config - [some fzf scripts](https://github.com/DanielFGray/fzf-scripts) diff --git a/home/.local/share/gnupg/gpg.conf b/home/.local/share/gnupg/gpg.conf index b8ee01b..87de1a9 100644 --- a/home/.local/share/gnupg/gpg.conf +++ b/home/.local/share/gnupg/gpg.conf @@ -27,7 +27,7 @@ with-fingerprint #keyid-format 0xlong # The message digest algorithm used when signing a key -cert-digest-algo SHA512 +cert-digest-algo SHA256 # The default key to sign with default-key 9FB01E38DDD7E1459A4C3DAC813CF484F4993419 diff --git a/system/etc/nftables.conf b/system/etc/nftables.conf index bbc98a6..d426cbe 100644 --- a/system/etc/nftables.conf +++ b/system/etc/nftables.conf @@ -34,8 +34,8 @@ table inet filter { #tcp dport ssh ct state new limit rate 6/minute accept # Mitigate ping floods - ip protocol icmp icmp type {echo-reply, echo-request} limit rate over 6/second burst 4 packets drop - ip6 nexthdr icmpv6 icmpv6 type {echo-reply, echo-request} limit rate over 6/second burst 4 packets drop + ip protocol icmp icmp type {echo-reply, echo-request} limit rate over 1/second burst 4 packets drop + ip6 nexthdr icmpv6 icmpv6 type {echo-reply, echo-request} limit rate over 1/second burst 4 packets drop ip protocol icmp icmp type { echo-reply, diff --git a/system/etc/tlp.d/00-custom.conf b/system/etc/tlp.d/00-custom.conf index c8af31d..30f6f06 100644 --- a/system/etc/tlp.d/00-custom.conf +++ b/system/etc/tlp.d/00-custom.conf @@ -1,13 +1,28 @@ TLP_DEFAULT_MODE=BAT +#TLP_PS_IGNORE=BAT + CPU_SCALING_GOVERNOR_ON_BAT=ondemand CPU_SCALING_MIN_FREQ_ON_BAT=1400000 CPU_SCALING_MAX_FREQ_ON_BAT=1700000 +CPU_SCALING_GOVERNOR_ON_AC=ondemand +CPU_SCALING_MIN_FREQ_ON_AC=1400000 +CPU_SCALING_MAX_FREQ_ON_AC=2100000 + +#DISK_DEVICES="nvme0n1 sda" DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0" DISK_IOSCHED="mq-deadline mq-deadline" + PCIE_ASPM_ON_BAT=default +PCIE_ASPM_ON_AC=default + RADEON_POWER_PROFILE_ON_BAT=auto +RADEON_POWER_PROFILE_ON_AC=auto RADEON_DPM_STATE_ON_BAT=battery +RADEON_DPM_STATE_ON_AC=performance + DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan" DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE="bluetooth wifi wwan" + START_CHARGE_THRESH_BAT0=70 STOP_CHARGE_THRESH_BAT0=85 +RESTORE_THRESHOLDS_ON_BAT=1