I have 2 monitors and redshift is only modifying the first one. running redshift -m randr.
~$ redshift
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Using method `randr'.
randr output, showing two monitors:
~$ xrandr
Screen 0: minimum 8 x 8, current 5120 x 1600, maximum 16384 x 16384
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected (normal left inverted right x axis y axis)
1920x1080 60.01 +
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 2560x1600+0+0 (normal left inverted right x axis y axis) 641mm x 401mm
2560x1600 59.97*+
1920x1200 59.88
1920x1080 60.00 59.94 50.00 23.97 60.05 60.00 50.04
1680x1050 59.95
1600x1200 60.00
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 60.01 59.94
640x480 75.00 59.94 59.93
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
DP-6 connected primary 2560x1600+2560+0 (normal left inverted right x axis y axis) 641mm x 401mm
2560x1600 59.97*+
1920x1200 59.88
1920x1080 60.00 59.94 50.00 23.97 60.05 60.00 50.04
1680x1050 59.95
1600x1200 60.00
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 60.01 59.94
640x480 75.00 59.94 59.93
OS: Ubuntu 16.04
Version: redshift 1.10
Odd thing is on a very similar laptop running Ubuntu 14.04 with the redshift 1.10 works fine on the same monitors. and says the same thing:
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Using method `randr'.
Out of curiosity I copied the binary from 14.04 over, in case it had been manually compiled with xrandr support or something... same result.
Is it possible that the graphics driver was updated between 14.04 and 16.04? In any case, it doesn't seem directly related to how Redshift is working. Can you get xgamma to change the gamma ramps on both screens?
I am not sure how to do this with xgamma. I have tried to use xgamma -s 0:0 0:1 to enable two screens, but nothing changed. Can you illustrate more?
I was just wondering if you run something like xgamma -gamma 0.5 does it affect all monitors or just the first one? Additionally, you can check to see if the xrandr tool is able to affect all monitors e.g. xrandr --output DP-3 --gamma 0.5:0.5:0.5 or xrandr --output DP-6 --gamma 0.5:0.5:0.5.
The first command line doesn't change the secondary monitor.
$ xgamma -gamma 0.5
-> Red 1.000, Green 1.000, Blue 1.000
<- Red 0.500, Green 0.500, Blue 0.500
For the second command, I have tried using different numbers of DP-*, but it always gave
xrandr: Need crtc to set gamma on.
then nothing got changed.
Ok, thanks. My guess is that this is more likely to be a driver issue than anything we can fix directly in Redshift. Have you reported these issues to your distribution?
Gotcha. I am using a DisplayLink Dock station. This issue might be related to that, or Ubuntu itself. I will report to them. Thank you for looking into this issue.
I've got a DisplayLink USB3.0 monitor as a second screen with exactly the same problem. Any news?
Linux Mint 18.3 (based on 16.04.3), seeing same issue on second monitor. GTX 660 (384.90-0ubuntu0.16.04.2), first DVI works, second DVI no changes.
EDIT: xgamma -gamma 0.5 only affected the first monitor initially, but after setting second display as primary and first display again, both are controlled together.
Looks like all is well now.
I have the same issue. Redshift only affects one monitor.
ArchLinux with kernel 4.14.13
@all-the-good-ones-are-gone Can you elaborate? I have one primary monitor but how does swapping the two helps?
Adding my data point to the mix. I'm seeing the same issue with Ubuntu 16.04, DisplayLink USB 3.0 docking station, and Redshift. Redshift affects the laptop screen but neither if the 2 monitors I have connected via the docking station. Seems like it might have to do with the docking station, but I have no proof one way or the other.
+1 here, have displaylink USB 3.0 docking station, redshift only works with the laptop screen. xrandr shows my displays though.
same here, kubuntu 18, displaylink
same here, Linux Mint 18 Sarah running cinnamon
eDP1 is the built-in monitor which normally works with redshift, and remains the primary display at all times. DP1 is the external monitor and when it's connected, redshift works only on the 2nd monitor.
setting screen=1 results in X Error of failed request: BadValue (integer parameter out of range for operation)
adjustment-method=vidmode
screen=0
$ xrandr
Screen 0: minimum 8 x 8, current 4280 x 1920, maximum 32767 x 32767
eDP1 connected primary 3200x1800+0+0 (normal left inverted right x axis y axis) 294mm x 165mm
3200x1800 59.98+ 47.99
2880x1620 60.00
2560x1440 60.00
2048x1536 60.00
1920x1440 60.00
1856x1392 60.01
1792x1344 60.01
2048x1152 60.00
1920x1200 59.95
1920x1080 60.00 59.93
1600x1200 60.00
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 60.00
1280x1024 60.02
1440x900 59.89
1280x960 60.00
1368x768 60.00
1360x768 59.80 59.96
1152x864 60.00
1280x720 60.00
1024x768 60.00
1024x576 60.00
960x540 60.00
800x600 60.32 56.25
864x486 60.00
640x480 59.94
720x405 60.00
640x360 60.00
DP1 connected 1080x1920+3200+0 left (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.00+ 50.00 59.94
1680x1050 59.88
1600x900 60.00
1280x1024 60.02
1440x900 59.90
1280x800 59.91
1280x720 60.00 50.00 59.94
1024x768 60.00
800x600 60.32
720x576 50.00
720x480 60.00 59.94
640x480 60.00 59.94
720x400 70.08
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Same issue. Ubuntu 18 LTS, display link drivers 4.4.24, single laptop connected to a docking station connected to two other monitors.
Laptop screen adjusts fine. No change on the other two monitors.
Worth noting for me - that the "Night Light" feature of Ubuntu 18 also does NOT affect the other 2 monitors. - implying in my case it is some kind of driver issue with the docking station.
A workaround in my situation is to set the RGB of the external monitors to 100/64/33, and then raise the brightness slightly. I believe this is roughly 2700K (based on this https://academo.org/demos/colour-temperature-relationship/). This may be useful to others.
Same issue here, very similar settings as KevTheRev13. Linux Mint 19.1 (thus Ubuntu 18.04 LTS), display link drivers 4.4, single laptop connected to a docking station, but with a single monitor. Laptop screen also adjusts fine, but not the monitor connected to the docking station.
Same here, I have a USB 3 screen in Linux Mint 19.1, works flawless but redshift won't update the plugged screen with the main one.
Same here, two external monitors over USB docking station.
Xubuntu 18.04.2 LTS, 4.15.0-47-generic
Same issue for me with the Monitor connected through DisplayLink.
This needs to be fixed in the DisplayLink driver, as it currently doesn't support gamma correction: https://displaylink.org/forum/showthread.php?t=65641
Any update on this? I'm getting really eye-fatigated lately and I really need this to work.
AFAIU the issue here.. is just the program seemingly "always referring back" to a single monitor?
I was also observing this when I plugged in a new monitor (and made it the primary) with Redshift already running. My old monitor is DP-0 and new monitor is HDMI-0. Here's what worked for me:
xrandr --output DP-0 --gamma 1:1:1 (-P flag to redshift may do the same thing)).redshift -m randr:screen=0,1 -b 0.4 to confirm it would adjust both monitors. Ctrl-C'd that.nohup redshift -m randr:screen=0,1 &. (I don't know if that is even a valid screen option or if it is just parsing that as X screen 0, and Xinerama is presenting both inputs as a single X composite screen... either way, it "works for me.")From what I can tell there are at least two issues here. One is DisplayLink which I don't think is an issue that can be fixed in any way in Redshift. The second is dynamically discovering screens when they are plugged in/out. This is something I've been working on but haven't had a chance to finish. Are there any other issues where things like xgamma works but Redshift doesn't?
@jonls I think the issue is that Redshift aims only "Main|Primary" screen monitor After disconnecting HDMI-1 one USB-3.0 port monitor becomes manageable from Redshift (Both are connected directly)
There is also weird issue with on Mint 19.3 in which USB 3.0 connected monitor is detected as DP-1|2 -> Display Port viewable from Display Manager menu while monitor has HDMI input connected to USB on the laptop Nevertheless, it is consistent with xrandr info
Not sure whether it helps you
Any update on this? I'm getting really eye-fatigated lately and I really need this to work.
I feel you.
Mint 19.3, main display on DP and secondary on HDMI. Using an AMD RX580, running mesa, if that helps (not seen any talk of hardware related possibilities).
Most helpful comment
Same issue. Ubuntu 18 LTS, display link drivers 4.4.24, single laptop connected to a docking station connected to two other monitors.
Laptop screen adjusts fine. No change on the other two monitors.
Worth noting for me - that the "Night Light" feature of Ubuntu 18 also does NOT affect the other 2 monitors. - implying in my case it is some kind of driver issue with the docking station.
A workaround in my situation is to set the RGB of the external monitors to 100/64/33, and then raise the brightness slightly. I believe this is roughly 2700K (based on this https://academo.org/demos/colour-temperature-relationship/). This may be useful to others.