Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No multi-monitor Support (Linux) #16

Open
gdi2k opened this issue Aug 15, 2012 · 30 comments
Open

No multi-monitor Support (Linux) #16

gdi2k opened this issue Aug 15, 2012 · 30 comments

Comments

@gdi2k
Copy link

gdi2k commented Aug 15, 2012

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

@thewebdev
Copy link

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.

@Kilian
Copy link
Owner

Kilian commented Aug 22, 2012

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

@gdi2k
Copy link
Author

gdi2k commented Aug 22, 2012

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.

@thewebdev
Copy link

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 

@timoc
Copy link

timoc commented Oct 14, 2012

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

@LeVieuxGildas
Copy link

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)

@PeterNachbaur
Copy link

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

@djack
Copy link

djack commented Mar 7, 2013

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

@herf
Copy link

herf commented Mar 7, 2013

will fix this.

@herf
Copy link

herf commented Mar 8, 2013

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.

@fiznool
Copy link

fiznool commented Apr 22, 2013

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.

@almereyda
Copy link

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

@fiznool
Copy link

fiznool commented Aug 2, 2013

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.

@CossRooper
Copy link

@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.

@myano
Copy link

myano commented Nov 8, 2013

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.

@jbremer
Copy link

jbremer commented Jun 28, 2014

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

@azamat-sharapov
Copy link

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 :(

@herf
Copy link

herf commented Jul 7, 2014

apt-get install libxrandr?

@azamat-sharapov
Copy link

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!

@viertelb
Copy link

viertelb commented Mar 7, 2015

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

@juddey
Copy link

juddey commented Apr 22, 2015

I had the same issue too - thanks all for the fixes! 👍

@Benjamin-Justice
Copy link

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?!

@MichaelAquilina
Copy link

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?

@mordka
Copy link

mordka commented Sep 7, 2015

@herf good job, this should be propagated to PPA 👍

@hetdev
Copy link

hetdev commented Oct 13, 2015

@cipri-tom
Copy link

@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!

@demeralde
Copy link

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?

@kitingChris
Copy link

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)

@shideneyu
Copy link

Thank you Herf, your solution works like a charm.

@geekosaur
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests