Przeglądaj źródła

add note for nvidia usage, and patch typo in loading nvidia at boot

Casey DeLorme 2 lat temu
rodzic
commit
aacc85f513
2 zmienionych plików z 10 dodań i 2 usunięć
  1. 1 1
      arch.sh
  2. 9 1
      notes/sway.md

+ 1 - 1
arch.sh

@@ -289,7 +289,7 @@ echo "linux vmlinuz-linux" >> /boot/loader/entries/arch.conf
 echo "initrd /initramfs-linux.img" >> /boot/loader/entries/arch.conf
 export boot_options="options root=PARTUUID=$(blkid -s PARTUUID -o value $(mount | grep ' / '|cut -d' ' -f 1)) rw quiet loglevel=3"
 [ "$enable_hibernation" = "y" ] && [ -n "$resume_uuid" ] && boot_options="${boot_options} resume=UUID=${resume_uuid}"
-[[ $(lspci | grep -i " vga" | grep -ci " nvidia") -gt 0 && $(grep -c "nvidia" /boot/loader/entires/arch.conf) -eq 0 ]] && boot_options="${boot_options} nvidia-dkm.modeset=1"
+[[ $(lspci | grep -i " vga" | grep -ci " nvidia") -gt 0 && $(grep -c "nvidia" /boot/loader/entires/arch.conf) -eq 0 ]] && boot_options="${boot_options} nvidia-drm.modeset=1"
 echo "$boot_options" >> /boot/loader/entries/arch.conf
 
 # set boot loader entry as default

+ 9 - 1
notes/sway.md

@@ -35,9 +35,17 @@ The `~/.config/sway/config.d/` directory should be used to establish overrides s
 
 ---
 
-My config has a global push-to-talk setup, but the initiate mic state may not be muted so you'll want to trigger it once to start it and that should save the state on next reboot.
+Strange problem with global push-to-talk; had to start it once in order to trigger it, and the state may or may not persist on reboots.
 
 There does not appear to be a way to add temperature support to `waybar`, since by default it reads the first `hwmon` resource, which is often unrelated or unimportant, and selecting the correct ones for CPU and GPU is entirely hardware dependent.  _It may be possible to write a script that generalizes running `sensors` and scanning for common or known driver names in order to grab the correct data._
 
 The scratchpad is a bit messy in that the "cycle" for pulling windows out involves show/hide/show/hide on repeat, rather than show to show to show swapping the pulled window instead.  _It may be possible to script this with `swaymsg` with an iterator._
 
+
+
+## nvidia
+
+Since the nvidia proprietary driver is unsupported you may need these in your `~/.bash_profile`:
+
+	export WLR_NO_HARDWARE_CURSORS=1
+	alias sway='sway --unsupported-gpu'