Bug 120896 - screensaver timeout preference keypress
Summary: screensaver timeout preference keypress
Status: RESOLVED FIXED
Alias: None
Product: kaffeine
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Christophe Thommeret
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-28 03:27 UTC by hardrod04
Modified: 2010-09-05 19:21 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hardrod04 2006-01-28 03:27:16 UTC
Version:            (using KDE KDE 3.5.1)
Installed from:    Fedora RPMs
Compiler:          gcc version 4.1.0 20060121 (Red Hat 4.1.0-0.16) 
OS:                Linux

on latest Fedora Core 5 Test2, KDE 3.5.0.4, fresh source compile of kaffeine 0.71, screensaver is still activated (not suppressed) when playing movie. The option to change "interval to fake keypresses" is greyed out.

I went to kaffeinerc, "Screensaver Timeout=2" change it from 1 to 10, didn't solve the problem.

one possibility is that my keyboard is usb that came with Dell (cheap generic ones).
Comment 1 Loren Williams 2006-12-03 05:43:02 UTC
I suppose that this is a wishlist item for additional functionality, but I experienced screensaver activation on SuSE 10.1 with kaffeine 0.8.3.

Ideal behavior would be to suppress screensaver activity while videos are playing, but to turn it back on when the video is stopped, paused, or looping a DVD's opening menu screen.  Obviously, nobody wants the screensaver to activate in the middle of a TV show or movie.
Comment 2 Oliver Zimmermann 2007-04-14 19:58:50 UTC
I just can confirm that the screensaver / DMPS supression by a fake keystroke is not available anymore in 0.8.4. Has it been omitted on purpose? Until yesterday it worked with 0.8.3 with SuSE 10.1.
Comment 3 Christoph Pfister 2007-04-14 20:19:23 UTC
Fake key presses are still used in 0.8.4 - but only if you don't use the kde windowmanager. If the kde windowmanager is detected at runtime XWarpPointer is used because it does the same job (unfortunately it doesn't work with other screen savers :-/), but there aren't any interferences anymore (like konqueror autoscrolling, sticky keys etc).
Comment 4 Christoph Pfister 2007-04-18 18:58:08 UTC
You have to compile kaffeine with XTest support to get fake key presses ...
Comment 5 Piojo 2007-08-07 21:50:39 UTC
I have Kaffeine 0.8.5 compiled with XTest, and I'm using KDE 3.5.7 on Gentoo. Whenever I play a video (mp4, avi, mkv, no matter what) the screen saver is activated after 3 minutes (my setting for KDE).
Comment 6 Maciej Pilichowski 2007-08-16 21:57:39 UTC
On my computer screensaver kicks in only after this:
1) I open another KDE session
2) I change res to 1024x768
3) I run Kaffeine
4) I switch mode from xv to xshm
5) I load movie with subtitles

Oddly enough, it "works" only once per boot, so I am not sure what is the key step here.

KDE 3.5.7, Kaffeine 0.8.4.
Comment 7 ralph 2007-09-23 03:02:01 UTC
On many Linux distributions Kaffeine is not able to find Xtest libraries and, in addition, it searches for an unexistent package file xtst.pc; in my case (Slackware 11 + Xorg 6.9.x), this happens with kaffeine 0.8.5 too.
I have found a workaround that works very well.

First of all, I edit configure and change

-----------------------------------------------------
# Check whether --with-xtest was given.
if test "${with_xtest+set}" = set; then
  withval=$with_xtest;
else
  with_xtest=yes
fi


CFLAGS_XTEST=""
LIB_XTEST=""

if test "$with_xtest" != "no" ; then
	{ echo "$as_me:$LINENO: checking for XTest extension" >&5
echo $ECHO_N "checking for XTest extension... $ECHO_C" >&6; }

	if "$PKG_CONFIG" --exists xtst ; then
		with_xtest=yes
		CFLAGS_XTEST=`"$PKG_CONFIG" --cflags xtst`
		LIB_XTEST=`"$PKG_CONFIG" --libs xtst`

cat >>confdefs.h <<\_ACEOF
#define HAVE_XTEST
_ACEOF

		{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
	else
		with_xtest=no
		{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
	fi
fi
-----------------------------------------------------------

to

--------------------------------------------------------
with_xtest=yes
CFLAGS_XTEST=""
LIB_XTEST=""
-------------------------------------------------------

Then:

./configure --prefix=/opt/kde LDFLAGS="-L/usr/X11R6/lib -lX11 -lXtst"
make
make install

Now, running kaffeine from a console and watching DVB-T, I can see the messages:

kaffeine: fake mouse movement

and the screensavers does not activate!


Comment 8 Christoph Pfister 2007-09-27 16:40:43 UTC
xtst.pc is present in libXtst at least since June 2005; imho if distros decide to drop it they have to fix the users too
Comment 9 Maciej Pilichowski 2007-09-27 17:23:37 UTC
Still happens (at random rather, it is not only like #6) -- Kaffeine 0.8.5 with xtst, and xtst.pc exists.
Comment 10 ralph 2007-09-28 01:33:26 UTC
I can confirm that on Slackware 11 the file xtst.pc does not exist.

On Slackware 12 the file xtst.pc has been added in /usr/lib/pkgconfig.
Comment 11 Christoph Pfister 2010-09-05 19:21:49 UTC
not relevant for Kaffeine 1.* anymore (different methods of supressing screen savers are used)