syndaemon polls 5 times a second

Bug #633125 reported by Andrew Bennetts
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gnome-settings-daemon (Ubuntu)
Fix Released
Undecided
Rodrigo Moya
xserver-xorg-input-synaptics (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-input-synaptics

The "Disable touchpad while typing" option in System->Preferences->Mouse launches syndaemon -i 0.5 -k. Unfortunately syndaemon seems to poll every 200ms even when the system is otherwise idle, waking up the CPU and presumably wasting power.

syndaemon has code to use XRecord to avoid polling, but it appears to be compiled without HAVE_XRECORD, even though Xorg appears to provide that extension (judging from xdpyinfo output). It also requires -R to be passed on the command line, although perhaps it would be a reasonable default?

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: xserver-xorg-input-synaptics 1.2.2-2ubuntu3
ProcVersionSignature: Ubuntu 2.6.35-20.29-generic 2.6.35.4
Uname: Linux 2.6.35-20-generic i686
Architecture: i386

Tags: maverick natty

Related branches

Revision history for this message
Andrew Bennetts (spiv) wrote :
Revision history for this message
Alessandro Guido (iro) wrote :

When my system is idle, syndaemon makes up the 50% of the number of processor wakeups per second.
This increases battery consumption.

Revision history for this message
Alessandro Guido (iro) wrote :

Maybe that's more like the 20-25% (seen with powertop, before I used gnome-power-manager). However they're still 5 unnecessary processor wakeups per second.

Gursimran singh (simar)
Changed in xserver-xorg-input-synaptics (Ubuntu):
importance: Undecided → Low
Gursimran singh (simar)
Changed in xserver-xorg-input-synaptics (Ubuntu):
importance: Low → Undecided
Changed in xserver-xorg-input-synaptics (Ubuntu):
status: New → Confirmed
Revision history for this message
Sergey Nizovtsev (snizovtsev) wrote :

This bug has been fixed in natty 'syndaemon' package, but it needed to run syndaemon with "-R" option in the gnome-settings-daemon.

Revision history for this message
Sergey Nizovtsev (snizovtsev) wrote :

Fixed in Debian, released in Natty

Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Confirmed → Fix Released
description: updated
tags: added: natty
removed: apport-bug i386
Revision history for this message
Sergey Nizovtsev (snizovtsev) wrote :

Test cases:
1) To ensure syndaemon compiled with XRecord extension run "strace syndaemon -i 0.5 -k -R". The program should be in the idle state until keypress.
2) To ensure gnome-settings-daemon runs syndaemon with "-R" option run "ps aux | grep syndaemon".

Revision history for this message
Sergey Nizovtsev (snizovtsev) wrote :
Changed in gnome-settings-daemon (Ubuntu):
assignee: nobody → Rodrigo Moya (rodrigo-moya)
status: New → In Progress
Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

Sergey, I was going to push this to gnome-settings-daemon upstream, but since that should work on all distributions/versions of syncdaemon, can someone please confirm that the -R is harmless if syndaemon is not compiled with the XRecord extension?

For natty, the attached branch fixes it

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-settings-daemon - 2.32.1-0ubuntu13

---------------
gnome-settings-daemon (2.32.1-0ubuntu13) natty; urgency=low

  * debian/patches/05_use_xrecord.patch:
    - Add patch to tell syndaemon to use the XRecord extension (LP: #633125)
 -- Rodrigo Moya <email address hidden> Thu, 07 Apr 2011 12:24:07 +0200

Changed in gnome-settings-daemon (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Sergey Nizovtsev (snizovtsev) wrote :

Rodrigo, Syndaemon is just silently ignores the "-R" option if compiled without XRecord.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.