JDK-8173890 : Dual-screen linux: still no current mode in getDisplayModes()
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Incomplete
  • OS: linux_ubuntu
  • Submitted: 2017-02-03
  • Updated: 2017-02-14
  • Resolved: 2017-02-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Relates :  
Description
The test java/awt/FullScreen/CurrentDisplayModeTest/CurrentDisplayModeTest.java fails on dual-screen Ubuntu 16.04 with JDK9 PIT build for b156 reporting 
java.lang.RuntimeException: Mode 1280x1024x[Multi depth]@[Unknown refresh rate] is not found in the modes list []

It fails actually with b150 as well on this machine.

RULE "java/awt/FullScreen/CurrentDisplayModeTest/CurrentDisplayModeTest.java" Exception java.lang.RuntimeException: Mode ...x[Multi depth]@[Unknown refresh rate] is not found in the modes list []
Comments
Pending info from Yuri.
06-02-2017

xrandr.output attached; TestXinerama reports true.
06-02-2017

Yuri, could you run xrandr command on that machine and attach the output to the bug? And also, that would be very helpful if you could run the next java class there to see what it prints to the console: import sun.awt.X11GraphicsEnvironment; import java.awt.*; public class TestXinerama { public static void main(String[] args) { X11GraphicsEnvironment x11ge = (X11GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); System.out.println(x11ge.runningXinerama()); } } You will need to add JVM option: --add-exports java.desktop/sun.awt=ALL-UNNAMED
06-02-2017

related to JDK-8167486 fix
03-02-2017