3

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 (oleg@cs.msu.su)
Copyright 2004-2006 Nicolas Boichat (nicolas@boichat.ch)
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?

Brightness Slider in laptops

  • I don't have ddcontrol, but if you can give me the command to set the brightness to a specific value, I can provide you the commands to run from a shortcut. – Jacob Vlijm Apr 4 '17 at 8:00
  • 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 – Sumeet Deshmukh Apr 4 '17 at 8:29
  • pastebin.com/GfuvkH9k this might also help you – Sumeet Deshmukh Apr 4 '17 at 8:29
  • @Jacob Vlijm that'd be great – Sumeet Deshmukh Apr 4 '17 at 9:01
  • Don't worry, we'll get it done one way or another :) – Jacob Vlijm Apr 4 '17 at 11:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.