Back to home page
Back to linux room

Void guide

Table of Contents

1. Void linux

A little while back I switched from arch to void because I wanted a systemd-less distro, I wanted to use something a bit closer to old school unix after playing around with BSD a lot more, and a few peeps I know use void.

Check out the void handbook and this epic blog post (:

2. Installing

I decided to go with the glibc version of void. For the installer I use the base image. While I do use xfce anyways the xfce iso also installs network manager which I dont use or even want on my system. Want me to walk you through it? Just read the docs you lazy fuck!

3. After installing

Many say the handbook is very lacking and compared to arch it is but a giant wiki isnt what the void handbook is or tries to be. The void handbook is great for casually reading through and has many helpful resources and if you need more depth search for it on the arch wiki :D

Some useful things:

4. Laptop brightness issue

On void some laptops will not save their previous brightness after boot. To fix that first install 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

5. Packages

Like most small distros that arent forks, void linux doesnt have a whole lot of packages in its repos. It still has most of the packages you will ever need but for times when it doesnt making xbps packages is quite easy. Who needs 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 on my git.

6. Nvidia drivers

A lot can change depending on many things and everything I say has only been tested on my machine. Check out void nvidia docs.

6.1. Install packages

xbps-install -Su
xbps-install nvidia nvidia-libs-32bit

6.2. Setup xorg config

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

6.3. Setup lightdm for nvidia

Follow a guide found here to setup lightdm for nvidia.
NVIDIA-0 often isnt correct so run xrandr --listproviders to find the correct one.

6.4. Multi Monitor

Add these to your /etc/environment

CLUTTER_DEFAULT_FPS=<refresh rate of your sync monitor>
__GL_SYNC_DISPLAY_DEVICE=<monitor to sync to>

Then open your nvidia settings, go to OpenGL Settings and turn off "Allow Flipping".

6.5. Settings loading

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.

6.6. Checking nvidia drivers

  • My prefered way:
    xbps-install glxinfo
    glxinfo | grep -E "OpenGL vendor|OpenGL renderer"
  • Another way: nvidia-smi

NSW