[Bug 420977] New: desktop idle time incorrect
https://bugzilla.novell.com/show_bug.cgi?id=420977 Summary: desktop idle time incorrect Product: openSUSE 11.0 Version: Final Platform: 64bit OS/Version: openSUSE 11.0 Status: NEW Severity: Major Priority: P5 - None Component: X.Org AssignedTo: sndirsch@novell.com ReportedBy: suse@staerk.de QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- I maintain the KDE program ktimetracker. This relies on XSS' functionality to deliver the desktop's idle time. This functionality is broken for SUSE 11 but works for SUSE 10.3. That means, my program cannot work properly on SUSE 11. I wrote a test case on http://www.staerk.de/thorsten/index.php/How_to_find_out_desktop_idle_time. It test how long the desktop has been idle in miliseconds, i.e. you did not type on the keyboard and did not move the mouse. It outputs the time, sleeps 10 seconds, then prints again how long your desktop has been idle. On SUSE 10.3, it looks like this 31 10031 if you do not move the mouse or press a key. If you constantly move the mouse, it looks like this: 60 0 Now, using SUSE 11 instead of SUSE 10.3, the idle time never gets above 10000, it stays pseudo-randomly below 10000, e.g.: 31 3491 Can you please fix this? I will help you where I can. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=420977 User suse@staerk.de added comment https://bugzilla.novell.com/show_bug.cgi?id=420977#c1 --- Comment #1 from Thorsten Staerk <suse@staerk.de> 2008-08-28 02:03:03 MDT --- Created an attachment (id=235930) --> (https://bugzilla.novell.com/attachment.cgi?id=235930) test case as to be found at http://www.staerk.de/thorsten/index.php/How_to_find_out_desktop_idle_time put this into a directory x11test and compile it with qmake -project qmake make g++ -m64 -o x11test main.o -L/usr/lib64 -lQtGui -L/usr/lib64 -L/usr/X11R6/lib64 -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -lrt -ldl -lpthread -lXss Then run it with /x11test -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=420977 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=420977#c2 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |suse@staerk.de --- Comment #2 from Stefan Dirsch <sndirsch@novell.com> 2008-08-28 02:54:44 MDT --- Does not work:
make gcc -c -m64 -pipe -O2 -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include -I. -I. -I. -o main.o main.c In file included from /usr/include/QtCore/qobjectdefs.h:47, from /usr/include/QtCore/qobject.h:49, from /usr/include/QtCore/qcoreapplication.h:47, from /usr/include/QtGui/qapplication.h:47, from /usr/include/QtGui/QApplication:1, from main.c:1: /usr/include/QtCore/qnamespace.h: In function ‘QT_MODULE’: /usr/include/QtCore/qnamespace.h:56: error: expected declaration specifiers before ‘namespace’ [...]
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=420977 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=420977#c3 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|suse@staerk.de | Resolution| |FIXED --- Comment #3 from Stefan Dirsch <sndirsch@novell.com> 2008-08-28 14:29:17 MDT --- Argh. I named the file main.c instead of main.cpp. Now the compilation works. # ./x11test 208 <no mouse moves> 10211 # ./x11test 6 <constant mouse moves> 1 This is with openSUSE 11.0-i386 but with current xorg-server 1.4.99.906 (pre 1.5). Looks like this issue has been fixed for xorg-server (pre-) 1.5, which will be on openSUSE 11.1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=420977 User suse@staerk.de added comment https://bugzilla.novell.com/show_bug.cgi?id=420977#c4 --- Comment #4 from Thorsten Staerk <suse@staerk.de> 2008-08-29 00:16:00 MDT --- I want to thank you for the quick quality-reaction! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com