diff options
Diffstat (limited to 'org/distro-guides/void.org')
-rw-r--r-- | org/distro-guides/void.org | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/org/distro-guides/void.org b/org/distro-guides/void.org index 57fc082..0ae6b67 100644 --- a/org/distro-guides/void.org +++ b/org/distro-guides/void.org @@ -31,12 +31,27 @@ more depth search for it on the arch wiki :D\\ \\ Some useful things: + [[https://docs.voidlinux.org/config/services/logging.html][socklog]] for logs (highly recommend for those who do a lot of debugging). ++ [[https://docs.voidlinux.org/xbps/advanced-usage.html#ignoring-packages][ignoring packages]] *so you can replace sudo with doas*. + [[https://docs.voidlinux.org/config/network/wpa_supplicant.html][wpa supplicant]] for wifi. + [[https://docs.voidlinux.org/config/power-management.html][swap out acpid with elogind]] because it seems to work better with xfce. + [[https://docs.voidlinux.org/config/media/pipewire.html][pipewire]] for audio (laptops often need sof-firmware for the speakers). ++ [[https://docs.voidlinux.org/config/graphical-session/fonts.html][fonts]] so your fonts don't look like trash. + [[https://docs.voidlinux.org/config/containers-and-vms/chroot.html][Interesting]]. + [[https://gothub.ducks.party/void-linux/void-packages][Source packages in void]]. + +* Laptop brightness issue +:PROPERTIES: +:CUSTOM_ID: brightness +:END: +On void some laptops will not save their previous brightness after boot. To fix +that first install [[https://man.voidlinux.org/brillo.1][brillo(1)]]. + +To save the brightness on shutdown open =/etc/rc.shutdown= and add =brillo -O= + +Next open =/etc/rc.local= and add =brillo -I= to restore the brightness on +startup + * Packages :PROPERTIES: :CUSTOM_ID: packages @@ -48,3 +63,64 @@ stuppa flatpaks and snaps when you can make your own packages and share them? Thats the whole point of free and open source! I encourage this for all linux users! You can find some void packages I made [[https://git.shittyweb.org/][on my git]]. +* Nvidia drivers +:PROPERTIES: +:CUSTOM_ID: nvidia +:END: +A lot can change depending on many things and everything I say has only +been tested on my machine. Check out [[https://docs.voidlinux.org/config/graphical-session/graphics-drivers/nvidia.html][void nvidia docs]]. + +** Install packages +:PROPERTIES: +:CUSTOM_ID: nvidia-packages +:END: +=xbps-install -Su=\\ +=xbps-install nvidia nvidia-libs-32bit= + +** Setup xorg config +:PROPERTIES: +:CUSTOM_ID: xorg-config +:END: +=cp /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf +/etc/X11/xorg.conf.d/=\\ +Then add =Option "PrimaryGPU" "yes"= at the end of =Section "OutputClass"= in +the nvidia xorg config. + +*Now reboot* + +** Setup lightdm for nvidia +:PROPERTIES: +:CUSTOM_ID: lightdm +:END: +Follow [[https://wiki.archlinux.org/title/NVIDIA_Optimus#LightDM][a guide found here]] to setup lightdm for nvidia.\\ +=NVIDIA-0= often isnt correct so run =xrandr --listproviders= to find the +correct one. + +** Multi Monitor +:PROPERTIES: +:CUSTOM_ID: multi-monitor +:END: +Add these to your =/etc/environment= +#+begin_src shell + CLUTTER_DEFAULT_FPS=<refresh rate of your sync monitor> + __GL_SYNC_DISPLAY_DEVICE=<monitor to sync to> +#+end_src +Then open your nvidia settings, go to OpenGL Settings and turn off "Allow +Flipping". + +** Settings loading +:PROPERTIES: +:CUSTOM_ID: nvidia-settings +:END: +Open up the xfce startup app thingy and add =nvidia-settings +--load-config-only= as a startup app so your nvidia settings load on login. + +** Checking nvidia drivers +:PROPERTIES: +:CUSTOM_ID: checking-nvidia +:END: ++ My prefered way:\\ + =xbps-install glxinfo=\\ + =glxinfo | grep -E "OpenGL vendor|OpenGL renderer"= ++ Another way: =nvidia-smi= + |