23 Jun 2012 14:39
Problem with SDL when coming back from suspend mode in Debian
Mohsen Jamali <mohsen.aria <at> gmail.com>
2012-06-23 12:39:47 GMT
2012-06-23 12:39:47 GMT
Hi guys :)
i have an SDL program that runs ok when i run it from shell. also i have an script that i have put it in startup applications of Gnome/Debian that runs the program automatically when system boots. i have decided to autostart my app when the machine comes back from suspend mode so i put this script in
"/etc/pm/sleep.d/myscript"
#! /bin/sh
case "$1" in
thaw|resume)
/home/p/Desktop/myscript
;;
*)
;;
esac
exit $?
this script simply run my app after coming back from suspend mode!
http://ubuntuforums.org/showthread.php?t=1484156
after coming back from suspend mode, my app runs well but my app has just get 2/3 of screen and the other areas are black and any key doesn't work.
i decided to remove the script from /etc/pm/sleep.d and run my app by myself. in this way my app works correctly, i think something shoul be wrong with running my script from sleep.d
does anyone has any idea? thanks.
i have an SDL program that runs ok when i run it from shell. also i have an script that i have put it in startup applications of Gnome/Debian that runs the program automatically when system boots. i have decided to autostart my app when the machine comes back from suspend mode so i put this script in
"/etc/pm/sleep.d/myscript"
#! /bin/sh
case "$1" in
thaw|resume)
/home/p/Desktop/myscript
;;
*)
;;
esac
exit $?
this script simply run my app after coming back from suspend mode!
http://ubuntuforums.org/showthread.php?t=1484156
after coming back from suspend mode, my app runs well but my app has just get 2/3 of screen and the other areas are black and any key doesn't work.
i decided to remove the script from /etc/pm/sleep.d and run my app by myself. in this way my app works correctly, i think something shoul be wrong with running my script from sleep.d
does anyone has any idea? thanks.
_______________________________________________ SDL mailing list SDL <at> lists.libsdl.org http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
RSS Feed