Skip to content

Commit fdf6f57

Browse files
xiaoliudxiaoxiang781216
authored andcommitted
graphics/input: Adjust input tool priority and sampling rate
Align to monkey's priority, with a sampling rate similar to a real touch. Signed-off-by: liuchan3 <liuchan3@xiaomi.com>
1 parent 6f93e40 commit fdf6f57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graphics/input/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ config GRAPHICS_INPUT_TOOL_STACKSIZE
5454

5555
config GRAPHICS_INPUT_TOOL_PRIORITY
5656
int "input priority"
57-
default 100
57+
default 110
5858
---help---
5959
The priority of the input task.
6060

graphics/input/generator/input_gen_event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static int input_gen_motion(input_gen_ctx_t ctx,
293293
{
294294
uint32_t elapsed = input_gen_tick_elapsed(input_gen_tick_get(), start);
295295
ret = input_gen_write_motion(dev->fd, fingers, nfingers, elapsed);
296-
if (ret == -EAGAIN && usleep(1000) < 0)
296+
if (ret == -EAGAIN && usleep(8 * 1000) < 0)
297297
{
298298
nwarn("WARNING: Maybe interrupted by signal\n");
299299
input_gen_ungrab(dev);

0 commit comments

Comments
 (0)