Kilian / f.lux-indicator-applet

This repository is unmaintained. Visit:
https://github.com/xflux-gui/xflux-gui
Other
549 stars 105 forks source link

No multi-monitor Support (Linux) #16

Open gdi2k opened 12 years ago

gdi2k commented 12 years ago

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

thewebdev commented 12 years ago

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 commented 12 years ago

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

gdi2k commented 12 years ago

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 commented 12 years ago

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 commented 11 years ago

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

LeVieuxGildas commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

will fix this.

herf commented 11 years ago

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

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

fiznool commented 11 years ago

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

almereyda commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

@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 commented 10 years ago

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 commented 10 years ago

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

azamat-sharapov commented 10 years ago

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 commented 10 years ago

apt-get install libxrandr?

azamat-sharapov commented 10 years ago

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 commented 9 years ago

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

juddey commented 9 years ago

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

Benjamin-Justice commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

hetdev commented 8 years ago

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

cipri-tom commented 8 years ago

@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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

Thank you Herf, your solution works like a charm.

geekosaur commented 8 years ago

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.