After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 333830 - Totem should disable xscreensaver in fullscreen mode
Totem should disable xscreensaver in fullscreen mode
Status: RESOLVED OBSOLETE
Product: totem
Classification: Core
Component: Movie player
1.2.x
Other Linux
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-03-08 00:45 UTC by James
Modified: 2006-10-29 18:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description James 2006-03-08 00:45:32 UTC
Totem should disable xscreensaver in fullscreen mode.

Using xscreensaver version 4.23 (debian build 4) and XFCE 4.2.3.2.
Comment 1 Bastien Nocera 2006-03-08 08:01:11 UTC
It already does that. Which version of Totem are you using?
Comment 2 James 2006-03-08 08:59:13 UTC
1.2.1
Comment 3 Bastien Nocera 2006-03-08 09:05:39 UTC
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()?
Comment 4 James 2006-03-09 00:06:01 UTC
How do I compile a debug-enabled version of totem?  All gdb gave me was (no debugging symbols found)
.
Comment 5 Bastien Nocera 2006-03-09 08:17:55 UTC
Nothing special, it's just that the Debian packages are stripped.
Comment 6 James 2006-03-09 20:32:29 UTC
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
Comment 7 Bastien Nocera 2006-03-09 22:42:37 UTC
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.
Comment 8 James 2006-03-10 08:58:35 UTC
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)
Comment 9 Bastien Nocera 2006-03-10 18:59:27 UTC
Did you go to fullscreen in Totem during your debugging session?
Comment 10 James 2006-03-10 20:13:42 UTC
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.
Comment 11 Bastien Nocera 2006-03-11 11:36:26 UTC
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.
Comment 12 André Klapper 2006-10-09 15:20:41 UTC
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. :-)
Comment 13 Niklas Mellegård 2006-10-16 08:33:09 UTC
Is this the same bug as
http://bugzilla.gnome.org/show_bug.cgi?id=360537
Comment 14 Bastien Nocera 2006-10-16 09:21:34 UTC
(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.
Comment 15 James 2006-10-29 18:53:54 UTC
Marking obsolete for now.  I'll reopen if totem starts acting up.  :)