Hello there
I’m currently trying to fix an annoyance in the way LWJGL handles multiple monitors on linux. See this thread for the full details, but the upshot is that I’m entirely too stupid and lazy to write the native code necessary, so I’m proposing to just call out to the “xrandr” command-line utility. This works for me, but there are valid concerns on how reliable it is over the full panoply of linux environments.
I’d be grateful if you could run this webstart and post the output (the code is here and here if you don’t want to blindly give all permissions to a self-certified jar). Also, if anyone has had problems with using the xrandr command I’d like to hear about them.
So in the interests of transparency, here’s my output:
AWT display mode handling
Device: :0.0
Fullscreen support: false
Display modes:
1920x1200
Device: :0.1
Fullscreen support: false
Display modes:
1440x900
xrandr display mode handling
Screen: VGA1
1920x1200
1280x1024
1024x768
800x600
640x480
720x400
Screen: LVDS1
1440x900
1360x768
1152x864
1024x768
800x600
640x480
xrandr raw output
Screen 0: minimum 320 x 200, current 3360 x 1200, maximum 8192 x 8192
VGA1 connected 1920x1200+1440+0 (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 60.0*+
1280x1024 75.0
1024x768 75.1 60.0
800x600 75.0 60.3
640x480 75.0 60.0
720x400 70.1
LVDS1 connected 1440x900+0+300 (normal left inverted right x axis y axis) 303mm x 189mm
1440x900 60.0*+ 59.9
1360x768 59.8
1152x864 60.0
1024x768 60.0
800x600 60.3
640x480 59.9
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
TV1 disconnected (normal left inverted right x axis y axis)