Xperia z3c: orientation sensor misconfigured - Android Q&A, Help & Troubleshooting

Hey there,
I recently had a problem with my Xperia Z3Compact, though the solution I found might not be device specific. It's orientation sensor didn't work properly:
- It didn't change back from landscape to portrait mode
- Some photos taken were turned upside down
Here my solution so others maybe can profit:
Using sensoring tools, i managed to find out that the device reported to be flipped 180degrees (On its y-axis/tilt back and forth). Recalibrating the sensors with any apps I tested did not work.
Research showed, that the sensor orientation can be changed in the following file: /etc/sensor_def_qcomdev.conf; changing any values didn't take any affect though.
From some link I am not allowed to post here because I didn't post much yet, I learned that removing the following file lets android reconfigure/recalibrate its sensors according to the config-file: /data/misc/sensors/sns.reg
after all: just deleting the sns.reg-file was enough to fix the orientation issue. I mentioned the conf-file because it could be of use for somebody.

applican said:
Hey there,
I recently had a problem with my Xperia Z3Compact, though the solution I found might not be device specific. It's orientation sensor didn't work properly:
- It didn't change back from landscape to portrait mode
- Some photos taken were turned upside down
Here my solution so others maybe can profit:
Using sensoring tools, i managed to find out that the device reported to be flipped 180degrees (On its y-axis/tilt back and forth). Recalibrating the sensors with any apps I tested did not work.
Research showed, that the sensor orientation can be changed in the following file: /etc/sensor_def_qcomdev.conf; changing any values didn't take any affect though.
From some link I am not allowed to post here because I didn't post much yet, I learned that removing the following file lets android reconfigure/recalibrate its sensors according to the config-file: /data/misc/sensors/sns.reg
after all: just deleting the sns.reg-file was enough to fix the orientation issue. I mentioned the conf-file because it could be of use for somebody.
Click to expand...
Click to collapse
I really want this link in here: http:[doubleslash]blog[dot]csdn[dot]net/yushuang20140403/article/details/23907159

You fixed my problem, http://forum.xda-developers.com/one...tic-sensor-t3176956/post62301573#post62301573

Related

Pictures not rotating when i rotate the phone

I am having a weird problem pictures are not rotating automatically when i rotate the phone. Sometime when i rotate the phone pictures goes blank. No matter whatever rom i use. My G sensor seems to work perfectly with other application i.e. teeter, opera and Calibration working as well. I tried to changed to interval value 150 ms but no luck. Anyone have anyidea? I tried few different rom no luck either. thanks in advance.
Hi, this is not the proper forum to discuss this particular inquiry. Have you tried the search button?
You may try changescreen or G-Config
kamark said:
I am having a weird problem pictures are not rotating automatically when i rotate the phone. Sometime when i rotate the phone pictures goes blank. No matter whatever rom i use. My G sensor seems to work perfectly with other application i.e. teeter, opera and Calibration working as well. I tried to changed to interval value 150 ms but no luck. Anyone have anyidea? I tried few different rom no luck either. thanks in advance.
Click to expand...
Click to collapse
What version of Album did you cook into your ROM? If it's version 3.0, the behaviour has changed.
The Album menu options will rotate but the image will stay in it's original photographed rotation - i.e. portrait or landscape.
hilaireg.... Thank you very much... I was wondering why menu was rotating not tha pictures? Got the answer.

Gyro Sensor calibration in settings - Dot not moving ? Normal ? Someone try :)

Ok in the galaxy s2. If you go to settings, display, then at the bottom, you have horizontal calibration and gyro sensor calibration.
If you choose horizontal calibration you get a little test thing with the dot in the middle and it moves as you tilt the device.
When I go to gyro sensor calibration the dot just stays in the middle and does not move. Is this normal ?
Can someone try the above please
yep i tried this before, same here, but i think it's normal
If you look two different calibrations .
jje
I know, but shouldn't the dot move when you tilt the device. I thought thats what the gyro does
Do it while you are in the car (as a passenger), and see if that move when the car accelerates or slows down
Why would one calibration act the same as another .
jje
I am having the same problem the gyro calibration was working till i click on calibrate as soon as i clicked it i no longer see the ball moving :/ tried wiping and everything nothing worked.
Mine doesn't move either.
I could of sworn mine was moving last time I checked! Very strange..
I cant get mine to move either.
Maybe this might help.
http://en.wikipedia.org/wiki/Gyroscope
the gyro problem is annoying .. every app just turn into landscape mode :/
hope someone fix it fast ;/
sorrowuk said:
Ok in the galaxy s2. If you go to settings, display, then at the bottom, you have horizontal calibration and gyro sensor calibration.
If you choose horizontal calibration you get a little test thing with the dot in the middle and it moves as you tilt the device.
When I go to gyro sensor calibration the dot just stays in the middle and does not move. Is this normal ?
Can someone try the above please
Click to expand...
Click to collapse
Before I root my Samsung, can you tell me what rom you have installed or what you did last?
Thx
Morichio said:
Before I root my Samsung, can you tell me what rom you have installed or what you did last?
Thx
Click to expand...
Click to collapse
Lite'ning rom , it was working untill i clicked on calibrate after clicking it it got stuck :/ well that me i don't know about the OP.
I have the same problem (indications for gyro callibration) but also a magnetic sensor problem (see this http://forum.xda-developers.com/showthread.php?t=1111355 threat)
I used an app called sensor test / plot which shows problems with the magnetic sensor and orientation.
Anyone having the same problem?
Try an App called GPS status, it displays the output of all the GS2s sensors on one screen, including satellites, compass, gyro and accelerometer, at least you can reassure yourselves that the various sensors are actually working
erikcornelisse said:
I have the same problem (indications for gyro callibration) but also a magnetic sensor problem (see this http://forum.xda-developers.com/showthread.php?t=1111355 threat)
I used an app called sensor test / plot which shows problems with the magnetic sensor and orientation.
Anyone having the same problem?
Click to expand...
Click to collapse
All the numbers move for me using the sensor test/plot app.
in sensor test everything is working but the phone just stay in landscape mode .. thats the problem that i have.
You can try *#0*# on your dialler and then use the Sensor test and check if everything is all right.
tested on *#0*#it says its working fine as well .. :/
Recently my magnetic sensor did not work. Yesterday suddenly it came to life exept I don't trust it.
Just to check if my sensors are OK I would like to compare some data. I use *#0*# and the SENSOR
My readings are (when on table):
ACCELEROMETER Sensor Raw Data
x:-10/10 y:-20/-40 z:3030/3060
Gyroscope Sensor
Y:-0.01/-1.00 P:0.01/0.80 R:0.01/0.90
Gyro self test OK, Graph shows normal plot with rotation around all axes)
Magnetic Sensor
Magnetic: x:-45 y:-600 z:1086 (values change with orientation but stay around the same range, exept for the z value, it stays at 1086.48 contantly)
Azimuth: 176 (changes just +/-2 degr with rotation and +/- 20 degr with roll)
Pitch: 0,050 (changes normal with pitch)
Roll: 0,40 (changes normal with roll)
Little compass indicates South (red line towards you) and does not change with rotation (just +/- 20 degr with roll). It also says need for calibration and the number 0.
I know values will be different with everyone but should be around the same range. I have values (Accelerometer) in the 10 / 30 and 3000 range depending on de axis. Same with the Magnetic sensor 50 /600 and 1080 range.
As the magnetic z-axis value is stuck I expect a faulty sensor.
the test is all good to me but the image test it failed to move from landscape to normal. hope someone can help :/

[Q] Rikomagic MK802II, portrait mode

Hello all,
this is my first post here so be gentle :cyclops:
I've bought Rikomagic MK802II with Android 4.0.4. with HDMI.
I want to rotate screen to portrait mode. I spent days trying to make it work but without success.
Device came without "Auto-rotation" option in settings. It is somehow locked to landscape rotation.
I tried to do:
1) Unpacked original IMG file, then unpacked system and changed build.prop.
- I've added "ro.sf.hwrotation=90" to build.prop file and flashed the device.
- after rebooting system stuck at loading screen
2) Again fresh start from original IMG file.
- changed "config_AllowAllRotation" from "false" to "true" in framework-res.apk
- packed all and flashed the device
- after reboot system running OK but still in landscape
3) Made file local.prop in /data/.
- In it I've added:
launcher.force_enable_rotation=true
qemu.sf.lcd_density=160
- nothing helped...
4) Changed settings.db.
- changed user_rotation from 3 to 0 (to 1 also)
- after rebooting screen is still in landscape but settings.db doesn't have anymore this row: user_rotation and 20 next rows too.
I also spot some AutoRotationController.smali file but I don't know is everything about it or?
How I testing portrait mode:
- Tried with Rotation locker application
- made my app which have orientation to portrait (tested it on my tablet and on my smartphone and in emulator and in all cases app is in portrait except on MK802II).
Does anyone know what is needed to be changed to get portrait rotation? No matter locked portrait rotation or Auto rotation enable. Just possibility to rotate screen to portrait.
Are there some parameters needed to be changed or some features to be added or something else?
Are there some group of parameters considering to screen rotate?
Any luck with the rotation? Same story on the mk802 fw.
Cheers,
Martijn
Still no luck. I didn't gave up but I need to learn more about android to better understand the problem about rotation and to to prevent/allow screen rotation. That is hard way for me but only because I didn't get any help on the forums and cannot find any blog on the net who have this there written down.
I'm guessing all your previous attempts to configure or manipulate the devices screen orientation are unsuccessful probably because all these system settings, configurations and used apps rely on a hardware feedback of sum sort.
Which probably is absent on these devices.
I don't believe an android stick as this comes with a gyroscopic sensor (hardware). Thus not able to supply or react to the correct information.
I don't think its impossible though, it just needs a more low-level programatically approach.
Good luck :good:
And please share your solution if you get it solved. I can imagine more people are facing this problem.
Semi - Solution
Hello,
I have been working with one of these devices recently and also needed to display something in Portrait mode.. Alas it's locked in to landscape.
Instead, I figured out a work around. I built an application that is landscape, but the internal objects are rotated 90 degrees. The app I am working on (and hope to have in the app store soon) is a web browser kiosk style app. This application design would allow you to display something in portrait mode even if the devices is locked to landscape. Added bonus, with the way I have it set up I am able to also set it to 180 degrees or 270 degrees (this is useful if the picture needs to be flipped on a projector lets say)
Just thought I'd share what I figured out so far. I'll post the link once I have the app ready for prime time.

Auto Rotate problem on Mediapad X1

Previous thread title was not clear so raising new thread.
Auto rotate is not working properly on my device since beginning. Is anyone else facing the problem ?
Device : 7D-503L.
Build : B010
I have used sensor box etc and see that orientation is stuck on top-right corner. images in the link
https://www.dropbox.com/s/f3o3yaj374...012.27.24.jpeg
https://www.dropbox.com/s/020ijnx6ds...012.27.56.jpeg
Tried factory reset etc, nothing seems to be fixing, even going back to B007 also didn't fix it.
I have used B002, B006, and B007: autorotate works fine.
Always limited to three sides/directions! Portrait upside-down is not available; by design.

mia3 problem with involuntary rotation

Hello... for some time now in my mia3 I have the problem that when I have a horizontal application either a game or the same youtobe on the screen it seems to go back to vertical mode and then horizontal.
I wonder if anyone would know why that is.
Thank you very much in advance.
It seems the sensors and system are not calibrated well enough to handle normal uses. It's overly sensitive to small angle changes. I find it switch the orientations back and forth automatically when it's put on the table from hand-held position.
I use this to set orientation for each app:
https://play.google.com/store/apps/details?id=jp.snowlife01.android.autorotatecontrolpro
It's not solving the problem, just sidestepping it.
CLS_phone said:
It seems the sensors and system are not calibrated well enough to handle normal uses. It's overly sensitive to small angle changes. I find it switch the orientations back and forth automatically when it's put on the table from hand-held position.
I use this to set orientation for each app:
https://play.google.com/store/apps/details?id=jp.snowlife01.android.autorotatecontrolpro
It's not solving the problem, just sidestepping it.
Click to expand...
Click to collapse
I will try. Thank you very much for the answer. I will also notify you if this partially solves the problem.
camilov said:
Hello... for some time now in my mia3 I have the problem that when I have a horizontal application either a game or the same youtobe on the screen it seems to go back to vertical mode and then horizontal.
I wonder if anyone would know why that is.
Thank you very much in advance.
Click to expand...
Click to collapse
Try to recalibrate gyroscope sensor, type in dialer *#*#6484#*#* and go to gyroscope section, calibrate. Find flat smooth surface and follow the instructions. It helped me when my phone didn't catch that I'm holding phone in horizontal position. After calibration it's perfect.
_mysiak_ said:
Try to recalibrate gyroscope sensor, type in dialer *#*#6484#*#* and go to gyroscope section, calibrate. Find flat smooth surface and follow the instructions. It helped me when my phone didn't catch that I'm holding phone in horizontal position. After calibration it's perfect.
Click to expand...
Click to collapse
That was the first thing I did, as well as trying out many applications, and it's still the same.
Thank you very much.
Maybe there's something about how you're handling the phone.
Say, when putting the phone to the desktop by left hand, the phone would land on the surface by its (long) right side at the moment it leaves the palm. The screen face is tilted to the right somewhat. This is enough to trigger the auto rotation and irritating.
If the system can learn the habit, predict actual intention of the user and give it some delay before triggering the auto rotation, then the display can stay more stable. But I don't know where to set such trigger timing or delay etc.
Later I learn to touch down at the top (short) side of the phone first. Or use that aforementioned app to disable auto rotation on some apps, like browser.
BTW, my gyroscope is calibrated well, too.

Categories

Resources