Add silent boot

This commit is contained in:
matt1432 2023-03-02 16:53:32 -05:00
parent 3cfdc657ca
commit fa0ea86ff0
2 changed files with 64 additions and 4 deletions

View file

@ -205,17 +205,47 @@ systemctl enable --now gdm
``` ```
### Use the reader ### 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_fprintd_grosshack.so
auth sufficient pam_unix.so try_first_pass nullok 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 ## Here are some random changes and tweaks
### Firefox touchscreen [tweak](https://wiki.archlinux.org/title/Firefox/Tweaks#Enable_touchscreen_gestures) ### 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 then logout
@ -265,5 +295,3 @@ then logout
# sed -i 's/USER=""/USER="matt"/' # sed -i 's/USER=""/USER="matt"/'
# sudo bash fzf.sh /usr/share/fzf # sudo bash fzf.sh /usr/share/fzf
``` ```
TODO: make sed commands for mkinitcpio

32
scripts/postDE.sh Normal file
View file

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