LordAmit / Brightness

Using Brightness Controller, you can control brightness of both primary and external displays in Linux. Check it out!
Other
1.05k stars 84 forks source link

Error when changing color temperature #243

Open hornsen opened 1 year ago

hornsen commented 1 year ago

Describe the bug I am using Ubuntu 22.04 in conjunction with my Docking Station ICY BOX USB-C Docking Station (11-in-1) for 2 Monitors (2x DisplayPort), 4K 60Hz, 6-fach USB 3.0 HUB, Gigabit Ethernet, Audio, Schwarz, IB-DK2242AC, and the LG 35WN65C LCD-Monitor.

When I open "Brightness-Controller" and set "Color Temperature" to anything except "default", then nothing happens. However, in console I get an error. The error only appears when I try to change color temperature. See log below.

version Brightness Controller v2.3.4

To Reproduce Steps to reproduce the behavior: "Brightness-Controller" and then set any Color Temperature

Expected behavior The color temperature to be changed.

Desktop (please complete the following information):

Additional context

brightness-controller 
xrandr: Need crtc to set gamma on.
Traceback (most recent call last):
  File "/usr/share/brightness-controller/init.py", line 304, in change_value_pg
    Executor.execute_command(cmd_value)
  File "/usr/share/brightness-controller/util/executor.py", line 23, in execute_command
    subprocess.check_output(string_cmd, shell=True)
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'xrandr        --output eDP         --brightness 1.0000000000000007        --gamma 1.0000000000000007:0.7800000000000005:1.0000000000000007' returned non-zero exit status 1.
xrandr: Need crtc to set gamma on.
Traceback (most recent call last):
  File "/usr/share/brightness-controller/init.py", line 317, in change_value_pb
    Executor.execute_command(cmd_value)
  File "/usr/share/brightness-controller/util/executor.py", line 23, in execute_command
    subprocess.check_output(string_cmd, shell=True)
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'xrandr        --output eDP         --brightness 1.0000000000000007        --gamma 1.0000000000000007:0.7800000000000005:0.5700000000000003' returned non-zero exit status 1.
QTextBrowser: No document for https://github.com/lordamit/Brightness
xrandr -q
Screen 0: minimum 320 x 200, current 3440 x 1440, maximum 16384 x 16384
eDP connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +
   1680x1050     60.00  
   1280x1024     60.00  
   1440x900      60.00  
   1280x800      60.00  
   1280x720      60.00  
   1024x768      60.00  
   800x600       60.00  
   640x480       60.00  
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DVI-I-4-4 disconnected (normal left inverted right x axis y axis)
DVI-I-3-3 disconnected (normal left inverted right x axis y axis)
DVI-I-2-2 disconnected (normal left inverted right x axis y axis)
DVI-I-1-1 connected primary 3440x1440+0+0 (normal left inverted right x axis y axis) 820mm x 346mm
   3440x1440     99.98*+  84.96    59.97    49.99  
   1920x1080     60.00    60.00    59.94  
   1280x720      60.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x480       60.00    59.94  
   640x480       60.00    59.94