Proximity Sensor issues.

ClipTy

Senior Member
Dec 16, 2011
223
14
0
27
Aperature Science
Hey guys. Recently I have been wondering what's going on with.my Sensor. It used to work just fine until I started flashing new Roms. I had the sensor working on the default.CM 9.1.0 rom and I can't remember another rom it worked with. I now have ViperS 1.6.3 for Sensation. I love this rom, but I checked AndroSensor and the status for the ProxSensor always says "Waiting for event" I am not sure what to do here, my sensor just doesn't work anymore! Troubleshooting ideas please!

Sent from Ty's ViperS Sensation. A beast of a phone.
 

murtazasamiwala

Senior Member
Feb 9, 2013
127
54
0
Mumbai
Hey guys. Recently I have been wondering what's going on with.my Sensor. It used to work just fine until I started flashing new Roms. I had the sensor working on the default.CM 9.1.0 rom and I can't remember another rom it worked with. I now have ViperS 1.6.3 for Sensation. I love this rom, but I checked AndroSensor and the status for the ProxSensor always says "Waiting for event" I am not sure what to do here, my sensor just doesn't work anymore! Troubleshooting ideas please!

Sent from Ty's ViperS Sensation. A beast of a phone.
Does the screen automatically turnoff when you take it close to your face on call....if so your proximity sensor is working...

Also there should be no issues in the sensor bcoz of VIperS rom....but if issue persists, full wipe and flash again.
 

ClipTy

Senior Member
Dec 16, 2011
223
14
0
27
Aperature Science
Does the screen automatically turnoff when you take it close to your face on call....if so your proximity sensor is working...

Also there should be no issues in the sensor bcoz of VIperS rom....but if issue persists, full wipe and flash again.
So I did a full wipe, flashed a clean ViperS rom, and I still get nothing. Went back to my previous back up.

I have been reading all over the place and tons of people never even found a solution for said issues. I'm going to ask on the Viper thread.
 

x2ht1

Member
Jun 20, 2013
15
4
0
No don't have this folder, too.
Till yesterday I have tried a several things.

First my Rom is Dark Sense 3.6, Sultan kernel from DS Store revision15 office version, Firmware 3.33 with Patch to HBoot 1.29.

1. I have tried a another kernel, didn't help.
2. Install a nandroid, didn't help.
3. Do a full wipe and install the Dark Sense Rom again, and didn't help.
4. Copie the scripts from the other thread (01lightsensor..e.g.) to the init.d folder, didn't help.
5. Then I tried to copy the optical_sensors Folder directly to sys/devices/virtual and then I get an error! "There is not enough space" (0Bit Free). Mhhh..that's not normal. I have root and read write access!
6. I tried a CW10.1 Rom and it work, till after a reboot.

Now I have install my nandroid and the issues still exist. I don't want to change my Rom, I like it.
Hope my post helps to solve the problem.
 

x2ht1

Member
Jun 20, 2013
15
4
0
Yesterday I decided to change my Rom to CM10.1 from Albinoman...
The sensors works with this Rom! After some testing time I come to the result: that's not my rom. The camera is really bad against the HQCamera 1.5.
There is no Beats Audio, Sony xLoud and Bravia Engine 2.
...I make a full wipe again ;)
Install my nandroid and the sensors still work :)
But I don't make a reboot. I thing after a reboot the sensor stops to work...
 

teeebor

Member
Jan 13, 2012
27
4
0
29
Mosonmagyaróvár
So you find our biggest problem. We can't figure out why is this happening. Sometimes after wipe it works, sometimes other firmwares work and sometimes RUU or Rom change work. There must be a bug in the boot, and don't know yet how to fix it :/

Anyway thanks for reply :)

Sent from my HTC Sensation Z710e using xda premium
 
Last edited:

x2ht1

Member
Jun 20, 2013
15
4
0
So you find our biggest problem. We can't figure out why is this happening. Sometimes after wipe it works, sometimes other firmwares work and sometimes RUU or Rom change work. There must be a bug in the boot, and don't know yet how to fix it :/
I thing the space is not the problem. It´s a virtual folder.
Now I can say Rom with Sense don´t work..
I have try a many roms (Elegancia, Dark Forest, DarkSense and the Stock ICS ROM 3.33.401.106). The sensors don´t work whith any of these
rom´s.
With other roms like CM9, CM10.1 or HyperSensation it works without issues...
I can post some pictures from my bootscreen log where you can see the error!
 

teeebor

Member
Jan 13, 2012
27
4
0
29
Mosonmagyaróvár
I see it returns 0, but why? When it fails it must return a specific error code exept zero.

So in CM all optical sensors must work? Hmm i try it, but my preferred Launcher is Roise because Beats audio and GUI
Tomorrow i will share the result :)
 

x2ht1

Member
Jun 20, 2013
15
4
0
I see it returns 0, but why? When it fails it must return a specific error code exept zero.

So in CM all optical sensors must work? Hmm i try it, but my preferred Launcher is Roise because Beats audio and GUI
Tomorrow i will share the result :)
your right! normally there are the values from the light and proximity sensor. you see an errorcode he is at the line above.
smd_tty_open: DS open failed -19
The line isn´t ther when the sensors work! I thing he couldn´t open the driver, but why?

the app for the loading screen called "live dmesg lite" ;)
 
  • Like
Reactions: teeebor

teeebor

Member
Jan 13, 2012
27
4
0
29
Mosonmagyaróvár
your right! normally there are the values from the light and proximity sensor. you see an errorcode he is at the line above.

The line isn´t ther when the sensors work! I thing he couldn´t open the driver, but why?

the app for the loading screen called "live dmesg lite" ;)
It could not be a permission problem cause i fixed it. Maybe a malfunctioning driver that leave behind something that block the sensor's driver.I don't have a better idea.
 
Last edited:

teeebor

Member
Jan 13, 2012
27
4
0
29
Mosonmagyaróvár
CM doesn't help. But somehow I could get it to work.

Here is the log when the sensors failed to start:


And when it worked:


edit
The columns are the following: Type - Sender - PID - Message
 
Last edited:
  • Like
Reactions: x2ht1

x2ht1

Member
Jun 20, 2013
15
4
0
Till yesterday my sensor work, too. but he restarts every time.

D/SensorService( 2473): enable: get sensor name = MPL accel
D/Sensors ( 2473): handle : 4 en: 1, v010.0 - Try to resolve lock issue
D/Sensors ( 2473): lock_status = 63
D/Sensors ( 2473): Andy: MPLSensor::enable: lock1
D/Sensors ( 2473): mEnabled = 0x10
D/Sensors ( 2473): set_power_states++: enabled_sensors: 16 dmp_started: 0
D/Sensors ( 2473): Before if statment: cs:0 rs:1 en_ped:0 da_ped:0 en_g:0 da_g:0
D/Sensors ( 2473): STOP timerirq_1
D/Sensors ( 2473): Starting DMP
I/ ( 2473): mpu3050_resume: Resuming to 0070
D/Sensors ( 2473): Exit: Starting DMP
D/Sensors ( 2473): set_power_states--
D/Sensors ( 2473): Andy: MPLSensor::enable: unlock1
D/Sensors ( 2473): MPLSensor::enable--1
D/Sensors ( 2473): (llu)G_Delay = 200
I/ ( 2473): mpu3050_resume: Resuming to 0070
I/ ( 2473): mpu3050_suspend: suspending sensors to 0070
I/ ( 2473): mpu3050_suspend: Will resume next to 0070
I/MPL-ml ( 2473): Actual ODR: 25 Hz
D/SensorService( 2473): SensorDevice::activate--: handle = 0x4, enabled = 0x1
D/SensorService( 2473): pid=29490, uid=10176
D/Sensors ( 2473): (llu)G_Delay = 20
I/ ( 2473): mpu3050_resume: Resuming to 0070
I/ ( 2473): mpu3050_suspend: suspending sensors to 0070
I/ ( 2473): mpu3050_suspend: Will resume next to 0070
I/MPL-ml ( 2473): Actual ODR: 25 Hz
D/SensorService( 2473): disable: get sensor name = MPL accel
D/Sensors ( 2473): handle : 4 en: 0, v010.0 - Try to resolve lock issue
D/Sensors ( 2473): lock_status = 4
D/Sensors ( 2473): Andy: MPLSensor::enable: lock1
W/MPL-sup ( 2473): MLGetAKMComassStatus, gAKMCompassStatus = 0
D/Sensors ( 2473): mEnabled = 0x0
D/Sensors ( 2473): set_power_states++: enabled_sensors: 0 dmp_started: 1
D/Sensors ( 2473): Before if statment: cs:0 rs:0 en_ped:0 da_ped:0 en_g:0 da_g:0
D/Sensors ( 2473): Stopping DMP
I/ ( 2473): mpu3050_suspend: suspending sensors to 0000
I/ ( 2473): mpu3050_suspend: Will resume next to 0070
D/Sensors ( 2473): inside if(s_use_timerirq)
D/Sensors ( 2473): set_power_states--
D/Sensors ( 2473): Andy: MPLSensor::enable: unlock1
D/Sensors ( 2473): MPLSensor::enable--1
D/SensorService( 2473): SensorDevice::activate--: handle = 0x4, enabled = 0x0
D/SensorService( 2473): pid=29490, uid=10176