Auto wake magnetic cover not working
Hardware: Samsung galaxy tab A8 (SM-X200)
I have checked all setting multiple time and searched though the developer settings does someone know how to fix this?
(it was working properly with the original samsung firmware, so its not a hardware problem)
The GSI's I tried so far:
lineage-20.0-20240112-UNOFFICIAL-arm64_bgN-vndklite.img (didn't boot)
PixelOS-13.0-20230821-arm64_bN.img (booted 23/01/2024 20:58 )
crDroid-10.1-arm64_bgN-slim-Unofficial.img (booted 24/01/2024 14:50 )
All GSI's have the same issue.
I found the double tap to wake in "phh Treble settings" this is not what I'm looking for, the tablet is a gift for my grandma (87 years old) so I want to make it as simple as possible no double tap guestures to remember just open the cover and apps should be visible.
Made a XDA forum post firs: https://xdaforums.com/t/auto-wake-magnetic-cover-not-working-with-custom-rom-gsi.4652640/
However I can't work on solving this issue as off now so I decided to make the issue report here too.
I got a response with a possible solution to this problem but android development is new to me so this will take me a lot of time to figure out which I do not have at the moment. So I was hoping someone can implement the possible fix below so everyone can benefit.
I don't know specifically the Samsung, but covers are Hall effect sensors that go to a GPIO.
The open to wake have a thread with a poll on that GPIO that injects into a /dev/uinput it creates WAKEUP and SLEEP key events.
It would be easy enough to make an init service if you can't figure out where it goes in your ROM.
You might look through the original DTB to see if it says anything about "hall".
Then you'd know which gpio it is.
Then you could go into /sys/class/gpio, export it and see if you can see it change.
Full disclosure: I love auto wake covers.
Auto wake magnetic cover not working Hardware: Samsung galaxy tab A8 (SM-X200)
I have checked all setting multiple time and searched though the developer settings does someone know how to fix this? (it was working properly with the original samsung firmware, so its not a hardware problem)
The GSI's I tried so far: lineage-20.0-20240112-UNOFFICIAL-arm64_bgN-vndklite.img (didn't boot) PixelOS-13.0-20230821-arm64_bN.img (booted 23/01/2024 20:58 ) crDroid-10.1-arm64_bgN-slim-Unofficial.img (booted 24/01/2024 14:50 )
All GSI's have the same issue.
I found the double tap to wake in "phh Treble settings" this is not what I'm looking for, the tablet is a gift for my grandma (87 years old) so I want to make it as simple as possible no double tap guestures to remember just open the cover and apps should be visible.
Made a XDA forum post firs: https://xdaforums.com/t/auto-wake-magnetic-cover-not-working-with-custom-rom-gsi.4652640/ However I can't work on solving this issue as off now so I decided to make the issue report here too. I got a response with a possible solution to this problem but android development is new to me so this will take me a lot of time to figure out which I do not have at the moment. So I was hoping someone can implement the possible fix below so everyone can benefit.
Possible fix (thanks to Renate):