#546671 libsdl1.2debian: dual head remains mirrored after SDL games

Package:
libsdl1.2debian
Source:
libsdl1.2
Description:
SDL 1.2 binary compatibility library wrapping SDL 2.0
Submitter:
Daniel Dickinson
Date:
2021-05-22 20:15:02 UTC
Severity:
normal
Tags:
#546671#5
Date:
2009-09-14 22:42:19 UTC
From:
To:
Vectoroids has this problem as well.  I suspect it is a problem with libsdl.
Launching einstein causes the both monitors to display the image and after
exiting einstein the display does not return to displaying both parts of the
desktop, but instead remains a mirrored display of monitor 1.  This is bad
because the items on the second screen become inaccessible and the second
is no longer visible.

#546671#10
Date:
2010-06-15 05:03:52 UTC
From:
To:
--- Please enter the report below this line. ---
When I open Einstein in kde in full scren mode , when I close it the screen remains black and I can see others programs.

Debian Release: squeeze/sid
  500 unstable        ftp.caliu.cat
  500 unstable        ftp.bg.debian.org
  500 testing         security.debian.org
  500 testing         ftp.es.debian.org
  500 testing         ftp.caliu.cat
  500 lucid           ppa.launchpad.net
    1 experimental    ftp.caliu.cat
--- Package information. ---
Depends                 (Version) | Installed
=================================-+-==============
libc6                  (>= 2.2.5) | 2.11.2-1
libfreetype6           (>= 2.2.1) | 2.3.11-1
libgcc1              (>= 1:4.1.1) | 1:4.4.4-5
libsdl-mixer1.2        (>= 1.2.6) | 1.2.8-6+b1
libsdl-ttf2.0-0                   | 2.0.9-1
libsdl1.2debian     (>= 1.2.10-1) | 1.2.14-6
libstdc++6             (>= 4.4.0) | 4.4.4-5
zlib1g               (>= 1:1.1.4) | 1:1.2.3.4.dfsg-3


Package's Recommends field is empty.

Package's Suggests field is empty.

#546671#17
Date:
2012-05-06 06:28:53 UTC
From:
To:
retitle 546671 einstein: dual head becomes mirrored monitor 1 (second display is lost)
tags 546671 moreinfo
severity 546671 normal
stop


Hi Daniel,

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546671

Can you investigate the problem to make sure that this is related to
libsdl1.2debian ?  Does the problem still exist with libsdl1.2debian 1.2.14-6.1
and 1.2.15-3 ? Are you sure you cannot reset the second monitor with
gnome-display-properties (assuming you're using GNOME) ?

Regards,

Bart Martens

#546671#28
Date:
2012-05-07 22:48:36 UTC
From:
To:
The situation has improved somewhat.  Now the primary screen returns to
correct resolution.  Unfortunately the display is still mirrored after
the game.  However, redoing the xrandr command (I don't use GNOME)
correctly resets the display now.

Other SDL games experience the same behaviour which is why I believe the
issue to be SDL.

Regards,

Daniel

#546671#47
Date:
2021-05-22 20:03:28 UTC
From:
To:
The Einstein puzzle package uses SDL 1.2

If I run it in fullscreen on my desktop machine, the display is frequently
(but not always) messed up on exit.

It can be reset with either KDE screen controls or xrandr

The onboard graphics has two outputs (DVI and VGA), the situation seems
improved/fixed if I disable the second with this command.

$ xrandr --output VGA-0 --off

Obviously this is a works for me whilst I only have one monitor plugged in.

$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DVI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y
axis) 521mm x 293mm
   1920x1080     60.00*+
   1680x1050     59.88
   1280x1024     75.02    60.02
   1440x900      74.98    59.90
   1280x960      60.00
   1152x864      75.00
   1024x768      75.03    70.07    60.00
   832x624       74.55
   800x600       72.19    75.00    60.32    56.25
   640x480       75.00    72.81    66.67    59.94
   720x400       70.08
VGA-0 disconnected (normal left inverted right x axis y axis)

I got similar behaviour from trivially small test program. So confident this is
libsdl1.2. Couldn't find a small code change that fixed Einstein but I'm
learning SDL as I go, although it might be possible to scale in a resizeable
window, since I doubt many people are running 800x600 only.

Will try SDL_VIDEO_FULLSCREEN_HEAD=0 environment variable when it recurs.