I've just bought a Raspberry Pi 3 with a 7" Display touch screen and a casing.
Unfortunately, the casing can't allow me to rotate manually the screen so my apps are running upside down.
I've tried to do it from the console using the following adb commands but with no luck:
adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
Then
adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1
Or
adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:3
Is there any way to do it from a config flag directly that screen orientation is handled from boot ?