jkitching / soft-brightness-plus

Gnome-shell extension to manage your display brightness via an alpha overlay (instead of the backlight).
GNU General Public License v3.0
49 stars 10 forks source link

''Mouse cursor brightness control" - invisible cursor issue #24

Open needleshaped opened 3 months ago

needleshaped commented 3 months ago

Symptom

After logon visual representation of cursor is stuck in single spot, the actual cursor is invisible, however fully functional (clicks, etc). That stuck visual of a cursor changes it's form accordingly to actual cursor movements (on hover, etc)

Both Gnome on Wayland and X are affected. Both standard and custom cursor skins are affected.

Workaround

'disabling 'Mouse cursor brightness control" option, immediate fix.

Suggestion for a quick fix and a long run: make this option OFF by default. In this case if user encounters the problem, he would know the cause.

Debug log:

Login, issue is present

ug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: version 19 / git v39-4-g768f6b5 on Gnome-Shell 46.4 / gjs 1.80.2 (18002) / wayland
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: enable(), session mode = user
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _logVersion(): gnome-shell version major=46, minor=4, patch=0, system_version=18002, XDG_SESSION_TYPE=wayland
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _logVersion(): onWayland=true
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _enableMonitor2ing()
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _enableScreenshotPatch()
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _enableSettingsMonitoring()
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: Extension enabled
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: newDisplayConfig() callback
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _on_monitors_change()
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: Brightness slider ready, continue enable procedure
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _sync()
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0 <- null
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0, min-brightness=0.1
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _storeBrightnessLevel(0.1) by proxy -> 10
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.1 <- 10
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _sliderChanged(slide, 0.1)
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _storeBrightnessLevel(0.1) by proxy -> 10
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _on_monitors_change(): monitor="HDMI-1", connector="HDMI-1", index=1
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _on_monitors_change(): monitor="eDP-1", connector="eDP-1", index=0
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.1 <- 10
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0.1, min-brightness=0.1
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: CursorManager: disable mouse cloning
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _disableCloningMouse()
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.1 <- 10
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0.1, min-brightness=0.1
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(0.1, true)
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(): enabledMonitors="all"
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _preventUnredirect(): disabling unredirects, prevent-unredirect=when-correcting
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: Create overlay #0: 2560x1440@0,1920
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: Create overlay #1: 1200x1920@1360,0
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 229.5 on overlay #0
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 229.5 on overlay #1
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(0.1, true)
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(): enabledMonitors="all"
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _hideOverlays(): drop overlays, count=2
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _allowUnredirect(): enabling unredirects, prevent-unredirect=when-correcting
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _preventUnredirect(): disabling unredirects, prevent-unredirect=when-correcting
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: Create overlay #0: 2560x1440@0,1920
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: Create overlay #1: 1200x1920@1360,0
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 229.5 on overlay #0
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 229.5 on overlay #1
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _sync()
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.1 <- 10
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0.1, min-brightness=0.1
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(0.1, false)
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 229.5 on overlay #0
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 229.5 on overlay #1
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.1 <- 10
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: CursorManager: enable mouse cloning
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _enableCloningMouse()
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _startCloningMouse(): watch interval = 16.666666666666668 ms
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.1 <- 10
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0.1, min-brightness=0.1
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(0.1, true)
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(): enabledMonitors="all"
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _hideOverlays(): drop overlays, count=2
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _allowUnredirect(): enabling unredirects, prevent-unredirect=when-correcting
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _preventUnredirect(): disabling unredirects, prevent-unredirect=when-correcting
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: Create overlay #0: 2560x1440@0,1920
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: Create overlay #1: 1200x1920@1360,0
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 229.5 on overlay #0
Aug 27 00:15:06 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 229.5 on overlay #1
Aug 27 00:15:07 probe gnome-shell[57371]: soft-brightness-plus: _sync()
Aug 27 00:15:07 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.88 <- 88
Aug 27 00:15:07 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0.88, min-brightness=0.1
Aug 27 00:15:07 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(0.88, false)
Aug 27 00:15:07 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #0
Aug 27 00:15:07 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #1
Aug 27 00:15:07 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.88 <- 88
Aug 27 00:15:07 probe gnome-shell[57371]: soft-brightness-plus: _sliderChanged(slide, 0.88)
Aug 27 00:15:07 probe gnome-shell[57371]: soft-brightness-plus: _storeBrightnessLevel(0.88) by proxy -> 88
Aug 27 00:15:07 probe gnome-shell[57371]: soft-brightness-plus: _restackOverlays()

! Options disabled at this point, issue disappeared

Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.88 <- 88
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0.88, min-brightness=0.09000000000000001
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(0.88, false)
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #0
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #1
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.88 <- 88
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0.88, min-brightness=0.08000000000000002
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(0.88, false)
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #0
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #1
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.88 <- 88
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0.88, min-brightness=0.07000000000000002
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(0.88, false)
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #0
Aug 27 00:15:29 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #1
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.88 <- 88
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0.88, min-brightness=0.08000000000000002
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(0.88, false)
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #0
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #1
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.88 <- 88
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0.88, min-brightness=0.09000000000000001
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(0.88, false)
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #0
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #1
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.88 <- 88
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0.88, min-brightness=0.1
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(0.88, false)
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #0
Aug 27 00:15:30 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #1
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: _on_clone_mouse_change(): stopping mouse cloning
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: CursorManager: disable mouse cloning
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: _stopCloningMouse()
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: _disableCloningMouse()
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: _getBrightnessLevel() by proxy = 0.88 <- 88
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: _on_brightness_change: current-brightness=0.88, min-brightness=0.1
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(0.88, true)
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: _showOverlays(): enabledMonitors="all"
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: _hideOverlays(): drop overlays, count=2
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: _allowUnredirect(): enabling unredirects, prevent-unredirect=when-correcting
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: _preventUnredirect(): disabling unredirects, prevent-unredirect=when-correcting
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: Create overlay #0: 2560x1440@0,1920
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: Create overlay #1: 1200x1920@1360,0
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #0
Aug 27 00:15:32 probe gnome-shell[57371]: soft-brightness-plus: _showOverlay(): set opacity 30.599999999999998 on overlay #1
rkraneis commented 4 days ago

Same problem here. Gnome 47.