Skip to content
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

Let shaketorch ignore the brightness-sensor and should only work if the Screen is turned on by the Power-button #2

Open
wheelseal opened this issue Jul 8, 2023 · 0 comments

Comments

@wheelseal
Copy link

Shaking the phone to turn on the flashlight works fine.
But I also have a problem:

I have activated the brightness sensor via mce-tools, so that the clock is displayed when I take my phone out of my pocket (like the Nokia n900). Now the problem is that this activates the whole screen and not only the clock is displayed.
In this case, it is possible that the flashlight will turn on if I move the phone too fast while doing this.

I have two ideas to solve this problem:

Add a delay of a few seconds until the flashlight is turned on by shaking it.
Can you tell if the screen turns on after you press the power button or the brightness sensor? If it does, simply disable the sensor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant