hyprpicker icon indicating copy to clipboard operation
hyprpicker copied to clipboard

Black screen upon running command in terminal

Open ModestTom opened this issue 2 years ago • 7 comments

System: Arch + Hyprland Ryzen 5 6600H RTX 3050 ti

Issue: When running the command the output is, [WARN] 24 bit formats are unsupported, hyprpicker may or may not work as intended! #000000 If I keep my cursor completely still and navigate via keyboard, the screen does not go black. As soon as I start moving my cursor, the screen blacks out. Since my screen goes entirely black after launching, I can only click on the black of the screen, resulting in the hex code above. My cursor also changes to the xwayland default cursor while the program is running. Nothing crashes. As soon as I either "ESC" or click on the black screen, the program finishes. Thanks for the great WM, hope I can make use of the colorpicker as well.

Version: I tried the current AUR package (r8.0fc1134-1) and compiled main with latest commit. Both having the same exact issue and output in terminal.

ModestTom avatar May 11 '23 13:05 ModestTom

probably the nvidia fix that was once merged stopped working.

vaxerski avatar May 12 '23 00:05 vaxerski

Do you know what commit had this fix working? I will happily just compile that as long as it's functional.

ModestTom avatar May 12 '23 12:05 ModestTom

Setting monitor bit depth to 10 has resolved blackscreen issue. Not a desired solution for sure, so in case there is a plan to take another look at the 24 bit depth buffer I will leave this open. Otherwise, feel free to close.

ModestTom avatar May 12 '23 19:05 ModestTom

234c2da51a71941c0cd2ee380f42de365f90dd6f had it working

vaxerski avatar May 14 '23 12:05 vaxerski

Thank you but, unless I didn't revert the branch correctly, this compiled version still doesn't support 24 bit. I was keeping bitdepth set to 10 for this but that is no longer working now. There hasn't been a driver update in the time frame that it stopped working.

ModestTom avatar May 19 '23 16:05 ModestTom

@ModestTom

I had this exact same Issue using nvidia card. However it did not seem to be a problem exclusive to hyprpicker, because the same problem happened with grim. All screenshots taken with grim were completely black.

Interestingly, after updating the system (mainly hyprland, wlroots and nvidia drivers), both grim and hyprpicker started working. Maybe more interestingly, is that after the update, the warning [WARN] 24 bit formats are unsupported, hyprpicker may or may not work as intended! stopped showing. So I can't say that it is working with 24-Bit format, but the problem was gone.

System: Gentoo + Hyprland AMD Ryzen 5 1600 Six-Core Processor NVIDIA GeForce GTX 1060 3GB

Versions: x11-drivers/nvidia-drivers-525.116.04::gentoo gui-apps/hyprpicker-0.1.0-r1::guru dev-libs/hyprland-protocols-0.2::guru gui-wm/hyprland-0.25.0::gentoo gui-libs/wlroots-0.16.2::gentoo gui-libs/xdg-desktop-portal-hyprland-0.3.1::guru

rondao avatar May 25 '23 21:05 rondao

It's actually an nvidia bug: https://forums.developer.nvidia.com/t/530-41-03-external-monitor-stays-frozen-until-i-move-my-mouse/247244/1

Patch will be available in the next release. For now @ModestTom, you can add bitdepth,10 in your monitor configuration as a workaround. Or, alternatively, downgrade to 525.89.02-2

This also fixes the black screenshots problem.

i0dk1 avatar Jul 06 '23 16:07 i0dk1