Post Reply

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

OP speculatrix

7th September 2014, 08:20 PM   |  #1  
speculatrix's Avatar
OP Senior Member
Flag Cambridge
Thanks Meter: 50
 
306 posts
Join Date:Joined: Mar 2006
Donate to Me
More
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.
Paul
Last edited by speculatrix; 9th September 2014 at 04:43 PM.
7th September 2014, 08:45 PM   |  #2  
SÜPERUSER's Avatar
Senior Member
Thanks Meter: 109
 
524 posts
Join Date:Joined: Jan 2013
More
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: 50
 
306 posts
Join Date:Joined: Mar 2006
Donate to Me
More
Unhappy
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.

It's a shame that the android auto rotate doesn't naturally have three modes.. auto, fixed portrait, fixed landscape.
9th September 2014, 04:43 PM   |  #4  
speculatrix's Avatar
OP Senior Member
Flag Cambridge
Thanks Meter: 50
 
306 posts
Join Date:Joined: Mar 2006
Donate to Me
More
FIXED!
FIXED!

a few blank lines added for easy reading

Code:
$ adb shell

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

# sqlite3 /data/data/com.android.providers.settings/databases/settings.db
SQLite version 3.7.6.3-Titanium
Enter ".help" for instructions
Enter SQL statements terminated with a ";"

sqlite> select * from system;
1|volume_music|11
2|volume_ring|5

... snip loads and loads...

3990|volume_voice_earpiece|2
3996|volume_music_headset|8
3997|volume_music_bt_a2dp|8
4007|media_button_receiver|com.amazon.mp3/com.amazon.mp3.playback.service.HeadsetControlsReceiver

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

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

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

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

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
/data/data/com.keramidas.TitaniumBackup/files/sqlite3


with thanks to Jakub Czaplicki for his post to StackExchange:
http://android.stackexchange.com/que...roid-specified
The Following 2 Users Say Thank You to speculatrix For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
auto rotation, landscape, portrait
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes