Ubuntu 19.04でのbrightnessの変更方法、brightnessが勝手に変更される件の対応

まずUbuntu 19.04でモニタ側のbrightnessを最低まで下げてもまだモニタが明るすぎて困っていた。 これについては以下コマンドで変更できた。

xrandr --output DisplayPort-0 --brightness 0.65

--output でディスプレイを指定し、--brightnessで明るさを指定する。

ディスプレイは以下コマンドの結果から取得した。

xrandr --current

現在の値の確認

xrandr --current --verbose | grep -i bright

暫く使っていると今度はランダムに明るさが最大に戻ってしまうようになった。 以下の手順で解消した。

github.com

手順抜粋

-- How-to --
The GNOME Settings Daemon's color plugin auto-start on/off switch is hidden by default. To make it visible:

1- Open Terminal and type: sudo sed -i "s/NoDisplay=true/NoDisplay=false/g" /etc/xdg/autostart/*.desktop ~/.config/autostart/*.desktop

To disable GNOME Settings Daemon's color plugin from auto-starting:

2- Open Command via ALT+F2

3- Type gnome-session-properties

4- Scroll down to GNOME Settings Daemon's color plugin and disable the checkbox and close the startup pref. window.

5- Now log-off to the login screen and log back in. Open Brightness Controller and set your colors / brightness. Open Chromium (or any other app that caused problem) and it should now keep your settings and never reset them.

If everything works perfect and you are happy, you should "re-hide" the previously unhidden settings:

6- In Terminal type : echo NoDisplay=true | find /etc/xdg/autostart ~/.config/autostart -name \*.desktop -exec sudo tee -a {} + >/dev/null

7- To REVERT back to original behavior, repeat steps 1 to 6 but re-enable the checkbox at step 4.

見たページ

askubuntu.com

github.com