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

            Bug ID: 476866
           Summary: Spectacle turns on the discrete GPU on a multi-GPU
                    laptop on startup and uses it for recording
    Classification: Applications
           Product: Spectacle
           Version: git-master
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: noaha...@gmail.com
          Reporter: putr...@gmail.com
                CC: k...@david-redondo.de
  Target Milestone: ---

SUMMARY
I noticed that Spectacle from kdesrc-build starts significantly slower than
23.08.3 from the Arch repos. Looking at the terminal output and system logs,
the difference appears to be that Spectacle now turns on the discrete GPU of my
laptop on startup, which takes a couple of seconds if it was inactive
previously. If I make sure that the discrete GPU is on already, then Spectacle
starts about as fast as it did in 23.08.3.

In addition to slowing down startup, it uses more power as well, not only
because the discrete GPU would be woken up unnecessarily if all I wanted was to
take a screenshot, but also because if I were to pick H.264 for the hardware
encoding support the discrete GPU ends up getting used instead of the
integrated one.


STEPS TO REPRODUCE
1. Have a laptop with switchable graphics (possibly with the above mentioned
quirk?)
2. Start Spectacle

OBSERVED RESULT
It starts slower than with 23.08.3, unless I turn on the discrete GPU first by
running glxgears or whatever on it. Screen recording with the H.264 codec also
uses the discrete GPU instead of the integrated one.

EXPECTED RESULT
Spectacle starts about as fast as it did with 23.08.3, and uses the integrated
GPU for encoding if H.264 is selected.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.81.0
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Kernel Version: 6.6.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 6800H with Radeon Graphics
Memory: 30.6 GiB of RAM
Graphics Processor: AMD Radeon 680M + AMD Radeon RX 6650M
Laptop Model: HP Omen 16-n0000 (n0067AX)

ADDITIONAL INFORMATION
My system is a bit odd in that in `lspci` the discrete GPU comes before the
integrated one (the former is 03:00.0, while the latter is 09:00.0), and
/dev/dri/card0 and /dev/dri/renderD128 also both point to the discrete GPU
rather than the integrated one. Just about everything else appears to know
which one the integrated GPU is and uses that by default though (including
vainfo).

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

Reply via email to