I would like to run my application with 180-degree rotation all the time, no matter what the current sensor value is. For 0 or 90 degree rotations, I would set screenOrientation to "landscape" or "portrait" in the manifest file, or call setRequestedOrientation() from code.
The problem is, the Android API doesn't know anything about the 180 degree rotation that CM provides, so it is difficult to access from within my application. I would be open to any possible solutions, no matter how convoluted
I'm running CyanogenMod-6.0 on the Nexus One.
Thanks
Related
Is this possible to disable? I freaking hate it, it's annoying and a pointless feature of the phone.
Um don't use apps that use it? Lol?
Use Advanced Config? Diamond Tweak? EtC?
I can't find anything in the Advanced Config to disable it. But programs like opera if I tilt the phone a little it changes orientation when I don't want it to. And it' annoying.
disable acceleromoter in Opera
I would also like to know how to diable the accelerometer in Opera.
The acceleromoter works in Opera 9.5, didn't work in 9.65, and now it works with 9.7... and I also hate it.
A solution would be much appreciated. I am surprised no one has figured this out yet...
HKLM\Software\Opera\GSensor\IdleTime set to very large number. It is the time in milliseconds to wait after the phone changes orientation before it rotates the screen.
Better than increasing the idle time, which will still eventually rotate the screen, is to use an application like Gyrator 2 http://gyrator.brins0.net/ to limit auto-rotation to apps that you actually want to rotate. It works very well at giving you great control over what your motion sensors do.
mstevens said:
Better than increasing the idle time, which will still eventually rotate the screen, is to use an application like Gyrator 2 http://gyrator.brins0.net/ to limit auto-rotation to apps that you actually want to rotate. It works very well at giving you great control over what your motion sensors do.
Click to expand...
Click to collapse
If you set the idle time to an incredibly high number, it will for all purposes never rotate the screen. If you tilt it sideways then back to portrait, it will cancel the countup to the idle time. It won't later rotate the screen. It will only rotate the screen if it has been tilted for that amount of time.
Why install another program? Anyways, what other programs auto rotate other than opera?
I have been trying naptime forcedoze and greenify combinations for optimum doze settings. recently naptime updated the app into agressive doze mode. so its constantly seeks motion, resulting in high battery usage in deep doze sequences.
On the other hand, I couldn't achieve disabling motion sensing in any of those app for my non-root device. I am now using greenify and forcedoze. It is optimal but about motion sensing.
You can manualy interfere with doze constants by adb commands, but PhenotypeConfigurator peridocally resets all doze constant parameters.
So i have no solution atm. Any advice for non-root devices motion sensing issue would be deeply appreciated...
Is it possible to make the screen rotation happen any faster? Using an accelerometer app to view the sensors values, it looks like the values for a rotated screen are produced pretty quickly after a screen rotation takes place. Could the process responsible for detecting this change increase the sample rate of the accelerometer values, resulting in a faster response? Or is the pause due to error prevention, to help eliminate false rotations?
I would like to bring this back to the top, as it is a valid concern for me, as well. There is a full 1.5-second delay for switching orientation. Far too slow.
Thank you,
Andy
Hi,
I just asked this same question in another thread yesterday so I would also like to know. I'm using a Huawei u8100 running android 2.1.
Thanks!
Tons of people want to be able to lock their phone in landscape mode (most default allow locking to portrait but none to landscape without hard keyboards).
We have plenty of people who roll android kernels here. Is it not possible to edit the bma150 accelerometer driver (i assume this is the one most/all android phones use.. am i wrong?) to report orientation based on a sysfs file. If the user writes a 0 to a certain sysfs file that the driver creates upon load, then orientation is like stock android behaves. If we write a "1" to the file, it could lock orientation in whatever position it's in and spoof any request for orientation to whatever this value is locked at. Each request would query the sysfs file and the user can write a "0" to unlock it.
Then we can create a widget/app that does the writing to the sysfs file. Obviously, this would only function for rooted phones.
Is this something that's not possible because the accelerometer drivers are different and closed source for each phone or what? I dont believe i'm the first person to come up with this idea so there has to be some reason why it's not done.
Hi,
install AutoRotate from the Market...it will enable or disable automatic rotation if you make a long press on the "search" button (or obviously if you start this app).
Bye
I agree I would find this extremely useful to be able to lock the tablet in any of the 4 possible orientations. Currently autorotate simply let u toggle between the default orientation (landscape on my tablet) and auto rotate on. I would love to be able to lock rotation at any position.
autorotate on my phone would just turn off autorotate or turn it on. this means portrait mode or non-locked rotate. Not what i'm describing at all and not what most people want.
Here it is, a simple app to set auto brightness curve. It works on it's own, so disable system auto brightness first.
It doesn't have any widgets, only brightness curve setting in the app
Works with actual backlight, so does help battery even on LCD screens.
You may even not set anything, just enable the service, adjust the curve as you like and go. Or you may play with detecting values from your sensor and setting sensor readings filter etc.
The app is in early stages, so bugs may arise. They will be fought upon.
Android Market: market://search/?q=pname:com.nnevod.loggraph
Android Market Web: https://market.android.com/details?id=com.nnevod.loggraph
Current version: 0.83
I'm not currently providing the APK here, but if anyone really needs, I would.
Internet and coarse positioning permissions are used for ads. Other are required to read sensors / adjust values.
hello everyone,
I've a question I'd like to ask regarding android, as I'm not that experience with coding, so I was hoping someone could help me with this.
to make a long story short: I've an android stick that I want to use for a Magic Mirror, but those sticks do not have a gyroscope sensor (for obvious reasons) so the screen is always set to horizontal mode. you can change the screen orientation through basic android configurations or apps, but all that does is setting the width of the screen to 50% and the height to 200%, where I really need the screen to actually rotate 90 degrees (as for the mirror I need to use the screen of the stick vertically)
my question now is if it's possible to perhaps edit the android code, through rooting or something alike, where I can control the screen properties, so I'd be able to actually rotate the screen 90 degrees.