Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285881 - app-misc/workrave-1.9.0 timer doesn't work since xorg-server-1.6 upgrade
Summary: app-misc/workrave-1.9.0 timer doesn't work since xorg-server-1.6 upgrade
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 288125 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-22 01:39 UTC by Ling Kun
Modified: 2010-01-07 21:53 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch from upstream (workrave-1.9.0-xorg-server-1.6.patch,6.61 KB, patch)
2009-10-07 23:58 UTC, Jules Gagnon
Details | Diff
Proposed ebuild patch (workrave.patch,569 bytes, patch)
2009-10-07 23:58 UTC, Jules Gagnon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ling Kun 2009-09-22 01:39:57 UTC
after emerge workrave, workrave's timer doesn't work. I have tried to try almost every configuration in preferences of workrave, but the timer still don't work. 


Reproducible: Always

Steps to Reproduce:
1.emerge app-misc/workrave-1.9.0  USE="dbus debug gnome nls xml -arts -distribution -kde"
2.start workrave


Actual Results:  
workrave's timer doesn't work.


Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.31-gentoo-Lingkun i686)
=================================================================
System uname: Linux-2.6.31-gentoo-Lingkun-i686-Intel-R-_Pentium-R-_Dual_CPU_T2390_@_1.86GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 22 Sep 2009 01:00:21 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.cs.pu.edu.tw/Linux/Gentoo/ http://ftp.twaren.net/Linux/Gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS=" en zh_CN zh"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china /usr/local/portage/layman/qting-edge"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa avahi bash-completion berkdb bindist branding bzip2 canon cdr cjk cleartype cli cracklib cups dbus djvu dmx dri dvd fontconfig gdbm gif gnome gpm gstreamer gtk hal iconv ipod ipv6 isdnlog jack java jpeg jpeg2k laptop latex mmx modules mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd pulseaudio python qt3 qt4 readline reflection session spl sse sse2 ssl sysfs tcpd tex truetype unicode vim-syntax webkit wma x86 xinerama xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS=" en zh_CN zh" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ling Kun 2009-09-22 02:05:09 UTC
and this is my .workrave directory . I find that the "state" file always like this

~/.workrave $ cat state 
WorkRaveState 3
1253584860
micro_pause 1253584860 0 0 0 0 0 0 -28800
rest_break 1253584860 0 0 0 0 0 0 -28800
daily_limit 1253584860 0 1253584699 0 0 0 0 -28800

Comment 2 helge.preuss 2009-09-25 17:13:08 UTC
+1

Only I use workrave under fvwm, and also I don't use 1.9.0 but 1.8.5 because version 1.9.0 triggers http://bugs.gentoo.org/show_bug.cgi?id=253637 for me. 
Comment 3 helge.preuss 2009-09-26 16:48:58 UTC
BTW, the timer does not work on my laptop either (workrave 1.9.0, under KDE 4.3.1)
Comment 4 Bas de Bakker 2009-10-02 07:14:12 UTC
Just a guess, but maybe it's related to this issue:
http://sourceforge.net/mailarchive/message.php?msg_name=4ABBBF52.9040500%40krandor.org
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-07 22:05:55 UTC
*** Bug 288125 has been marked as a duplicate of this bug. ***
Comment 6 Jules Gagnon 2009-10-07 23:58:01 UTC
Created attachment 206390 [details, diff]
Patch from upstream
Comment 7 Jules Gagnon 2009-10-07 23:58:40 UTC
Created attachment 206391 [details, diff]
Proposed ebuild patch
Comment 8 Jules Gagnon 2009-10-08 00:02:27 UTC
Please test the patches to confirm if it's related to xorg-server or gnome version.

I have gnome-light-2.24.1 and xorg-server-1.6.3.901-r2 and that solve the problem for me.
Comment 9 Bas de Bakker 2009-10-08 08:09:25 UTC
With gnome 2.26.2 and xorg-server 1.5.0 I had no problems. After upgrading to xorg-server 1.6.3.901-r2 (not touching gnome) workrave stopped working as described. Applying the patch above fixed the problem. So I can confirm it's related to the xorg-server version.
Comment 10 Bas de Bakker 2009-10-08 08:13:46 UTC
(In reply to comment #9)
> With gnome 2.26.2 and xorg-server 1.5.0 I had no problems.

Sorry, just to be complete: the old version was not 1.5.0, but 1.5.3-r6.

Comment 11 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-08 20:17:38 UTC
@x11, could you comment on the need to upgrade some X related dependencies with this patch ? TIA.
Comment 12 Mike Mazur 2009-10-09 03:16:43 UTC
(In reply to comment #8)
> Please test the patches to confirm if it's related to xorg-server or gnome
> version.
> 
> I have gnome-light-2.24.1 and xorg-server-1.6.3.901-r2 and that solve the
> problem for me.
> 

I can confirm these patches fix the issue for me.

$ equery l xorg-server
[ Searching for package 'xorg-server' in all categories among: ]
 * installed packages
[I--] [  ] x11-base/xorg-server-1.6.3.901-r2 (0)
$ equery l xorg-server gnome-light
[ Searching for package 'gnome-light' in all categories among: ]
 * installed packages
[I--] [  ] gnome-base/gnome-light-2.24.1 (2.0)
Comment 13 Maik Nijhuis 2009-10-15 11:18:35 UTC
After upgrading xorg-server to 1.6, my workrave also failed. I'm using fvwm, not gnome, although I have some gnome packages. I did not upgrade any gnome packages, so I the bug must be related to xorg. I do not have gnome-light installed.

I was already using a patched version of workrave-1.9.0.ebuild, probably to get it working with fvwm. After applying workrave.patch to this already patched version of the workrave-1.9.0.ebuild, I got a compile error related to the python Cheetah package. After upgrading dev-python/cheetah from 2.0.1 to 2.2.2, workrave compiled again and the clock is ticking again.

Thanks for the patch, I'm taking a rest break now :-) Please apply the patch ASAP!
Comment 14 Rémi Cardona (RETIRED) gentoo-dev 2009-10-16 08:02:12 UTC
Looks like Xinput 1 code to me.

+#ifdef XI_DeviceMotionNotify

and

+#ifdef DeviceMotionNotify

do look _very_ weird to me. I think workrave should use pkg-config to figure out what library version is installed instead of those hacks.

Thanks
Comment 15 Evert 2009-10-31 13:40:44 UTC
This issue seems to be fixed in 1.9.1.

From http://sourceforge.net/projects/workrave/files/workrave/1.9.1/workrave-1.9.1.txt/download:
*** User activity is now recognized on Xorg 1.6.0

I just copied workrave-1.9.0.ebuild to workrave-1.9.1.ebuild, removed the epatches since they didn't work anymore, emerged and now the timer is running again :)
Comment 16 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-11-12 12:07:34 UTC
bump is not straight forward, but I'm on it.
Comment 17 Ling Kun 2010-01-07 06:05:12 UTC
Now,Workrave works fine on xorg-server 1.7.3.902 
Comment 18 Jules Gagnon 2010-01-07 15:36:00 UTC
Fine, but can we expect xorg-server 1.7.3.902 to be stabilized soon? If not, we still have the issue that the stable workrave doesn't work with the stable xorg on x86.
Comment 19 Rémi Cardona (RETIRED) gentoo-dev 2010-01-07 21:53:39 UTC
1.7 won't be stabilized for at least another month (probably even 2).

Thanks