[Q] Build Nexus S kernel - Nexus S Q&A, Help & Troubleshooting

Hi all,
Since my back button is not responsive, I want to rearrange the key mapping(swap search and back key) to make the important button works. It's easy to do that but didn't support in any existing customized kernel(Am I right? I hope I was wrong), so I need to do it on my own. Everything went well but I have a problem after replace the kernel(even without any modification).
If I unplug the usb cable, press the power button(made the phone went into suspend mode, the screen will turn off), and press the power button again to made screen turn on(resume). After I did it three/four times, the resume process will delay significantly about 2 seconds(screen keeps off) which bothers me a lot. Did anyone meet the same problem?
I've tried the compile optimize option -o2, it went worse. What options should I use when I want to compile a kernel? Just make -j4 ARCH=arm CROSS_COMPILE=arm-eabi- ?
Thanks.

Related

New User Needing Help!

Hi guys,
I just recently got hold of an HTC Touch Cruise but the O2 XDA Orbit 2 rebranded version.
Ive been installing a few useful apps on this but some of the changes i make are lost after the phone has beeen switched off and then on!
Examples of this are the "hide sim" reg edit and the PCM keyboard as the default.
I am assuming that maybe the O2 version of WM6 on this is locked to prevent making these changes.
First, if anyone can confirm this or if not tell how me how ot get round this problem i would be grateful.
If this is the case then i would like to flash the phone with an "editable" version of WM6, are these what the ROMS people mention on here are?
If i am right about the ROMS could anyone recommend a good ROM, if they are specific to anything, one that is more finger firendly rather than stylus would be about the only thing i can think of to specify.
I realise this is a bit cheeky asking for all this but i have had a brief of the forum but would perhaps jus tlike a few pointers if anyone can spare the time.
Many thanks
Hi,
If you are turning your phone off by holding the power button then when you turn it on again it will reboot to the ROM image and you will lose all of your installed programs and edits. Try turning it "off" with a brief press on the button, you shouldn't lose anything then. At least I don't.
AFIK the standard O2 ROM allows registry edits, however you cannot edit the ROM contents. You can install apps and they should be persistent unless you do a full power down.
As for the question about ROMs, yes they are customised versions of WM6.1.
You MUST run USPL before trying to re-flash your ROM I suggest you read the upgrading forum there is a sticky there about USPL and loads of other threads about upgrading.
Personally I like ASergs and Bepes ROMs better than most. They are stable and have most of the apps I require.
Hope this helps, Good luck
Neil
Thanks so much for your reply and especially the promptness!!!
When i turn my phone off i have been holding the button at the top, i if i just press it shortly then all it does is powers the screen off. To be honest now i can get away without ever powering off since i charge every night.
If my phone freezes etc should i be using the reset button with the stylus to reboot - will this cause me to lose my edits?
Also if i used one of the customised ROMS is it still the same if i turn the phone completley off that i lose any settings?
I will give the upgrade thread now to gain better understanding, thanks again.
Guide
http://forum.xda-developers.com/showthread.php?t=381600
neila said:
Hi,
If you are turning your phone off by holding the power button then when you turn it on again it will reboot to the ROM image and you will lose all of your installed programs and edits. Try turning it "off" with a brief press on the button, you shouldn't lose anything then. At least I don't.
Neil
Click to expand...
Click to collapse
What?
Turning it off will cause a hard reset or what exactly do you mean?
neila said:
Hi,
If you are turning your phone off by holding the power button then when you turn it on again it will reboot to the ROM image and you will lose all of your installed programs and edits. Try turning it "off" with a brief press on the button, you shouldn't lose anything then. At least I don't.
AFIK the standard O2 ROM allows registry edits, however you cannot edit the ROM contents. You can install apps and they should be persistent unless you do a full power down.
Click to expand...
Click to collapse
I'm sorry to inform you that it should not be behaving that way, and if it does, your phone is most probably broken.
If you mean Hard-Resetting, your phone does not hard-reset when pressing and holding the power button. you'll have to do a combination of other buttons and the soft-reset button to accomplish that.
Oops, Sorry about that! I had total brain failure!
Of course turning the device off by holding the power button does not cause a hard reset.
My apologies for any confusion caused.
Cheers
Neil
Ok, on my device (which is actually an O2 Xda orbit 2, if that makes any difference) When i press the powerbutton once shortly it turns off the screen but all things are still running on the phone eg calls will still come in and alarms, sms etc.
If i press and hold the button the phone switches off completley but then when i turn back on after this i find some stuff has not saved how i expect. Installed apps still remain but things like default keyboard and my hide sim reg change revert.
When you hold down the power button at least on the TC, it asks whether you want to power off, presumably yours isn't asking you and just turns off anyway.
When stuff that you expect to be saved but isn't, like the default keyboard. Do you use sip changer or something like that? If I am using PocketCM keyboard for example and reset my device it defaults back to the Cruise/Diamond keyboard and I have to set PocketCM again. If you use something like a SIP Changer it will set it for you.
So that sounds like configuration things and not necessarily strange behavior.

Phone doesnt wake from sleep

I just switched to my Touch Pro 2 and flashed Energy Cookie 2.5 GTX. I'm at work so I cant flash back to the stock rom or I would. Its also difficult for me to search the forum because everytime i want to use my phone I have to reset it
Basically what is happening is that once I hit the power button or the phone puts itself to sleep, it will not wake back up without being rebooted. If i press the power button then the back key, the four keys at the bottom light up. Also if I open the slide out keyboard the phone makes the xylophone noise. So its waking everything but the screen. I dont think its hardware because the screen comes back to life when you hit reset. It has to be a software issue.
Can anyone help me with this so I can get through this day lol? I would greatly appreciate it!
djowen6565 said:
I just switched to my Touch Pro 2 and flashed Energy Cookie 2.5 GTX. I'm at work so I cant flash back to the stock rom or I would. Its also difficult for me to search the forum because everytime i want to use my phone I have to reset it
Basically what is happening is that once I hit the power button or the phone puts itself to sleep, it will not wake back up without being rebooted. If i press the power button then the back key, the four keys at the bottom light up. Also if I open the slide out keyboard the phone makes the xylophone noise. So its waking everything but the screen. I dont think its hardware because the screen comes back to life when you hit reset. It has to be a software issue.
Can anyone help me with this so I can get through this day lol? I would greatly appreciate it!
Click to expand...
Click to collapse
Try preforming a task29 and then re-flashing. Make sure to back up your data as this will erase the device memory.
Not to long read this posting : http://forum.xda-developers.com/showthread.php?t=648134
it called SOD = Sleep of Death, and as cajunflavoredbob suggest, do task29 first, everytime you want to flash a ROM.

[Q] What should the power button do?

Hi all, I'm one of the "new to the gtablet world thaks to Woot" crew. First, thanks for what you all do here, it's a great resource.
I've managed to install the TnT Lite v4.3.0 wthout any problems and everything seems to be running well. My question is, when i hit the power button on the side, it shuts the tablet down and to turn it back on i have to hold the power button down and it has to go through the entire boot process.
Maybe thats what it is suppose to do, but being used to my iphone i imaged it would just turn off the screen and hn bring back up the lock screeen whn it was pushed again. Am i wrong or did i do something wrong when installing? Is it a setting change?
I know this question may be dumb, I'm not as tech-ignorant as this post may make it seem.
Thanks again.
A long press on the Power button should power it up. Once it's gone through the full boot cycle, a short press on the Power button should put it into sleep mode. When in sleep mode, another short press should bring it back to wake mode. A long press on Power while the gTab is fully awake should bring up a dialog box that asks what you want to do, go into Airplane Mode, Shutdown, etc. If you choose shutdown, you'll get another dialog box that asks you to confirm with a yes/no.
I am using the Stock Enhancement so maybe it works differently from yours but mine has functioned this way consistently from the time I got it, even before I loaded the Stock Enhancement.
did you try to press the "power" button lightly. when you press it lightly, it should just turn off the screen. If you press the power button and hold it for a sec, you should see a popup choice (shutdown, sleep, air mode, etc). I agree that the power button is a little sensitive to me as well and I have been using mine for 3 months and it is getting a little bit "wear".
So, it is just my solution, and it may or may not work for you. Since you are running tnt lite (not working on Vegan rom). You can download an app from android market called "Tap Tap App" power button (free)
https://market.android.com/details?id=net.maicas.android.wsleep&feature=search_result
and it will place a icon to your screen or notification bar. It basically turns off your screen, and you can press the volume buttons to turn the screen back on. I have been using this solution for a month now, and have no issues so far.
I'm pushing the button very lightly, and it appears to shut the machine down, or makes it unesponsive. Then I have to hold it down for quite a while to get it to do anything, which makes the machine reboot. When i hold down the botton (when the machine is on) I do get the options, and can put it ito sleep mode that way, and then a light touch will turn it back on. But obviously this is not the way it is suppose to run.
Is there a way to reinstall TnT or shoul i try one of the other ROMS?
Actually I think that is a problem with 4.30. If you install clemsyn's kernel it should fix it. Pershoot's may work too but I only tried clemsyn's.
It sounds like a sleep-wake issue. Like wall_fodder said, you can try to install Clemsyn or pershoot kernel. before you do install the kernel or reflash it, make a backup through clockworkmod and use titanium to backup your apps and data.
I am using 4.2.5 and very stable. Yes, you can reflash it with 4.2.x or vegan 5.1 through clockworkmod.
tyy10002 said:
It sounds like a sleep-wake issue. Like wall_fodder said, you can try to install Clemsyn or pershoot kernel. before you do install the kernel or reflash it, make a backup through clockworkmod and use titanium to backup your apps and data.
I am using 4.2.5 and very stable. Yes, you can reflash it with 4.2.x or vegan 5.1 through clockworkmod.
Click to expand...
Click to collapse
thanks, is there a step by step on this someplace?
hey all, thanks again, i restarted it in recovery mode and now everything works fine, nothing new installed or changed. Thanks so much...
I heard mixed results about 4.3.0 and sleep. For me, it works (as well as others). But some have reported issues. I'm not sure why that is -- maybe a data wipe is needed?
fyi, the recover reboot only helped the sleep issue for about two presses of the sleep button. However, I installed the Clemsyn kernel through Clockwork Mod and now it works great (after several tests). I had installed tnt 4.3.0 and 4.3.1 directly without CWM. So installed CWM on top of tnt4.3.1 then installed Clemsyn. Probably not the correct way to do it, but everything is working right now.
Lots of hail marys from this newbie while i was doing it though.

[Q] Can I Do These Things When Rooted?

Hi all,
For reasons that are explained here: http://forum.xda-developers.com/showthread.php?p=46338664#post46338664 , I am wanting to try a couple of ideas for controlling/modifying the power on/off function of my phone (Sony Xperia Z). I never wanted to root this phone but now it seems like I'm going to have to to give me any fighting chance of getting around the issue I'm currently in.
Anyway, what I need to know is if any of the following things will be possible if I were to root my device:
--- Disable power button from waking screen or doing anything else, and preferably set a combination of keys to be what lights-up the screen, (e.g. nothing will happen on the phone unless for example the volume up key, then volume down key, then power button are pressed in that order). Then, if this is achievable, would it be possible to keep my mobile internet data turned on, while disabling people from calling me, (so that my phone won't ring at all)
--- Edit the power off function on my device so that instead of just turning off, it reboots instead. (However in saying this I would want this function hidden, as in, I want there to be a button that says 'Power Off', but instead of just powering-off, it does a reboot instead).
--- If the above is not possible, is there some sort of light 'sleep' mode that my phone can be put into so that it appears off, however can be automated to turn back on at a set time. (I understand that Android's can't be woken when shut-down because they literally are completely shut down and can't run any apps, but maybe there's a way to have it in a sort of 'sleep' mode where it can be automated to turn on at a set time?)
--- Any other option that will either A) make someone think my phone is turned off when it's actually still on, or B) allow my phone to turn back on automatically at a set time, or do a reboot instead of shut down when 'power off' is chosen.
Any help on this would be amazing, thanks guys
MHarris333 said:
Hi all,
For reasons that are explained here: http://forum.xda-developers.com/showthread.php?p=46338664#post46338664 , I am wanting to try a couple of ideas for controlling/modifying the power on/off function of my phone (Sony Xperia Z). I never wanted to root this phone but now it seems like I'm going to have to to give me any fighting chance of getting around the issue I'm currently in.
Anyway, what I need to know is if any of the following things will be possible if I were to root my device:
--- Disable power button from waking screen or doing anything else, and preferably set a combination of keys to be what lights-up the screen, (e.g. nothing will happen on the phone unless for example the volume up key, then volume down key, then power button are pressed in that order). Then, if this is achievable, would it be possible to keep my mobile internet data turned on, while disabling people from calling me, (so that my phone won't ring at all)
--- Edit the power off function on my device so that instead of just turning off, it reboots instead. (However in saying this I would want this function hidden, as in, I want there to be a button that says 'Power Off', but instead of just powering-off, it does a reboot instead).
--- If the above is not possible, is there some sort of light 'sleep' mode that my phone can be put into so that it appears off, however can be automated to turn back on at a set time. (I understand that Android's can't be woken when shut-down because they literally are completely shut down and can't run any apps, but maybe there's a way to have it in a sort of 'sleep' mode where it can be automated to turn on at a set time?)
--- Any other option that will either A) make someone think my phone is turned off when it's actually still on, or B) allow my phone to turn back on automatically at a set time, or do a reboot instead of shut down when 'power off' is chosen.
Any help on this would be amazing, thanks guys
Click to expand...
Click to collapse
YEP, as far as I know you can do all this AFTER you root your phone.. BUT you'll have to do a lot of in-depth MODIFICATION of your system's files (like framework-res.apk, android.policy.jar, services.jar, framework.jar, framework2.jar, etc.)...
Now when I say "modification", I mean that you will have to do a lot of smali and xml editing, etc. you might also have to write a couple of init.d scripts too.. its because the modifications you want to make on your phone are integrated deep inside your phone's framework.. so yeah
Root it, and install xposed framework and you can do all you say and more without any modifications yourself
Sent from my C6903 using xda premium
Install exposed and some modules like xblast exposed tweakbox these help modification without decompilation happy modding
Sent from my Xperia Live with Walkman using xda app-developers app
gregbradley said:
Root it, and install xposed framework and you can do all you say and more without any modifications yourself
Sent from my C6903 using xda premium
Click to expand...
Click to collapse
So you think I can do all this stuff without having to get into complicated things like code/scripts and all that? I am relatively tech-savy but my coding skills aren't tip-top to say the least
*UPDATE*
UPDATE:
I have now rooted the device, so is there anyone that can give me some step-by-step instructions on how to do either of these options?
(I've also gotten the Xposed Framework)
Thanks,
Mike
Just download the modules and activate reboot then edit what you want
Sent from my Xperia Live with Walkman using xda app-developers app

[Completed] Lenovo a5000 problem(SOLVED)

Hello everyone, I have just recently bought this Lenovo A5000, everything was perfect until i did a mistake today, just an hour ago. I will list step by step how i encountered the problem below.
1. I did some search on the net about hidden code or secret code for service menu(for lenovo)
2. I found some then i tried this code ####999# then all of sudden the screen changed to multiple [email protected] testing followed by microphone test, then camera test then some other test. It keeps repeating and does not stop.
3.I tried to press whatever key is available along with home menu or multitasking hot key but no avail. It keeps repeating and repeating, Pressing on/off power button also not working.
4. The only things that work is, i was able to scroll down for hidden menu as we do on all android phone. I can go to settings but only settings display etc. I tried to search for the running service test on running programs under the apps menu but nothing. I also tried to press power off/on button here but no avail.(please take note thatthe service test still running at the background during this time).
5.Finally when i tried to close any running systems apps i managed to get into dialling menu. but again i just leave it here because the service test does not seems to work here.
6. Lastly when i look at my phone, it was already black in screen that i believe it was in sleep mode but when i press any button this phone doesnt awake. tried to press the power on/off longer but no avail. unfortunately i cant pull of the battery because it was not removable.
Hopefully anyone of you can suggest me how i can revert it back to normal. Really this is unexpected. I ONLY pressed ####999# and voila [email protected] test started. I appreciate much your help guys. Thanks
NOTE;
I dont know where i get the idea but, as i said above, the phone goes to sleep with no response. What i did a few minutes ago ,
1.Press the power on/off button and keep pressing the volume up several times followed with volume down then release.
Then Lenovo logo comes up, then VOILA! my phone was normal again.
Anyway i will always give a credit to XDA forum for many valuable tips and knowledge that i learned before. Thanks

Categories

Resources