Gammy: Adaptive Screen Brightness Tool for Linux

CamryIs an adaptive screen brightness GUI tool, originally only for Microsoft Windows, and recently ported to Linux (X11 only). The Qt5 application will periodically take screenshots, and then gradually adjust the pixel brightness according to the screen (screenshot) content. If the content is too dark, the screen will be darkened; if the content is too dark, the screen will be brightened. This is especially useful for reducing eye fatigue when switching between dark and light windows.
The Gammy setting allows you to set the minimum and maximum brightness, and an offset (the offset will increase the brightness of the screen, higher values ​​indicate a brighter image). Also, because it conflicts with Redshift, the Gammy developers decided to add basic temperature control, which you can also find in the application settings.

If you expand the Gammy settings window by dragging the position in the lower right corner, some hidden settings will be displayed. These settings can set the speed (speed of brightness change), threshold (how much the screen must change to trigger the screen). Brightness change) and polling rate (in milliseconds) (the time to wait before taking a screenshot).
Gammy adjusts the brightness by changing the gamma slope, which is the easiest way for developers to think, but the disadvantage of doing so is that it will lose contrast on a screen with poor contrast. in a Comments on RedditFushko, an application developer, said that he is considering reducing the backlight instead of adjusting the gamma for devices that support backlight.
It is worth noting that Gammy was ported to Linux only 11 days ago, so hope to find some errors. On my Ubuntu 19.04 desktop (but not on Ubuntu 18.04), I cannot move its settings window unless I hold the Super key and then drag the window. Also, closing the settings window will also close Gammy, so you have to minimize the settings instead (the minimize button basically functions as a close button), although obviously Intent Behavior, not error. [Update] These issues have been fixed in the Development branch. There is no problem with the actual screen brightness adjustment.
Gammy developers did one Release on r / Linux Yesterday, the Gammy Linux port was announced and asked for your feedback, you may need to check it out.

Install Gammy on Linux (X11 only)

If you are a Windows user, you can Download Gammy From its website. However, on Linux, you must build Gammy from source code (see below).
[Update] Camry is Now available through AUR Simplify the installation of Arch Linux.
1. Install the packages (Mesa-libgl and Qt5) required to build Gammy on Linux, and Git to get the latest code for the application.
On Debian / Ubuntu or Fedora, you can install these packages by following these steps:

  • Debian / Ubuntu / Linux Mint / Pop! _OS etc:
sudo apt install git build-essential libgl1-mesa-dev qt5-default
  • Fedora (untested; please note that Fedora uses Wayland by default, Gammy does not support it; you need to log in to an Xorg session to use it):
sudo dnf install git mesa-libGL-devel qt5-devel

2. Build and install Gammy (from Git):

git clone https://github.com/Fushko/gammy.git
cd gammy
qmake Gammy.pro
make
sudo make install

In some Linux distributions, if you receive an error message qmake: command not foundMust run even if Qt5 (development version) is installed qmake-qt5 Gammy.pro Instead qmake Gammy.pro.
Also, on some Linux distributions (such as Ubuntu 18.04, but not on Ubuntu 19.04), errors may occur when running qmake Gammy.proAnd there is a message complaining about the element named “PlaceholderText”-in this case, the Gammy readme file mentions opening ui_mainwindow.h Use a text editor and delete the problematic line (the line number should be displayed if there is an error).
Gammy executable is installed to /opt/gammy/bin, So you need to enter /opt/gammy/bin/gammy Run it. You can /opt/gammy/bin/gammy to /usr/local/bin/ Therefore, you can use the following command to start it by typing only the executable file name:

sudo ln -s /opt/gammy/bin/gammy /usr/local/bin/

After that, you can enter the following to start Gammy gammy In a terminal or run dialog (Alt + F2). Can’t find Gammy in the application menu!
3. [Optional] Add Gammy to startup.
In most cases, you want Gammy to run at startup, so it automatically adjusts screen brightness after logging in. Add it to the launch by opening Launch Application (or equivalent) from the application menu, click Add Add a new startup item and use it as a command: /opt/gammy/bin/gammy (If you created a symbolic link somewhere, you can also just use “Games” $PATH).
You can also do this by creating a gammy.desktop In ~/.config/autostart/ Has the following:

[Desktop Entry]
Type=Application
Exec=/opt/gammy/bin/gammy
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Gammy adaptive screen brightness

Source

Sidebar