SUMMARY Hi, After selecting /Rectangular Region/, Spectacle overlays a light background over the entire screen. With a web page with a white background and black(ish) text, the text is washed out. Any text within the rectangular region is washed out further. I'm attaching a tar-ball with annotated images: $ tar -cvf example.1.tar example.1 example.1/ example.1/01_original.jpg example.1/02_spectacle_running_b4_capture.jpg example.1/03_specactle_running_defining_area.jpg Changing /Use light background/ makes the problem worst. :( STEPS TO REPRODUCE 1. Select /Breeze Dark/ theme - just in case this is the problem. 2. Go to the test website that has a white background with dark text - https://www.npr.org 3. Start `spectacle` and select `Rectangular Region` - notice the dark text is bleached. 4. Select part of the text, notice the text in the region is washed out. OBSERVED RESULT ** This is somewhat redundant as I mentioned above what's happening. But here it is ... :) ** After selecting `Rectangular Region`, spectacle creates an overlay which bleaches the test website's dark text when the background is white. When continuing to select the region, the text in the region is washed out. EXPECTED RESULT The text should be visible when the background is white and the text is black. SOFTWARE/OS VERSIONS Linux: 6.2.12-1-default KDE Plasma Version: 5.27.4 KDE Frameworks Version: 5.105.0 Qt Version: 5.15.9 ADDITIONAL INFORMATION Thank you! :)
Created attachment 158456 [details] Before running spectacle
Created attachment 158457 [details] After selecting /Rectangular Region/ Compared to the '01_original.png', the text is washed out.
Created attachment 158458 [details] Region is further washed out When selecting the region, the text is no longer visible.
Do you have any KWin effects enabled that might also affect the color of inactive windows?
(In reply to Noah Davis from comment #4) > Do you have any KWin effects enabled that might also affect the color of > inactive windows? KWin effects/Desktop Effects (same thing, the latter is the name used in system settings)
Created attachment 158463 [details] After selecting /Rectangular Region/ option Hi Noah, Good call. I hadn't thought of that being an issue. I disabled all effects and for good measure, re-logged in. The bleaching is still there but now it's .. different.
Created attachment 158464 [details] Region is visible with all desktop effects disabled
I'm going to try to rule out my own environment by creating a vanilla Linux user. I'll incrementally add to it: 1) Vanilla 2) Disable all effects 3) Switch to dark theme I should have thought of that before submitting the bug. Sorry about that ... be right back.
Created attachment 158465 [details] Vanilla Linux user test Hi, Attached are the results of using a new, vanilla Linux user. The /with-effects/ sub-directory is the true, vanilla Linux user. The /with-no-effects/ sub-directory contains the test results with all the effects disabled. I am having to use my phone's camera to take the pictures. I try to keep it the same distance. ::: Contents ::: $ tar -vcf vanilla_Linux_user.tar vanilla_Linux_user vanilla_Linux_user/ vanilla_Linux_user/with-effects/ vanilla_Linux_user/with-effects/01_b4.png vanilla_Linux_user/with-effects/02_b4_selection.png vanilla_Linux_user/with-effects/03_selection.png vanilla_Linux_user/with-no-effects/ vanilla_Linux_user/with-no-effects/03_selection.png vanilla_Linux_user/with-no-effects/02_b4_selection.png vanilla_Linux_user/with-no-effects/01_b4.png
Created attachment 158466 [details] rectangle selection for me Does this image also look washed out to you? Making sure it's not a screen issue.
Created attachment 158467 [details] rectangle selection for me with light background
Thank you for your test results. The biggest difference I see is that in your example, I can see the spectacle controls. In my case, they're white-ish which makes them extremely difficult to discern. Is it possibly a GPU issue? This rig is an Optimus Nvidia laptop. I have it set in /Offset/ mode. The primary GPU is the iGPU, Intel. What OS are you using? Perhaps I can stand up a VM to run a quick test. I'm open to any ideas to test things out.
Would you mind running a test that includes the /KDE System Settings/ in /Icon View/? Specifically, do the icons blanch after selecting the /Capture Mode/ > /Rectangular Region/? Thx a bundle!
(In reply to pablo from comment #12) > Thank you for your test results. > > The biggest difference I see is that in your example, I can see the > spectacle controls. In my case, they're white-ish which makes them > extremely difficult to discern. > > Is it possibly a GPU issue? This rig is an Optimus Nvidia laptop. I have > it set in /Offset/ mode. The primary GPU is the iGPU, Intel. > > What OS are you using? Perhaps I can stand up a VM to run a quick test. > > I'm open to any ideas to test things out. Operating System: openSUSE Tumbleweed 20230422 KDE Plasma Version: 5.27.4 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Kernel Version: 6.2.12-1-default (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics Memory: 30.8 GiB of RAM Graphics Processor: AMD Radeon Graphics Manufacturer: Eluktronics Product Name: THINN-15 (In reply to pablo from comment #13) > Would you mind running a test that includes the /KDE System Settings/ in > /Icon View/? Specifically, do the icons blanch after selecting the /Capture > Mode/ > /Rectangular Region/? > > Thx a bundle! They do not.
Created attachment 158470 [details] Apply effects to inactive windows Do you have "Apply effects to inactive windows" enabled in your color scheme?
Created attachment 158472 [details] Mucho better! Hi Noah, Thank you so much for your help! I've figured it out. It's my Nvidia Optimus setting. When I force `spectacle` to run on my Nvidia card, it's all good - see the attached blurry picture. Here's a shell script that I cobbled together to run applications on my dGPU: ::: run_on_nvidia ::: #!/bin/bash # # Run GPU intensive applications via our Nvidia card # export __NV_PRIME_RENDER_OFFLOAD=1 export __VK_LAYER_NV_optimus="NVIDIA_only" export __NV_PRIME_RENDER_OFFLOAD_PROVIDER="NVIDIA-G0" export __GLX_VENDOR_LIBRARY_NAME="nvidia" exec "$@" # Never reached exit 0
If you're okay with it, I'd like to close this defect as RESOLVED.
> It's my Nvidia Optimus setting. When I force `spectacle` to run on my Nvidia card, it's all good - see the attached blurry picture. So you have to use Nvidia for Spectacle to work right? Ouch.
Marked as RESOLVED at the request of the bug reporter. I marked it UPSTREAM because the bug seems to be a graphics driver issue.
(In reply to Noah Davis from comment #18) > > It's my Nvidia Optimus setting. When I force `spectacle` to run on my Nvidia card, it's all good - see the attached blurry picture. > > So you have to use Nvidia for Spectacle to work right? That's right. For unknown reasons, the Intel iGPU is unhappy. Which is very funky. I too am on openSUSE TW. I may dig into this issue as time permits. > Ouch. Not sure why there's an ouch. It's Linux. There are always edge cases that we work-around. :)
I used to use an Nvidia optimus laptop and trying to do things with the Nvidia card, especially after kernel updates, was always such a pain.
(In reply to Noah Davis from comment #21) > I used to use an Nvidia optimus laptop and trying to do things with the > Nvidia card, especially after kernel updates, was always such a pain. FWIW, which isn't much as in it's only one data point, this is the first time I've had an issue. It took a bit of research to get the right environment variables to offload. Once sorted though, it's been steady. Except for this bugger of an issue. :) Again, thank you so much for helping me out. I truly appreciate it!
*** Bug 469153 has been marked as a duplicate of this bug. ***
*** Bug 470052 has been marked as a duplicate of this bug. ***
I'm going to reopen this just so it's easier for people to find since it's an ongoing issue that keeps getting duplicate bug reports. I still think this is some kind of driver issue and likely not an issue that can be fixed in Spectacle.
While I see in Bug 470052 the problem is reported against version 24.04.1 of spectacle, I no longer have the issue.
Hi Noah, It looks like my test yesterday was wrong. The problem still exists unless I use my Nvidia card.
I don't know if it is useful to say that it is not related to a driver issue, in the same laptop I tried with another user and the problem did not happen. from this forum: https://forums.opensuse.org/t/spectacle-fade-screen-how-to-get-rid/166360/14 a user confirm the problem and says that disabling the compositor resolve the problem, I will try too and will report here
(In reply to pier andre from comment #28) > I don't know if it is useful to say that it is not related to a driver > issue, in the same laptop I tried with another user and the problem did not > happen. Hi Pier, To confirm, you are saying that you created a new vanilla, Linux User spectacle works but it does not work with your existing user? Both using say X11 or Wayland? What graphic card(s) do you have? Below is my set up: $ inxi -G Graphics: Device-1: Intel CometLake-H GT2 [UHD Graphics] driver: i915 v: kernel Device-2: NVIDIA TU106M [GeForce RTX 2060 Max-Q] driver: nvidia v: 525.116.04 Device-3: Realtek Integrated_Webcam_HD driver: uvcvideo type: USB Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1 driver: X: loaded: modesetting,nvidia dri: iris gpu: i915 resolution: 1: 2560x1440~60Hz 2: N/A API: OpenGL v: 4.6 Mesa 23.0.3 renderer: Mesa Intel UHD Graphics (CML GT2)
*** Bug 470133 has been marked as a duplicate of this bug. ***
Graphics: Device-1: Intel HD Graphics P630 driver: i915 v: kernel Device-2: NVIDIA GP104GLM [Quadro P4000 Mobile] driver: N/A Device-3: Lite-On HP HD Camera driver: uvcvideo type: USB Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1 driver: X: loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 resolution: 1920x1080~60Hz API: OpenGL v: 4.6 Mesa 23.0.3 renderer: Mesa Intel HD Graphics P630 (KBL Operating System: openSUSE Tumbleweed 20230522 KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Kernel Version: 6.3.2-1-default (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Xeon® CPU E3-1535M v6 @ 3.10GHz Memory: 62.2 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics P630 Manufacturer: HP Product Name: HP ZBook 17 G4
Graphics: Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel Device-2: Chicony HP HD Camera driver: uvcvideo type: USB Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1 driver: X: loaded: modesetting dri: iris gpu: i915 resolution: 1: 2560x1440~60Hz 2: 1920x1080~60Hz API: OpenGL v: 4.6 Mesa 23.0.3 renderer: Mesa Intel UHD Graphics 630 (CFL GT2) Operating System: openSUSE Tumbleweed 20230521 KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Kernel Version: 6.3.1-2-default (64-bit) Graphics Platform: X11 Processors: 12 × Intel® Core™ i7-9850H CPU @ 2.60GHz Memory: 125.1 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 630 Manufacturer: HP Product Name: HP ZBook 17 G6
(In reply to jonzn4SUSE from comment #31) > Graphics: > Device-1: Intel HD Graphics P630 driver: i915 v: kernel > Device-2: NVIDIA GP104GLM [Quadro P4000 Mobile] driver: N/A Have you tried forcing spectacle to run on the Nvidia card? Please see comment #16
Created attachment 159196 [details] spectacle nipoti seems to work
Created attachment 159197 [details] spectacle nipoti faded
I used an old user rarely used and a vanilla new user and I DO NOT confirm that spectacle works, at first attempt it seems that was working but I tried only with desktop as background https://bugs.kde.org/attachment.cgi?id=159196 , to answer to you I tried with a white window of kwrite and it shows me that it doesnt works, the fading is still there https://bugs.kde.org/attachment.cgi?id=159197 user where spectacle doesn't works: pla@pla4-TW:~> loginctl show-session `loginctl|grep pla|awk '{print $1}'` -p Type Type=x11 pla@pla4-TW:~> inxi -G Graphics: Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] driver: i915 v: kernel Device-2: Chicony Chicony USB2.0 Camera type: USB driver: uvcvideo Display: x11 server: X.Org 1.20.3 driver: loaded: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 21.2.4 pla@pla4-TW:~> user wher spectacle seemed to work but don't works: nipoti@pla4-TW:~> inxi -G Graphics: Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] driver: i915 v: kernel Device-2: Chicony Chicony USB2.0 Camera type: USB driver: uvcvideo Display: x11 server: X.Org 1.20.3 driver: loaded: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 21.2.4 nipoti@pla4-TW:~>
I have the same problem in x11, but in wayland it works correctly.
(In reply to Stephan from comment #37) > I have the same problem in x11, but in wayland it works correctly. Same for me. Graphics: Device-1: Intel HD Graphics P630 driver: i915 v: kernel Device-2: NVIDIA GP104GLM [Quadro P4000 Mobile] driver: N/A Device-3: Lite-On HP HD Camera driver: uvcvideo type: USB Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1 driver: X: loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 resolution: 1920x1080~60Hz API: OpenGL v: 4.6 Mesa 23.0.3 renderer: Mesa Intel HD Graphics P630 (KBL GT2) Operating System: openSUSE Tumbleweed 20230522 KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Kernel Version: 6.3.2-1-default (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Xeon® CPU E3-1535M v6 @ 3.10GHz Memory: 62.2 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics P630 Manufacturer: HP Product Name: HP ZBook 17 G4
(In reply to pablo from comment #33) > (In reply to jonzn4SUSE from comment #31) > > Graphics: > > Device-1: Intel HD Graphics P630 driver: i915 v: kernel > > Device-2: NVIDIA GP104GLM [Quadro P4000 Mobile] driver: N/A > > Have you tried forcing spectacle to run on the Nvidia card? Please see > comment #16 Still have the issue. Did I need to log out or reboot after running?
(In reply to jonzn4SUSE from comment #39) > (In reply to pablo from comment #33) > > (In reply to jonzn4SUSE from comment #31) > > > Graphics: > > > Device-1: Intel HD Graphics P630 driver: i915 v: kernel > > > Device-2: NVIDIA GP104GLM [Quadro P4000 Mobile] driver: N/A > > > > Have you tried forcing spectacle to run on the Nvidia card? Please see > > comment #16 > > Still have the issue. Did I need to log out or reboot after running? Hi, With my dual GPU laptop using openSUSE Tumbleweed, I use /prime-select/ to offload the graphics to my Nvidia card - see https://en.opensuse.org/SDB:NVIDIA_SUSE_Prime
Here is my other laptop with the issue. Graphics: Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel Device-2: Chicony HP HD Camera driver: uvcvideo type: USB Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1 driver: X: loaded: modesetting dri: iris gpu: i915 resolution: 1: 2560x1440~60Hz 2: 1920x1080~60Hz API: OpenGL v: 4.6 Mesa 23.0.3 renderer: Mesa Intel UHD Graphics 630 (CFL GT2) Operating System: openSUSE Tumbleweed 20230521 KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Kernel Version: 6.3.1-2-default (64-bit) Graphics Platform: X11 Processors: 12 × Intel® Core™ i7-9850H CPU @ 2.60GHz Memory: 125.1 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 630 Manufacturer: HP Product Name: HP ZBook 17 G6 I have also tried a 2nd user and still have the issue on this machine, but it works for all users in Wayland.
(In reply to jonzn4SUSE from comment #41) > Here is my other laptop with the issue. > > [ snipped ] > > I have also tried a 2nd user and still have the issue on this machine, but > it works for all users in Wayland. The above is a very interesting (at least to me) data point. It would not suggest a graphics driver issue. However, this technology stack is not my area of expertise.
Created attachment 159258 [details] nvidia drivers installed Just installed updated version Spectacle version 23.04.1 and still have the issue with or without nvidia drivers installed.
Created attachment 159259 [details] no drivers installed No drivers installed and still have issue.
(In reply to jonzn4SUSE from comment #43) > Created attachment 159258 [details] > nvidia drivers installed > > Just installed updated version Spectacle version 23.04.1 and still have the > issue with or without nvidia drivers installed. My initial thinking was not that there was an issue with the Nvidia driver but in my case, my Intel driver. I thought this because my work-around is to force spectacle to use my Nvidia card, not my (current) default Intel.
Driver was mention in this bug. https://bugs.kde.org/show_bug.cgi?id=469153
I just noticed that if Spectacle is set to use last-used capture mode when opened (Rectangular Region for me), the screen is not bleached.
I can confirm the behaviour described by "jonzn4SUSE" on my system > Kernel: 6.4.8-1-default arch: x86_64 bits: 64 > Desktop: KDE Plasma v: 5.27.7 Distro: openSUSE Tumbleweed 20230807 > CPU: Intel Core i7-7700T > > Device-1: Intel HD Graphics 630 driver: i915 v: kernel > Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2 driver: X: > loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 > resolution: 1: 1920x1080~60Hz 2: 1920x1080~60Hz > API: OpenGL v: 4.6 Mesa 23.1.5 renderer: Mesa Intel HD Graphics 630 (KBL GT2)
Switching the Qt Quick scenegraph backend to the QSGRendererInterface::Software fixes the issue for me: > QQuickWindow::setSceneGraphBackend(QSGRendererInterface::Software)
It's also possible to specify the backend to be used via the command line: > $ QT_QUICK_BACKEND=software spectacle You can add this to the Spectacle's desktop file.
I'm actually having a somewhat opposite issue with Spectacle, but I'm wondering if it's somehow related to this, so I'm commenting here instead of creating a new ticket. In my perception, screenshots taken with Spectacle increases the contrast of what is actually displayed on screen. It's not just in the screenshot itself, activating rectangle select mode slightly lowers the contrast ratio on all screens, until a screenshot is taken and the Spectacle process has terminated. To demonstrate, I'm going to add two images taken in Final Fantasy 14. The first one is taken using the in-game screenshot tool, the second is with Spectacle (capture single monitor mode), notice how the screenshot taken with Spectacle is noticeably darker in some areas, especially the darker areas.
Created attachment 164413 [details] Final Fantasy 14 screenshot taken with the in-game screenshot tool
Created attachment 164414 [details] Final Fantasy 14 screenshot taken with Spectacle which is darker
Just reproduced this on Neon unstable. I'm on an AMD Radeon RX 6700 XT, Wayland session. The issue persists with QT_QUICK_BACKEND=software, for what it's worth.
Just tried in the X11 session, and I can't reproduce there.
(In reply to A. R. Kristiansen from comment #55) > Just tried in the X11 session, and I can't reproduce there. Hi, Thanks for your experiments. I'd suggest opening a separate bug under Wayland as what you're experiencing is different than this defect. Which, for me, I haven't experienced in a long time.
Ok, will do. Thank you for the advice =)
Operating System: openSUSE Leap 15.6 KDE Plasma Version: 5.27.11 KDE Frameworks Version: 5.115.0 Qt Version: 5.15.12 Kernel Version: 6.4.0-150600.12-default (64-bit) Graphics Platform: X11 Processors: 12 × Intel® Xeon® E-2186M CPU @ 2.90GHz Graphics Processor: Mesa Intel® UHD Graphics P630 / Nvidia Quadro P3200 Product Name: Precision 7530 Spectacle: 23.08.5 I have the same issue, Spectacle GUI becomes transparent when selecting rectangular screenshot mode. The bug is present on Intel iGPU, if you disable composer, the problem disappears. Everything is also in order on Nvidia dGPU. Spectacle 24.02.1 on Plasma 6.0.3 and X11 does not have this issue.
Just FYI .. my issue is no longer a problem with: o KDE Plasma 6.0.3 o Frameworks: 6.0.0 o Qt Version: 6.7.0 o Graphics Platform: X11 My iGPU is Intel. I'm not sure whether to close this bug based on the comments of others.
Thanks a lot for following up! Other people affected, can you also confirm that it's fixed now in Plasma 6 with Spectacle 24.02?
(In reply to Nate Graham from comment #60) > Thanks a lot for following up! Other people affected, can you also confirm > that it's fixed now in Plasma 6 with Spectacle 24.02? I can confirm that the problem is fixed with Spectacle 24.02 (on X11).
Wonderful news!
But what should users of LTS distributions like Kubuntu or openSUSE Leap do? There is no version of Spectacle in the flatpak. Where is this fix so that it can be backported?
Ideally, LTS distro packagers would be available to answer that question, figure out what fixed it, and backport it. Realistically, this is probably not going to happen because even if resources were available for this, it's quite possible the fix was related to the Qt6 port, which definitely can't be backported alone. So for people using LTS distros, the actual answer is likely closer to "wait for a while, or switch distros."