ryzom / ryzomcore

Ryzom Core is the open-source project related to the Ryzom game. This community repository is synchronized with the Ryzom Forge repository, based on the Core branch.
https://wiki.ryzom.dev
GNU Affero General Public License v3.0
333 stars 90 forks source link

closed the second screen after exit from the game on linux #258

Closed ryzom-pipeline closed 4 years ago

ryzom-pipeline commented 8 years ago

Original report by PitBall (Bitbucket: PitBall, GitHub: PitBall).


My right screen is hdmi, left the laptop screen where I play Ryzom. After exit from the game is closed my right screen (hdmi). Tested on branches develop and compatibility-develop. Management of my screens use RandR.

ryzom-pipeline commented 8 years ago

Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).


Thanks for the report, unfortunately I don't have 2 screens to test and debug that :(

ryzom-pipeline commented 8 years ago

Original comment by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).


Desktop, i5-4460, two monitors with DVI (HDMI2) and VGA (VGA1) outputs (hdmi not used)

After switching from fullscreen (HDMI2) to windowed, HDMI2 output is disabled

client.log after switch

2016/02/28 12:06:30 INF 825927616 ryzom_client_dev driver_opengl_window.cpp 2229 getCurrentScreenMode : 3D: Current XRandR mode 0: 1680x1050, 24bit
2016/02/28 12:06:30 WRN 825927616 ryzom_client_dev client_cfg.cpp 2078 writeBool : CFG: Default value used for 'VREnable' !!!
2016/02/28 12:06:30 WRN 825927616 ryzom_client_dev driver_opengl_window.cpp 2898 setMonitorColorProperties : CDriverGL::setMonitorColorProperties not implemented
2016/02/28 12:06:30 INF 825927616 ryzom_client_dev driver_opengl_window.cpp 2229 getCurrentScreenMode : 3D: Current XRandR mode 0: 1680x1050, 24bit
2016/02/28 12:06:30 INF 825927616 ryzom_client_dev driver_opengl_window.cpp 2229 getCurrentScreenMode : 3D: Current XRandR mode 0: 1680x1050, 24bit
2016/02/28 12:06:30 INF 825927616 ryzom_client_dev driver_opengl_window.cpp 1224 restoreScreenMode : 3D: Switching back to XRandR mode 0
2016/02/28 12:06:30 INF 825927616 ryzom_client_dev driver_opengl_window.cpp 2229 getCurrentScreenMode : 3D: Current XRandR mode 0: 1680x1050, 24bit
2016/02/28 12:06:30 INF 825927616 ryzom_client_dev driver_opengl_window.cpp 2229 getCurrentScreenMode : 3D: Current XRandR mode 0: 1680x1050, 24bit
2016/02/28 12:06:30 INF 825927616 ryzom_client_dev driver_opengl_window.cpp 2229 getCurrentScreenMode : 3D: Current XRandR mode 0: 1680x1050, 24bit
2016/02/28 12:06:30 INF 825927616 ryzom_client_dev driver_opengl_window.cpp 2229 getCurrentScreenMode : 3D: Current XRandR mode 0: 1680x1050, 24bit

xrandr output

Screen 0: minimum 8 x 8, current 3360 x 1050, maximum 32767 x 32767
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 433mm x 270mm
   1680x1050      59.9*+
   1600x1200      60.0  
   1280x1024      75.0     60.0  
   1280x960       60.0  
   1152x864       75.0     70.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        75.0     72.8     66.7     60.0  
   720x400        70.1  
VGA1 connected 1680x1050+1680+0 (normal left inverted right x axis y axis) 495mm x 291mm
   1680x1050      60.0*+
   1600x1200      60.0  
   1280x1024      75.0     60.0  

client.log on startup

2016/02/28 12:17:42 INF 3499149248 ryzom_client_dev driver_opengl_window.cpp 372 init : 3D: XRandR 1.4 found
2016/02/28 12:17:42 INF 3499149248 ryzom_client_dev driver_opengl_window.cpp 383 init : 3D: XF86VidMode 2.2 found
2016/02/28 12:17:42 INF 3499149248 ryzom_client_dev driver_opengl_window.cpp 397 init : 3D: XRender 0.11 found
3D:     Generic Event Extension SHAPE MIT-SHM XInputExtension XTEST 
3D:     BIG-REQUESTS SYNC XKEYBOARD XC-MISC SECURITY 
3D:     XFIXES RENDER RANDR XINERAMA DAMAGE 
3D:     MIT-SCREEN-SAVER DOUBLE-BUFFER RECORD DPMS Present 
3D:     DRI3 X-Resource XVideo XFree86-VidModeExtension XFree86-DGA 
3D:     DRI2 GLX SGI-GLX 
2016/02/28 12:17:42 INF 3499149248 ryzom_client_dev driver_opengl_window.cpp 2229 getCurrentScreenMode : 3D: Current XRandR mode 0: 1680x1050, 24bit
2016/02/28 12:17:42 INF 3499149248 ryzom_client_dev driver_opengl_window.cpp 2229 getCurrentScreenMode : 3D: Current XRandR mode 0: 1680x1050, 24bit
2016/02/28 12:17:42 INF 3499149248 ryzom_client_dev driver_opengl_extension.cpp 1589 registerGlExtensions : 3D: OpenGL 3.0 Mesa 11.0.4 / Intel Open Source Technology Center / Mesa DRI Intel(R) Haswell Desktop 
ryzom-pipeline commented 8 years ago

Original comment by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).


https://www.reddit.com/r/gamedev/comments/2w8ahe/changing_resolutions_for_fullscreen_in_x11_linux/

ryzom-pipeline commented 8 years ago

Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).


Thanks a lot @nimetu I copy-pasted his proposition and I'll test it :)

ryzom-pipeline commented 7 years ago

Original comment by Thomas Kowaliczek (Bitbucket: LinuxDonald, GitHub: LinuxDonald).


I have the same problem when i close the game it kill my second monitor. Maybe i can help out with debug. Im not an coder but when you say me how to debug i would like to help :)