I can control the brightness of my DELL S2216H connected with HDMI via the command:
ddccontrol -p -r 0x10 -w 53
where in this example the number 53 represents the brightness level (range 0 to 100). But I don't know how to link the command to my brightness keys on my keyboard or add laptop like slider next to volume control in Gnome-panel
while searching on the topic, i read this question Control external monitor brightness via software but the accepted answer to that question doesn't solve my issue
my output of ddccontrol -p
is is posted here at pastebin
UPDATE tried the first solution.
python3 /home/sumeet/set_brightness.py up
No monitor supporting DDC/CI available.
If your graphics card need it, please check all the required kernel modules are loaded (i2c-dev, and your framebuffer driver).
Traceback (most recent call last):
File "/home/sumeet/set_brightness.py", line 22, in <module>
currval = int(next(obj for obj in section if obj.startswith("value")).split("=")[-1].strip(","))
StopIteration
UPDATE 2
output of This Script from what I understand it's not even detecting my monitor. but first (original) command still works
python3 /home/sumeet/brightness.py
No monitor supporting DDC/CI available.
If your graphics card need it, please check all the required kernel modules are loaded (i2c-dev, and your framebuffer driver).
ddccontrol version 0.4.2
Copyright 2004-2005 Oleg I. Vdovikin ([email protected])
Copyright 2004-2006 Nicolas Boichat ([email protected])
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program under the terms of the GNU General Public License.
Probing for available monitors.......
Detected monitors :
UPDATE 3 even the first command isn't working now, how can i get that working?
Bind a keyboard shortcut
Gnome allows you to bind any key to run a command of your choice. If
xbacklight
worked, I'd suggest you use that. Since you said it does not, you can use thebrightness
script I'll include below.brightness +10
brightness -10
.b9's brightness script
Many external monitors cannot control the backlight lamp with
xbacklight
. But you can still control the brightness using software. Here's a script I wrote which does that.To install the script, paste it into a file called
brightness
, set it executable, and put it in your path. Or, you can cut-and-paste these commands:xbacklight
If
xbacklight
did work for you, you could use it as a drop-in replacement forbrightness
in the above instructions. (xbacklight +10
for Brightness Up,xbacklight -10
for Down.)