tlp: update config template for AC

This commit is contained in:
Hoang Nguyen 2021-06-14 09:47:54 +03:00
parent 7240be331e
commit a13921809f
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
4 changed files with 19 additions and 10 deletions

View File

@ -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)

View File

@ -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

View File

@ -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,

View File

@ -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