hyprwm / hyprpicker

A wlroots-compatible Wayland color picker that does not suck.
BSD 3-Clause "New" or "Revised" License
670 stars 30 forks source link

Black screen upon running command in terminal #34

Open ModestTom opened 1 year ago

ModestTom commented 1 year ago

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.

vaxerski commented 1 year ago

probably the nvidia fix that was once merged stopped working.

ModestTom commented 1 year ago

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

ModestTom commented 1 year ago

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.

vaxerski commented 1 year ago

234c2da51a71941c0cd2ee380f42de365f90dd6f had it working

ModestTom commented 1 year ago

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.

rondao commented 1 year ago

@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

i0dk1 commented 1 year ago

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.