Closed Gert-dev closed 4 months ago
Upstream bug report: https://gitlab.gnome.org/GNOME/mutter/-/issues/290
Hi Team, I am facing this issue on x11 as well, when i click on the night light and move the slider, it turns on for a movement and exits from there, there after. Nvidia Driver Version: 515.65.01 Please look into this issue at the earliest possible time.
Not sure if it helps but Gammastep works flawlessly for me with wlroots compositors. Maybe worth a look...
@pyt0xic could you tell me more about your system?
I am on 520.56.06 proprietary driver (pre-turing gpu), but I would expect that gammastep
would either work on both or fail on both since "This code base is shared with NVIDIA's proprietary drivers" (from readme).
Hyprland compositor.
Launching gammastep -m wayland -PO 2600
gives
Warning: Zero outputs support gamma adjustment.
Warning: 1/1 output(s) do not support gamma adjustment.
Tried on sway too (same result).
What compositor do you use?
I was using Sway and am now running Hyprland. I have an Optimus laptop but usually force dGPU.
I'll add more once I'm back from work. But maybe double check all your Wayland related env vars.
I don't see any issues with my environment variables
export _JAVA_AWT_WM_NONREPARENTING=1
export XCURSOR_SIZE=24
# fix nvidia
export LIBVA_DRIVER_NAME=nvidia
export XDG_SESSION_TYPE=wayland
export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export WLR_NO_HARDWARE_CURSORS=1
export QT_QPA_PLATFORM=wayland
export SDL_VIDEODRIVER=wayland
export MOZ_ENABLE_WAYLAND=1
$WAYLAND_DISPLAY
is visible to gammastep, idk what else it could possibly need.
Are you sure you are running the compositor on dGPU? Because that's would neatly explain why it works for you.
What is the output of glxinfo | grep "OpenGL renderer"
for you?
Theoretically, you also might have any of $WLR_RENDERER
, $WLR_RENDER_DRM_DEVICE
, $WLR_DRM_DEVICES
set to override GPU used or select e.g. vulkan as render backend. Do you?
https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/master/docs/env_vars.md#wlroots-specific
Also, I noticed that Hyprland logs which gpu is used.
What's the output of grep -C 2 'GPU information' /tmp/hypr/*/*.log
?
I was using Sway and am now running Hyprland. I have an Optimus laptop but usually force dGPU.
I'll add more once I'm back from work. But maybe double check all your Wayland related env vars.
@pyt0xic Could you please share your env vars?
It is a known missing feature that GAMMA_LUT is not implemented in nvidias wayland driver yet: http://us.download.nvidia.com/XFree86/Linux-x86_64/525.89.02/README/wayland-issues.html which will be implemented at some point in the future according to their site. @santhosh-reddy03 on my system setting the gamma LUT on X11 in KDE Plasma works.
Actually somehack from ubuntu launchpad bugs helped me fix the issue, i don't remember the variable name but on setting it to false, everything worked as usual, and glad to know nvidia is on it , hope to see in some time in future.
@santhosh-reddy03 well which variable was it?
@rwjack there were two issues, the pc was also not waking up from sleep, i think its Ubuntu 22.04 specific issue in my case, i m attaching the bug link here, it has worked for me at that time, since then i switched back to x11.
Yeah I'm switching back to x11 until I get a new GPU.
I am not using gnome, but if there is some software that lets you draw your own custom shader as an overlay for the whole screen - you can make your own night light.
In hyprland there is an option for that
# hyprland.conf
decoration {
screen_shader = ~/.config/hypr/your-shader.glsl
}
Here is the shader I use
https://github.com/hyprwm/Hyprland/issues/1140#issuecomment-1335128437
It is trivial to automate it to apply on sunset.
Idk if gnome can do custom shaders, maybe ask the devs nicely to make a fallback implementation for nightlight if nvidia gpu is detected on wayland, because it doesn't seem like GAMMA_LUT will happen on nvidia any time soon.
One year ago a Nvidia dev wrote:
Support for GAMMA_LUT is in the queue, but no ETA at the moment.
https://github.com/Plagman/gamescope/pull/454#issuecomment-1076680841
https://forums.developer.nvidia.com/t/nvidia-bug-kde-wayland-games-are-force-vsynced/237880/3
Work on Gamma LUT support is also in progress. The implementation is currently under internal code-review.
Yeah, that quote is from the 28th of December 2022.
@rwjack Finally!
The vsync issue will be fixed in the 545 driver release. Unfortunately I wasn’t able to get it in in time for the 535 release which will go public in a few days, sorry. But 545 will be the next release after that (we’re skipping 540 for whatever reason).
https://forums.developer.nvidia.com/t/nvidia-bug-kde-wayland-games-are-force-vsynced/237880/21
@rwjack Finally!
The vsync issue will be fixed in the 545 driver release. Unfortunately I wasn’t able to get it in in time for the 535 release which will go public in a few days, sorry. But 545 will be the next release after that (we’re skipping 540 for whatever reason).
https://forums.developer.nvidia.com/t/nvidia-bug-kde-wayland-games-are-force-vsynced/237880/21
How is this related to night light/GAMMA_LUT?
How is this related to night light/GAMMA_LUT?
Just Nvidia smokescreen trying to keep us onboard :joy:
@rwjack Finally!
The vsync issue will be fixed in the 545 driver release. Unfortunately I wasn’t able to get it in in time for the 535 release which will go public in a few days, sorry. But 545 will be the next release after that (we’re skipping 540 for whatever reason).
https://forums.developer.nvidia.com/t/nvidia-bug-kde-wayland-games-are-force-vsynced/237880/21
How is this related to night light/GAMMA_LUT?
Sadly, the two subjects were discussed at the same time in the same thread. And I misread 😢
Plasma 6 will support night color on Nvidia without GAMMA_LUT:
Plasma 6 will support night color on Nvidia without GAMMA_LUT:
It uses a shader based fallback. It's just a work around, not an actual support.
It is not efficient and I think that colours will be also different when capturing the screen, since it's not a GPU side based solution (didn't test it in KWin, I'm not 100% sure).
@MahouShoujoMivutilde this worked thanks, btw can I get dots for the bar in your picture?
@Sohail-XD The bar evolved since then, here is how the current one looks:
configs:
GAMMA_LUT landed in the first R545 beta
Link to the driver in question - https://www.nvidia.com/download/driverResults.aspx/212964/en-us/
This actually fixes many of the remaining (X)Wayland issues.
Great job Nvidia!
EDIT: Nvidia now keeps track of the remaining Wayland issues here https://forums.developer.nvidia.com/t/wayland-information-for-r545-beta-release/214275
It's out of Beta now: https://www.nvidia.com/download/driverResults.aspx/214100/en-us/
Link to the driver in question - https://www.nvidia.com/download/driverResults.aspx/212964/en-us/
This fixes many of the remaining (X)Wayland issues.
Great job Nvidia!
EDIT: Nvidia now keeps track of the remaining Wayland issues here https://forums.developer.nvidia.com/t/wayland-information-for-r545-beta-release/214275
Yes! There is a lot of improvement! But it still missing the multi-GPU mosaic support! But it's on track here:
https://github.com/NVIDIA/egl-wayland/issues/91#issuecomment-1785740677
Closing this since I have hardware again that has this setup and it's fixed for me now using GNOME and recent NVIDIA drivers. I can successfully use night light now on Wayland.
Also fixed on the latest version of KDE Plasma.
NVIDIA Driver Version 515.43.04
GPU NVIDIA RTX 2070 Super Max-Q
Describe the bug Enabling night light in GNOME has no effect.
This bug also exists with the proprietary driver, but also seems to exist with the new, open, driver (hence this report).
To Reproduce
Expected behavior The night light works as intended by making the colours of the screen warmer.
Please reproduce the problem, run nvidia-bug-report.sh, and attach the resulting nvidia-bug-report.log.gz.
nvidia-bug-report.log.gz