Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Apr 2023 17:07:58 +0200
From:      Guido Falsi <mad@madpilot.net>
To:        antony.haines@googlemail.com, freebsd-x11@FreeBSD.org
Subject:   Re: Very Slow Graphics with KDE Plasma
Message-ID:  <7504fe31-558e-203f-f097-61a4f68bac00@madpilot.net>
In-Reply-To: <004b01d967ca$1b024a90$5106dfb0$@googlemail.com>
References:  <000001d967af$b131a9e0$1394fda0$@googlemail.com> <004b01d967ca$1b024a90$5106dfb0$@googlemail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05/04/23 16:22, antony.haines@googlemail.com wrote:
> Hi,
> 
> I am trying to get the KDE Plasma Desktop running, on X windows.  
> Everything is working, but it is running very very slow.
> 
> I have tried all sorts of driver configs, with no luck.  I have searched 
> the forums and wiki’s etc, also no luck.
> 
> The laptop that I have has an AMD Ryzen 7 CPU with built in AMD Radeon™ 
> Graphics GPU, and a dedicated NVIDIA® GeForce RTX™ 3060 Laptop GPU.
> 
> It seems that there may a conflict between the two GPU’s. The GPU that 
> should be being used is the NVIDIA® GeForce RTX™ 3060 Laptop GPU.
> 

Looks like your laptop is an "optimus" technology (may or may not be 
clearly documented in the marketing material).

If that's not the case, I really don't know what is going on with your 
laptop. But a cursory google search tends to confirm this.

My old laptop used this tech. It means that the external GPU is not 
really connected to the video output, but can be used to draw to a 
framebuffer and the the main GPU sends that to the video. Specific 
software support is required for that, and is not available by default 
in Xorg.

So, I'd add, laptops with this tech should be avoided if one intends to 
use anything except windows with the official drivers on them.

If that's the case you need first to provide a driver for your amd GPU, 
if supported, instructions at:

https://docs.freebsd.org/en/books/handbook/x11/#x-configuration-amd

then you can try to use x11/nvidia-hybrid-graphics from ports, which is 
a driver allowing a specific application to run using the nvidia GPU. I 
never really tried it, so I can't give suggestions about it.

Please note, that, if your laptop uses optimus, this is exactly the same 
thing the official driver does, use the AMD GPU  for desktop and normal 
programs, and offload graphic intensive programs to the discrete nvidia 
GPU. I have no idea how it chooses wen to use one or the other though.

> I have captured the data as required when asking for your help.
> 
>  1. dmesg command output – Attached dmesg.txt
>  2. pciconf -lvbce command output – Attached pciconf.txt
>  3. devinfo -vr command output – Attached devinfo.txt
>  4. sysctl hw.model – Attached sysctl.txt
>  5. pkg info command output – Attached pkg.txt
>  6. Contents of xorg.conf file (and included sub-files, if any) – There
>     is no xorg.conf file
>  7. Contents of Xorg.log (if the problem is at X.Org startup or during
>     your X session) – I couldn’t find a Xorg.log file

This would be useful to discover with which graphics you are running.

Since you have an optimus laptop my supect is that not having configured 
any driver for the integrated AMD GPU you're falling back to the simple 
framebuffer, which is terribly slow.

Your Xorg.log file could be helpful.

How are you starting X? using startx from command line or a display manager?

Anyway check for /var/log/Xorg.0.log

-- 
Guido Falsi <mad@madpilot.net>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7504fe31-558e-203f-f097-61a4f68bac00>