Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 160726 Details for
Bug 216679
x11-drivers/synaptics: syndaemon wakes cpu too often
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Novell patch
bug-386709_synaptics-0.14.6-poll-delay.patch (text/plain), 1.84 KB, created by
Krister Bäckman
on 2008-07-18 14:10:16 UTC
(
hide
)
Description:
Novell patch
Filename:
MIME Type:
Creator:
Krister Bäckman
Created:
2008-07-18 14:10:16 UTC
Size:
1.84 KB
patch
obsolete
>--- ./syndaemon.c 2006-04-16 21:31:43.000000000 +0200 >+++ ./syndaemon.c 2007-10-16 13:40:02.000000000 +0200 >@@ -43,9 +43,11 @@ > static void > usage() > { >- fprintf(stderr, "Usage: syndaemon [-i idle-time] [-d] [-t] [-k]\n"); >+ fprintf(stderr, "Usage: syndaemon [-i idle-time] [-m poll-delay] [-d] [-t] [-k]\n"); > fprintf(stderr, " -i How many seconds to wait after the last key press before\n"); > fprintf(stderr, " enabling the touchpad. (default is 2.0s)\n"); >+ fprintf(stderr, " -m How many milli-seconds to wait until next poll.\n"); >+ fprintf(stderr, " (default is 20ms)\n"); > fprintf(stderr, " -d Start as a daemon, ie in the background.\n"); > fprintf(stderr, " -p Create a pid file with the specified name.\n"); > fprintf(stderr, " -t Only disable tapping and scrolling, not mouse movements.\n"); >@@ -159,9 +161,8 @@ > } > > static void >-main_loop(Display *display, double idle_time) >+main_loop(Display *display, double idle_time, int poll_delay) > { >- const int poll_delay = 20000; /* 20 ms */ > double last_activity = 0.0; > double current_time; > >@@ -228,17 +229,21 @@ > main(int argc, char *argv[]) > { > double idle_time = 2.0; >+ int poll_delay = 20000; /* 20 ms */ > Display *display; > int c; > int shmid; > int ignore_modifier_keys = 0; > > /* Parse command line parameters */ >- while ((c = getopt(argc, argv, "i:dtp:kK?")) != EOF) { >+ while ((c = getopt(argc, argv, "i:m:dtp:kK?")) != EOF) { > switch(c) { > case 'i': > idle_time = atof(optarg); > break; >+ case 'm': >+ poll_delay = atoi(optarg) * 1000; >+ break; > case 'd': > background = 1; > break; >@@ -314,7 +319,7 @@ > setup_keyboard_mask(display, ignore_modifier_keys); > > /* Run the main loop */ >- main_loop(display, idle_time); >+ main_loop(display, idle_time, poll_delay); > > return 0; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 216679
:
160725
| 160726