-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add touch ic suspend feature #6618
base: master
Are you sure you want to change the base?
Conversation
69bed5a
to
3a87156
Compare
} | ||
|
||
if (ioctl(fd, TSIOC_SUSPEND, NULL) != OK) { | ||
printf("Fail to TSIOC_SUSPEND %s, errno:%d\n", TOUCH_DEV_PATH, get_errno()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the ioctl is failed, it also returns OK. Is this ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
@@ -196,10 +229,14 @@ int touchscreen_main(int argc, char *argv[]) | |||
} | |||
|
|||
if (argc == 2) { | |||
if (!strcmp(argv[1], "start")) { | |||
if (!strncmp(argv[1], "start", 5)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will allow "touchscreen startaaa". Is this ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The svace is detecting it. so i changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I missed updersdanding, i got your point, I changed len
@@ -503,14 +523,18 @@ static void ist415_stop_device(struct ist415_dev_s *dev) | |||
ist415_disable(dev); | |||
ist415_power_off(dev); | |||
} | |||
|
|||
return OK; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you let me know why you change the return type even this returns OK always?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ops in touchscreen, so some touch ic might have return fail
The touch device suspend feature is changing power mode to low power mode. In the low power mode, power comsumption is reduced and touch irq is not comming. But ist415 ic is checking double tap during low power mode, and it notify to apps the double tab event. In this commit, Add ioctl to control touch ic suspend/resume and example app Signed-off-by: eunwoo.nam <[email protected]>
In the ist415_forced_release function data.npoints can be 0. (There is no pushed touch point) But, since touch is reported even if touch point count is 0. Therefore, fix wrong null touch event Signed-off-by: eunwoo.nam <[email protected]>
3a87156
to
a1a5bfe
Compare
No description provided.