From fa0ea86ff0d2ec147c648bf205390f5e63518316 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 2 Mar 2023 16:53:32 -0500 Subject: [PATCH] Add silent boot --- README.md | 36 ++++++++++++++++++++++++++++++++---- scripts/postDE.sh | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 4 deletions(-) create mode 100644 scripts/postDE.sh diff --git a/README.md b/README.md index dd493882..62256532 100644 --- a/README.md +++ b/README.md @@ -205,17 +205,47 @@ systemctl enable --now gdm ``` ### Use the reader -add this to the top of every file in /etc/pam.d/ that you want ie. sddm, kde, polkit-1, sudo uwu +add this to the top of every file in /etc/pam.d/ that you want ie. polkit-1, sudo uwu ``` auth sufficient pam_fprintd_grosshack.so auth sufficient pam_unix.so try_first_pass nullok ``` +## Plymouth and Silent Boot +By following the wiki pages on [watchdogs](https://wiki.archlinux.org/title/Improving_performance#Watchdogs), [silent booting](https://wiki.archlinux.org/title/Silent_boot#top-page) and [Plymouth](https://wiki.archlinux.org/title/Plymouth), I edited my grub config and mkinitcpio, installed and setup Plymouth, to get a satisfying booting experience +``` +# yay -Sy plymouth-git gdm-plymouth plymouth-theme-arch-charge-gdm-spinner +``` +/etc/mkinitcpio.conf +``` +MODULES=(amdgpu) +HOOKS=(base udev plymouth plymouth-encrypt ...) +``` +/etc/default/grub +``` +GRUB_CMDLINE_LINUX_DEFAULT="quiet splash loglevel=3 systemd.show_status=auto rd.udev.log_level=3 splash vt.global_cursor_default=0 nowatchdog ..." +GRUB_TIMEOUT="1" +GRUB_TIMEOUT_STYLE="hidden" +GRUB_GFXMODE="1920x1200x32" +#GRUB_DISABLE_RECOVERY=true +GRUB_DISABLE_OS_PROBER="false" +``` +Mute watchdog +``` +echo blacklist sp5100_tco | sudo tee /etc/modprobe.d/disable-sp5100-watchdog.conf +``` +Apply changes +``` +sudo plymouth-set-default-theme -R arch-charge-gdm-spinner +sudo grub-mkconfig -o /boot/grub/grub.cfg +sudo sed -i 's/echo/#ech~o/g' /boot/grub/grub.cfg +``` + ## Here are some random changes and tweaks ### Firefox touchscreen [tweak](https://wiki.archlinux.org/title/Firefox/Tweaks#Enable_touchscreen_gestures) ``` -# echo MOZ_USE_XINPUT2 DEFAULT=1 >> /etc/security/pam_env.conf +# echo MOZ_USE_XINPUT2 DEFAULT=1 | sudo tee -a /etc/security/pam_env.conf ``` then logout @@ -265,5 +295,3 @@ then logout # sed -i 's/USER=""/USER="matt"/' # sudo bash fzf.sh /usr/share/fzf ``` - -TODO: make sed commands for mkinitcpio diff --git a/scripts/postDE.sh b/scripts/postDE.sh new file mode 100644 index 00000000..2ca510f8 --- /dev/null +++ b/scripts/postDE.sh @@ -0,0 +1,32 @@ +yay -Sy python pam-fprint-grosshack +cd /tmp +git clone --recurse-submodules https://github.com/goodix-fp-linux-dev/goodix-fp-dump.git +cd goodix-fp-dump +python -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt +sudo python3 run_55b4.py + +yay -Sy libfprint-goodixtls-55x4 fprintd +sudo systemctl enable --now fprintd +fprintd-enroll + +yay -Sy plymouth-git gdm-plymouth plymouth-theme-arch-charge-gdm-spinner + +sudo sed -i 's/(base udev /(base udev plymouth plymouth-encrypt /' /etc/mkinitcpio.conf +sudo sed -i 's/ encrypt//' /etc/mkinitcpio.conf +sudo sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf + +sudo sed -i 's/quiet loglevel 3/quiet splash loglevel=3 systemd.show_status=auto rd.udev.log_level=3 splash vt.global_cursor_default=0 nowatchdog/' /etc/default/grub +sudo sed -i 's/GRUB_TIMEOUT=.*/GRUB_TIMEOUT="1"/' /etc/default/grub +sudo sed -i 's/GRUB_TIMEOUT_STYLE=.*/GRUB_TIMEOUT_STYLE="hidden"/' /etc/default/grub +sudo sed -i 's/GRUB_GFXMODE=.*/GRUB_GFXMODE="1920x1200x32"/' /etc/default/grub +sudo sed -i 's/GRUB_DISABLE_RECOVERY=.*/#GRUB_DISABLE_RECOVERY=true/' /etc/default/grub +sudo sed -i 's/#GRUB_DISABLE_OS_PROBER=.*/GRUB_DISABLE_OS_PROBER="false"/' /etc/default/grub +echo blacklist sp5100_tco | sudo tee /etc/modprobe.d/disable-sp5100-watchdog.conf + +sudo plymouth-set-default-theme -R arch-charge-gdm-spinner +sudo grub-mkconfig -o /boot/grub/grub.cfg +sudo sed -i 's/echo/#ech~o/g' /boot/grub/grub.cfg + +echo MOZ_USE_XINPUT2 DEFAULT=1 | sudo tee -a /etc/security/pam_env.conf \ No newline at end of file