problem was with the hdmi connection. When i switched to the display port (over usb-c) and run envycontrol to activate the nvidia card then the laptop boots into xfce. After that also nvidia-settings shows what it needs to show. Furthermore need to adjust the panel to the correct display (eDP in my case (laptop screen) and all is good to go …again.
Rebooting the laptop now keeps all settings and runs back on the nvidia dgpu.
Long search to get this going again but it worked!!
I’ve read the guide but I am not sure if I can install this because I can verify properly if I have the correct efi partition. As per the image, would I be able to convert to systemd-boot:
Apologies for asking but the don’t want do something to my system that make me reinstall the os.
Thank you for your help and guidance.
It depends how you use snapshots. There is no issue with taking snapshots with systemd-boot. I use btrfs with systemd-boot regularly.
The issues are:
There is not an easy way to directly boot off a snapshot
If you restore a snapshot of your root filesystem, you may need to fix the mismatch between the kernel modules and the kernel/initrams if the version has changed between snapshots.
You mean by that to just run your script for installing kernels, or use pacman to install it ?
Boot into liveusb and restore a snapshot, and after that? arch-chroot and run your script ?
Then, open btrfs-assistant and restore the snapshot
archchroot and kernel-install
# umount /mnt
# mount -o subvol=@ /dev/sda2 /mnt
# mount /dev/sda1 /mnt/efi
# arch-chroot /mnt
# kernel-install2 #this is the bottom part of Dalto's script, copied to /usr/bin with +x attribute.
exit
It worked, however as we can see in the image below, my boot entries are showing both kernel versions:
Systemd boot entries
Fixed my boot entries like this:
cd /efi/91192e68b46945dba4aad45cee594025/
sudo rm -rf 5.19.12-arch1-1
sudo rm -rf 5.19.12-zen1-1-zen/
cd ../loader/entries
sudo rm 91192e68b46945dba4aad45cee594025-5.19.12-arch1-1.conf
sudo rm 91192e68b46945dba4aad45cee594025-5.19.12-zen1-1-zen.conf
sudo kernel-install2 #this is the bottom part of Dalto's script, copied to /usr/bin with +x attribute.
Really thanks Now I can restore everything in case of a boot problem, using btrfs with dracut.
The reason for the duplication is that since those kernels were never uninstalled. kernel-install remove was never run to do the cleanup.
It would be pretty easy to write a script to do that in an automated way.
You would just need the machine id which is in /etc and the argument to pass to kernel-install remove would be the directory names under /etc/<machine-id>.
Of course, it is also pretty easy to do manually as you discovered.
Hey and thank you for the tutorial!
I don’t know if anyone has said it before but systemd-boot is severly faster in decrypting my LUKS partition than grub. So there is a major advantage in using systemd-boot if you will.