Radeon Video: Difference between revisions
(Change order of bullets: keep original "install X or Y") |
(Installing the package `linux-firmware-amdgpu` removes all the other drivers.) |
||
Line 8: | Line 8: | ||
# Install the Xorg AMD video drivers: {{Cmd|# apk add xf86-video-ati}} | # Install the Xorg AMD video drivers: {{Cmd|# apk add xf86-video-ati}} | ||
# For newer devices, use: {{Cmd|# apk add xf86-video-amdgpu}} | # For newer devices, use: {{Cmd|# apk add xf86-video-amdgpu}} | ||
# Enable [[#Kernel Modesetting (KMS)]]. Specifically, the <code>fbcon</code> module is necessary, or leaving Xorg (via <code>Ctrl+Alt+F1</code> or quitting) will result in a black screen until the machine is power cycled. If you have already launch Xorg and don't want to experience this effect, you can <code>modprobe fbcon</code> while Xorg is running. | # Enable [[#Kernel Modesetting (KMS)]]. Specifically, the <code>fbcon</code> module is necessary, or leaving Xorg (via <code>Ctrl+Alt+F1</code> or quitting) will result in a black screen until the machine is power cycled. If you have already launch Xorg and don't want to experience this effect, you can <code>modprobe fbcon</code> while Xorg is running. | ||
Revision as of 21:17, 14 January 2021
The following instructions are for modern AMD GPU chipsets covered by the radeon driver.
Setup Xorg/udev
- Run the
setup-xorg-base
script. - Install the Xorg AMD video drivers:
# apk add xf86-video-ati
- For newer devices, use:
# apk add xf86-video-amdgpu
- Enable #Kernel Modesetting (KMS). Specifically, the
fbcon
module is necessary, or leaving Xorg (viaCtrl+Alt+F1
or quitting) will result in a black screen until the machine is power cycled. If you have already launch Xorg and don't want to experience this effect, you canmodprobe fbcon
while Xorg is running.
Kernel Modesetting (KMS)
To enable KMS at boot:
- Add the
radeon
oramdgpu
andfbcon
modules to /etc/modules:$ echo radeon >> /etc/modules
or
$ echo fbcon >> /etc/modules$ echo amdgpu >> /etc/modules
$ echo fbcon >> /etc/modules - Install
mkinitfs
:apk add mkinitfs
- Enable the
kms
feature in themkinitfs
configuration by adding it to the features variable, e.g.,Contents of /etc/mkinitfs/mkinitfs.conf
features="keymap cryptsetup kms ata base ide scsi usb virtio ext4" - Run
mkinitfs
. - Reboot to test the configuration.
Troubleshooting
Fixing MESA-LOADER errors
This material is obsolete ... Alpine no longer ships with the linux-hardened kernel (Discuss) |
The linux-hardened kernel package places restrictions on sysfs and will prevent the MESA-LOADER from working as a normal user even if added to the video group.
See https://bugs.alpinelinux.org/issues/7265
Either switch to the linux-vanilla package or apply the grsec_sysfs_restrict=0 kernel parameter to allow normal users to access hardware acceleration on the desktop.
Fixing a frozen X11 when invoking startx
You may need to set the AccelMethod to exa not glamor which is the default for the driver.
Contents of /etc/X11/xorg.conf