yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Q&A, Help & Troubleshooting] Volknochi:
I didn't know how else to title this thread, so I'm hoping this makes sense.

Awhile ago I flashed the CM6 ROM to my Hero. I haven't added much to it, nor adjusted any of the settings. However, when my phone is not plugged in and getting charged, when I hit the End Call or Menu button to bring it from sleep mode, it takes it almost 2 seconds before the lockscreen appears.

I know that a stock Hero will awake from sleep mode almost instantly. And, when I had a previous 1.5 ROM flashed, it took the phone about maybe 1.2 seconds to awake. Is this normal or is there something that I'm missing that is causing this lag? I haven't really installed any misc apps, and I only removed some "bloatware" from the phone (safely, and ones that don't cause FCs).

Any help or suggestions is appreciated.
[Hero CDMA Q&A, Help & Troubleshooting] teedo757:
I know that overclocking a rom adds lag to waking up the lock screen. Did you flash a overclocked kernel or have you had this issue since flashing this rom?
[Hero CDMA Q&A, Help & Troubleshooting] Volknochi:
I believe, when I flashed this new ROM, I reverted back to a normal clocking speed. I used to have an OC kernel of 710, but could've sworn I've gotten it back to stock.

Is there a way to get it back to stock speed, if I didn't revert it back, tho?
[Hero CDMA Q&A, Help & Troubleshooting] Volknochi:
Bump.

Is there a way to revert the kernel back to stock?
[Hero CDMA Q&A, Help & Troubleshooting] pbp776:
Option

1. If you have OC kernel install, either use setCPU or Overclock widget to set your min and max.

2. If you running ASOP rom, I'm not sure ASOP ROM comes with stock Kernel or OC Kernel. If it come with stock you may just flash the ROM again w/o wiping data, might have to wipe dalvik cache and it should revert back to stock kernel. If it comes with OC kernel, then option 1 would be best.

my .2 cent hope it helps.
[Hero CDMA Q&A, Help & Troubleshooting] Volknochi:
Unfortunately, OverClock Widget didn't do anything to fix the problem. :/ And, if it can't fix it, I don't think that paying for SetCPU will fix it either.

Is there a way I can download the stock kernel?
[Hero CDMA Q&A, Help & Troubleshooting] unCoRrUpTeD:
You cab download setcpu for free here on xda or from their website

I forgot what file it is that changes the CPU speed, but I would look into modifying that file. I also have this problem with cm6 8/17 nightly, but did not have the problem with the early test releases
[Hero CDMA Q&A, Help & Troubleshooting] Volknochi:
Thanks a lot, I'm giving it a shot now. I do have a question, tho: when I ran SetCPU, it said that root access was not detected. :confused: Is there a trick I have to do with the phone to have SetCPU recognize the phone? I have done some searching, but haven't found much. I tried checking on SuperUser, but it doesn't list SetCPU in it. Plus, when I tap on "Log", it crashes.

Is my phone messed up or something? :(
[XPERIA X1 Q&A, Help & Troubleshooting] luvuvrsmile:
xperia x1a,

Initially my battery used to last for 2 days for my use,

now a days , battery is getting drained in half a day,

I have a original battery,

I use wifi sometimes about half n hour a day and setting will turn wifi off when i m not using wifi,

I m using spb mobile shell and some two apps,

I listen to radio for 2 hours a day , no mp3,no camera , calls for some 2 hours, rarely messaging,

Please help, if i need to change some settings ,
[XPERIA X1 Q&A, Help & Troubleshooting] altae:
Use a decent task manager that shows all running processes. Maybe there are some running in the background and therefore draining your battery constantly. I use the one from SK Tools.

If this is not the case I suggest you buy a new battery. How old is your phone? It's a known fact that batteries loose a lot of their original capacity when becoming older.
[Droid Incredible Q&A, Help & Troubleshooting] slygeist:
whenever im streaming audio on my phone, it works fine. but as soon as my screen shuts off it quits playing. any way to get around this so i dont have to have my screen on all the time? do i need a new player or something. i like to listen to talk radio podcasts while im working. any help would be greatly appreciated. thanks..
[Droid Incredible Q&A, Help & Troubleshooting] nstavr:
Are you possibly running any type of task killer app? If you are make sure the app that is streaming the audio is in your ignore list.
[Droid Incredible Q&A, Help & Troubleshooting] slygeist:
no. Im not using any task killers, so that cant be it.
[Droid Incredible Q&A, Help & Troubleshooting] Ruggerxpunk:
The same thing happens to me when tethering with "Wireless Tether" (No app killers installed).
[Droid Incredible Q&A, Help & Troubleshooting] slygeist:
any way to change the default player to something else other than the htc player? looking.. but cant find how to do it.
[Hero CDMA Q&A, Help & Troubleshooting] smolck:
Guys,

Can someone tell me what I can do to make my display act normal. it appears as though it is the killer of my battery. The phone screen hasn't been on as long as this says it has.

I am running Darch's 8/22 build of Froyo. Other than terrible batt life, it is a great ROM. Also, I have the newest colin batter tweak going. Need help!

Thanks for any ideas you can give me!
[Hero CDMA Q&A, Help & Troubleshooting] teedo757:
This is not a bad thing. You need to understand that you are seeing a percentage of usage so there is always going to be something that is using the majority of your battery. The nice thing is that you can visually see if your display is on and using battery power. If your phone has the screen off then most likely there is something wrong with the rom and you may want to wipe and reinstall.....or the information is being displayed improperly which again may be an issue with the rom install. Good luck
[Hero CDMA Q&A, Help & Troubleshooting] smolck:
Thank you for the input. I am at a loss. My phone came off the charger at 7:00am central and here at 3:27pm central I am at 41%. It has been dropping fast since 12pm.
[Hero CDMA Q&A, Help & Troubleshooting] unCoRrUpTeD:
I have the same problem. I got crazy battery life with one of the early beta versions, but now i have to charge atleast once a day, sometimes 2 or 3 times. I haven't tweaked anything, just flashed 8/17 build and GS and installed all my normal apps(launcher pro, beautiful widgets),
[Hero CDMA Q&A, Help & Troubleshooting] DirtyShroomz:
9 hours later and at 41% is not bad at all.... unless you haven't used the phone
[Hero CDMA Q&A, Help & Troubleshooting] smolck:
Thanks for the replies guys. Quick update, I flashed the 8/25 nightly (wow, this sucker is FASTER than all previous versions!) and was still getting high screen usage. So what I did was wipe the dalvik cache and let it reboot. I then turned on the automatic backlight tweaks under Cyanogen mod settings/user interface. I tested it last night and the battery life seems great. I have been off charger this morning since 6:55 and it is now 8:02am and I am still at 100%. I am NOT running the battery tweak either.

I will update this afternoon. Thanks!
[Vibrant Q&A, Help & Troubleshooting] BitVenom:
Has anyone else noticed all of the .9 files in Samsung's APKs that are _not_ valid 9patch images? box_launcher_bottom.9 or box_launcher_top_normal.9 for example.

If you try to replace them, they stop working as 9patches, causing busted images in the UI. If you put the _exact_ same file back in, they are fine.

Anyone know what might be causing this? I am going to create proper 9patch files for a few and see if those work...
[Vibrant Q&A, Help & Troubleshooting] junkdruggler:
I havent had a problem replacing them, its editing the image that gives me trouble... I have to use a totally different image..
[Vibrant Q&A, Help & Troubleshooting] BitVenom:
I am not sure what you mean? Replacing? As in, with something similar? And you have an image issue... as in you want an entirely different style of skin? What have you replaced them with that worked?
[Vibrant Q&A, Help & Troubleshooting] junkdruggler:
If I replace the .9.png with an image of similar size it is fine... If I take the .9.png and lets say, make it more opaque/transparent or change the rgb ratios, then the image breaks and shows up funny...
[Vibrant Q&A, Help & Troubleshooting] joshthewaster:
Still confused. Do you create your own .9.png's from scratch? Do you just use a regular png of the same size? I've been reading up on these .9's and I know that I can now make some morphs but it is going to be a lot more work than I thought unless there is some trick you know to create them.
[Vibrant Q&A, Help & Troubleshooting] junkdruggler:
yeah ive just used regular pngs... whatever I could find lying around my 16gb of theming stuff on my sdcard...

Not everything just works, Ive found problems along the way... I use ninja morph to test out my stuff before flashing with MM so I have less trouble finding out what doesnt work...
[Vibrant Q&A, Help & Troubleshooting] BitVenom:
Making .9 files is not hard, at all. But then again I do Android dev as part of my job :) I am just curious if anyone knows how Samsung is able to use _bad_ .9 files (no marked-up edges) and still have them show up correctly. No big deal, I can figure it out myself I guess.
[Vibrant Q&A, Help & Troubleshooting] joshthewaster:
Could you explain how to make them? I tried using regular png's with no luck. The file names don't match so they won't get replaced properly. I can't edit existing ones and make them work. I guess I have to make my own from scratch but I don't really get how. If I can figure this out I'll be theming like crazy. (which may not be a good thing for all the other things I need to get done)
[Vibrant Q&A, Help & Troubleshooting] BitVenom:
There are a few places online that explain them. I will let you google for that info/guides (I am at work right now). I will say however that there's a tool in the SDK (if you build it) called draw9patch that creates a little tool to show you how they look stretched different ways, and lets you edit them, very handy.

As for the 'rules'. It's easy. The left & top edges of a .9 file (1 pixel) define where the image will stretch. If you place a black dot in the left-x, center-y pixel of the image, it will stretch that row if the image needs to be bigger. The rest of the image will not be stretched. The same goes for the top. You can place extra pixels to expand the area stretched, or even make more than 1 area that stretches (my notification bar skin will show how that's done).

The right/bottom edges use the same mechanism (1 pixel row/column) but they define a box on the image that _content_ inside the image will fit into. You can see this if you go find some 'edit box' skins. The black dots on the bottom/right are placed where the edit box's internals are relative. Unlike left/top, you _can't_ have more than 1 section per side.

Using draw9patch it is _very_ easy to play with. If I get some time I will upload some examples, maybe with my next morph (an extension of the diamond-plated steel look I did for the launcher in some other threads).
[Vibrant Q&A, Help & Troubleshooting] jonnybueno:
I'm not really sure what your getting at by "_bad_ .9" but if an image is sized correctly, it doesn't need guidelines.

Perfect example is this image:

which has no guidelines whatsoever

maybe you could upload an example?
[Vibrant Q&A, Help & Troubleshooting] junkdruggler:
Yeah I've just renamed regular .png files with no prob 90 percent of the time..
[Vibrant Q&A, Help & Troubleshooting] j_r0dd:
one thing you could also try doing is using apktool and decompiling the apk with the 9.png's you are trying to replace. apktool decodes them and shows the patches.
[Vibrant Q&A, Help & Troubleshooting] joshthewaster:
Well I tried using the draw9 tool. Very simple and easy to see what is happening. I modified a bunch of the Mms .9.pngs (on a mac?) with photoshop, saved, opened with draw9 to add the stretching, saved them and made a morph. When applied it only changed some of my images and the ones that changed won't stretch properly so the text extends outside the image.

I ONLY replaced images but something got screwed up. My text messages started showing coming from the wrong people, and I would reply to one person and the text would go to someone else. Not good. Tried to use the revert I had created and it fixed the graphics but not the other sending/receiving problem. Lucky I had a backup so I'm flashing back to that now.

I'm sure I'm making some stupid error, oh well I'll figure it out eventually.
[Vibrant Q&A, Help & Troubleshooting] BitVenom:
Gahhhh!!!

Well, after digging around, and not being able to determine why my own changes to .9 files were causing issues, I found it: If I use _apktool_, I get a proper .9.png, and it looks great. If I just unzip the apk, I get the old png, still valid, but without it's outer-edges that are used for .9 markup. What-The-F? Really. So does the damned thing have 2 versions of the file in it? A PNG is compressed, it shouldn't be possible to create a version minus the outline without tons of trouble. Where is that data being hidden? If I put mine in place, will it just blow it all up?

I am going to give it a shot, see what happens.
[Vibrant Q&A, Help & Troubleshooting] BitVenom:
Putting the 'proper' .9 that apktool created back into the morph and loading it results in something that is _better_, but still rather broken. Somehow the 'patches' from the .9 file are being applied over the .9 itself. There must be something about .apk that encoded extra data in a side-channel of some sort. I wonder if anyone here knows who to ask? I am a very capable programmer, and happy to write/transplant code to get a reliable .9 path for odd .apk variants (as I understand Samsung's is new/custom)... ?

Info I just found: http://code.google.com/p/android-apktool/issues/detail?id=2

So apktool will decode from binary to source. Now I just need to get a path back to binary, and I think it'll fly...

Hrm, I found the Froyo code that de-serializes a PNG and checks for 9patch, as well as the code to save one back out with 9patch info. I need to determine why the 'source' 9patch minus hidden binary data is not acceptable to the Vibrant. It should be, all of this code reinforces that. I feel like I am _suuuuuuper_ close to having this work.

Well, I need to write a tool (maybe after next week) to do the heavy lifting... but hand pushing the 'custom' PNG chunk from a valid .9 onto a processed one results in a valid .9. You have to know the PNG format (and be handy with a Hex editor), and since you are stealing data from another image, hopefully didn't edit the size/split areas too much. I know google's format too, so hand-editing the custom chunk data to move around the black-bars (virtually) isn't too bad. But again, a tool that just takes .9.pngs with visible borders and encodes them (and removes the _massive_ waste of RAM that is the Photoshop chunks.. wow), and is able to do the opposite will likely help all theme modders out there. I will update the head of this post once the tool is complete.

As an aside, even after getting a working file (my folders now have black, not grey backgrounds) - I still have a grey box in the center... and that is _not_ in the image. Very, very odd. I will track that down too... probably just some layout courtesy of Samsung.

Noon Sunday - Ah, got the grey-box too. I _think_ a simple 'encode 9patch' tool already exists, will test the process and report back. But I have fully custom graphics now that look excellent.
[Vibrant Q&A, Help & Troubleshooting] Brut.all:
Just added: https://code.google.com/p/android-apktool/issues/detail?id=92

Also I'll add wiki page about 9patch images, cause many people don't understand them and they don't know, what to do. They're WTFing, as you did above ;-)
[Vibrant Q&A, Help & Troubleshooting] BitVenom:
Thanks!

Brut sir :) Being a long time hobby-hacker... the chase was as valuable for me as the catch... but I definitely appreciate somebody else making it work first :)

9Patches are easy now, and one of the most powerful elements that Android UI utilizes too!
[Vibrant Q&A, Help & Troubleshooting] Brut.all:
Ok, I think you understand 9patch images already, but I wrote an art with explanation:

https://code.google.com/p/android-apktool/wiki/9PatchImages
[Vibrant Q&A, Help & Troubleshooting] joshthewaster:
Thanks for that. I'm going to be giving these 9patches another try.
[EVO 4G Q&A, Help & Troubleshooting] xeren:
I've been having a problem on all of the recent nightlies, and i know lots of people are having the same problem on the CM6 RC2, where turning off the screen puts the wifi to sleep, even when you have the wifi sleep policy set to "Never".

I noticed this when i started trying to stream music from Grooveshark or Subsonic- if i turn the screen off, the song stops a few seconds later, presumable because it has run out of buffer.

Is anyone else still having the same problem? Does anyone have a workaround for this?

edit: it seems to have no problem staying awake on my home network, but my work network is where i have the problem- could it be something about the wifi network that is doing this?
[EVO 4G Q&A, Help & Troubleshooting] xeren:
well, strike that- i'm encountering the same problem on the 2.2 stock rooted ROM as well. it appears to be a problem with the wireless network here at work.

I might have left my phone screen on at home, which would have let everything buffer, preventing me from noticing the problem there, but i'm pretty sure the wifi sleep policy works correctly on my home network. Very strange.
[EVO 4G Q&A, Help & Troubleshooting] criccio:
This is easily reproducible for me as well and only started happening with CM6.
[EVO 4G Q&A, Help & Troubleshooting] p-slim:
for me this happens on every rom, even stock. there has not been a day i've gone to bed and woken up 8hrs later with my wifi on.
[EVO 4G Q&A, Help & Troubleshooting] xeren:
I'm glad I'm not the only one- though it seems to happen more to N1 owners, it seems this is happening to android users all over the place. From everything I've read today, no one can figure what causes it- there's no rhyme or reason to it. For me, the wifi sleep policy works correctly on my home network, but not my work one.

I read a post from a week ago somewhere that there was a fix coming from broadcom (those are the same people that are responsible for my router's wireless N problems with DD-WRT), but I don't know if that was referring to a Nexus One specific fix or a fix for all android phones.

I'm glad at least my wifi sleep policy works correctly at home, but the fact that, for some reason it doesn't work on a different network is extremely annoying.
[Droid X Android Development] Joe92T:
I know many people here have reported lag associated with the stock lockscreen that comes with the device. I was curious to know that if anyone has tried a new lockscreen and seen better results? Such as installing a vanilla AOSP lockscreen in place of the blur one and see if it makes any difference?

I dont know if the lockscreen is an actual .apk you can change out easily or not, as i have not poked around myself, but i do know that when i owned my incredible many people were switching out there sense lockscreens for vanilla ones and it didnt seem like a big deal
[Droid X Android Development] DivinityCycle:
+1 for this question / desire. I too would like to switch out the lockscreen (and indeed some other APKs/items) for "stock" if possible...
[Droid X Android Development] dvation191:
Well, I'll tell you this. I use ADW launcher and have not noticed any lag at the lock screen. I've also seen others using custom launchers that also have said they notice no lag.
[Droid X Android Development] evilkal:
I've used adw and launcher pro and still have lag on the lock screen on 2.2
[Droid X Android Development] metalheadzaid:
Go look up Widget Locker. It's a sexy lockscreen widget that removes lag COMPLETELY (it actually disables the android lockscreen and you use it instead. Works fansmic, allows tons of widgets on it, including shortcuts to your favorite apps fast, and security locks.

$1.99 in market - search widget locker.
[Droid X Android Development] Mikerrrrrrrr:
The only thing with Widget Locker -- in my experience -- is that turning on the phone sometimes shows the default lockscreen for a second before fading into widget locker.
[Droid X Android Development] drew630:
Does the home button bypass widget locker?
[Droid X Android Development] Gimpeh:
No lag using flyscreen either.
[Droid X Android Development] srt4mn:
If you disable screen lock in Location & Security in the settings, you don't get that issue anymore.

I had the same gripe about it until I found that option to uncheck.
[Droid X Android Development] Mikerrrrrrrr:
I didn't find the option to disable screen lock, but I turned it off using extended controls widget, which should have the same effect. Either way, thanks for the tip!
[Droid X Android Development] dryice1049:
Not that this has anything to do with your op but htc does not make the droidx as per your signature. Thought you might want to know.
[Droid X Android Development] kmn842:
I don't have this option, but I downloaded "No Lock" from the marketplace and it works great with Flyscreen. (I'm using the Froyo leak posted recently)
[Captivate General] Leviuqse:
What up guys..just got my Samsung captivate this week..but I'm not new to android scene.. (all hail ANDROID)...I have my personal cell a moto Droid.. and I had a nexus one, which I lost/got stolen :(

I missed my Nexus one..until yestarday..I was playing around with the camera app the captivate comes with and I found something that made my day...the PANORAMA MODE!!!!!

I have to say guys...so many extras..so many settings..so many modes...

thank you samsung..I always had choosen my moto droid over my nexus one..but now I have a new favorite .. :)
[Captivate General] fezlopez:
yeah the camera is hella good. man, especially the 720p recording!
[Captivate General] jhnstn00:
I thought panoramic was awesome too.
[Captivate General] Bowsa2511:
Remember to apply all the appropiate mods, and fixes to get your phone running 400% faster even though froyo's not even out yet!

This phone is stupid fast.
[Captivate General] chvybeatsford:
The panarama is better than any I tried before.the fact u don't have to snap each picture is ap plus
[Captivate General] thindery:
my phone says 0.3M with a rectabgular shape around it kind of at the top left of the camera screen. any idea what that means?
[Captivate General] Leviuqse:
,3M means 0.3 megapixels...thats probably the only downside..but the picture still looks great!!

I removed the twiz or whatever is called home app..and deleted all crapware..and yes..is really fast....faster than froyo on nexus one..I can believe is running android 2.1....what other mods can I install??
[Captivate General] moto749:
Thats your camera's resolution. Change it by going into the camera settings....
[Captivate General] Bowsa2511:
well first read up on the pimp my captivate guide

http://www.multiupload.com/4X0O96JYTV

it'll explain the basics for backing up, nandroid, etc.

But here's my set-up:

Flashed stock JH2

http://xdaforums.com/showpost.php?p=7614957&postcount=6

(How to flash tut = here) Basically shows you how to access dl mode.

First download all the files for the JH2 (the firm, tar, and pit) then you must have odin running first, select the tar, and pit file in their respective directory and extracting. THEN you enable download mode in phone.

After you have stock JH2

SRE 1.0

here

Roots, overclock, integrated wireless hotspot/usb tethering, market fix, lag fix, ad block, market uncensor, allows you to install apks directly from phone, removes att crapware, and boot animation, adds fonts, and gps fix.

After all's ready, enjoy your amazing fast phone (Raped my friend's evo nasty)