GNOME Bugzilla – Bug 333830
Totem should disable xscreensaver in fullscreen mode
Last modified: 2006-10-29 18:53:54 UTC
Totem should disable xscreensaver in fullscreen mode. Using xscreensaver version 4.23 (debian build 4) and XFCE 4.2.3.2.
It already does that. Which version of Totem are you using?
1.2.1
Can't see any reasons it wouldn't work. Could you run Totem in gdb and check that it reached the screensaver_disable_x11() function, as well as fake_event()?
How do I compile a debug-enabled version of totem? All gdb gave me was (no debugging symbols found) .
Nothing special, it's just that the Debian packages are stripped.
compiled with ./configure --enable-debug james@K8-3700:~/totem-1.2.1/debian/totem-xine/usr/bin$ gdb ./totem GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) r Starting program: /home/james/totem-1.2.1/debian/totem-xine/usr/bin/totem [Thread debugging using libthread_db enabled] [New Thread -1225210176 (LWP 2485)] [New Thread -1226138704 (LWP 2488)] [New Thread -1232450640 (LWP 2489)] [New Thread -1248937040 (LWP 2490)] [New Thread -1257325648 (LWP 2491)] [New Thread -1265984592 (LWP 2492)] [New Thread -1278473296 (LWP 2493)] [New Thread -1288750160 (LWP 2494)] [New Thread -1297138768 (LWP 2495)] [New Thread -1309062224 (LWP 2496)] [Thread -1309062224 (LWP 2496) exited] ** Message: enter bacon_video_widget_idle_signal ** Message: leave bacon_video_widget_idle_signal ** Message: totem_playlist_add_one_mrl (): Band of Brothers - 7 - The Breaking Point DVDRIP.avi file:///opt/storage/Band%20of%20Brothers/Band%20of%20Brothers%20-%207%20-%20The%20Breaking%20Point%20DVDRIP.avi (null) [New Thread -1309062224 (LWP 2497)] ** Message: enter bacon_video_widget_idle_signal ** Message: leave bacon_video_widget_idle_signal
Before typing "run", type "b screensaver_disable_x11" and "b fake_event" (to set breakpoints on those functions). Then, when the functions are called, you'll have to type "continue" to get Totem carrying on. If they're not being called, then there's a problem. Let me know how it goes.
james@K8-3700:~/totem-1.2.1/debian/totem-xine/usr/bin$ gdb ./totem GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) b screensaver_disable_x11 Function "screensaver_disable_x11" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (screensaver_disable_x11) pending. (gdb) b fake_event Breakpoint 2 at 0x8067877: file totem-scrsaver.c, line 214. (gdb) r Starting program: /home/james/totem-1.2.1/debian/totem-xine/usr/bin/totem [Thread debugging using libthread_db enabled] [New Thread -1225136448 (LWP 4322)] [New Thread -1226064976 (LWP 4325)] [New Thread -1232376912 (LWP 4326)] [New Thread -1248863312 (LWP 4327)] [New Thread -1257251920 (LWP 4328)] [New Thread -1265910864 (LWP 4329)] [New Thread -1278399568 (LWP 4330)] [New Thread -1288676432 (LWP 4331)] [New Thread -1297065040 (LWP 4332)] [New Thread -1308988496 (LWP 4333)] [Thread -1308988496 (LWP 4333) exited] ** Message: enter bacon_video_widget_idle_signal ** Message: leave bacon_video_widget_idle_signal ** Message: totem_playlist_add_one_mrl (): Band of Brothers - 8 - The Last Patrol DVDRIP.avi file:///opt/storage/Band%20of%20Brothers/Band%20of%20Brothers%20-%208%20-%20The%20Last%20Patrol%20DVDRIP.avi (null) [New Thread -1308988496 (LWP 4334)] ** Message: enter bacon_video_widget_idle_signal ** Message: leave bacon_video_widget_idle_signal [Thread -1308988496 (LWP 4334) exited] [Thread -1288676432 (LWP 4331) exited] [Thread -1278399568 (LWP 4330) exited] [Thread -1297065040 (LWP 4332) exited] [Thread -1248863312 (LWP 4327) exited] [Thread -1265910864 (LWP 4329) exited] [Thread -1257251920 (zombie) exited] [Thread -1232376912 (LWP 4326) exited] Program exited normally. (gdb)
Did you go to fullscreen in Totem during your debugging session?
Yes. I just tried it again. It reaches fake_event, and after about 30 seconds, I'm locked in fullscreen mode and I have to kill gdb.
You can switch back to the gdb window with alt-tab, and type continue there (although that obviously disable the screensaver). You should add some "printf" to those functions, so that you can check the logs after the screensaver has kicked in.
James, any news here? is this still an issue, or has this become obsolete? did you try as suggested by bastien? thanks in advance for any updates here. :-)
Is this the same bug as http://bugzilla.gnome.org/show_bug.cgi?id=360537
(In reply to comment #13) > Is this the same bug as > http://bugzilla.gnome.org/show_bug.cgi?id=360537 No, Totem 1.2.1 didn't have any gnome-screensaver support.
Marking obsolete for now. I'll reopen if totem starts acting up. :)