Discussion:
[Fluxbox-users] Dual head maximize and full screen spans across
Jj
2015-05-18 03:52:29 UTC
Permalink
I have had a dual screen set up in fluxbox for around 10 years, but I
always used two independent X sessions per monitor and I never had a
problem and never really missed the need to drag windows across screens.

Last night I just got a third monitor for the first time so I wanted to
configure it as 2 X sessions, one for the new big one and the other two
screens to share their own X session.
This means that I should now be able to drag stuff between them and
switching workspaces would link those two together.

My problem now is maximizing and full screen. It happens across both
monitors that share their own X session, Opening new windows many times
ends up with them being split in the middle and makes it annoying since now
I need to size stuff manually to adjust to the dimensions I want to match
one of the screens.

I have NOT enabled Xinerama enabled since that's a ServerLayout directive
and doing so would affect ALL screens linking them all three together.

I have used fluxbox for a decade but never on this configuration. I was
unable to find info online about how to handle this. Am I missing something?


Here is my Xorg.conf

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 331.20 (***@roseapple) Mon Feb 3 15:07:22
UTC 2014

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 331.113 (***@swio-display-x64-rhel04-03)
Mon Dec 1 21:15:34 PST 2014

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 3840 0
Screen 1 "Screen1" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "LG Electronics L226W"
HorizSync 28.0 - 83.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "Samsung U28D590"
HorizSync 30.0 - 90.0
VertRefresh 24.0 - 75.0
ModeLine "3840x2160_60.00" 712.75 3840 4160 4576 5312 2160 2163
2168 2237 -hsync +vsync
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 650"
BusID "PCI:1:0:0"
Screen 0
Option "Twinview"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 650"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "CRT-0"
Option "metamodes" "VGA-0: nvidia-auto-select +0+0, DVI-D-0:
1440x900 +1680+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"

#Option "ModeValidation" "AllowNon60hzmodesDFPModes,
NoEDIDDFPMaxSizeCheck, NoVertRefreshCheck, NoHorizSyncCheck,
NoDFPNativeResolutionCheck, NoMaxSizeCheck, NoMaxPClkCheck,
AllowNonEdidModes, NoEdidMaxPClkCheck"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "ModeValidation" "NoEDIDDFPMaxSizeCheck,
NoVertRefreshCheck, NoHorizSyncCheck, NoDFPNativeResolutionCheck,
NoMaxSizeCheck, NoMaxPClkCheck, AllowNonEdidModes, NoEdidMaxPClkCheck"
Option "Stereo" "0"
Option "metamodes" "HDMI-0: nvidia-auto-select +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Disable"
EndSection
--
Jj
http://isgeek.net/
- Don't make me hate email: http://goo.gl/hk9q
Mathias Gumz
2015-05-18 06:29:16 UTC
Permalink
Post by Jj
I have NOT enabled Xinerama enabled since that's a ServerLayout directive
and doing so would affect ALL screens linking them all three together.
yep. but you have to xinerama/twinview the 2 monitors together to one "screen".
Post by Jj
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 3840 0
Screen 1 "Screen1" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
looks good.
Post by Jj
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 650"
BusID "PCI:1:0:0"
Screen 0
Option "Twinview"
EndSection
i would add this:

Option "TwinView" "1"
Option "TwinViewOrientation" "DFP-1 LeftOf DFP-0"
Option "MetaModes" "DFP-0: nvidia-auto-select,DFP-1:
nvidia-auto-select; DFP-0: nvidia-auto-select,DFP-1:NULL;
DFP-0:NULL,DFP-1:nvidia-auto-select;"

(or something that reflects your attached monitors). the idea is to
provide here "one" device that has multiple monitors connected to it.
but treat it as one device.
Post by Jj
Section "Screen"
Identifier "Screen0"
Device "Device0"
and this would pick the setting from above up. should work.

for fluxbox itself: you need the xinerama-option to be compiled in.

hope it helps,
cheers,
--
[uid] mathias gumz [www] http://www.fluxbox.org/
[pgp] 1024D/F6F6B18C [irc] ak|ra at freenode.org
Jj
2015-05-19 05:46:29 UTC
Permalink
This is great, thanks a lot. But I think there's a line you missed right
under the "Screen" section?
I added the options to the Device section, but behavior is the same.
Post by Mathias Gumz
Post by Jj
I have NOT enabled Xinerama enabled since that's a ServerLayout directive
and doing so would affect ALL screens linking them all three together.
yep. but you have to xinerama/twinview the 2 monitors together to one "screen".
Post by Jj
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 3840 0
Screen 1 "Screen1" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
looks good.
Post by Jj
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 650"
BusID "PCI:1:0:0"
Screen 0
Option "Twinview"
EndSection
Option "TwinView" "1"
Option "TwinViewOrientation" "DFP-1 LeftOf DFP-0"
nvidia-auto-select; DFP-0: nvidia-auto-select,DFP-1:NULL;
DFP-0:NULL,DFP-1:nvidia-auto-select;"
(or something that reflects your attached monitors). the idea is to
provide here "one" device that has multiple monitors connected to it.
but treat it as one device.
Post by Jj
Section "Screen"
Identifier "Screen0"
Device "Device0"
and this would pick the setting from above up. should work.
for fluxbox itself: you need the xinerama-option to be compiled in.
hope it helps,
cheers,
--
[uid] mathias gumz [www] http://www.fluxbox.org/
[pgp] 1024D/F6F6B18C [irc] ak|ra at freenode.org
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
--
Jj
http://isgeek.net/
- Don't make me hate email: http://goo.gl/hk9q
Mathias Gumz
2015-05-19 05:54:27 UTC
Permalink
Post by Jj
This is great, thanks a lot. But I think there's a line you missed right
under the "Screen" section?
which one?
Post by Jj
I added the options to the Device section, but behavior is the same.
is your fluxbox compiled against xinerama and xrandr?
--
[uid] mathias gumz [www] http://www.fluxbox.org/
[pgp] 1024D/F6F6B18C [irc] ak|ra at freenode.org
Jj
2015-05-19 05:57:32 UTC
Permalink
You mentioned this on your fisrt reply:

"""
Post by Jj
Section "Screen"
Identifier "Screen0"
Device "Device0"
and this would pick the setting from above up. should work.
"""
which is how the current Screen0 is configured, so I thought you meant that
there was something to add to that screen's section other than the existing
conf.


This is my fluxbox info, it has Xinerama and RandR enabled. Do I need a
newer version?

[~] fluxbox -info
Fluxbox version: 1.3.5
GIT Revision: this_is_tar_ball_build
Compiled: Mar 3 2014 23:44:28
Compiler: GCC
Compiler version: 4.8.2

Defaults:
menu: /etc/X11/fluxbox/fluxbox.menu-user
style: /usr/share/fluxbox/styles//ubuntu-light
keys: /etc/X11/fluxbox/keys
init: /etc/X11/fluxbox/init
nls: /usr/share/fluxbox/nls

Compiled options (- => disabled):
BIDI
-DEBUG
EWMH
IMLIB2
NLS
REMEMBER
RENDER
SHAPE
SLIT
SYSTEMTRAY
TOOLBAR
RANDR1.2
XFT
XINERAMA
XMB
XPM
Post by Jj
Post by Jj
This is great, thanks a lot. But I think there's a line you missed right
under the "Screen" section?
which one?
Post by Jj
I added the options to the Device section, but behavior is the same.
is your fluxbox compiled against xinerama and xrandr?
--
[uid] mathias gumz [www] http://www.fluxbox.org/
[pgp] 1024D/F6F6B18C [irc] ak|ra at freenode.org
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
--
Jj
http://isgeek.net/
- Don't make me hate email: http://goo.gl/hk9q
Mathias Gumz
2015-05-19 06:11:36 UTC
Permalink
Post by Mathias Gumz
"""
Post by Jj
Section "Screen"
Identifier "Screen0"
Device "Device0"
and this would pick the setting from above up. should work.
"""
which is how the current Screen0 is configured, so I thought you meant that
there was something to add to that screen's section other than the existing
conf.
nah, i was just refering to the place of your config which should then
pick up the settings from device0 :)
Post by Mathias Gumz
XINERAMA
looks ok.

so, "xrandr -q" lists the correct amount of monitors for that screen
with the multiple monitors?
--
[uid] mathias gumz [www] http://www.fluxbox.org/
[pgp] 1024D/F6F6B18C [irc] ak|ra at freenode.org
Jj
2015-05-19 06:13:46 UTC
Permalink
Yes it does:

[~] xrandr -q
<Keia>
Screen 0: minimum 8 x 8, current 3120 x 1050, maximum 16384 x 16384
VGA-0 connected primary 1680x1050+0+0 (normal left inverted right x axis y
axis) 474mm x 296mm
1680x1050 59.9*+ 60.0
1440x900 75.0 59.9
1280x1024 75.0 60.0
1280x960 60.0
1152x864 75.0
1024x768 75.0 60.0
800x600 75.0 60.3 56.2
640x480 75.0 59.9
DVI-D-0 connected 1440x900+1680+0 (normal left inverted right x axis y
axis) 408mm x 255mm
1440x900 59.9*+
1280x1024 75.0 60.0
1280x960 60.0
1152x864 75.0
1024x768 75.0 70.1 60.0
800x600 75.0 60.3 56.2
640x480 75.0 59.9
DVI-D-1 disconnected (normal left inverted right x axis y axis)
Post by Jj
Post by Mathias Gumz
"""
Post by Jj
Section "Screen"
Identifier "Screen0"
Device "Device0"
and this would pick the setting from above up. should work.
"""
which is how the current Screen0 is configured, so I thought you meant
that
Post by Mathias Gumz
there was something to add to that screen's section other than the
existing
Post by Mathias Gumz
conf.
nah, i was just refering to the place of your config which should then
pick up the settings from device0 :)
Post by Mathias Gumz
XINERAMA
looks ok.
so, "xrandr -q" lists the correct amount of monitors for that screen
with the multiple monitors?
--
[uid] mathias gumz [www] http://www.fluxbox.org/
[pgp] 1024D/F6F6B18C [irc] ak|ra at freenode.org
--
Jj
http://isgeek.net/
- Don't make me hate email: http://goo.gl/hk9q
Mathias Gumz
2015-05-19 06:22:32 UTC
Permalink
Post by Jj
[~] xrandr -q
<Keia>
Screen 0: minimum 8 x 8, current 3120 x 1050, maximum 16384 x 16384
VGA-0 connected primary 1680x1050+0+0 (normal left inverted right x axis y
DVI-D-0 connected 1440x900+1680+0 (normal left inverted right x axis y axis)
looks good. how about "xdpyinfo"?

if fluxbox maximizes windows across both monitors it has not detected
xinerama correctly. it should, since twinview is a flavor of xinerama.
you might also want to try to remove that xinerama-line from your
serverlayout-section, it should still use "real" screens.

cheers,
--
[uid] mathias gumz [www] http://www.fluxbox.org/
[pgp] 1024D/F6F6B18C [irc] ak|ra at freenode.org
Jj
2015-05-19 06:46:18 UTC
Permalink
(Re sending with smaller attachment)

Removed the Xinerama 0 option from Xserver and restarted. Symptom remains.
Is there maybe a way to output what fluxbox is reading and recognizing as
it starts up?
The ~/.fluxbox/log file doesn't have much information right now.

If it is help at all, I'm running Ubuntu 14.10 and booting via LightDM, it
launches the a startfluxbox script which is clutter and `exec fluxbox`.

I made sure that the binary running under /proc/`pid`/ is the fluxbox
command I was looking at, its info shows xinerama enabled.
Post by Mathias Gumz
Post by Jj
[~] xrandr -q
<Keia>
Screen 0: minimum 8 x 8, current 3120 x 1050, maximum 16384 x 16384
VGA-0 connected primary 1680x1050+0+0 (normal left inverted right x axis
y
Post by Jj
DVI-D-0 connected 1440x900+1680+0 (normal left inverted right x axis y
axis)
looks good. how about "xdpyinfo"?
if fluxbox maximizes windows across both monitors it has not detected
xinerama correctly. it should, since twinview is a flavor of xinerama.
you might also want to try to remove that xinerama-line from your
serverlayout-section, it should still use "real" screens.
cheers,
--
[uid] mathias gumz [www] http://www.fluxbox.org/
[pgp] 1024D/F6F6B18C [irc] ak|ra at freenode.org
--
Jj
http://isgeek.net/
- Don't make me hate email: http://goo.gl/hk9q
Mathias Gumz
2015-05-19 06:51:29 UTC
Permalink
Post by Jj
Removed the Xinerama 0 option from Xserver and restarted. Symptom remains.
Is there maybe a way to output what fluxbox is reading and recognizing as it
starts up?
The ~/.fluxbox/log file doesn't have much information right now.
well, your xdpyinfo shows that your server is not running with
xinerama (the extension is not loaded). try to enable it somehow ..
your problems should go away :)
--
[uid] mathias gumz [www] http://www.fluxbox.org/
[pgp] 1024D/F6F6B18C [irc] ak|ra at freenode.org
Continue reading on narkive:
Search results for '[Fluxbox-users] Dual head maximize and full screen spans across' (Questions and Answers)
24
replies
somehow I get the feeling this website is populated with libreals?
started 2006-08-01 21:20:04 UTC
politics & government
Loading...