From nobody Wed Apr 5 15:07:58 2023 X-Original-To: freebsd-x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ps7L20kTfz43cRx for ; Wed, 5 Apr 2023 15:08:10 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (vogon.madpilot.net [159.69.1.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ps7L02wHdz3qfR for ; Wed, 5 Apr 2023 15:08:08 +0000 (UTC) (envelope-from mad@madpilot.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=madpilot.net header.s=bjowvop61wgh header.b="H skUTct"; spf=pass (mx1.freebsd.org: domain of mad@madpilot.net designates 159.69.1.99 as permitted sender) smtp.mailfrom=mad@madpilot.net; dmarc=pass (policy=quarantine) header.from=madpilot.net Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 4Ps7Ks3cCYz6jZX; Wed, 5 Apr 2023 17:08:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :subject:subject:from:from:references:content-language:date:date :message-id:received; s=bjowvop61wgh; t=1680707279; x= 1682521680; bh=NCG6CBUzqRhdHvNajWkprQCzOZy9OiBnsT2NEcpGy+4=; b=H skUTcth51XYZzxmeBNCjz9KSeVDCKmSdKi3A+vf5WPgvHtS/PhsAbPvCgL/SmFoU vAxwMYEYYRX5neetINBqc3se4VBAjoMU4mqLWgJnEVCJ1FHRx+hh7tWZoC+7dY9G TVLNaeCdBS3ocGbIPwbpZXdvHKjh/NX9vs+uA5IEF7onfzLuQVATPgxAjhdkL6tR pLiodYOb3DFSQ3It2wZK2+SkMBUDbSCezUrWSKuu1IX+73l9XpD005dP/7dj5MnO ZrzkzVKRc3E8bfTT8RivETlXf+Htezq9Qn8mugfI3ae9CZftlomXm0aGCj9VbzgX nwZRI/P6/hIqeCYT/ikDw== Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10026) with ESMTP id KzubIqeM-2yx; Wed, 5 Apr 2023 17:07:59 +0200 (CEST) Message-ID: <7504fe31-558e-203f-f097-61a4f68bac00@madpilot.net> Date: Wed, 5 Apr 2023 17:07:58 +0200 Content-Language: en-US To: antony.haines@googlemail.com, freebsd-x11@FreeBSD.org References: <000001d967af$b131a9e0$1394fda0$@googlemail.com> <004b01d967ca$1b024a90$5106dfb0$@googlemail.com> From: Guido Falsi Subject: Re: Very Slow Graphics with KDE Plasma In-Reply-To: <004b01d967ca$1b024a90$5106dfb0$@googlemail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.00 / 15.00]; MISSING_MIME_VERSION(2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[madpilot.net,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[madpilot.net:s=bjowvop61wgh]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[googlemail.com,FreeBSD.org]; MLMMJ_DEST(0.00)[freebsd-x11@FreeBSD.org]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[madpilot.net:+]; TAGGED_RCPT(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_NONE(0.00)[]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4Ps7L02wHdz3qfR X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org 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