Bug 804 - Workrave timers don't work in Kubuntu Jaunty
Status:
RESOLVED FIXED
Component:
Core
Version:
1.9.0
Hardware:
PC Linux
Importance:
P5 blocker
Target Milestone:
---
Assignee:
Rob Caelers
URL:
Depends on:
Blocks:
Reported:
Dec 29 2008 02:18:07 UTC
by:
naught101
Modified:
Jun 29 2009 17:11:50 UTC
CC List:
eo**@ge**.ie
David
IdWhoWhenSizeType
160workrave stderr output with --enable-debug
naught101Dec 29 2008 02:18:07 UTC57847text/plain
WhoWhenWhatRemovedAdded
Rob CaelersDec 29 2008 11:48:54 UTCseverityenhancementnormal
naught101Jan 13 2009 23:49:12 UTCseveritynormalblocker
Rob CaelersJan 24 2009 13:34:40 UTCstatusNEWASSIGNED
Rob CaelersJan 26 2009 23:08:12 UTCstatusASSIGNEDRESOLVED
resolutionFIXED
Rob CaelersMay 4 2009 20:33:28 UTCccDavid
eo**@ge**.ieJun 29 2009 17:11:50 UTCcceo**@ge**.ie
Description
naught101  Dec 29 2008 02:18:07 UTC
Created attachment 160
workrave stderr output with --enable-debug

Workrave timers sit completely still in kubuntu jaunty. They worked fine in Intrepid.

launchpad bug report here: https://bugs.launchpad.net/ubuntu/+source/workrave/+bug/310551

I recompiled from source, using --enable-debug, and trying --enable-dbus (made no difference). I tried --enable-kde, but that requires kdelibs4-dev, which means I need to uninstall half my system...

The stderr output is attached.
Comment 1
Rob Caelers  Dec 29 2008 11:48:54 UTC
The debug log indicates that you are idle all the time. Did you set the operation mode to 'suspended'? (look in the mode menu)

If not: What is the output of "xdpyinfo -queryExtensions | grep RECORD"

This should output something like: "RECORD  (opcode: 143, base error: 165)"
Comment 2
naught101  Dec 29 2008 12:05:25 UTC
Nope, in normal mode.

$ xdpyinfo -queryExtensions | grep RECORD
    RECORD  (opcode: 135, base error: 144)

$ uname -a
Linux naught101-laptop 2.6.28-4-generic #5-Ubuntu SMP Fri Dec 26 22:48:51 UTC 2008 i686 GNU/Linux
Comment 3
Rob Caelers  Jan 6 2009 19:52:45 UTC
I managed to reproduce the bug (using kubuntu jaunty installed in virtualbox).

It seems that Workrave does not get any events from the xrecord extension (except for 'start of data'). the xmacro package has the same problem: the xmacrorec2 program also does not get any data from xrecord.

I think the problem is caused by the recent xserver upgrade: my development PC, running Ubuntu Jaunty with out xserver upgrade, does not have this problem.
Comment 4
naught101  Jan 13 2009 23:49:12 UTC
Changing to blocker, since this bug makes workrave completely useless (I'm guessing that this is a permanent change in the xserver?). Is there anything I can do to help figure out a fix?
Comment 5
Rob Caelers  Jan 19 2009 22:15:47 UTC
The easiest workaround for now: uninstall libxtst-dev and reconfigure/recompile workrave. 

I did some googling, couldn't find any known issies with xrecord... needs further investigation.
Comment 6
naught101  Jan 21 2009 00:03:17 UTC
hrm.. I removed libxtst-dev, and recompiled with:
./autogen-sh
./configuring
make
sudo checkinstall

I still have the same problem. Is there any particular options I should be configuring with?
Comment 7
Rob Caelers  Jan 21 2009 20:24:15 UTC
Weird...

try this then:

after running configure. edit config.h.

comment out the following lines

/* Define if the RECORD extension is available */
#define HAVE_XRECORD
Comment 8
naught101  Jan 22 2009 04:29:16 UTC
Rob, sorry for that last comment, I didn't realise, but libxtst hadn't uninstalled. I uninstalled it, and now workrave is working fine. 

Thanks so much, workrave is one of those vital pieces of software. It's easy to take for granted, until it goes missing...

I won't set the bug to resolved, since I'm not sure.
Comment 9
Rob Caelers  Jan 24 2009 13:34:40 UTC
I finally found the problem: This X server no longer reports "core event" (like KeyPressed) through the record extension. Workrave now also intercepts device events from the XInputExtention (like DeviceKeyPressed).

This fix is not yet final. (I need to verify that Workrave still behaves normally on older X servers. I expect duplicate event that mess up the statistics...) 

The fix is in my git repository:

http://cgit.krandor.org/cgit.cgi?url=workrave/commit/&h=branch_v1_9&id=33f01a179da87e27dca3d57662872ef7077efb22
Comment 10
Rob Caelers  Jan 26 2009 23:08:12 UTC
Fix tested and commited
Comment 11
Rob Caelers  May 4 2009 20:33:28 UTC
*** Bug 830 has been marked as a duplicate of this bug. ***
Comment 12
eo**@ge**.ie  Jun 29 2009 17:11:50 UTC
I tried the autogen.sh from the git download, but get the error:

checking for DBUS... no
configure: Couldn't find d-bus.

I'm drawing a blank with google on this - any ideas?