2018-11-01, 07:45 AM
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:
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