[GUIDE] - EASY - Check your display type without root - Terminal Emulator method - myTouch 4G Android Development

If you like this tutorial and find it useful, LINK OTHER PEOPLE TO IT.
This is NOT my discovery and I'm not taking credit for it, I'm merely posting because I see this question asked over and over and wanted to make a more visible guide than the ones that are buried inside other threads.
This is very easy.
1. Download Terminal Emulator from the Market.
2. Reboot. (to clear memory)
3. Open Terminal and type DMESG, then press enter. (Does not require root.)
--3a. If you type dmesg | grep panel it should reduce the output and make it easier to find! (Might require root.)
persiansown said:
dmesg | grep panel
Click to expand...
Click to collapse
4. Scroll all the way back up to the top. Might take a minute.
5. Look for the line that reads something to the effect of <7>0000000 tag panel parsing panel type = (1 is bad, 2 is good)
6. Profit.
That's it! Very simple and easy and it will get you a definitive answer without rooting your phone.
If you like this tutorial and find it useful, LINK OTHER PEOPLE TO IT.

dmesg | grep panel

Thanks....
Sent from my HTC Glacier using XDA App

I have a 1 which is bad, what can I do?

Mine just says:
msmfb: turning on panel
glacier_panel_unblank +
glacier_panel_unblank -

Foo_Blyat said:
I have a 1 which is bad, what can I do?
Click to expand...
Click to collapse
Warranty exchange?
Sent from my HTC Glacier using XDA App

Please note that this does not work on rooted devices. I don't know why, but if your device is rooted the panel type does not show.
Sent from my HTC Glacier using XDA App

mr.tenuki said:
Please note that this does not work on rooted devices. I don't know why, but if your device is rooted the panel type does not show.
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
This isn't true, it works perfectly on my rooted device. The main key is to reboot just before you do this or you won't be looking at the right section of information.

Jeffmeister said:
Mine just says:
msmfb: turning on panel
glacier_panel_unblank +
glacier_panel_unblank -
Click to expand...
Click to collapse
Not sure what this is about... reboot the device and try again. Tell me exactly what you're putting into Terminal.

Mine says 1.... /cry
Sent from my HTC Glacier using XDA App

Phateless said:
This isn't true, it works perfectly on my rooted device. The main key is to reboot just before you do this or you won't be looking at the right section of information.
Click to expand...
Click to collapse
Again, I tried it with 2 different ROMs, after reboot and used "dmesg | grep -i panel" ( the -i option in grep command ignores case). All I got was the same lines as the previous comment.
In the original thread out is also mentioned that this method is not intended for rooted devices as it doesn't always work.
Sent from my HTC Glacier using XDA App

mr.tenuki said:
Again, I tried it with 2 different ROMs, after reboot and used "dmesg | grep -i panel" ( the -i option in grep command ignores case). All I got was the same lines as the previous comment.
In the original thread out is also mentioned that this method is not intended for rooted devices as it doesn't always work.
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
That's your problem. Type ONLY "dmesg." I just tried it again specifically for your benefit and it worked fine.

Ok, now it worked after reboot and I'm a little puzzled. The grep command does work and you should add it to the guide as you don't need to search the output, so this wasn't the issue. Not sure why I didn't get it previously
Sent from my HTC Glacier using XDA App

mr.tenuki said:
Ok, now it worked after reboot and I'm a little puzzled. The grep command does work and you should add it to the guide as you don't need to search the output, so this wasn't the issue. Not sure why I didn't get it previously
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
I believe it but I'm not familiar enough with Linux to ensure I list the command correctly. If you can figure out how to get it to work consistently I'll add it to the first post.
If I had known about that command I would have been stoked. You wouldn't believe how much time I wasted looking through lines of gibberish to find the panel type before I figured out I had to reboot, lol.

#2! That just made my morning

confirmed #2! ..... on a rooted device. Tried typing it dmesg after having phone on all night and it didnt work. Rebooted it and typed dmesg again and it worked

Thanks for this! Can also confirm it worked on my rooted device AFTER A REBOOT. Unfortunately I have panel type 1, which I already knew and it was no surprise to me, but I now have a replacement device on its way!

Wooohooo, got a 2! I wouldn't of hit the thanks button if it read 1 LOL j/k. Thanks for the informative post, phate!

thanks found mine is a 1 but its ok i got mt4g cheap at ebay

Phateless said:
I believe it but I'm not familiar enough with Linux to ensure I list the command correctly. If you can figure out how to get it to work consistently I'll add it to the first post.
If I had known about that command I would have been stoked. You wouldn't believe how much time I wasted looking through lines of gibberish to find the panel type before I figured out I had to reboot, lol.
Click to expand...
Click to collapse
I develop in Unix platform for living, the grep command is the right one. 2nd post in this thread also mentions it
Sent from my HTC Glacier using XDA App

Related

Gesture Control (root)

I'm developing application that allows you to control tablet with gestures. Root access is needed. Currently it allows to execute following gestures: Back, Home, Show/Hide status bar
Try it out and let me know what you think. What other features or actions would be helpful?
All differences from other devices fixed. Please visit main thread.
http://forum.xda-developers.com/showthread.php?t=1535740
This sounds quite awesome. Does this potentially work on all HC tablets, or just the A100 and A500?
This does not work properly. It always says "Root failed" even when I grant it Superuser permissions. The only fully working feature is the "hide status bar" option. This app still seems to have potential though.
willverduzco said:
This sounds quite awesome. Does this potentially work on all HC tablets, or just the A100 and A500?
Click to expand...
Click to collapse
Potentially it works on all tablets, I just need a little bit of information. It even works on my SGS2 phone when I build it with decreased SDK requirements.
Could anyone test version (updated) from first post and send me logcat?
StupidIdea said:
Could anyone test version (updated) from first post and send me logcat?
Click to expand...
Click to collapse
Tested - It still does not work properly. Logcat attached.
Thanks, that explains the problem. I don't recognize multitouch properly on this device. Could you execute
from shell
su -c "getevent"
or from adb that would be
adb shell su -c "getevent"
make a few multitouch and send me output.
Added single touch option. Multitouch gestures not supported on this device at the moment.
Can anyone confirm that singletouch gestures are working on A100?
StupidIdea said:
Added single touch option. Multitouch gestures not supported on this device at the moment.
Can anyone confirm that singletouch gestures are working on A100?
Click to expand...
Click to collapse
I'll give it a try .
EDIT: Single touch gestures work perfectly .
StupidIdea said:
What other features or actions would be helpful?
Click to expand...
Click to collapse
You could add a gesture to disable the backlight (turn off screen). You could also add gestures to open certain apps (like browser, etc.) and possibly make them configurable.
Theonew said:
I'll give it a try .
EDIT: Single touch gestures work perfectly .
Click to expand...
Click to collapse
Good. Still need to investigate where multi touch disappeared.
Could you execute
from shell
su -c "getevent"
or from adb that would be
adb shell su -c "getevent"
make a few multitouch and send me output.
New version
1.2.1
- Added check for USB Debugging
Still want to need information in order to fix multitouch. See post above.
StupidIdea said:
Good. Still need to investigate where multi touch disappeared.
Could you execute
from shell
su -c "getevent"
or from adb that would be
adb shell su -c "getevent"
make a few multitouch and send me output.
Click to expand...
Click to collapse
StupidIdea said:
Still want to need information in order to fix multitouch. See post above.
Click to expand...
Click to collapse
Log attached . Hope the format isn't too new for you .
Thanks, I fixed it. Updated first post. Can you confirm, that multitouch works now?
good job
Any chance at getting touch to wake to work with this app
Sent from my HTC EVO 3D using XDA
StupidIdea said:
Change log:
1.2.2
- Fixed multitouch on A100 (and probably similar devices) - Thanks to Theonew
Click to expand...
Click to collapse
StupidIdea said:
Thanks, I fixed it. Updated first post. Can you confirm, that multitouch works now?
Click to expand...
Click to collapse
It works perfectly now. Great job, great app, and no problem for my help .
Theonew said:
It works perfectly now. Great job, great app, and no problem for my help .
Click to expand...
Click to collapse
Great app! Wonderful developer with whom to work. Kept in touch and fixed all the issues as promised. I hope he writes more apps.
Thanks everyone for help. I published update to market.
All differences are fixed now, so further discussion moving to the main thread:
http://forum.xda-developers.com/showthread.php?t=1535740"]http://forum.xda-developers.com/showthread.php?t=1535740[/URL]

[MOD] Collection of do it yourself tweaks

While the development is still in its infancy here,
lets post here a bunch of do it yourself tweaks.
Feel free to post any rom tweaks you know of.
In the file /system/etc/init.qcom.post_boot.sh , find the section
case "$target" in
"msm8960" | jaguar* | M2* | m2* )
Click to expand...
Click to collapse
then modify the following value:
echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
Click to expand...
Click to collapse
This will improve the touchscreen responsiveness.
Add the following line at the end of the msm8960 section:
echo 1024 > /sys/devices/virtual/bdi/179:0/read_ahead_kb
Click to expand...
Click to collapse
This will speed up loading of apps somewhat.
Reboot for changes to take effect.
In the same file you can have it run every init.d file if you don't have init.d support.
Sent from my SPH-D700 using Tapatalk 2
governor tweaks
if on the on-demand governer i recommend you change the sampling rate to 70,000, it improves the devices scaling performance i.e if your device is sitting for a sec. and you touch the screen it should jump to a higher frequency to perform the action faster at the cost of a little bit higher battery consumption but a minuscule amount. And of course please all use the noop i/o scheduler it really does improve responsivness of the phone by alot.
I will aslo be uploading a sys ctl.conf tweak to greatly improve our battery life my og epic increased by 3 hours because of this it is a cwm flashable but for those who dont feel like using it you can always use a root explorer and copy and paste or adb push it. i will post when i know it works
file is migrating to new host this is the link you have to take it apart and either copy and paste or adb push, the install script is giving me trouble will post back when i get around to fixing it unless some brave soul would like to fix it for me idc its all about you guys so if you wanna beat me to it be my guest
and remember always make a nandroid
I would also like to say i did not create this and i have absolutly no idea who did this mod has been circulating around xda's htc forums,android central, and droid forums as far as im concerned the maker of this mod is untraceable.
V6supercharger makes a world of a difference in the memory management section and no ram is waisted it is devoted to the cache for our devices its a pain to set up because we are on odex stock devices ice is a bitc* that way haha.
I found this thread here with several build.prop tweaks... He claims they work on all devices. I am an Android newbie so I can not verify that information.
http://forum.xda-developers.com/showthread.php?t=1639104
matrixzone5 said:
if on the on-demand governer i recommend you change the sampling rate to 70,000, it improves the devices scaling performance i.e if your device is sitting for a sec. and you touch the screen it should jump to a higher frequency to perform the action faster at the cost of a little bit higher battery consumption but a minuscule amount. And of course please all use the noop i/o scheduler it really does improve responsivness of the phone by alot.
I will aslo be uploading a sys ctl.conf tweak to greatly improve our battery life my og epic increased by 3 hours because of this it is a cwm flashable but for those who dont feel like using it you can always use a root explorer and copy and paste or adb push it. i will post when i know it works
Remove this is the link you have to take it apart and either copy and paste or adb push, the install script is giving me trouble will post back when i get around to fixing it unless some brave soul would like to fix it for me idc its all about you guys so if you wanna beat me to it be my guest
and remember always make a nandroid
I would also like to say i did not create this and i have absolutly no idea who did this mod has been circulating around xda's htc forums,android central, and droid forums as far as im concerned the maker of this mod is untraceable.
Click to expand...
Click to collapse
Gotta ask you to remove your link. Third-party downloads that require signing in/up are prohibited.
I'm sorry about that bro I understand its totally annoying I forgot u gotta sign up now for 4shared ill upload it to media fire the second I get a chance
Note to mod* remove if you can please
Sent from my SPH-L710 using XDA
Doesn't build.prop cover most do-it-yourself tweaks?
Yes but there's still ur susctl .conf file u can play with if u go to sustem/etc I believe there is a file u can edit to boost the Max speaker volune
I personally love ofinding new little tweaks to apply and edit in android I love poking and prodding around just to find out what does what whether removing this and replacing it with *,that will benefit perform
Sent from my SPH-L710 using XDA
Terminal emulator cmd
getprop til.MSL Works for getting your msl # to change the settings for faster 3g in ##DATA# menu under the multimedia tab.
If you know what I mean.
Sent from my PB GS3 using XDA
Tewlman252 said:
Terminal emulator cmd
getprop til.MSL Works for getting your msl # to change the settings for faster 3g in ##DATA# menu under the multimedia tab.
If you know what I mean.
Sent from my PB GS3 using XDA
Click to expand...
Click to collapse
I've tried this both with
Code:
getprop til.MSL
&
Code:
getprop ril.MSL
and can't get it to display the MSL, any ideas?
And yes I entered "su" prior to typing the cmd, I actually have terminal setup to do that automatically.
Sent from my SPH-L710 using Tapatalk 2
Strange, it worked for me the first time but now no luck.
Sent from my SPH-L710 using XDA
Tewlman252 said:
Strange, it worked for me the first time but now no luck.
Sent from my SPH-L710 using XDA
Click to expand...
Click to collapse
That's weird, hmmph.
Sent from my Transformer TF101 using Tapatalk 2
carhauler1969 said:
I've tried this both with
Code:
getprop til.MSL
&
Code:
getprop ril.MSL
and can't get it to display the MSL, any ideas?
And yes I entered "su" prior to typing the cmd, I actually have terminal setup to do that automatically.
Sent from my SPH-L710 using Tapatalk 2
Click to expand...
Click to collapse
What app are you using to control ur su binary? Super user?
And did you try typing just get prop and scrolling through
Sent from my GT-I9100 using xda app-developers app I recommend using supersu by chain fire for super user on ics
Tewlman252 said:
Terminal emulator cmd
getprop til.MSL Works for getting your msl # to change the settings for faster 3g in ##DATA# menu under the multimedia tab.
If you know what I mean.
Sent from my PB GS3 using XDA
Click to expand...
Click to collapse
Can you clarify this? Thanks
Courtesy of our own Qbking77
http://www.youtube.com/watch?v=RQRZ2Z_IQkY&feature=youtube_gdata_player
This is how I got it to work the first time on my GS3 from Sprint but subsequent tries have failed. Not sure if it's just a one time thing or not.
Needless to say, now that I have my MSL, I don't need to get it again unless I switch devices.
Sent from my SPH-L710 using XDA
Another tip to save battery is enable power saving mode. It automatically scales back the cpu governor to a max speed of 1.026 ghz. Unless you're gaming, this should be fine for day to day usage.
I have tested this with cpu spy and no frills cpu control.
Sent from my SPH-L710 using XDA
nabbed said:
While the development is still in its infancy here,
lets post here a bunch of do it yourself tweaks.
Feel free to post any rom tweaks you know of.
In the file /system/etc/init.qcom.post_boot.sh , find the section
then modify the following value:
This will improve the touchscreen responsiveness.
Add the following line at the end of the msm8960 section:
This will speed up loading of apps somewhat.
Reboot for changes to take effect.
Click to expand...
Click to collapse
echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
this part showed a 90 in my script. i just want to verify that the instruction is to change the 90 to an 80. or is the instruction to alter it how i wish, and the 80 is just what you picked?
stretchwookie said:
echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
this part showed a 90 in my script. i just want to verify that the instruction is to change the 90 to an 80. or is the instruction to alter it how i wish, and the 80 is just what you picked?
Click to expand...
Click to collapse
Its alot easier if you used an app like setcpu and go to governed setting ans change the up thresh hold to 80 remember the lower the number the higher the performance at the cost of Max battery life but never set it to 100 it freezes really badly. 99 is even a stretch u shudnt need to go over 95
Sent from my SPH-L710 using xda app-developers app

How to switch off your softkey backlight

I see a few people asking about this and I found this app that works on my HTC One X.
Screen Filter:
https://play.google.com/store/apps/details?id=com.haxor&hl=en
If you just want to switch the lights off, set the filter to 100% then un-tick the enable softkey back light. It works great when watching videos or using it as a nightstand clock.
Hope their wasn't a thread about his. I did a few searches and couldn't find anything, hope this helps a few people.
Does it save the preference after reboot? I use Adjbrightness and after rebooting I have to load the app up again.
Sent from my HTC One X using xda app-developers app
I will have a look but I think you have to reopen it.
Sent from my HTC One X using xda app-developers app
I had a test now and it doesn't start on boot. But when you start the app after a boot it then knows what your last settings were. Hope that helps.
Sent from my HTC One X using xda app-developers app
K, when I have the time I was thinking of writing my own app that does this.
Sent from my HTC One X using xda app-developers app
If u put the app (screenfilter) in some autostart program it will work fine, if u dont wanna enable it manually.
This text was generated by a HoX device, in symbiosis with thoughts from someone else
ououououo said:
If u put the app (screenfilter) in some autostart program it will work fine, if u dont wanna enable it manually.
This text was generated by a HoX device, in symbiosis with thoughts from someone else
Click to expand...
Click to collapse
That is a great idea, I was wondering if there was an app like that I will have a look and see how well that works. But it's really nice to disable those lights, gives the phone a really neat appearance.
Roars21 said:
That is a great idea, I was wondering if there was an app like that I will have a look and see how well that works. But it's really nice to disable those lights, gives the phone a really neat appearance.
Click to expand...
Click to collapse
I did this on my previous device (xperia u, to get rid of the annoying LED-bar )
NOTE:
*** If you accidentally make your screen go BLACK ***
1. Pull your battery
2. Uninstall the app to reset your bad brightness setting
3. Reinstall the app and use it normally again"
Click to expand...
Click to collapse
I am kinda worried about this happening on my HOX...the fist step is already too much trouble to go through.
jimmy2027 said:
I am kinda worried about this happening on my HOX...the fist step is already too much trouble to go through.
Click to expand...
Click to collapse
Don't worry if you hold down the power button for a couple seconds it simulates a battery pull. Then when you start up, provided you don't have it on a autostart app you can then go in and change the settings. Also if you do set the brightness too low it gives you 10 seconds to approve it or it will just revert your settings. If that makes sense.
Make a new file, call it 99KeyOff.sh and put this in it:
#!/system/bin/sh
# ========================================
# init.d script for key light off. ONE X.
#BACKFROMTHE[/QUOTE]STORM
# ========================================
#disable Key Backlight
echo begin set Key Backlight - KB
echo KB - set permissions rw
chmod 0666 /sys/class/leds/button-backlight/brightness
echo KB - set Key Backlight 0
echo "0" > /sys/class/leds/button-backlight/brightness
echo KB - set permissions ro
chmod 0444 /sys/class/leds/button-backlight/brightness
echo KB - done!
Put it in the init.d folder or run it manually in a terminal emulator or script manager.
Unfortunately that doesn't work on the Maximus ROM. I think it's because the rootfs mounts read only. I tried adding a remount line to the top but nothing happened.
Sent from my HTC One X using xda app-developers app

[RESOLVED][IDEA/REQUEST] Backlight button light up notification

See first post, page 3 for an solution
-------------------------------
Dear XDA,
I've searched for this kinda app but couldn't find it so i decided to make a thread about it.
Anyway, i was wondering if it's possible to make the backlight of the buttons light up when there is some kind of notification as the led in the One X is kinda useless imo.(dirt gets into the tiny holes)
If it IS possible, does someone want to take the effort to try and make such an application/mod?
I'll be eager and happy to test it and my thanks will be beyond eternity
Thanks in advance,
Joran
+1
Good idea, but I do think there could be any hardware limitations to make this work....
anyways, sounds great if it could be possible! :good:
I wrote an app called "Capacitive Button Brightness" which lets you control the brightness of the capacitive buttons backlight on the HTC One X: http://forum.xda-developers.com/showthread.php?t=2033973. Someone pointed this thread out to me so I thought I'd chime in with an idea.
I have not tested this (in fact I don't have a device to test it on!) but you might be able to flash the backlight of the capacitive buttons by running the following command from a root terminal:
Code:
echo 1 > /sys/class/leds/button-backlight/blink
If that doesn't work, take a look at the list of files in /sys/class/leds/button-backlight and see if perhaps I got the name of the file wrong. There should be one in there with "blink" in its name.
If this does indeed flash the capacitive button backlight then you could write a simple script in "Tasker" to blink the capacitive button backlight every time that a message is received.
User Vcek reported doing something very similar with Tasker, and I'd recommend to contact him if you have further questions. See http://forum.xda-developers.com/showthread.php?p=35266420#post35266420 and http://forum.xda-developers.com/showthread.php?p=35276999#post35276999
denversc said:
I wrote an app called "Capacitive Button Brightness" which lets you control the brightness of the capacitive buttons backlight on the HTC One X: http://forum.xda-developers.com/showthread.php?t=2033973. Someone pointed this thread out to me so I thought I'd chime in with an idea.
I have not tested this (in fact I don't have a device to test it on!) but you might be able to flash the backlight of the capacitive buttons by running the following command from a root terminal:
Code:
echo 1 > /sys/class/leds/button-backlight/blink
If that doesn't work, take a look at the list of files in /sys/class/leds/button-backlight and see if perhaps I got the name of the file wrong. There should be one in there with "blink" in its name.
If this does indeed flash the capacitive button backlight then you could write a simple script in "Tasker" to blink the capacitive button backlight every time that a message is received.
User Vcek reported doing something very similar with Tasker, and I'd recommend to contact him if you have further questions. See http://forum.xda-developers.com/showthread.php?p=35266420#post35266420 and http://forum.xda-developers.com/showthread.php?p=35276999#post35276999
Click to expand...
Click to collapse
i tried your app but all it does is either off or it's on.
Thanks for the input for this idea:good:, but i'm kinda low skilled (read no skill) in the technical side of the phone.
so i hope someone can try this?
edit: nvm, don't got terminal on this rom yet.
jorank said:
i tried your app but all it does is either off or it's on.
Thanks for the input for this idea:good:, but i'm kinda low skilled (read no skill) in the technical side of the phone.
so i hope someone can try this?
edit: nvm, don't got terminal on this rom yet.
Click to expand...
Click to collapse
You're right, my app won't address the feature you are looking for.
If you want a terminal, you can install "Android Terminal Emulator" from the Play store: https://play.google.com/store/apps/details?id=jackpal.androidterm. You will need to be rooted though.
If you want to test out the "echo" command in the previous post, you will need to run "su" in the terminal before running the "echo" command.
denversc said:
You're right, my app won't address the feature you are looking for.
If you want a terminal, you can install "Android Terminal Emulator" from the Play store: https://play.google.com/store/apps/details?id=jackpal.androidterm. You will need to be rooted though.
If you want to test out the "echo" command in the previous post, you will need to run "su" in the terminal before running the "echo" command.
Click to expand...
Click to collapse
tried the command and i confirm it works
jorank said:
tried the command and i confirm it works
Click to expand...
Click to collapse
Sweet. Now you can use an app like tasker to run that command every time you receive a message. Can anyone help with this?
denversc said:
Sweet. Now you can use an app like tasker to run that command every time you receive a message. Can anyone help with this?
Click to expand...
Click to collapse
I try to create a tasker profile with this. Does someone know a command to stop the blinking?
staffordniko said:
I try to create a tasker profile with this. Does someone know a command to stop the blinking?
Click to expand...
Click to collapse
Same command that is used to enable exept with echo 0.
Sent from my HTC One X
Got it done, how can i post a tasker script here?
Omg guys stop discussing aokp has this feature called button back light notification
Thread can be closes and don't forget to hit the thanks button
Gesendet von meinem HTC One X mit Tapatalk 2
howdid said:
Omg guys stop discussing aokp has this feature called button back light notification
Thread can be closes and don't forget to hit the thanks button
Gesendet von meinem HTC One X mit Tapatalk 2
Click to expand...
Click to collapse
and what if i don't want aokp but sense?
think twice please.
Okay so i've installed tasker but i can't find out how to set the appropriate settings for this event.
Anyone did it already?
Did anyone find a solution?
not really, tried tasker but that didn't get me any luck.
so i hope anyone else does
Profile: blink (2)
Event: Notification [ Owner Application:WhatsApp Title:* ]
Enter: blink (3)
A1: Run Shell [ Command:echo 1 > /sys/class/leds/button-backlight/blink Timeout (Seconds):0 Use Rootn Store Result In: ]
A2: Wait [ MS:0 Seconds:4 Minutes:0 Hours:0 Days:0 ]
A3: Run Shell [ Command:echo 0 > /sys/class/leds/button-backlight/blink Timeout (Seconds):0 Use Rootn Store Result In: ]
Did anyone test the battery usage for this?
@staffordniko: You could use a trigger for "screen on" to stop the blinking.
I can confirm that it works. It should be cool to blink one button at a time!
Sent from my EndeavorU using xda app-developers app
A mod like this would be nice!
I'll follow this thread!
I'm trying to export a app with this settings with "Tasker app factory", but no luck so far. Maybe someone know how to do this right? Getting a "package installer stopped" error.
Sent from my HTC One X using xda premium

[GUIDE] S4 Proximity Sensor Fix (Blank Screen During Calls)

Please note the same information used to develop the app is in the guide for free... the app just makes it easier
You can find the app here
CALIBRATION REQUIRES ROOT... PLEASE GO GET ROOT ON YOUR PHONE AND THEN COME BACK.
Oh and BTW... I cannot be held responsible for anything that happens to your phone.... EVER!
use "adb shell" or a terminal emulator to get a terminal prompt and run the following commands
Step 1. - Save old calibration value (Optional)
Code:
su
mkdir /sdcard/S4data/
cat /efs/prox_cal >> /sdcard/S4data/prox_cal
Step 2. - Edit calibration value and update permissions
Grab the current value with everything clear of the proximity sensor.
Code:
cat /sys/devices/virtual/sensors/proximity_sensor/state
The value on mine was between 45 and 55. If you a lot higher then there might be something wrong with your phone. I used 150 for my value. You can use whatever you want but 150 is working great for me.
Convert your calibration value to hex (The windows calculator works great for this... use programmer mode). Put your calibration value in place of the 96 in the command below.
Code:
su
echo -en $'\x96' > /efs/prox_cal
chown system:system /efs/prox_cal
chmod 644 /efs/prox_cal
sync
Now reboot and your proximity sensor should be working.
Big thanks to greaty for his post here
Does this app remove dirt/lint from your proximity sensor?
Pp.
Sent from my Touchwiz device that never forgets gapps and everything works the way its supposed to.
I took my phone all the way apart and cleaned the sensor and it still had the issue. It seems that the sensor reads about 50 all the time and that is where they have the trip point set. This guide and the app just move that trip point.
Sent from my GT-I9505G using XDA Free mobile app
This saved my phone! Thank you!
Sent from my SGH-M919 using Xparent Red Tapatalk 2
Armandopjr said:
This saved my phone! Thank you!
Sent from my SGH-M919 using Xparent Red Tapatalk 2
Click to expand...
Click to collapse
Glad it worked for you!
dagentooboy said:
I took my phone all the way apart and cleaned the sensor and it still had the issue. It seems that the sensor reads about 50 all the time and that is where they have the trip point set. This guide and the app just move that trip point.
Sent from my GT-I9505G using XDA Free mobile app
Click to expand...
Click to collapse
because you dont know how to clean... i had 46 all the time and now i have 11-12 for month or two and it is not increasing anymore because i shielded it with silicone/rubber and no more dust come inside - thats the only permanent way to fix this.
I dont think its for CM11 also
FYI, this file (/efs/prox_cal) does not exist in Google Edition S4.
fincan said:
FYI, this file (/efs/prox_cal) does not exist in Google Edition S4.
Click to expand...
Click to collapse
I believe it's only in TouchWiz roms.
Cleaning the dirt out of the sensor is the only long term solution to fix it. But even then it's not permanent. It will eventually get dirty again.
This guide solve my problem.
I noticed about the problem when flashed AOSP based Rom. So, thinked it was a rom bug.
Then, flashed stock again and find the issue was still there.
After trying whit compressed air, and nothing changes, rooted my phone (again) and follow this guide, and proximity sensor is working again.
Thanks.
it was driving me nuts! this worked and thanks so much!
djdivan said:
This guide solve my problem.
I noticed about the problem when flashed AOSP based Rom. So, thinked it was a rom bug.
Then, flashed stock again and find the issue was still there.
After trying whit compressed air, and nothing changes, rooted my phone (again) and follow this guide, and proximity sensor is working again.
Thanks.
Click to expand...
Click to collapse
I am glad it worked for you. I have heard that this is a huge issue for the S4. Not sure about other models.
Manual method worked perfectly fine. You SAVED my LIFE! Tons of thanks from the Philippines!
You're awesome! Been using this phone without a proper sensor for almost a year!
Skipjacks said:
I believe it's only in TouchWiz roms.
Cleaning the dirt out of the sensor is the only long term solution to fix it. But even then it's not permanent. It will eventually get dirty again.
Click to expand...
Click to collapse
I'm using an AOSP ROM (http://forum.xda-developers.com/showthread.php?t=2643031) and worked for me.
But the point of my post (and I have the Verizon edition BTW) is to say THANK YOU! I got to the point where every time I made a phone call I knew almost certainly my screen wouldn't turn on and even half the time hitting the home button wouldn't do the trick. I know the issue is my otter box defender series, which never caused this problem until about a month or two ago. But I need the otter box and this fixed my problem... Thank you thank you! No more random voice mails from me because my screen won't turn on haha
Edit: For those on AOSP, if you type the value in the calculator, swipe left and hit HEX, it will give you the hexadecimal value you need
Ever since I flashed any custom ROM on my tmo S4, the proximity sensor hasn't worked right. Screen would never wake after a call ended, even the app I use to keep the screen off in my pocket (Gravity Screen, pretty cool app) wasn't working. I used the little app referenced in the OP, and it all works again! Thanks! :good: :highfive: :victory:
fincan said:
FYI, this file (/efs/prox_cal) does not exist in Google Edition S4.
Click to expand...
Click to collapse
Previously I wrote that that file and value does not exist in S4 GPE (Google Play Edition), but just for the heck of it I gave it a shot and created the file, and what do you know, it works. Since you saved my sanity and also my phone from being smashed with a hammer, I purchased the app to show my support. Thank you dagentooboy.
Thank you so much you saved my life!!!!!
Thank you! i bought the app & in about 1-2 min it was fixed! im on 5.0.1 awesome!!
Wow, following this steps help solved my problems, Thank you~!!

Categories

Resources