notebook/IT/linux/index.md
2021-01-24 17:54:07 +01:00

1.3 KiB
Raw Blame History

linux

retrouvé date t'instalation

ls -lct /etc | tail -1 | awk '{print $6, $7, $8}'

enable Wayland support:

  • execute ln -s /dev/null /etc/udev/rules.d/61-gdm.rules to avoid that gnome test your nvidia Driver

  • add nvidia-drm.modeset=1 to GRUB_CMDLINE_LINUX_DEFAULT in*/etc/default/grub*

  • update grub config grub-mkconfig -o /boot/grub/grub.cfg in root

  • add nvidia module to mkinitcpio.cong: MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)

  • create pacman hook:

[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia
Target=linux
# Change the linux part above and in the Exec line if a different kernel is used

[Action]
Description=Update Nvidia module in initcpio
Depends=mkinitcpio
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P'

see if you run on wayland:

loginctl show-session $(loginctl G $USERNAME|awk '{print $1}') -p Type

boot in emergency target

  1. (Re)boot the machine
  2. Wait for the grub menu to appear, then hit “e”,
  3. scroll down to the “linux16” line then press the end key
  4. type the following: systemd.unit=emergency.target
  5. press ctrl+x
  6. put root writable with mount -o rw,remount /