http://bugs.winehq.org/show_bug.cgi?id=10115
Summary: Wine should restore the initial graphics mode if an application exits abnormally Product: Wine Version: CVS/GIT Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-kernel AssignedTo: wine-bugs@winehq.org ReportedBy: t.artem@mailcity.com
Sometimes DirectX applications crash and leave your desktop with a changed resolution e.g. 640x480. This shouldn't happen - wine should restore the initial graphics mode if an application exited abnormally.
Right now you have to `xrandr -s 0` or use any other utility.
http://bugs.winehq.org/show_bug.cgi?id=10115
Stefan Dösinger stefandoesinger@gmx.at changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefandoesinger@gmx.at Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #1 from Stefan Dösinger stefandoesinger@gmx.at 2007-10-20 08:27:44 --- I agree that this should be done, but the problem is that if we crash, we're crashed... Doing anything after a crash is a bit tricky.
Maybe the DLL unload handler still runs after a crash, but I am not sure about it. Furthermore doing anything with messed up data structures in the process may be a bit tricky. Maybe it can be done in Wineserver, and I think that's close to what Windows does.
http://bugs.winehq.org/show_bug.cgi?id=10115
--- Comment #2 from Artem S. Tashkinov t.artem@mailcity.com 2007-10-20 08:32:15 --- I suppose, Alexander can find or propose where to insert such functionality ;-)
http://bugs.winehq.org/show_bug.cgi?id=10115
--- Comment #3 from Artem S. Tashkinov t.artem@mailcity.com 2007-10-20 08:37:32 --- Sorry for flooding, but wineserver usually keeps running after an application exited, so we can make it 'watchdog' resolution recovery.
http://bugs.winehq.org/show_bug.cgi?id=10115
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Component|wine-kernel |wine-directx-d3d
--- Comment #4 from Vitaliy Margolen vitaliy@kievinfo.com 2007-10-20 10:39:21 --- Wine server is not GUI app and does not even have connection to X. Should be really fixed in the place that crashes to not crash. On windows you get the same result...
http://bugs.winehq.org/show_bug.cgi?id=10115
--- Comment #5 from Artem S. Tashkinov t.artem@mailcity.com 2007-10-20 11:08:18 --- In Windows graphics applications crash rarely - and speaking frankly, you're lying: when you kill a hanging application using Task Manager then your desktop resolution will be restored automatically.
In other words it is *Wine* that is changing resolutions, so Wine has to revert to your normal desktop setup.
http://bugs.winehq.org/show_bug.cgi?id=10115
--- Comment #6 from Stefan Dösinger stefandoesinger@gmx.at 2007-10-20 16:18:38 --- If an app on Windows crashes, I mean really crashes, not beeing terminated with the task manager, the resolution is restored too. I had this quite often with my d3d test app. It even works when terminating the app with ctrl+c
http://bugs.winehq.org/show_bug.cgi?id=10115
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|wine-directx-d3d |wine-user
--- Comment #7 from Dmitry Timoshkov dmitry@codeweavers.com 2007-10-21 05:27:05 --- Probably the component should be set to user32 since ChangeDisplaySettings is a user32 API, and an app which changes display mode is not necessary a game.
http://bugs.winehq.org/show_bug.cgi?id=10115
--- Comment #8 from Tijl Coosemans tijl@ulyssis.org 2007-10-21 06:16:09 --- I would think Windows keeps track of display settings per app, because alt+tabbing switches resolution as well. If an app crashes then, some other will get activated and the resolution is "restored".
http://bugs.winehq.org/show_bug.cgi?id=10115
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2007-10-21 12:30:07 --- This should be handled at the window manager level. You should lobby freedesktop.org guys to add a standard for that...
http://bugs.winehq.org/show_bug.cgi?id=10115
--- Comment #10 from Artem S. Tashkinov t.artem@mailcity.com 2007-10-21 13:23:01 --- Such a request may take ages. freedesktop guys often completely neglect the bugs filed into their bugzilla.
http://bugs.winehq.org/show_bug.cgi?id=10115
--- Comment #11 from Dmitry Timoshkov dmitry@codeweavers.com 2007-10-21 21:40:20 --- You have to try it first before claiming that Wine needs a workaround.
http://bugs.winehq.org/show_bug.cgi?id=10115
Artem S. Tashkinov t.artem@mailcity.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |ABANDONED
--- Comment #12 from Artem S. Tashkinov t.artem@mailcity.com 2007-10-22 11:07:43 --- OK, let us leave it as is waiting patiently for other guys to come up with a solution in two or maybe five years. A solution which is relevant for the only application because Wine is the only Linux/X11 application which changes graphics resolutions and have no means of restoring it automatically upon its _own_ crash.
http://bugs.winehq.org/show_bug.cgi?id=10115
--- Comment #13 from Stefan Dösinger stefandoesinger@gmx.at 2007-10-22 11:13:51 --- Wrong, ppracer doesn't even restore the resolution if it is killed with a plain SIGTERM. Just one counter-example.
http://bugs.winehq.org/show_bug.cgi?id=10115
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from James Hawkins truiken@gmail.com 2008-01-07 03:15:23 --- Closing abandoned.
http://bugs.winehq.org/show_bug.cgi?id=10115
--- Comment #15 from Artem S. Tashkinov t.artem@mailcity.com 2008-03-16 08:45:12 --- X.org devs seem not to care about this bug at all.
https://bugs.freedesktop.org/show_bug.cgi?id=14255
http://bugs.winehq.org/show_bug.cgi?id=10115
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified
http://bugs.winehq.org/show_bug.cgi?id=10115
Artem S. Tashkinov t.artem@mailcity.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |10841
http://bugs.winehq.org/show_bug.cgi?id=10115
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |otaku@rambler.ru
--- Comment #16 from Dmitry Timoshkov dmitry@baikal.ru 2012-01-08 03:13:58 CST --- *** Bug 29563 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=10115
Bug 10115 depends on bug 10841, which changed state.
Bug 10841 Summary: Restore display resolution when focus is lost or on exit http://bugs.winehq.org/show_bug.cgi?id=10841
What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |UPSTREAM