Skip to content

Commit

Permalink
Remove idle_interval tunings.
Browse files Browse the repository at this point in the history
The idle_interval adjustments are not needed.
  • Loading branch information
Santtu Lakkala committed May 20, 2011
1 parent 3c0a3f0 commit 00aaf6a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions tklock.c
Expand Up @@ -458,8 +458,6 @@ static void set_doubletap_gesture(gboolean enable)

/* Adjust the touchscreen idle frequency */
if (enable == TRUE) {
(void)mce_write_number_string_to_file(MCE_RM680_IDLE_INTERVAL_SYSFS_PATH, TS_IDLE_INTERVAL_DOUBLETAP, NULL, TRUE, TRUE);

if (proximity_sensor_state == COVER_CLOSED)
setup_doubletap_proximity_timeout();
} else {
Expand Down Expand Up @@ -1259,8 +1257,6 @@ static gboolean disable_tklock(void)
if ((tklock_ui_state == MCE_TKLOCK_UI_NORMAL) ||
(tklock_ui_state == MCE_TKLOCK_UI_LPM) ||
(tklock_ui_state == MCE_TKLOCK_UI_SLIDER)) {
(void)mce_write_number_string_to_file(MCE_RM680_IDLE_INTERVAL_SYSFS_PATH, TS_IDLE_INTERVAL_NORMAL, NULL, TRUE, TRUE);

if (close_tklock_ui() == FALSE)
goto EXIT;
}
Expand Down Expand Up @@ -1608,7 +1604,6 @@ static void trigger_visual_tklock(gboolean powerkey)
(void)execute_datapipe(&display_state_pipe,
GINT_TO_POINTER(MCE_DISPLAY_ON),
USE_INDATA, CACHE_INDATA);
(void)mce_write_number_string_to_file(MCE_RM680_IDLE_INTERVAL_SYSFS_PATH, TS_IDLE_INTERVAL_SWIPE, NULL, TRUE, TRUE);
}
} else if (powerkey == TRUE) {
/* XXX: we probably want to make this configurable */
Expand Down
15 changes: 0 additions & 15 deletions tklock.h
Expand Up @@ -45,15 +45,6 @@
*/
#define DEFAULT_DOUBLETAP_GESTURE_POLICY 1

/** Touchscreen controller frequency when waiting for double tap; in ms */
#define TS_IDLE_INTERVAL_DOUBLETAP 50

/** Touchscreen controller frequency when waiting for swipe; in ms */
#define TS_IDLE_INTERVAL_SWIPE 5

/** Touchscreen controller frequency normal behaviour; in ms */
#define TS_IDLE_INTERVAL_NORMAL 20

/** Proximity timeout for double tap gesture; in seconds */
#define DEFAULT_DOUBLETAP_PROXIMITY_TIMEOUT 5

Expand All @@ -63,12 +54,6 @@
*/
#define MCE_RM680_DOUBLETAP_SYSFS_PATH "/sys/class/i2c-adapter/i2c-2/2-004b/wait_for_gesture"

/**
* SysFS interface to set
* RM-680/RM-690/RM-696/RM-716 idle interval
*/
#define MCE_RM680_IDLE_INTERVAL_SYSFS_PATH "/sys/class/i2c-adapter/i2c-2/2-004b/idle_interval"

/**
* SysFS interface to enable/disable
* RM-680/RM-690/RM-696/RM-716 touchscreen IRQs
Expand Down

0 comments on commit 00aaf6a

Please sign in to comment.