Git Product home page Git Product logo

soft-brightness's People

Contributors

f-i-f avatar mahozad avatar muhaaliss avatar p-bo avatar vistaus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

soft-brightness's Issues

No Schema Found

Hello and thank you for this great extension.

Could you please provide schema to it?

This way particular brightness settings could be easily bound to keyboard shortcuts with e.g:

gsettings set org.gnome.shell.extensions.soft-brightness current-brightness 0.6

All the Best.

Schedule Brightness Reduction

Maybe it's possible to define a brightness level that adjusts based on the time of the day? Or one that adjusts to Gnomes NightLight Time Settings?

Mouse Coursor invisible after login

  • I am using Extension Version 27, default settings
  • My System: $ uname -a
    Linux pc-021 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

After the first login into Gnome, the Cursor are not visible. I have to change the Brightness in the Extension, then the Cursor shows up.

[feature request] Combine laptop backlight and alpha overlay brigheness in the same slider

It would be nice if there was an option to give, say, the upper 50% of the slider to setting the laptop's brightness, with the lower 50% controlling the alpha overlay.
This would be far better for controlling the brightness than having two brightness controls, one being the usual slider for the overlay, and the other being Fn+F? for the panel's brightness.
I tried implementing this myself, but I didn't have an idea as to where to start.

The way this would be implemented might be something like this (pseudocode):

if (brighness slider > 50%) {
   setDisplayBrightness(full_brightness);
   setOverlayBrightness(brightness slider / 2);
} else {
   setDisplayBrightness(brightness slider / 2);
   setOverlayBrightness(0);

Thanks in advance!

Gnome 42 support

Thanks a lot for the great extension first of all!
I tried to port the extension manually to Gnome 42 (on Fedora 36) for testing but it seems to cause some wild flickering of the cursor
and the screen.
I don't have the knowledge to debug it but I'd be happy to provide debug logs etc

Overlay covers mouse

Recent update from Gnome Extensions causes the mouse to disappear when the overlay is activated by decreasing the brightness. Installed manually from git, same issue. I assume it's because the overlay is now covering the mouse where previously it was under the mouse.

Gnome 3.32.1

Cursor changes size on HDPI display

The cursor becomes size set by scale 100% when using an HDPI display even if the scale is set to a larger value, like 200%. This makes the cursor much smaller and undoes the setting of the scale. The workaround is to disable the "mouse brightness control setting".

Separate slider for overlay opacity

Disabling "Use backlight control" option is great if one wants to be able to control backlight brightness and overlay opacity separately. Though it also changes the behavior of Gnome's brightness slider so that it controls overlay opacity instead of backlight brightness, which forces to use hotkeys to change the backlight brightness. I would like the slider behavior to remain unchanged, would it be possible to add a second slider that controls overlay opacity?

Mouse Coursor invisible after login

sorry i accidentally closed this issue (#45). The problem persists:

  • I am using Extension Version 27, default settings
  • My System: $ uname -a
    Linux pc-021 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

After the first login into Gnome, the Cursor are not visible. I have to change the Brightness in the Extension, then the Cursor shows up.

Build fails on GNOME 41.1

I am well aware that the extension does not currently support GNOME 41, but I did try to do a manual install and it seems the build process fails at the meson install command. Here's the output of the build:

ninja: Entering directory `build'
[0/1] Installing files.
Installing gschemas.compiled to /home/nilanjan/.local/share/gnome-shell/extensions/[email protected]/schemas
Installing /tmp/soft-brightness/schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml to /home/nilanjan/.local/share/gnome-shell/extensions/[email protected]/schemas
Installing /tmp/soft-brightness/src/extension.js to /home/nilanjan/.local/share/gnome-shell/extensions/[email protected]
Installing /tmp/soft-brightness/src/prefs.js to /home/nilanjan/.local/share/gnome-shell/extensions/[email protected]
Installing /tmp/soft-brightness/src/utils.js to /home/nilanjan/.local/share/gnome-shell/extensions/[email protected]
Installing /tmp/soft-brightness/build/metadata.json to /home/nilanjan/.local/share/gnome-shell/extensions/[email protected]
Installing /tmp/soft-brightness/meson-gse/lib/convenience.js to /home/nilanjan/.local/share/gnome-shell/extensions/[email protected]
Installing /tmp/soft-brightness/meson-gse/lib/logger.js to /home/nilanjan/.local/share/gnome-shell/extensions/[email protected]
Installing /tmp/soft-brightness/dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml to /home/nilanjan/.local/share/gnome-shell/extensions/[email protected]/dbus-interfaces
Running custom install script '/tmp/soft-brightness/meson-gse/meson-scripts/install-po soft-brightness /home/nilanjan/.local/share/gnome-shell/extensions/[email protected]/locale'
--- stdout ---
Unknown subcommand.

--- stderr ---

FAILED: install script '/tmp/soft-brightness/meson-gse/meson-scripts/install-po soft-brightness /home/nilanjan/.local/share/gnome-shell/extensions/[email protected]/locale' exit code 1, stopped
FAILED: meson-install 
/usr/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.

PS: appreciate the awesome work that you do and I love this extension. It is also only way I have to control my laptop's screen brightness, so please add 41 support as soon as possible.

[REQ] Two stage behavior

Hello. I like this extension.
But i guess its feature to use screen dimming and backlight control isnt ideal.
Currently it does use whole slider to set both values.
My idea is to set backlight brightness in first stage (50% - 100% range), and dimming in 2nd stage (0% - 50%). (as optional feature)
0% - minimum backlight value, screeen dimmed by sw
50% - minimum backlight value, screen not dimmed by sw
100% - maximum backlight value, screen not dimmed.
50% can be configurable to any percentage needed.
im using this extension to lower my minimal possible screen brightnes, but now it seems that when i dont set brighness to 0%, i have bright backlight even its dimmed.

Thanx.

Uses 10-20% of CPU, even when brightness is set at 100%

The overlay seems to still exist even when the brightness slider is all the way up. Since this extension uses around 10-20% of my CPU I have to disable the extension completely. Fixing this should be as simple as turning off the overlay code when brightness is at 100%.

Pseudo cursor on the top left of the screen

During normal usage, a static mouse cursor will be displayed at the top left of the screen at random. It does not interfere with the usage of the normal cursor, however; it makes it so that there's 2 cursor on screen. I tried to take screenshot, but it disappears when my screen capture is turned on.

I've tried to collect the log as mentioned in the extension site, but I don't think there's anything of value here.

Edit*: I just realized I forgot to turn on debug. Will post the log once the bug surfaces.

[feature request] Enable display brightness via DCC

Hello!

I found out this interesting applet for adjusting the brightness.
This applet has option to use xrandr gamma brightnes, which is helpfull, but the actuall brightness of monitor does not change.

The ddcutil offers configuration of the monitor settings, that you would normally have to set via monitor keys. https://www.ddcutil.com/
The ddcui is GUI that also enables setting the monitor brightness via slider.

It would be great if this applet would be able to control actual monitor brightness (via ddcutil)
Ubuntu 18.04 does include ddcutil (cli) which can adjust brightness.

Here is blogpost how to use ddcutil: https://blog.tcharles.fr/ddc-ci-screen-control-on-linux/

(note: I have radeon graphics card with open source driver. I don't know how well it works on intel/nvidia)

Gnome 3.38 issue

When I enable soft-brightness in 3.38.1 the mouse cursor disappears.
Arch 5.4

Thanks

The base brightness went very low

The 100% brightness for the gnome is not 100% any more.
I mentioned that, because switching to mate or creating another user and login to gnome has the expected brightness.
disabling or even removing, reinstalling the extension didn't help at all.
i help myself buy increasing the brightness with xrandr using sth. like

xrandr --output DVI-D-0 --brightness 2.5

But this is 100% incorrect, because making a screenshot of the monitor shows the problem clear.
I guess another value is somewhere changed, that i cant find. i investigated all values in dconf-editor without any success.

I hope anybody has an idea how to solve this problem.
Thanks in advance

Not working in Gnome 3.36

Extension version: 18
Gnome-shell version: 3.35.91
Mutter version: 3.35.91-1ubuntu1
on Ubuntu 20.04
I tried installing the latest version of the program in 3 different ways:
Through the Gnome extensions wab application
By downloading the latest release (v18) from the gitHub repository and placing it in ~/.local/share/gnome-shell
and by cloning the repository with git git clone https://github.com/F-i-f/soft-brightness.git ~/.local/share/gnome-shell/extensions/[email protected]
In none of the cases the icon is displayed in the tray bar, the extension is not listed in Extensions of Ubuntu. The application is listed in gnome tweaks but it's not possible to toggle it on, also accessing to the configuration panel is impossible.

docs - note how this affects battery life

Hi,

This extensions performs as described and softens the brightness. However, this is done via both 'backlight' and 'alpha' tuning. Since the major reason a person would dim their screen is to preserve battery, it would be helpful to add a note to clarify how this combination can be interpreted in terms of battery life.

For example, after installing this and enabling backlight control, I am able to set my brightness bar is at approx half. The screen is dimmer than before at very low brightness, but I am not sure if I am using more or less battery than I was before due to the alpha/backlight interaction.

Gnome-shell cpu spikes to 70%+

Greetings,

Let me preface this by mentioning that I love this plugin, it is the only thing that let's me use wayland without hurting my eyes. Thanks for all your effort.

I'm on Ubuntu 22.04 and for some reason when using this plugin, particularly when I'm watching something in my second monitor it spikes and all content starts stuttering.

I only have this extension installed, and when disabled this problem no longer appears.

Please let me know how can I debug this.

gnome 40 support?

This is one of the most important extensions I use, include clipboard indicator, and shutdown timer.
Kindly make soft-brightness work with gnome 40 (fedora 34). Thanks.

Clicking dysfunctional in applications

Whenever I lower the brightness with soft-brightness overlay, clicking in any application window won't work, no matter what the application. Gnome shell is still responsive on the other hand. Moreover mouse clicks are dysfunctional after suspend, no matter the brightness setting for the extension. It took me 2 days to realize that this extension is responsible, after uninstall all is fine again.

Fedora 31 Gnome 3.34.4

Gnome 3.34 compatibility

When enabling this extension all applications become unresponsive to mouse events. Gnome Shell itself is working, that means I can log out or open new applications, but I cannot interact with any application using the mouse. Keyboard inputs still work. That's how I deactivate all extensions by issuing gsettings set org.gnome.shell disable-user-extensions true.

Output of journalctl -f:

Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: version 14 / git v14-1-g7214544
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: enable(), session mode = user
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _enable()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _enableCloningMouse()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _enableCloningMouse(): using Gnome Shell 3.32 method
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _swapMenu(): Replacing brightness menu item at index 1
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _enableMonitor2ing()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _enableSettingsMonitoring()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _enableScreenshotPatch()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: Extension enabled
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _sync()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _getBrightnessLevel() by proxy = 0.6 <- 60
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _on_brightness_change: current-brightness=0.6, min-brightness=0.05000000000000002
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _startCloningMouse()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _showOverlays(0.6, false)
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _showOverlays(): enabledMonitors="built-in"
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _showOverlays(): skipping run as _monitorNames hasn't been set yet.
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _stopCloningShowMouse()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _stopCloningMouse()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _getBrightnessLevel() by proxy = 0.6 <- 60
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: setSliderValue(0.6) [GS 3.33.90+]
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _sliderChanged(slide, 0.6)
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _storeBrightnessLevel(0.6) by proxy -> 61
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: newDisplayConfig() callback
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _on_monitors_change()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _on_monitors_change(): monitor="eDP-1", connector="eDP-1", index=0
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _getBrightnessLevel() by proxy = 0.61 <- 61
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _on_brightness_change: current-brightness=0.61, min-brightness=0.05000000000000002
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _startCloningMouse()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _showOverlays(0.61, true)
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _showOverlays(): enabledMonitors="built-in"
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _showOverlays(): builtinMonitorName="eDP-1"
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _preventUnredirect(): disabling unredirects, prevent-unredirect=always
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: Create overlay #0: 2560x1440@0,0
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _showOverlay(): set opacity 99.45 on overlay #0
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _sync()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _getBrightnessLevel() by proxy = 0.6 <- 60
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _on_brightness_change: current-brightness=0.6, min-brightness=0.05000000000000002
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _startCloningMouse()
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _showOverlays(0.6, false)
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _showOverlay(): set opacity 102 on overlay #0
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _getBrightnessLevel() by proxy = 0.6 <- 60
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Soft-Brightness: setSliderValue(0.6) [GS 3.33.90+]
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Sep 23 20:45:16 thinkpadx1 gnome-shell[1152]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Sep 23 20:45:23 thinkpadx1 gnome-shell[1152]: Soft-Brightness: disable(), session mode = user
Sep 23 20:45:23 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _disable()
Sep 23 20:45:23 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _swapMenu(): Replacing brightness menu item at index 1
Sep 23 20:45:23 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _disableMonitor2ing()
Sep 23 20:45:23 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _disableSettingsMonitoring()
Sep 23 20:45:23 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _hideOverlays(): drop overlays, count=1
Sep 23 20:45:23 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _allowUnredirect(): enabling unredirects, prevent-unredirect=always
Sep 23 20:45:23 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _stopCloningShowMouse()
Sep 23 20:45:23 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _stopCloningMouse()
Sep 23 20:45:23 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _disableCloningMouse()
Sep 23 20:45:23 thinkpadx1 gnome-shell[1152]: Soft-Brightness: _disableScreenshotPatch()
Sep 23 20:45:23 thinkpadx1 gnome-shell[1152]: Soft-Brightness: Extension disabled
` ``

Long-term effects on the eyes

I've been using this extension for a few months now and I find it very convenient, thanks to @F-i-f and the others dev who work on it!
I was just having a doubt, as far as my eyes and eye strain are concerned, is using this extension the same as actually lowering the screen brightness?
Instinctively I'd say no, however by setting the real screen brightness to maximum, and minimum with extension, it doesn't seem like the screen is emitting annoying light (I am using an IPS screen and an old LCD screen).
What do you think about it?
By using the computer for many hours a day, I would like to avoid over-straining my eyes. ๐Ÿ˜…

Mouse offset

I'm using arch with gnome 3.38.1 and I had to remove this extension since it was rendering the mouse with an offset.

from my journal

Oct 24 13:13:10 gnome-shell[684]: JS ERROR: TypeError: this._cursorSprite.set_anchor_point is not a function
                                        _updateMouseSprite@/home/andrea/.local/share/gnome-shell/extensions/[email protected]/extension.js:795:21

When I was clicking with the right or middle button of the mouse I could see two cursors.
The first was the one processed by the extension and showed a dimmed color while the second was brighter.
The bright one was correctly positioned and disappeared as soon as I moved the mouse.

Tiny cursor

Hi there. Thanks a lot for this great extension.

Just am having a small issue as the clones cursor is tiny. Its size won't change even if I try to make it bigger in the settings.

My question was simply how to disable the mouse cloning altogether? I don't mind working with a bright cursor. I saw some references to disabling the cloning in the extension.js file but am unsure which way would be cleanest.

Thanks in advance.

Installed but not working

I have installed soft-brightness in another computer - I have it already installed in another one, thanks for the app. However, this time it is not working. It seems correctly installed. I could install and run it from the gnome shell extension, but when I set it the on mode, nothing happens. I have tracked the logs, but it hasn't helped much.

gnome logs:
jan 21 19:51:48 marlon-Nitro-AN515-51 dbus-daemon[1557]: [session uid=1000 pid=1557] Activating service name='org.gnome.ChromeGnomeShell' requested by ':1.213' (uid=1000 pid=6501 comm="/usr/bin/python3 /usr/bin/chrome-gnome-shell chrom" label="unconfined")

soft-brightness logs:

jan 21 19:37:12 marlon-Nitro-AN515-51 gnome-shell-ext[4575]: JS LOG: Extension [email protected] already installed in /home/marlon/.local/share/gnome-shell/extensions/[email protected]. /home/marlon/.local/share/gnome-shell/extensions/[email protected] will not be loaded

Ubuntu 18.04 and GNOME Shell 3.28.4.

Thanks you so much!

Screenshots are affected

When print-screening or using the gnome-screenshot app, the darkening is captured making the screenshot look dark as seen in the attached image.
Screenshot

Worth noting that window-capture produces unaffected screenshots.

Mouse movement lags

I'm on Ubuntu 20.04. I'm using a laptop with an external LG display via HDMI. Only the external active. Everything is updated and when I change the brightness the mouse starts to lag. Feels like the FPS drops down to 10-15.

Update to Gnome 40

The extension already appears to be working, with some minor changes required to the settings menu.

I've just changed the meta data to "40.0" and it's working just fine.

all changes get reverted too 100%

Hi,

On my HP x360 using your extension has some weird effect:

  • I change the gnome slide to approx 20%. The OLED brightness changes immediately to 20%. The brightness slowly goes up to 100%.
  • I use the keyboard brightness key to lower brightness. I have to press long / often to make an effect. While I am able to lower the brightness, it immediately goes up again to 100%.

On debug mode I get the following lines:
Dez 13 12:53:01 schlepptop gnome-shell[789]: Soft-Brightness: _storeBrightnessLevel(0.32) by proxy -> 33
Dez 13 12:53:01 schlepptop gnome-shell[789]: Soft-Brightness: _sliderChanged(slide, 0.32)
Dez 13 12:53:01 schlepptop gnome-shell[789]: Soft-Brightness: setSliderValue(0.32) [GS 3.33.90+]
Dez 13 12:53:01 schlepptop gnome-shell[789]: Soft-Brightness: _getBrightnessLevel() by proxy = 0.32 <- 32
Dez 13 12:53:01 schlepptop gnome-shell[789]: Soft-Brightness: _showOverlay(): set opacity 173.39999999999998 on overlay #0
Dez 13 12:53:01 schlepptop gnome-shell[789]: Soft-Brightness: _showOverlays(0.32, false)
Dez 13 12:53:01 schlepptop gnome-shell[789]: Soft-Brightness: _startCloningMouse()
Dez 13 12:53:01 schlepptop gnome-shell[789]: Soft-Brightness: _on_brightness_change: current-brightness=0.32, min-brightness=0.14999999999999997
Dez 13 12:53:01 schlepptop gnome-shell[789]: Soft-Brightness: _getBrightnessLevel() by proxy = 0.32 <- 32
Dez 13 12:53:01 schlepptop gnome-shell[789]: Soft-Brightness: _sync()
Dez 13 12:53:01 schlepptop pkexec[8332]: ente: Executing command [USER=root] [TTY=unknown] [CWD=/home/ente] [COMMAND=/usr/lib/gsd-backlight-helper /sys/devices/pci0000:00/0000:00:02.0

It looks like in the last step, you want to store a brightness of 0,32 but you actually store 0,33; this triggers a change on the input value and restarts the process. If I put the slider to 80% I see 21 times the full stack of log lines as above. The last set of log lines is:
Dez 13 13:04:40 schlepptop gnome-shell[789]: Soft-Brightness: setSliderValue(1) [GS 3.33.90+]
Dez 13 13:04:40 schlepptop gnome-shell[789]: Soft-Brightness: _getBrightnessLevel() by proxy = 1 <- 100
Dez 13 13:04:40 schlepptop gnome-shell[789]: Soft-Brightness: _stopCloningShowMouse(), restoring cursor visibility to true
Dez 13 13:04:40 schlepptop gnome-shell[789]: Soft-Brightness: _on_brightness_change: current-brightness=1, min-brightness=0.14999999999999997
Dez 13 13:04:40 schlepptop gnome-shell[789]: Soft-Brightness: _getBrightnessLevel() by proxy = 1 <- 100
Dez 13 13:04:40 schlepptop gnome-shell[789]: Soft-Brightness: _sync()
Dez 13 13:04:40 schlepptop pkexec[10946]: ente: Executing command [USER=root] [TTY=unknown] [CWD=/home/ente] [COMMAND=/usr/lib/gsd-backlight-helper /sys/devices/pci0000:00/0000:00:02.>

Cursor Doesn't Change Type

The cursor seems to get stuck on a certain type in non-gnome applications. For examples, in Chrome and Firefox, the cursor won't change to a pointer on links. Or it will and then gets stuck as a pointer for a bit. Another, the pointer won't change to text selector when hovering over the search bar in Spotify. The cursor functions as expected despite its appearance.

The pointer changes to appropriate types in native gnome applications like the file browser, Tweaks, etc.

Using gnome 3.32.2 (arch)

Side note of thanks: just installed the FHD mod for my x230 thinkpad. To adjust brightness with this mod, a kernel or bios patch is needed. Beyond my means, so this extension is an eye-saver. Thanks!

VSync won't go past 60Hz on HRR monitors

For users with a non-60Hz monitor, when the brightness is not 100% (thus the extension is actively being used) the screen will act as though it is running at 60Hz, presumably from the VSync. This is unexpected and unintended behaviour, so I have opened up an issue for it.

HRR standing for High Refresh Rate.

Add shortcuts or other way to change the brightness programatically

Please add a way to control this brightness with keyboard and/or commands. I need a way to add this to my KDE connect so that I can adujst brightness with my phone while watching a movie. Right now, I am using xrandr for that, but it doesn't work with your extension, which is otherwise excellent.
Thank you

Doesn't install properly on Ubuntu 20.04 / Gnome 3.36.3

This extension was working great until I tried to install the most recent update from the Gnome Extensions Page this morning.
After I tried to install it, I got an error. Hoping this was an installation problem and not a problem with the extension (I love this extension as the built-in brightness control doesn't work), I tried to install it myself using the instructions on the Github page but I got the following error:

The settings of extension [email protected] had an error:

Error: Schema org.gnome.shell.extensions.soft-brightness could not be found for extension [email protected]. Please check your installation.

Stack trace:

getSettings@/home/nilanjan/.local/share/gnome-shell/extensions/[email protected]/convenience.js:88:15
setup@/home/nilanjan/.local/share/gnome-shell/extensions/[email protected]/prefs.js:43:31
buildPrefsWidget@/home/nilanjan/.local/share/gnome-shell/extensions/[email protected]/prefs.js:240:12
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Overlay covers workspace dock in overview

When brightness is turned down via Soft Brightness and thus the soft brightness overlay is enabled, I can't drag windows from one workspace to another in the overview. Functionality returns to normal when Soft Brightness is disabled.

Gnome 3.32
Soft Brightness 10

mouse cursor click zone shifted

Hello,

There's a weird issue with Gnome 3.38 (tested on Fedora 33 / Gnome 20.10).

When the extension's option "Mouse cursor brightness control." is activated the mouse cursor zone which is used to know where you click is slightly shifted to 10~15px on the top-left.

Here a video showing the issue

Log that after having recorded the video, the issue really appears in the way that you will see, in the first part of the video when the option is activated, the mouse cursor duplicated - and where the real cursor is the one which is right-bottom shifted.

Deactivating the option fix this issue; and the extension works as expected, so it's not critical at all, but I still wanted to mention it. And maybe this issue is not specific to this extension, probably a more general issue somewhere in system library... I don't know.

Thanks.

screenshots getting affected by brightness setting

I am using opensuse tumbleweed (gnome 42) with latest version of soft-brightness and screenshots get affected by brightness settings. I am also attaching screenshots at two different bightness level for comparison
Screenshot from 2022-05-03 10-24-53
Screenshot from 2022-05-03 10-26-41
.

Support Gnome 42

I'm requesting you to port this great extension to Gnome 42. Or let me know if there is any workaround I can do (as a user) to make this extension work on Gnome 42.

Cursor doesn't change depend on what it's being hovered

Hello,
First thanks for making this amazing extension, i'm very grateful,

but i found bug where the mouse cursor doesn't change depend on what it's being hovered, after i use it for quite some time, but it solve after i restart it, and happen again after being use for quite some time,

for example when i type this issues:
1d8f4d66-47f5-4509-8118-34c985f70d06

see, the cursor doesn't change when i hover it into text,

Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

hope that you can fix it :), thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.