When blanking the screen, the program does not get access to data from the accelerometer!
Previously, there was no such problem.
Also, this problem was not when compiling in compatibility mode with Android version 2.xxx
Now there is no such mode and the accelerometer is simply unavailable when the screen is extinguished.
This is mistake!
Please let someone know the developers.
I apologize for English, I use a translator.