documentation/docs/void-desktop-setup/Firmware-and-drivers.md

86 lines
1.7 KiB
Markdown
Raw Normal View History

2023-08-25 17:44:30 +02:00
# Firmware and drivers
## GPU drivers
2023-08-16 22:09:10 +02:00
It is necessary for a graphical enviroment to install GPU drivers. To install the drivers for your GPU use one of the following commands:
2023-08-25 17:44:30 +02:00
### For Intel
2023-08-16 22:09:10 +02:00
```
# xbps-install -Sy linux-firmware-intel mesa mesa-dri vulkan-loader mesa-vulkan-intel intel-video-accel
```
2023-08-25 17:44:30 +02:00
### For AMD
2023-08-16 22:09:10 +02:00
```
# xbps-install -Sy linux-firmware-amd vulkan-loader mesa-vulkan-radeon amdvlk xf86-video-amdgpu mesa-vaapi mesa-vdpau mesa-dri
```
2023-08-25 17:44:30 +02:00
### For Nvidia (*glibc only*)
2023-08-16 22:09:10 +02:00
```
# xbps-install -Sy nvidia nvidia-opencl
```
2023-08-25 17:44:30 +02:00
### 32-bit drivers
2023-08-16 22:09:10 +02:00
(Only applicable to glibc as Void Linux musl only supports 64-bit)
To run 32-bit applications like some videogames it will also be necessary to install the 32-bit drivers:
2023-08-25 17:44:30 +02:00
#### For Intel
2023-08-16 22:09:10 +02:00
```
# xbps-install -Sy mesa-32bit mesa-dri-32bit mesa-vulkan-intel-32bit vulkan-loader-32bit
```
2023-08-25 17:44:30 +02:00
#### For AMD
2023-08-16 22:09:10 +02:00
```
# xbps-install -Sy vulkan-loader-32bit amdvlk-32bit mesa-32bit mesa-dri-32bit
```
2023-08-25 17:44:30 +02:00
#### For Nvidia
2023-08-16 22:09:10 +02:00
```
# xbps-install -Sy nvidia-libs-32bit
```
2023-08-25 17:44:30 +02:00
## CPU firmware
2023-08-16 22:09:10 +02:00
To keep the firmware of your CPU up to date it is necessary to install the correct microcode:
2023-08-25 17:44:30 +02:00
### For Intel
2023-08-16 22:09:10 +02:00
(The Intel microcode requires that you are using the nonfree repository)
```
# xbps-install -Sy intel-ucode
```
And regenerate the initramfs:
```
# xbps-reconfigure -f linux<version>
```
2023-08-25 17:44:30 +02:00
### For AMD
2023-08-16 22:09:10 +02:00
```
# xbps-install -Sy linux-firmware-amd
```
2023-08-25 17:44:30 +02:00
## Nvidia and wayland
2023-08-16 22:09:10 +02:00
For Nvidia to work correctly with Wayfire you'll have to add the boot parameter to `/boot/loader/void-options.conf`.
```
nvidia-drm.modeset=1
```
And reconfigure the kernel:
```
# xbps-reconfigure -f linux<version>
2023-08-16 23:13:16 +02:00
```