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
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 (firstname.lastname@example.org) Copyright 2004-2006 Nicolas Boichat (email@example.com) 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?