udifuchs / icc-brightness

Control OLED display brightness by applying ICC color profiles.
MIT License
172 stars 25 forks source link

Does not work on KDE on Aero 15 at all #35

Open xuancong84 opened 3 years ago

xuancong84 commented 3 years ago

Both the program and auto-start does not work.

xuancong@wxc-aero:~$ icc-brightness watch
ERROR: device-make-profile-default
Traceback (most recent call last):
  File "/usr/local/bin/icc-brightness", line 136, in main
    icc_brightness_apply()
  File "/usr/local/bin/icc-brightness", line 108, in icc_brightness_apply
    icc_brightness(brightness, max_brightness)
  File "/usr/local/bin/icc-brightness", line 85, in icc_brightness
    subprocess.check_output(['colormgr', 'import-profile', icc_filepath])
  File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.7/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['colormgr', 'import-profile', '/tmp/brightness_6000_120000.icc']' returned non-zero exit status 1.