Hi,
I have a rooted Samsung GT-I5500 phone with stock Android 2.2, unfortunately the g-sensor is always reporting incorrect values for the Z axis.
That is when the phone is placed horizontally I get values of about 1.2G on the Z axis, while when the phone in standing vertically or in landscape mode I get values of 1G on the X or Y axes (as they should).
This causes applications to think the phone is being moved, for example in "GPS Status" I costantly see the acceleration value being around 0.2 even if the phone is not moving.
Moreover there is no calibration option under display settings and the procedure described here (for another model): http://forum.xda-developers.com/showpost.php?p=6999499&postcount=8
cannot be applied because /system/bin/sensorcalibutil_yamaha is missing.
Can someone kindly help me?
Thank you
Related
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.
When I hold my phone vertical (portrait or landscape) to take panorama or photosphere photos it's out of alignment and I have to downward it to the earth to adjust the horizon line to the middle of screen. In another word if I hold my phone in 80° its sensor behave like it is in 90°. Attached photos shows the problem. I have rooted my device with official 4.4.2. I couldn't find any helpful guide about how to initialize or calibrate accelerometer or G-Sensor. rotating phone in 8 path, rotating around all 3 axises, restarting device didn't help.
Please help me how to solve this issue. I don't want to reset factory device right know. I've access to all system files if needed. Thanks
Nothing?!
Please help! Any idea might help.
Hi,
I have got a noname Android tablet (Rockchip 29xx based), which has an orientation sensor with 90 degrees skewed directions. This means if i turn the tablet in landscape orientation, the picture on LCD turns portrait orientation.
I have replaced the mainboard of the tablet, but the new one came from the same type and has the same version. As i remember, at the first use it had a correct orientation, and i have no idea how it changed (i gave the tablet to a friend temporarily).
Is there any way to correct the 90 degree skew? From build.prop or sensor kernel module parameter, or similar...?
Thanks for any help
hello everyone,
I'm having a problem with the rotation of my android device and I was hoping if anyone could help me with this.
to give some backstory, I'm trying to create a magic mirror using a MK809 III B Quad-Core android stick, which uses android 4.4.2
the stick is used with a computer monitor (Samsung Syncmaster 205BW), but the monitor will be used vertically. (I'm using a HDMI>DVI-D adapter to connect the two)
because of this, I need to have the screen rotated 90 degrees in portrait mode, and android does allow you to change the rotation of the screen, but it doesn't do it well.
normally the rotation is set to landscape, but you've the option of setting the rotation of the screen, but if I set the rotation to 90 degrees, rather than actually rotating the screen with 90 degrees, it rather pushes a vertical screen in landscape mode, thus cutting off half of the screen.
so far I've tried apps such as Ultimate Rotation Control, but those do not actually rotate the screen, rather they just lock the rotation.
my question now is if anyone can help me with this problem, or tell me if it's even possible to do the thing I'm trying to do.
Any Luck?
I'm having the exact same problem with APQ8084 SOM running android 5.0.2 outputting to HDMI monitor (no accelerometer).
You would think this would be an easy problem to solve.
If I put my Winodws 10 Monitor in portrait mode, it correctly rotates screen 90 degrees end of story.
As Yusunoha mentioned, changing the user rotation in Android (via several methods):
1. using the "settings put system user_rotation 0/1/2/3"
2. modifying PhoneWindowManager.java to always return preferred rotation as "portrait"
3. Setting "persist.panel.orientation=90/270"
Does NOT result in screen rotating 90 degrees.
Instead I get a compressed portrait mode stuck inside my landscape orientation.
It's almost as if the accelerometer (which I don't have) is telling the OS to always orient towards it's perceived gravity.
Any tips rotating the entire Android Display experience (not on a per APK basis) would be wonderful.
Anyone have any ideas?
Yusunoha said:
hello everyone,
I'm having a problem with the rotation of my android device and I was hoping if anyone could help me with this.
to give some backstory, I'm trying to create a magic mirror using a MK809 III B Quad-Core android stick, which uses android 4.4.2
the stick is used with a computer monitor (Samsung Syncmaster 205BW), but the monitor will be used vertically. (I'm using a HDMI>DVI-D adapter to connect the two)
because of this, I need to have the screen rotated 90 degrees in portrait mode, and android does allow you to change the rotation of the screen, but it doesn't do it well.
normally the rotation is set to landscape, but you've the option of setting the rotation of the screen, but if I set the rotation to 90 degrees, rather than actually rotating the screen with 90 degrees, it rather pushes a vertical screen in landscape mode, thus cutting off half of the screen.
so far I've tried apps such as Ultimate Rotation Control, but those do not actually rotate the screen, rather they just lock the rotation.
my question now is if anyone can help me with this problem, or tell me if it's even possible to do the thing I'm trying to do.
Click to expand...
Click to collapse
Found any solution? Even with my rooted device and these settings it won't work. Also using usb c > hdmi > vga.
Hi,
I just bought a chinese tablet BS109 from Aliexpress, for the price the tablet is really an excellent value.
However, I have a big annoyance with it:
The G-Sensor is off by 26° on X axis (and 7° on Y axis).
However, it seems accurate (gives the same values for the same position). It's just like if the component would have been bent on the motherboard.
I don't need accuracy on the G-Sensor, but this has 2 nasty effects:
- When in landscape mode, it won't switch to portrait mode without flipping it right by at least 25°
- It's impossible to keep a portrait mode when lying on a table. (Except by locking to portrait mode). It will return to landscape mode as soon as the tablet approach the horizontal lying position.
The "recalibration" tools did not help. (GPS Status or Clinometer for instance)
There is no settings menu for this sensor.
My questions:
- How can we fix such a huge miscalibration?
- Can a calibration fix such a difference?
- Should I consider a Hardware problem? In this case, could it be that the sensor is not properly placed on the motherboard, and that we could fix it by opening the tablet?
Thanks,