Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,583 Members 37,689 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
speculatrix
Old
(Last edited by speculatrix; 9th September 2014 at 04:43 PM.)
#1  
speculatrix's Avatar
Senior Member - OP
Thanks Meter 49
Posts: 297
Join Date: Mar 2006
Location: Cambridge

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

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
Newest to oldest...
Android phones: Xperia Z Ultra, Galaxy Note 2 N7105, HTC Doubleshot, HTC Vision.
Previous phones: Nokia E71, E65, 6310i, 2110.
Previous PDAs: Sharp Zaurus C3100, Zaurus 6000L, Zaurus C860, Palm T3, Sony Clie N770, Handspring Visor.
Mobile operator: Three (latest), Vodafone, Three, O2, Orange (oldest).

/___ if I helped you, please click thanks to encourage me
 
SÜPERUSER
Old
#2  
SÜPERUSER's Avatar
Senior Member
Thanks Meter 93
Posts: 471
Join Date: Jan 2013
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
 
speculatrix
Old
#3  
speculatrix's Avatar
Senior Member - OP
Thanks Meter 49
Posts: 297
Join Date: Mar 2006
Location: Cambridge

 
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.

It's a shame that the android auto rotate doesn't naturally have three modes.. auto, fixed portrait, fixed landscape.
Newest to oldest...
Android phones: Xperia Z Ultra, Galaxy Note 2 N7105, HTC Doubleshot, HTC Vision.
Previous phones: Nokia E71, E65, 6310i, 2110.
Previous PDAs: Sharp Zaurus C3100, Zaurus 6000L, Zaurus C860, Palm T3, Sony Clie N770, Handspring Visor.
Mobile operator: Three (latest), Vodafone, Three, O2, Orange (oldest).

/___ if I helped you, please click thanks to encourage me
 
speculatrix
Old
#4  
speculatrix's Avatar
Senior Member - OP
Thanks Meter 49
Posts: 297
Join Date: Mar 2006
Location: Cambridge

 
DONATE TO ME
Default 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
Newest to oldest...
Android phones: Xperia Z Ultra, Galaxy Note 2 N7105, HTC Doubleshot, HTC Vision.
Previous phones: Nokia E71, E65, 6310i, 2110.
Previous PDAs: Sharp Zaurus C3100, Zaurus 6000L, Zaurus C860, Palm T3, Sony Clie N770, Handspring Visor.
Mobile operator: Three (latest), Vodafone, Three, O2, Orange (oldest).

/___ if I helped you, please click thanks to encourage me
The Following 2 Users Say Thank You to speculatrix For This Useful Post: [ Click to Expand ]
Tags
auto rotation, landscape, portrait
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes