Prevent crashed games from leaving X in a low resolution.

This is a wrapper to prevent fullscreen programs from crashing and leaving X in a lower resolution than normal. To use, simply run ./reset_res.py the_game_you_want_to_run

This game was listed as missing in action: it was no longer available when the site closed.

License: free
Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
noyesnonononoyes
Suggest an update

Comments

Sounds cool. Especially if it handles the mouse pointer, too. This is typically the most anoying thing if a FS game crashes: The mouse doesn't react anymore. Resetting the screen size btw can be done using xrandr if the driver supports it (typically xrandr -o 0, IIRC).

Pit

Re: Let's see posted by anonymous on Sep 15 2005 9:27 AM
'Ctrl alt +' and 'ctrl alt -' can be used to change resolution in these circumstances. But as you said, the most annoying thing is when the mouse remains captured by the application. Can anybody suggest me a way to regain control of the mouse in these cases? Thanks.
Re: Let's see posted by grumbel on Sep 15 2005 10:06 AM
Start a random non-crashing SDL application in fullscreen and leave it again, then the mouse cursor should be usable again, ResetRes doesn't handle such situations as far as I can tell.

Another thing worth to mention are mousetraps, ie. those things that don't allow you to leave the window, those are overrideable via two options in the XF86Config file, see manpage for details:

Option "AllowDeactivateGrabs" "boolean"
Option "AllowClosedownGrabs" "boolean"

Re: Let's see posted by trick on Sep 15 2005 11:04 AM
I always use umouse to clean up after any misbehaving SDL programs. Also, video lock (ie ctrl-alt-+/- doesn't work) can easily be fixed by running "xvidtune -unlock".
Re: Let's see posted by anonymous on Sep 15 2005 12:37 PM
thx for the tip. this is a really helpful program.
Re: Let's see posted by CrazyTerabyte on Sep 15 2005 6:52 PM
Option "AllowDeactivateGrabs" "boolean"
Option "AllowClosedownGrabs" "boolean"

These aren't good options to be enabled, because they will allow anyone to ungrab mouse/keyboard from xscreensaver (or any other screensaver/screenlocker program), or even kill it. It is recommended to not put these options in your XF86Config/xorg.conf file.

I never had a problem with mouse non-reponsive. Whenever a fullscreen program crashes, I will...

  • Go to text-mode console (ctrl+alt+f1) to kill the program by hand, if the program is frozen.
  • Try to press Ctrl+Alt+(+|-) to restore my screen resolution.
  • If that does not work, I open a terminal (I have a keyboard shortcut to open xterm) or use one already open terminal and type xvidtune -unlock
  • Sometimes, I need to use xrandr program.
  • In really last case, if the X is really frozen, I use Alt+SysRq+K to kill everything on that terminal (i.e., kill X and any other open program). This is the "ultimate" keyboard command, and is handled by kernel (this must be enabled in kernel before this command can work; maybe you need to recompile your kernel to enable it).
alt-sysrq-k is evil posted by anonymous on Sep 16 2005 12:29 AM
I've always hated alt-sysrq-k, because "K" on most keyboard is next to "L", and check out what alt-sysrq-L does:
'l' - Send a SIGKILL to all processes, INCLUDING init. (Your system
will be non-functional after this.)
(from the kernel docs, $KERNELDIR/Documentation/sysrq.txt.gz)
Instead, this command (given as root)
/bin/echo "control alt keycode 104 = SAK" |/bin/loadkeys
lets you define a different SAK key on the keyboard.
what is wrong with ctlr-alt-+
Re: Reset Res posted by anonymous on Sep 16 2005 5:47 AM
Won't work if the OE has changed the screen DPI to fit the resolution. KDE does this and it sucks. CTRL+Backspace is the only solution up to now. Haven't tried this one.
Re: Reset Res posted by trick on Sep 16 2005 8:08 AM
In that case you can use 'xrandr -s 0'.
if ctrl+alt+[+/-] don't work, all you need to do is xvidtune -unlock and all will be well.
Re: What is the point? posted by anonymous on Sep 16 2005 2:03 PM
Xvidtune does not help here, after Wine crashes. But thats the same with change_res. :-(
Re: What is the point? posted by anonymous on Sep 16 2005 4:42 PM
Looks like "xrandr -s 0" helps here.
Firing up Q3A (very fast these days) and quitting immediately after works fine for me most of the time.

Log in or register to rate this game or post a comment.