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
42 stars 6 forks source link

Soft Brightness Plus Gnome Shell Extension

Brightness slider in Gnome Shell's system menu

Overview

Soft Brightness Plus uses an alpha overlay to control the brightness on all or some of your monitors. It integrates smoothly and does not interfere with other Gnome Shell features. It works flawlessly with the Night Light, the Magnifier from the Accessibility Services, or with screen captures (as long as they are initiated by Gnome Shell).

Common uses are:

Bonus features:

Configuration

Soft Brightness Plus comes with a configuration panel, which can be accessed from the "Tweaks" application or the Gnome Shell Extensions page.

Soft Brightness Plus preference panel

Configuration Settings

Use backlight control

When enabled, Soft Brightness Plus will work together with your computer's backlight. The brightness slider and keyboard brightness hotkeys will control both the backlight and the Soft Brightness Plus overlays. This is most useful:

If Use backlight control is disabled, the Brightness slider will only control the Soft Brightness Plus overlays. The keyboard brightness hotkeys will keep their default bindings.

Monitor(s)

Built-in monitor

A list of currently attached monitors is displayed. Pick from the list which monitor should be considered the built-in monitor.

The setting only has an effect if Monitor(s) is set to Built-in or External.

Full-screen behavior

Choose one of:

Minimum brightness

Sets the minimum allowable brightness for the display where 0 is completely dark and 1 completely bright. Defaults to 0.1 (10%).

The minimum brightness will also be enforced for the panel backlight if Use backlight control is on.

When the brightness is set to 0%, the display will go completely dark, it may be hard to reset the brightness with the slider then.

Mouse cursor brightness control

Toggles between having the mouse cursor brightness follow the screen brightness (on/true) and keeping the mouse cursor at full brightness (off/false).

Gnome Shell's handling of cursor tracking can be sometimes buggy and can show the wrong cursor type or size when the mouse cursor brightness follows the screen brightness. It also introduces some pointer motion lag.

Note that if an other Gnome Shell component enables mouse tracking (for example the Zoom accessibility option), then the mouse cursor brightness will always follow the screen's.

Debug

When toggled on, Soft Brightness Plus will log extra debugging information to the system journal (or syslog).

This will be useful if you encounter a bug: In that case, please turn Debug on, and try to reproduce the issue with that setting before capturing the debug logging.

Soft Brightness Plus's debug messages can be watched with:

journalctl -f | grep 'gnome-shell.*soft-brightness-plus'

Effect on power consumption

Soft Brightness Plus will cause extra load on the hardware and therefore slightly increase power usage, as it needs to add extra alpha layers and track the mouse among other things. This is true of any Gnome Shell extension.

If Soft Brightness Plus controls an LCD panel, changing the brightness will not change at all the panel's power consumption. Use the backlight instead: Changing the backlight brightness will affect power consumption, the lower the brightness, the lower the power usage.

If Soft Brightness Plus controls an OLED panel, changing the brightness will affect power consumption, the lower the brightness, the lower the power usage.

Common use cases and usage scenarios

You have a desktop computer

Soft Brightness Plus can be used to control the brightness of all your attached monitors:

You have a laptop computer with a backlight

You can leave the control of your attached display to the backlight and use Soft Brightness Plus to control the brightness of external displays:

You have a laptop computer without a backlight

For example an OLED panel or non-functional backlight. Have Soft Brightness Plus control the brightness for all your monitors:

License

Soft Brightness Plus is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see [http://www.gnu.org/licenses/].

Download / Install

Install directly from the Gnome Shell Extensions site.

Or download the zip file from the GitHub releases page and run:

gnome-extensions install soft-brightness-plus@joelkitching.com.v40.shell-extension.zip

Building from source

Requirements

Running the build

Changelog

Version 40

May 10, 2024

Version 39

April 20, 2024

Version 38

April 9, 2024

Version 37

November 17, 2023

Version 36

October 31, 2023

Version 35

October 20, 2023

Version 34

May 1, 2023

Version 33

April 28, 2023

Version 32

April 10, 2023

Version 31

April 6, 2023

Version 30

May 20, 2022

Version 29

December 22, 2021

Version 28

December 18, 2021

Version 27

March 25, 2021

Version 26

November 12, 2020

Version 25

October 30, 2020

Version 23, 24

October 29, 2020

Version 22

October 28, 2020

Version 21

October 8, 2020

Version 20

October 6, 2020

Version 19

April 24, 2020

Version 18

March 12, 2020

Version 17

March 11, 2020

Version 16

March 10, 2020

Version 15

October 27, 2019

Version 14

August 21, 2019

Fixed broken version 13 update.

Version 13

August 19, 2019

Version 12

April 23, 2019

Version 11

April 23, 2019

Version 10

April 23, 2019

Version 9

April 20, 2019

Version 8

April 16, 2019

Version 7

March 30, 2019

Version 6

March 26, 2019

Version 5

March 24, 2019

Version 4

February 11, 2019

Version 3

February 6, 2019

Version 2

February 5, 2019

Notes

The git release shows as 3 in the source code, but the extension (as built by the Gnome Shell Extensions website) shows the release at 2. Let's call it release 2 then.

Version 1

February 2, 2019

First public release.

Credits