I have a new Lenovo Yoga Slim 7 with an AMD Ryzen 5 6600HS processor. This processor has a Radeon 660M integrated graphics controller, and I don't have a dedicated GPU. I have several issues which I think are all or in part related to driver issues:
- High CPU usage when watching a YouTube video.
- http://webglsamples.org/aquarium/aquarium.html reaches 20FPS in Firefox (500 fish), which is already 27FPS on my much older (2015) system with an integrated HD graphics 5500 card.
- LCD backlight is fixed to the maximum.
/sys/class/backlightis empty. With the kernel settingacpi_backlight=vendorthere is a/sys/class/backlight/ideapadentry and when I try to change the backlight level the changes are registered inactual_brightnessbut there is no effect on the screen. xrandronly recognizes one mode (2880x1800 @ 91Hz), while at least a lower refresh rate should be available. Alsoxrandr"fails to get size of gamma" (see output below).lspciincorrectly recognizes the integrated GPU as Radeon 680M, this should be 660M (see output below).radeontopfails to find DRM devices and measures only zero values.glxgearshas very high framerate (thousands of FPS), not close to screen refresh rate. On my old system it says "Running synchronized to the vertical refresh" and runs at 51FPS. Perhaps this means that the system cannot determine the screen refresh rate correctly (althoughxrandrcan...).
This is a fresh install of the alpha1 release candidate for Debian Bookworm with the GNOME desktop environment. I used an ISO with non-free firmware from https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/bookworm_di_alpha1+nonfree/amd64/iso-cd, dated 20 September 2022.
I also installed firmware-amd-graphics_20210818-1_all.deb from that ISO (following https://wiki.debian.org/AtiHowTo), although I'm not sure that's the right thing to do for integrated GPUs. I had to copy the yellow_carp firmware files to /lib/firmware/amdgpu manually, following https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019847.
I don't normally deal with driver issues. How can I get the graphics to work properly?
Notes:
- The X log complains that
/dev/dri/card0/does not exist. This is correct; there is no/dev/drion my system. dmesghas no mention ofamdgpuso perhaps it is not loaded at all?- I would have expected the non-free ISO to automatically install the
amdgpudriver if needed, so the fact that I had to install it manually may also already suggest that the card is not recognized properly.
Relevant outputs (let me know if you need more):
$ lspci -nn | grep VGA
32:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] [1002:1681] (rev 03)
$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 2880 x 1800, current 2880 x 1800, maximum 2880 x 1800
default connected primary 2880x1800+0+0 0mm x 0mm
2880x1800 91.00*
$ sudo radeontop -d -
Failed to find DRM devices: error 2 (No such file or directory)
Failed to open DRM node, no VRAM support.
Dumping to -, until termination.
1676540729.241609: bus 32, gpu 0.00%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%
$ glxgears
24119 frames in 5.0 seconds = 4823.791 FPS
24445 frames in 5.0 seconds = 4888.914 FPS
Logs: