f.lux-indicator-applet icon indicating copy to clipboard operation
f.lux-indicator-applet copied to clipboard

No multi-monitor Support (Linux)

Open gdi2k opened this issue 12 years ago • 30 comments

Using Xubuntu 12.04, I can only make f.lux work on the main monitor - my second monitor continues to blind me! ;-)

gdi2k avatar Aug 15 '12 13:08 gdi2k

Same issue here using Linux Mint 13 XFCE. Connected my laptop to a larger monitor, but F.lux works only on the laptop monitor, and not the larger secondary monitor.

thewebdev avatar Aug 17 '12 23:08 thewebdev

What is your display config? separate xserver, nvidia or xrandr?

Kilian avatar Aug 22 '12 12:08 Kilian

I use xrandr. Output from "xrandr" command is:

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
LVDS1 connected (normal left inverted right x axis y axis)
   1280x800       60.0 +
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 509mm x 286mm
   1920x1080      60.0*+
   1280x1024      75.0     60.0  
   1152x864       75.0  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   640x480        75.0     60.0  
   720x400        70.1  
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 509mm x 286mm
   1920x1080      60.0*+
   1280x1024      75.0     60.0  
   1152x864       75.0  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   640x480        75.0     60.0  
   720x400        70.1  
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)

This is a laptop connected to a docking station with two external monitors attached (VGA1 and HDMI2). Laptop display (LVDS1) is off.

gdi2k avatar Aug 22 '12 12:08 gdi2k

I am a linux newbie and didn't understand your question. However, this is the output of xrandr for me:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
   1280x800       59.9*+
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080      60.0*+
   1600x1200      60.0  
   1680x1050      60.0  
   1280x1024      75.0     60.0  
   1440x900       75.0     59.9  
   1280x960       60.0  
   1280x800       59.8  
   1152x864       75.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  
TV1 unknown connection (normal left inverted right x axis y axis)
   848x480        59.9 +
   640x480        59.9 +
   1024x768       59.9  
   800x600        59.9 

thewebdev avatar Aug 22 '12 16:08 thewebdev

I have this issue also, but cannot find the source for xflux in the git repository to try and fix it.

timoc avatar Oct 14 '12 21:10 timoc

Same problem in here, with fewer screens. It worked on the laptop screen when it was on, but really, the point is in the main external monitor. xrandr goes :

Screen 0: minimum 320 x 200, current 1600 x 1200, maximum 8192 x 8192
LVDS1 connected (normal left inverted right x axis y axis)
   1280x800       59.9 +
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 408mm x 306mm
   1600x1200      60.0*+   75.0  
   1280x1024      85.0     75.0     60.0  
   […]
HDMI1 disconnected (normal left inverted right x axis y axis)

LeVieuxGildas avatar Nov 13 '12 22:11 LeVieuxGildas

I also have this problem and my xrandr is:

Screen 0: minimum 320 x 200, current 1920 x 1968, maximum 8192 x 8192 LVDS-1 connected 1366x768+284+1200 (normal left inverted right x axis y axis) 344mm x 193mm 1366x768 60.0*+ 1024x768 59.9 800x600 59.9 640x480 59.4 720x400 59.6 640x400 60.0 640x350 59.8 VGA-1 disconnected (normal left inverted right x axis y axis) HDMI-1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 593mm x 371mm 1920x1200 60.0*+ 1680x1050 60.0 1400x1050 60.0 1280x1024 75.0 60.0 1440x900 59.9 1280x960 60.0 1152x864 75.0 1024x768 75.1 70.1 60.0 832x624 74.6 800x600 72.2 75.0 60.3 56.2 720x480 59.9 640x480 72.8 75.0 66.7 60.0 720x400 70.1

perendipity avatar Dec 02 '12 23:12 perendipity

same problem: Screen 0: minimum 320 x 200, current 2960 x 1050, maximum 8192 x 8192 DVI-0 connected 1280x1024+0+26 (normal left inverted right x axis y axis) 338mm x 270mm 1280x1024 60.0_+ 75.0
1280x960 60.0
1152x864 75.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
S-video disconnected (normal left inverted right x axis y axis) DVI-1 connected 1680x1050+1280+0 (normal left inverted right x axis y axis) 473mm x 296mm 1680x1050 60.0_+ 1280x1024 75.0 60.0
1440x900 75.0 59.9
1280x960 60.0
1360x768 59.8
1152x864 75.0
1280x720 60.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1

djack avatar Mar 07 '13 23:03 djack

will fix this.

herf avatar Mar 07 '13 23:03 herf

https://herf.org/flux/xflux-pre.tgz adds support for RANDR by default (can go back to old behavior with -r 0).

  • have tested multiple CRTCs per "screen" (in particular HDMI TV with my laptop)
  • implemented but did not test multiple XWindows "screens", though I implemented support for it.

Still need to poll for display changes infrequently - it is quite expensive and makes the X Server hiccup.

herf avatar Mar 08 '13 02:03 herf

Magnificent, this works perfectly for me (Ubuntu 12.10). For anybody that needs numpty-proof instructions:

  • Make a backup of /usr/bin/xflux
  • Download and extract the .tgz file above
  • Replace /usr/bin/xflux with the extracted file
  • If you have the f.lux applet, click it, select 'Pause' and then 'Resume'. Otherwise, reboot.

fiznool avatar Apr 22 '13 20:04 fiznool

hi @fiznool , what do you mean by "applet"? would the gui application from this repo work together with the tgz above?

so it's not just not using the ppa version, but this one here, AND not using xflux, but xflux-pre ?

ease ;)

./xflux: error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory

almereyda avatar Aug 01 '13 23:08 almereyda

Hmm. It's been a while since I did this so I'm not 100% sure, however I think I used the PPA version and replaced the main f.lux binary with the .tgz one, as per my post.

The applet is the thing that sits in the status bar / dock thing at the top of the Ubuntu screen.

fiznool avatar Aug 02 '13 07:08 fiznool

@herf, any chance of submitting a pull request for the code that fixes this issue? It'd be great to have it in the main packages.

CossRooper avatar Sep 09 '13 03:09 CossRooper

If you download the xflux mentioned here: http://justgetflux.com/linux.html under "xflux daemon (command line, but for X-Windows)" and use that it seems to work for multiple monitors by default.

myano avatar Nov 08 '13 07:11 myano

I had the same issue, but @herf's version appears to work! Thanks a lot.

jbremer avatar Jun 28 '14 22:06 jbremer

It was working previously on my Ubuntu 13.10, but not working on 14.04 now. I tried to use 32-bit version, but getting error:

./xflux: error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory

3 hours of googling and trying solutions didn't help, can you help? red eyes in the morning look too bad :(

azamat-sharapov avatar Jul 07 '14 14:07 azamat-sharapov

apt-get install libxrandr?

herf avatar Jul 07 '14 14:07 herf

hahaha, @herf , I just tried that about 30 seconds ago and was going to write here. It is good, that github has real-time update. This is the exact command I ran to get it working:

sudo apt-get install libxrandr2:i386

Now saving my eyes. Thanks anyway!

azamat-sharapov avatar Jul 07 '14 14:07 azamat-sharapov

I had the same issue and just wanted to say thank you very much!

viertelb avatar Mar 07 '15 18:03 viertelb

I had the same issue too - thanks all for the fixes! :+1:

juddey avatar Apr 22 '15 08:04 juddey

Using the binary from the sitte meantioned above, it works for me too :)

@Kilian Is there a reason why the version differs from the one on the website? Flux and the indicator are great software! How did I live without them?!

Benjamin-Justice avatar Jul 06 '15 21:07 Benjamin-Justice

I can also confirm downloading the binary in the link above works for me. Is there any chance the ppa will be updated to include this?

MichaelAquilina avatar Aug 27 '15 11:08 MichaelAquilina

@herf good job, this should be propagated to PPA :+1:

mordka avatar Sep 07 '15 20:09 mordka

you can try this solution: http://www.mathewgoldsborough.com/2013/10/28/install-flux-ubuntu-13-04-64-bit.html

hetdev avatar Oct 13 '15 16:10 hetdev

@herf Great job! I have to add that your version also work when using the NVidia drivers, while the original one didn't. thank you!

cipri-tom avatar Nov 23 '15 00:11 cipri-tom

That binary works great, but the problem is that the lighting temperature isn't the same on both monitors.

Is there a way to have the lighting temperature the same on both?

demeralde avatar Nov 26 '15 11:11 demeralde

Well I tried this and it works partly for me. I have an Thinkpad E550 with 2 extra monitors attached. Main screen is per default one of those extra monitors.

Laptop and the other screen were not using flux. After unpacking the archive it works on both external monotors but still not on the laptop screen.

Using Ubuntu 15.10 with gnome shell (which also is responsible for the monotor config). I guess that uses xrandr as well.

$ xrandr
Screen 0: minimum 8 x 8, current 5440 x 1080, maximum 32767 x 32767
eDP1 connected 1600x900+3840+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.00 +  59.93  
   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 disconnected (normal left inverted right x axis y axis)
DP2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x720      60.00  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   640x480       75.00    60.00  
   720x400       70.08  
HDMI1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x720      60.00  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   640x480       75.00    60.00  
   720x400       70.08  
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

kitingChris avatar Dec 02 '15 15:12 kitingChris

Thank you Herf, your solution works like a charm.

shideneyu avatar Jan 11 '16 16:01 shideneyu

I see a comment about needing to poll for monitor changes. You shouldn't need to do that; you can use xrrSelectInput to request RROutputChangeNotify events.

geekosaur avatar Feb 01 '16 00:02 geekosaur