Menu

#530 dosemu full-screen mode kills dual-monitor setting

fixed_in_git
open
nobody
None
3
2014-08-11
2014-05-07
franta
No

Dual-monitor Fedora 19/i686 system, left monitor HDMI 1600x1200 at position 0x0 and right monitor VGA 1280x1024 at position 1600x90, xdosemu under Xfce running in window. When switching from window to full-screen, this destroy monitor configuration: larger HDMI monitor switch from 1600x1200 to 1280x1024, smaller has now position 0x0 and it behaves as two 'paralel' monitors with same image. This situation will stay same after leaving dosemu full-screen mode or exit it.

'xrandr -q -d :0.0' output in normal case:
Screen 0: minimum 320 x 200, current 2880 x 1200, maximum 8192 x 8192
VGA1 connected 1280x1024+1600+90 (normal left inverted right x axis y axis) 376mm x 301mm
  1280x1024      60.0*+   75.0  
  1152x864       75.0  
  1024x768       75.1     60.0  
  800x600        75.0     60.3  
  640x480        75.0     60.0  
  720x400        70.1  
HDMI1 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 367mm x 275mm
  1600x1200      60.0*+
  1280x1024      75.0     60.0  
  1152x864       75.0


'xrandr -q -d :0.0' after dosemu full-screen mode:
Screen 0: minimum 320 x 200, current 2880 x 1200, maximum 8192 x 8192
VGA1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024      60.0*+   75.0  
   1152x864       75.0  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   640x480        75.0     60.0  
   720x400        70.1  
HDMI1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 367mm x 275mm
   1600x1200      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

with 'xrandr --output HDMI1 --auto --pos 0x0 --output VGA1 --auto --pos 1600x90' is possible set monitors back to the original settings, but all programs windows are throwned on one monitor.

Right behavior perhaps should be as other X programs in full screen did - they switch to full screen only on monitor where their window was, and other monitors stay unchanged.
I tried latest devel (git640.g80a6620) and vbios_tweaks (git651.gbadc65b) branches, with
same result.

Discussion

  • Stas Sergeev

    Stas Sergeev - 2014-05-09

    Is this a problem also in SDL mode?

     
    • franta

      franta - 2014-05-11

      Yes, this behaves identically in X and SDL mode. I was not sure when 'dosemu -S' really use SDL (because with default '-a9+cw' there was no differences seen in boot.log in both X and SDL mode), but with little increased debug it seems OK:

      261,262c261,262
      < VID: registered video client sdl
      < GEN: fd=16 gets SIGIO
      ---
      > GEN: fd=18 gets SIGIO
      > VID: registered video client X
      276,287c276,280
      < X: X_init
      < X: visual class is TrueColor
      < X: using true color visual
      < X: pixel size is 32 bits/pixel
      < X: VidMode Extension version 2.2
      < X: X_keymap_init: X server vendor is "Fedora Project"
      < X: X_keymap_init: we are not using DOSEMU's internal keycode translation
      < X: X_init: parent window: 0x86
      < X: X_init: screen = 0, root = 0x86, mainwindow = 0x3e00001
      < X: X_change_config: font "" not found, using builtin
      < X: NOT loading a font. Using EGA/VGA builtin/RAM fonts.
      < X: EGA/VGA font size is 9 x 16
      ---
      > SDL: Using driver: x11
      > SDL: SDL_change_config: item = 1, buffer = (nil)
      > change_config: item = 1, buffer = (nil)
      > SDL: SDL_change_config: item = 1, buffer = 0xbac1af0
      > SDL: SDL_change_config: win_name = DOS in a KLEMP LINUX BOX 
      290d282
      < X: X_init: mouse grabbing enabled, use Ctrl+Mod1+Home to activate
      291a284,285
      > SDL: Expose Event
      > SDL: focus in
      328,330d321
      < fake_call() CS:IP f000:e05d
      < Do INT0x1c: Using caller_function()
      < Processing signal sigalrm
      372d362
      < Resizing our window to 1276x996 image
      374c364,372
      < X: resize_ximage 1276 x 996 --> 1276 x 996
      ---
      > SDL: resize_image 720 x 400
      > SDL: using mode 720 400 32
      > SDL: SDL_change_config: item = 2, buffer = 0xb806248
      > X: X_change_config: font "" not found, using builtin
      > X: NOT loading a font. Using EGA/VGA builtin/RAM fonts.
      > X: EGA/VGA font size is 9 x 16
      > X: X_setmode to text mode: Get remapper for Erics fonts
      > SDL: resize_image 720 x 400
      > SDL: using mode 720 400 32
      
       
  • Stas Sergeev

    Stas Sergeev - 2014-05-11
     
    • franta

      franta - 2014-05-11

      This seems be same problem. IMO this bug isn't too important for me, I'm using dosemu full-screen mode only as quick hack to pass some CTRL/ALT/SHIFT/blaBla shortcuts to my DOS application (which would otherwise have been captured by Window Manager). There is no need to solve this now.

      My HW config is C2Duo E8200/Intel G35 integrated graphics (i915 driver). I'll try it sometime on different HW - as referenced thread implies that may be HW dependend.

       
  • Stas Sergeev

    Stas Sergeev - 2014-05-11

    which would otherwise have been captured by Window Manager

    If you asked for a solution, you would
    already know that Ctrl-Alt-k does that.

     
    • franta

      franta - 2014-05-11

      Stas thanks, I did not know it. I knew something about mouse grabbing, but not this.

       

Log in to post a comment.

MongoDB Logo MongoDB