This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Control backlight
#3
Hey there, thanks for the answer!

I have seen that python project repo on the same link I sent, but it's not working for me, I suppose for the same reason that the file in the first answer is missing. OpenPlotter seems to be set differently.

Here's some error output when trying rpi-backlight:

Code:
pi@openplotter:~ $ sudo rpi-backlight --power
Traceback (most recent call last):
 File "/usr/local/bin/rpi-backlight", line 11, in <module>
   sys.exit(cli())
 File "/usr/local/lib/python2.7/dist-packages/rpi_backlight.py", line 160, in cli
   print(get_power())
 File "/usr/local/lib/python2.7/dist-packages/rpi_backlight.py", line 72, in get_power
   return not int(_get_value("bl_power"))
TypeError: int() argument must be a string or a number, not 'NoneType'


Code:
pi@openplotter:~ $ sudo rpi-backlight --brightness 100
Traceback (most recent call last):
 File "/usr/local/bin/rpi-backlight", line 11, in <module>
   sys.exit(cli())
 File "/usr/local/lib/python2.7/dist-packages/rpi_backlight.py", line 151, in cli
   set_brightness(args.brightness, args.smooth, args.duration)
 File "/usr/local/lib/python2.7/dist-packages/rpi_backlight.py", line 83, in set_brightness
   max_value = get_max_brightness()
 File "/usr/local/lib/python2.7/dist-packages/rpi_backlight.py", line 62, in get_max_brightness
   return int(_get_value("max_brightness"))
TypeError: int() argument must be a string or a number, not 'NoneType'


Code:
pi@openplotter:~ $ sudo rpi-backlight-gui
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Segmentation fault
Reply


Messages In This Thread
Control backlight - by NaturalBornCamper - 2018-10-31, 05:00 PM
RE: Control backlight - by BellaX - 2018-10-31, 08:40 PM
RE: Control backlight - by NaturalBornCamper - 2018-11-01, 07:45 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)