https://bugs.kde.org/show_bug.cgi?id=481815

--- Comment #8 from Arjen Hiemstra <ahiems...@heimr.nl> ---
> It seems that the software is correctly detecting my gpu as gpu1, but giving 
> it the name GPU 2

Oh huh. That is rather odd.(In reply to Jonathan Croteau-Dicaire from comment
#6)
> I found this merge request :
> https://github.com/dylanaraps/neofetch/issues/1646 for neofetch
> One person sent this suggestion : glxinfo -B | grep -Po '(?<=^OpenGL
> renderer string: ).*(?= \(.*\)$)'
> (https://github.com/dylanaraps/neofetch/issues/1646)
> On my side, it seems to return a reasonable GPU name
> (https://github.com/dylanaraps/neofetch/issues/1646),
> but I don't like the idea of relying on the output of a command to get the
> GPU name

Yeah, we don't want to be running random tools for it, however, it might be
possible to figure out where glxinfo gets its name from and use that code
directly. Come to think of it, glxinfo just creates an OpenGL context and reads
the renderer string from that. We could actually try and do the same, or dig
into where the rendering string comes from.

One somewhat more tricky case when using renderer string is dealing with things
like the iGPU on my machine, which is just listed as "AMD Radeon Graphics". I
also seem to recall some machines end up with even worse things like "AMD Ryzen
Processor with Integrated Radeon Graphics" or somesuch, which is a little too
long.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to