Sony Ericsson Xperia Sensor HAL open sourced - Xperia Play Android Development

Sony Ericsson have open sourced the sensor HAL (hardware abstraction layer) so that now you can modify the behaviour of the stock light/proximity/accelerometer etc. For example, you could completely disable the light sensor, to stop automatic brightness.
More info and download on the Sony Ericsson site here: http://developer.sonyericsson.com/w...l-for-xperia-phones-available-as-open-source/
Hopefully this should also give a better insight to the sensors, so can look into fixing orientation problems with ICS builds

That's nice, lets hope someone creates a tweak to disable that annoying ALS. Thanks for sharing!

Is there any way someone could develop a fix for my accelerometer issues with these? That would be great news!
Sent from my R800x using XDA App

Can any developer make an app or sth to recalibrate proximity sensor? sth like this app http://forum.xda-developers.com/showthread.php?t=951858&

Related

Developers: Use light sensor to turn phone on?

Is it possible to query the light sensor, when the phone is "turned off" (suspended)?
It would be great just to take the phone out of the pocket and its on. Cause i'm using a blackstone, the power button is very small and it would help me a lot.
Please enlighten me
very few features are avabile when in suspented mode
and 3th party hardware as far as i know is not one of them
basicly device off all power to light sensor is off
same thing with something as basic as sdcard storage and sdio features
Dear Reflex and all!!!
in case you look for a light sensor handler,please check out the AGEYE.DE site.I don t remember well,but i think it was the ageye profile program.It takes care of light sensor built in the HTC or else!!
helios

How to enable auto brightness on Xperia Ray?

I found that Xperia Ray have Ambient light sensor from the white paper, but i can't use it on stock roms or CM7, can someone enable this?
this is the link of white paper
http://dl-www.sonyericsson.com/cws/download/1/997/193/1308295710/ray_WP_1.pdf
thanks!
Good question!
I also found in the whitepapers that the Xperia mini pro (sk71i) has the same ambient light sensor but when I check with android tools like "Sensor List" the only thing that could match is the Proximity sensor. That one goes from 1 to 0 if you get close to the top (blocking the light?).
APDS9702 Proximity
The sensor is enabled by default
how? i can't feel that
With my HTC Desire Z I had the "auto brightness" option. On this one I don't. Are you sure it is enabled? Do you have any clue what sensor it would be in the list of for example android app "sensors list".
xutienan9520 said:
how? i can't feel that
Click to expand...
Click to collapse
As of Stock Rom 2.3.3 and 2.3.4 there is no 'auto brightness' option.
But the ambient light sensor is always working.
If you take it outside in bright sunlight, you will notice that the screen automatically gets brighter. That's how you can tell the sensor is always on
I assume they haven't put auto brightness in as a feature because maybe some people want to save battery/adjust their screen brightness for indoor use.
But when the surrounding light passes some threshold (ie, outside), the auto brightness feature overrides your user settings...
thanks.....so, can i make a option for this?
xutienan9520 said:
thanks.....so, can i make a option for this?
Click to expand...
Click to collapse
No, there's no select-able option for it. It's always on.
check "brightness level" widget in android market. I just added to my desktop and it has an autolevel option. Seems to work. But I can't say if it's really off when you select only a percentage.
LOL! Check some of the newer topics. Many users want to disable the auto brightness. The topics have some info for rooted users. But as said it seems to be enabled by default.
It's not linked to the 2.3.3 update though. My desire Z also had that Android version and still provided the auto brightness option in the display menu.
It also seems to be the reason of the flickering screen on low backlight setting. That is in fact annoying.
So, how can i disable the sensor? I want my screen always to be bright, i hate this auto adjusting
FreeZr said:
So, how can i disable the sensor? I want my screen always to be bright, i hate this auto adjusting
Click to expand...
Click to collapse
See this [HOWTO] disable ambient light sensor for LCD in xperia mini. It might work on Ray too.
scroolik said:
See this [HOWTO] disable ambient light sensor for LCD in xperia mini. It might work on Ray too.
Click to expand...
Click to collapse
Thanks. I wanna keep my warranty though
If there is a light sensor on my ray then it must be disabled.
Mine does not react to any changes in light at all - even if I manually cover the whole of the top of my phone in my fist.
I also find that the screen is odd outside in the sun. It looks exactly the same if it's set to 25% brightness or 100% brightness (both are just as easy to see). I can only notice a difference in brightness when i'm indoors or if it's dull and cloudy.
FYI i'm on 4.0.A.2.368 - 2.3.3
chancooluk said:
If there is a light sensor on my ray then it must be disabled.
Mine does not react to any changes in light at all - even if I manually cover the whole of the top of my phone in my fist.
I also find that the screen is odd outside in the sun. It looks exactly the same if it's set to 25% brightness or 100% brightness (both are just as easy to see). I can only notice a difference in brightness when i'm indoors or if it's dull and cloudy.
FYI i'm on 4.0.A.2.368 - 2.3.3
Click to expand...
Click to collapse
That's not good!
Sent from my ST15i using XDA App
Screen Auto Brightness is not working on my Xperia Ray too.. I don't know why this feature was disabled... I tested light sensor and that works but brightness never changes... Is it because of old 2.3.3 firmware i have ? I didn't update to latest yet..
I don't know if it's just me but sometimes my screen kind of flickering.
Is it true that it's because of the light sensor just too sensitive?
Sent from my ST15i using XDA App
zigma80 said:
I don't know if it's just me but sometimes my screen kind of flickering.
Is it true that it's because of the light sensor just too sensitive?
Sent from my ST15i using XDA App
Click to expand...
Click to collapse
Yeps. I have the same -.-
chancooluk said:
If there is a light sensor on my ray then it must be disabled.
Click to expand...
Click to collapse
For me,Xperia Ray owner are very lucky.
Because the light sensor is implemented very bad on Xperia Mini for example.
The screen flickering and your eyes cry. : (
zigma80 said:
I don't know if it's just me but sometimes my screen kind of flickering.
Is it true that it's because of the light sensor just too sensitive?
Sent from my ST15i using XDA App
Click to expand...
Click to collapse
Yes,is a very boring problem.
The Xperia Mini has two big problem.
-Touchscreen lag
-Flickering screen
Check out this post on the Xperia Arc - works great just the same for the Xperia Ray. Also the linked program well depicts the relation ambient light value, brightness setting and the resulting screen brightness.

Light sensor in mini pro - what the hell is this?

can anyone tell me what the duck is that thing installed in my mini pro that is supposed to be a light sensor? it does control the brightness level depending on ambient light, but it doesn't work with apps that allow you to change brightness according to your own rules. I've tried Lux Auto Brightness and it acts as if the phone didn't have any light sensor, but when I go to service menu and test the sensor, it does react. so what's going on there?
Sloppy implementation, I guess.
Why are you trying to use third-party software for it?
Most of 3rd party test service shows LIGHT SENSOR,the mini pro have AMBIENT LIGHT SENSOR.Both act same,but different driver and name
Sent from my SK17i using xda premium
Pixelado said:
Sloppy implementation, I guess.
Why are you trying to use third-party software for it?
Click to expand...
Click to collapse
I have a feeling that Lux does better job (even though I set it to measure light via front cam).
UchihaDareNial said:
Most of 3rd party test service shows LIGHT SENSOR,the mini pro have AMBIENT LIGHT SENSOR.Both act same,but different driver and name
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
ohhhh, thanks now to find something that uses this stuff. thank you Sony for complicating my live!

Light sensor control?

Hiya,
I've developed an auto-brightness app and it seems to be a popular prospect among Xperia users.
However, Xperia models don't have properly implemented light sensors and naturally don't work properly. Android doesn't recognize the sensor as such, but ROMs still implement the driver since it seems some auto-brightness works on these phones.
The question(s):
Has anyone managed to gain control over this sensor?
Does some custom kernel implement it properly?

[Q] if you don't have the proximity sensor problem, can you try test?

I'm trying to figure out normal (functional) proximity sensor response to light.
(originally posted this to meanbean because I downloaded meanbean specifically because it mentions the proximity fix.
Would somebody who doesn't have a problem with their proximity sensor try the following:
1) Use whatever program you like that displays current proximity distance. I've been using Proximity Sensor Finder.
2) Confirm that near and far are reporting correctly (it's binary, but reports as 9cm versus 0cm).
3) Expose the phone to strong light (e.g. put it near a light bulb).
4) Remove from light source
--> Does the proximity sensor now report NEAR even when there's no object near the sensor?
I really appreciate your testing this and letting me know here or by DM.
Thanks so much!
Have you tried this:
http://forum.xda-developers.com/showthread.php?p=31452830
[MOD] [CM10] Proximity Sensor Fix
Even though it's for cm10 it might help you... Good Luck!
Sent from my EVO using xda app-developers app

Categories

Resources