Little (or big) challenge - Android Q&A, Help & Troubleshooting

Hello fellow Androiders.
I have an HTC Desire for about a year and a half, and over the weekend, during snowboarding it got wet in my pocket (found a snowball in there, next to it!). I checked it, it was switched off. After returning home, i dried it and switched it back on, but it wouldn't boot the system, so i reflashed it (with sandvold.as' ICS). Seemed to work fine after formatting all mounts, except for one thing: the screen wouldn't switch off:
When i pressed the power button, the screen would switch off for much less than a second and instantly pop back with the lock screen, as if i hit the power button again. If i disable the lockscreen, it jumps back to the previous activity and instantly acts as if the volume down button was pressed.
So i started looking for what the problem could be, found a tip to play around with /system/usr/keylayout/bravo-keypad.kl
It seemed to help after i removed the WAKE from next to the volume keys, but instead of switching back on straight away, it reboots after one second (i can see the charging LED stops shining after 1 sec).
Despite of installing new ROM, this behavior stayed. I am now running the latest Oxygen.
I did an "adb logcat" (through adbWireless) and here's the output, with comments:
Code:
D/jdwp ( 273): adbd disconnected
D/jdwp ( 638): adbd disconnected
D/su ( 716): 10045 siir.es.adbWireless executing 0 /system/bin/sh using shell /system/bin/sh :
sh
D/jdwp ( 321): adbd disconnected
D/jdwp ( 220): adbd disconnected
D/jdwp ( 610): adbd disconnected
W/InputManagerService( 140): Window already focused, ignoring focus gain of: com.android.internal.v
[email protected]
D/dalvikvm( 623): GC_EXPLICIT freed 338K, 50% free 2855K/5639K, external 1690K/2137K, paused 47ms
I/power ( 140): *** set_screen_state 0
I/power ( 140): *** set_screen_state 1
D/dalvikvm( 140): GC_EXTERNAL_ALLOC freed 1021K, 42% free 5357K/9223K, external 5185K/5259K, paused
62ms
D/SurfaceFlinger( 140): About to give-up screen, flinger = 0x8ec90
D/SurfaceFlinger( 140): Screen about to return, flinger = 0x8ec90
D/AK8973 ( 120): Compass CLOSE [COLOR="Red"]// At this point somewhere the screen turned off, and instantly comes back on. I find the compass CLOSE/Start statechange a little weird. This causing the problem would make sense, since it could have been physically damaged[/COLOR]
D/AK8973 ( 120): Compass Start
W/InputManagerService( 140): Starting input on non-focused client android.view.inputmethod.InputMet
[email protected] (uid=1000 pid=140)
I/power ( 140): *** set_screen_state 0
D/SurfaceFlinger( 140): About to give-up screen, flinger = 0x8ec90
D/AK8973 ( 120): Compass CLOSE [COLOR="red"]// Here i hit the power button again. This time the screen stays black and doesn't come back on. Pressing the power button again (in hope of bringing the screen back), restarts the device after one second. This is the end of output[/COLOR]
Does anyone have any idea what to do next? Easiest would be to move on, get a new device, but there's something I love about bringing back a device from the dead. I appreciate any ideas.
Thanks,
Z.
PS: does anyone know if i could disable the compass on low-level? I suppose that would require a new kernel (?)

really, noone has any idea?
i can provide more data if needed but i dont know where to look

Related

[Q] How to disable touchscreen from command line

I'm trying to tackle my problem from another angle. So, does anyone know how to disable the touch screen on a Galaxy S2?
I'm trying to have the screen off while an app runs (and thinks the screen is on). I can turn the screen off by this command:
echo 1 > /sys/devices/platform/samsung-pd.2/s3cfb.0/graphics/fb0/blank
Screen will be off, but it still responds to touch. I figure there's probably a similar command to disable the touchscreen. I found a thread that describes how to do it for the nook; however it won't work on this phone (obviously because the hardware's different).
I've seen apps that may disable the touchscreen...however I won't have access to the notification bar while in the app I want to run (frustrating). I plan on creating a script that'll sleep for 2-3 minutes, giving me enough time to get to the app and set it up just the way I want, then the screen will go out. To get the screen back on, I'll either wait until I can ssh in and undo what I did (in the example above, just substitute echo 0 instead of echo 1) or do a hard reboot.
Edit: This may be OS dependent...I'm running ICS 4.0.3 at the moment.
Use below:
# To Disable touchscreen
service call window 18 i32 0
# To Enable touchscreen
service call window 18 i32 1
I use this in my Gesture script thanks to Tungstwenty.
Sent from my GT-I9100 using Tapatalk 2
acekay said:
# To Disable touchscreen
service call window 18 i32 0
# To Enable touchscreen
service call window 18 i32 1
Click to expand...
Click to collapse
Looks like it'll be good enough for my purposes.
I've now realized it might be ever so slightly helpful if I could disable the home and power buttons as well (but not all the buttons, might need volume). I think if I keep it in a pocket or make a little space for it where it won't get disturbed too much, it'll be ok.
Just a note, this doesn't completely turn off the touchscreen. The phone still reacts to touching the screen (specifically, the menu and back buttons light up). And touching the menu or back button will also cause them to light up and make the phone vibrate, though the button is ignored otherwise (i.e. you're in the app, press the back button...it lights up and vibrates the phone, but it does NOT exit the app).
I'll test it in a couple weeks (once the headset and amplifier come in), but I think it'll fit the bill.
Thanks!
Hi,
It did not work in my case (android 6).
Any other way ?
Ranchu

[Q] Screen rotation not working - have calibrated, etc.

Nothing I can do will make screen rotation work correctly. Have tried all the usual fixes:
1. Turned on in settings.
2. Done GPS Status calibration.
3. Done figure of eight calibration.
4. Tried various kernels.
5. Tried various ROMs.
6. Done *#0*# and the graph shows everything moving correctly on all three axes.
However, when I do "gyro self test" I sometime get big red FAIL.
Here are two results:
Normal 0 0 -1
SelfTest -437 435 -460
PASS
Normal 0 0 -1
SelfTest -437 434 -460
FAIL
Anything left for me to try?
Looked up some more possible solutions including this one: http://www.techbeats.co.in/2012/12/samsung-galaxy-screen-rotation-problem.html
No dice.
Sometimes the screen does rotate but it is about 30 seconds too late and then doesn't' return back to portrait. Sometimes it gets stuck upside down. Anyone have any clue about this issue?
How can I fix this?

[Q] tasker : message expired facebook

Hi folks.
My phone is a routed Samsung S4 i9505.
I'm impressionated with what tasker can do for us. It's fantastic.
A small annoying issue I have is a message which appears always after a profile get running that says "facebook session expired , initiate session again".
I created a profile configured to trigger when phone status is orientation face down ( It works so greate !!! ).
--> When above profile condition is true, I call a task:
- Turn OFF : Wifi, Mobile Data, Bluetooth, Auto-Sync, Auto brightness, Keyguard;
- Enable : Power save mode , Blocking mode ,
- Display brightness to 0, Display timeout 7,0,0 ( seven seconds).
--> EXIT task (When my phone is not face down position):
- Turn ON : Wifi, Mobile Data, Bluetooth, Auto-Sync,
- Keyguard (continues OFF); Auto brightness (continues OFF).
- Disable : Power save mode , Blocking mode , Display brightness to 255, Display timeout 0,5,0 ( Five minutes ).
When Exit task runs, I get that message saying : "facebook session expired , initiate session again".
How to solve this ?
Glauco

Proximity sensor isn't working

Hey everyone, when I am in a call and I take my phone away from my face, it takes a good 5 seconds for the screen to come on. I downloaded an app to read the sensors, and when I uncover the sensor, it stays at 0.00 cm. I've already tried getting the Verizon Hidden Menu back to see if I can calibrate it, but I always get the following error when running the `am` command:
Code:
Starting: Intent { act=android.intent.action.MAIN cmp=com.lg.hiddenmenu/.HiddenMenu }
Error type 3
Error: Activity class {com.lge.hiddenmenu/com.lge.hiddenmenu.HiddenMenu} does not exist.
Are there any other ways of calibrating it?

refresh / restart the screen without restarting the phone

hello
how can i reload / refresh the screen without rebooting my phone? the frames appear black. but after restarting the phone, they disappear. appear again when you flip the screen (for example, when starting a game). after that, the frames do not go away until you restart the device
maybe there is a way to quickly turn off the screen so that it refreshes, but this does not have to reboot the entire device
found a solution. first you need to put LADB, it is paid. then enable wireless debugging (there are many tutorials on the network). connect and when the frames appear, for example after the game, I just enter the command
"settings put secure sysui_rounded_size 0"
and that's it, they disappear. But keep in mind if you entered 0 at the end, then the next time you need to enter 1, more 2, 3 and ..... at the end, and so on.

Categories

Resources