Remove All Ads from XDA

!!SOLVED!! [Q] stuck in tablet mode: auto-rotation off = landscape

671 posts
Thanks Meter: 121
By speculatrix, Senior Member on 7th September 2014, 08:20 PM
Post Reply Email Thread
Something strange has started happening, if I turn off auto rotation my XZU sticks in landscape mode.
If I turn on auto rotate then phone will do what I expect and operate in portrait and landscape mode. However, if I am lying down in bed I want the non auto mode to make phone stick to portrait mode.

I suspect the problem is related to having used Xposed framework and App Settings to override DPI and make Google Maps easier to read the car. However, disabling that module and Xposed doesn't fix the problem.

My c6802 xzu is running 4.4.4, unlocked bootloader, rooted with dual recovery.

I'd go poking at build.props but I don't know what to look for, and I've searched but most results about people wanting auto rotate control apps.

Thanks for reading and more thanks for any help.
7th September 2014, 08:45 PM |#2  
Senior Member
Thanks Meter: 374
you can force orientation of specific apps with app settings xposed module. Try that?

For example the youtube app does not respond to lock orientation setting so it will enter landscape mode if you rotate the phone so I forced the app to stay in portrait mode with the xposed module
8th September 2014, 08:23 AM |#3  
speculatrix's Avatar
OP Senior Member
Flag Cambridge
Thanks Meter: 121
Donate to Me
Yes, I know I can force specific apps into specific orientations but I actually want everything to auto rotate when that setting is enabled.
e.g. I browse the web in portrait most of the time, but some websites only really work in landscape.

I just want my Xperia Z Ultra to behave like it always used to.. I.e. fixed portrait, or auto.
9th September 2014, 04:43 PM |#4  
speculatrix's Avatar
OP Senior Member
Flag Cambridge
Thanks Meter: 121
Donate to Me

a few blank lines added for easy reading

$ adb shell

shell@C6833:/ $ su -
root@C6833:/ # 

# sqlite3 /data/data/
SQLite version
Enter ".help" for instructions
Enter SQL statements terminated with a ";"

sqlite> select * from system;

... snip loads and loads...


sqlite> select * from system where name='accelerometer_rotation';

sqlite> select * from system where name='user_rotation';

sqlite> update system set value=0 where name='user_rotation';

sqlite> select * from system where name='user_rotation';

sqlite> ^D

no need for a reboot, turned on auto-rotate and voila, device no longer thinks its a tablet.

note that the only sqlite3 binary I could find was one in the Titanium Backup Root app:

root@C6833:/ # find / -name sqlite3

with thanks to Jakub Czaplicki for his post to StackExchange:
The Following 2 Users Say Thank You to speculatrix For This Useful Post: [ View ] Gift speculatrix Ad-Free
Post Reply Subscribe to Thread

auto rotation, landscape, portrait

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes