Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

goodix_driver_gt9886: Add gaming mode support for custom roms. #2

Open
wants to merge 1 commit into
base: Q-raphael
Choose a base branch
from

Conversation

CodeElixir
Copy link

@CodeElixir CodeElixir commented Sep 7, 2020

I have tried to add stock MIUI gaming features to custom roms. I checked it and works pretty well. I hope it might be a necessary feature for userpace to communicate. It also increases report rate to 180Hz when gaming mode is enabled.

1. Expose gaming mode features to userspace via sysfs instead of ioctl.
2. Userspace framework can write values to sysfs path /sys/devices/platform/goodix_ts.0/game_mode
    Ex : echo 'X Y Z E' > /sys/devices/platform/goodix_ts.0/game_mode
        where, X -> Gaming mode on/off. 1 -> ON, 0 -> OFF.
               Y -> Touch response. Range : 0 <= Y <= 3.
               Z -> Sensitivity to repeated taps : Range : 0 <= Y <= 3.
               E -> Touch-resistant area : Range : 0 <= Y <= 3.

Signed-off-by: CodeElixir <[email protected]>
@YaroST12
Copy link
Contributor

YaroST12 commented Sep 7, 2020

We would need some kind of an app to change it on custom ROMs.

@CodeElixir
Copy link
Author

Yes, I am hoping ROM maintainers can implement this. Since some ROMs already have their some sort of gaming mode, they can add this thing else it requires to develop app.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants