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?
ddccontrol -p -r 0x10 -w 53
this command can be used to set brightness at 53 percent, last digit in the command indicates value ranging from 0 to 100. i'll need two commands one for adding +5 value in the existing brightness value and 2nd for deducing i.e, -5 value in the existing brightness value