Graphics
5.1
Which graphics chips work on SliTaz 5.1, how the X driver is chosen,
and what to do when the desktop does not show up. The Handbook says
the essentials in
Screen, keyboard layout and Xorg;
the files of /etc/X11 are explained in Xorg.
Two drivers, and no 3D
The picture goes through two drivers:
- a kernel driver (KMS), from the
linux-lts-gpupackage, which the desktop ISOs install:i915for Intel,amdgpuandradeonfor AMD,nouveaufor NVIDIA, plus the virtual cards of QEMU, VirtualBox and VMware (bochs,cirrus-qemu,virtio-gpu,vmwgfx) and a few server chips (ast,mgag200). The old Intel GMA 500 of Atom netbooks hasgma500, in the kernel package. Many chips also need a firmware package; - an X driver, for Xorg 1.12.4: on the ISOs,
modesettingon top of a kernel driver,fbdevon the framebuffer of the firmware, andvesathrough the video BIOS.
SliTaz 5.1 has no OpenGL hardware acceleration: the desktop and videos are drawn without it, but 3D games and effects run in software, slowly. It is a known issue of 5.1, due to its old Xorg.
How the X driver is chosen
Each time the login manager starts, tazx video looks at the hardware
and writes /etc/X11/xorg.conf.d/20-Video.conf:
- a kernel driver drives a PCI card:
modesetting, with an optionkmsdevthat names the card the firmware booted on (/dev/dri/card0most of the time); - no kernel driver, but the framebuffer of UEFI (EFI VGA) or of the
BIOS (VESA VGA):
fbdev; - neither: no file, and Xorg picks
vesaby itself.
See what was chosen, and which driver the kernel uses, as a normal user:
$ cat /etc/X11/xorg.conf.d/20-Video.conf
$ trame hardware summary
$ grep -E 'modeset\(0\)|FBDEV\(0\)|VESA\(0\)' /var/log/Xorg.0.log | head
The Graphics line of trame hardware summary names the chip and its
kernel driver between brackets.
Choosing another driver
tazx video leaves the file alone when its first line is not the
# Generated by tazx video at boot it writes, or when another file
has a Device section. To force fbdev, for example, replace the
content of 20-Video.conf, as root:
# Forced by hand: fbdev
Section "Device"
Identifier "Video0"
Driver "fbdev"
EndSection
Delete the file to go back to the automatic choice. Other X drivers are
packaged (xorg-xf86-video-intel, -ati, -nouveau and older ones),
from the time of Xorg 1.12; tazx video never chooses them and they
were not tested on 5.1.
Intel
i915 drives Intel graphics from the GMA chips of the 2000s to the Iris Xe of
recent laptops and the Arc A-series cards, with modesetting in X.
Install firmware-i915 when the kernel says it misses a file (power
saving of the screen, and the Arc cards, which need it):
$ dmesg | grep -i -E 'i915.*firmware|i915/'
# spk-add firmware-i915
The newest chips that only the xe driver knows (Intel Lunar Lake,
Arc B-series) have no kernel driver on 5.1: X runs on fbdev, at the
resolution the firmware set.
AMD
- amdgpu: the Radeon cards from the RX 400 series on, the R9 285
and 380, and the graphics of Ryzen processors. x86_64 only. It needs
its firmware or the screen stays black: the x86_64 desktop ISOs
carry
firmware-amdgpu-phoenix(Radeon 740M to 780M) andfirmware-amdgpu-renoir(Ryzen 4000, Radeon Vega). For any other chip, installfirmware-amdgpu, all the amdgpu files (a 20 MB download, about 105 MB installed). - radeon: the older cards and APUs, up to the Radeon HD 7000 and
most R7 and R9 200 cards, on both architectures. Their firmware,
firmware-radeon, is on the desktop ISOs.
On a machine with an AMD chip and a black screen after the boot menu,
boot with nomodeset (see below), install the firmware, reboot:
# spk-add firmware-amdgpu
NVIDIA
nouveau, the free driver, gives a picture on most GeForce cards, with
modesetting in X. No SliTaz package has the NVIDIA firmware files
that nouveau loads for the recent generations: on those cards the
display can stay basic, or nouveau can fail. Then keep it off with the
boot option nouveau.modeset=0: X runs on fbdev (UEFI) or vesa
(BIOS).
There is no NVIDIA proprietary driver for SliTaz 5.1: the current
ones need a newer Xorg than 1.12.4. The nvidia-173xx package of the
i486 mirror is made for the Linux 3.16 kernel of Core Retro only.
Optimus and hybrid graphics
Many laptops have two chips: an Intel or AMD one built into the
processor, which drives the screen, and an NVIDIA or AMD card for 3D.
Xorg 1.12 cannot hand work over from one to the other (no PRIME): on
SliTaz 5.1 the built-in chip does everything and the second card stays
unused. tazx video names the card the firmware booted on in
kmsdev, which is the built-in one.
When X still does not start on such a laptop ("Screen(s) found, but
none have a usable configuration" in /var/log/Xorg.0.log), keep
nouveau off with nouveau.modeset=0. Without nouveau, the NVIDIA chip
may also stay powered and use more battery.
Boot options
At the boot menu, edit the entry and add the option at the end of the
kernel line: in GRUB (installed systems, x86_64 ISOs), press e and
go to the line that starts with linux; in the ISOLINUX menu of the
i486 ISOs, press Tab. Useful options:
nomodeset: no kernel graphics driver at all; X runs onfbdevorvesa. The way in when the screen goes black after the boot menu;nouveau.modeset=0: only nouveau is kept off, the Intel or AMD chip still has its driver;video=1024x768-32: the mode of the screen at boot (see the boot options).
On an installed system, to keep an option, add it to the linux lines
of /boot/grub/grub.cfg. A kernel upgrade keeps the options there.
Troubleshooting
Black screen after the boot menu: boot with nomodeset. If the
desktop comes, the kernel driver is the problem: often a missing
firmware, see dmesg | grep -i firmware.
The desktop does not start, a text login shows up: read the end of the X log and the messages of the login manager:
$ grep -E '\(EE\)' /var/log/Xorg.0.log
$ tail /var/log/lxtaz-dm.log
The Handbook explains how to repair
a desktop that no longer starts with reprise.
Wrong resolution: with fbdev or vesa the choice is limited to
what the firmware offers. With modesetting, set it with
trame display, see the Handbook.
Links
- Handbook: Screen, keyboard layout and Xorg, Kernel and firmware, Boot options.
- Xorg: the files of
/etc/X11/xorg.conf.d. - Machines: laptops and mini PCs tested with SliTaz, and their graphics.
- Virtual machines: the display in QEMU and VirtualBox.