Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Xiaomi Poco X6 Pro 5G - Proximity sensor missing

196 views
Skip to first unread message

francwalter

unread,
Nov 6, 2024, 8:02:45 AM11/6/24
to Tasker
Hallo

I have bought a new phone last week, a Xiaomi X6 Pro 5G with 512 GB and 12 GB RAM.
So I restored Tasker with all my stuff and first I had a lot of errors about missing permissions. So I used my computer and allowed all that stuff I could allow with adb.
But one thing is still not working: my Profile with State Proximity Sensor, which I use to switch off my phone when I put it in my pocket.

The Poco has no physical proximity sensor.
First I thought, it could be the protection-glass I put on the screen, but there is just no sensor :(
Beside of that, the phone is nice, though :)

Does anybody know how I could emulate the proximity sensor to get my phone switched off in my pocket? Or switched off, when I close the phone case?
Is there a Tasker workaround?

Thanks for hints.
frank


francwalter

unread,
Nov 10, 2024, 6:26:58 AM11/10/24
to Tasker


francwalter schrieb am Mittwoch, 6. November 2024 um 14:02:45 UTC+1:
...
Does anybody know how I could emulate the proximity sensor to get my phone switched off in my pocket? Or switched off, when I close the phone case?
Is there a Tasker workaround?

OK then, I emulated the proximity sensor with the "Light Level" sensor (0,0), which is not that reliable but works more or less.
I have now these two Profiles:

1. Light Off
State Light Level [From:0 To:0]
Enter Task: LightOff (just switch the global var %Light to 0)
Exit Task: LightOn (just switch the global var %Light to 1)

2. Display Off
State: Light Level [From:0 To:0]
Enter Task: DisplayOff (waits 5 sec., checks if %Light is still 0 and switches then off the display)


I needed another switch then, to switch off (toggle) this profile when it is dark, because the Light Level 0 sensor triggers then sometimes, switching my phone's Display off while on the phone. So I have a Task-Button on my homescreen where I can toggle the "Display Off" Profile (Action Profile Status).

Amazing: I have a fast and mighty high tech phone where I can program a lot on it, but not such simple and basic things. Such makes me dream of a rooted phone again (stopped to root my phone some years ago).
 

francwalter

unread,
Nov 13, 2024, 2:18:48 AM11/13/24
to Tasker
francwalter schrieb am Sonntag, 10. November 2024 um 12:26:58 UTC+1:
Is there a Tasker workaround?

OK then, I emulated the proximity sensor with the "Light Level" sensor (0,0), which is not that reliable but works more or less.

No, not reliable at all. I added a beep Action, to check if the profile triggers but mostly it doesn't. 
So it does not work more or less, it works only sometimes  :(

 

francwalter

unread,
Nov 15, 2024, 1:11:05 AM11/15/24
to Tasker
OK then, I changed the light sensor from 0,0 to 0,5 this works a bit better.
As I have a case around my phone with a lid it's not that problem in my pocket anyway, that I could touch the screen in my pocket and start apps I don't want to start.
Reply all
Reply to author
Forward
0 new messages