Sleep kills apps residing on SD card - JASJAR, XDA Exec, MDA Pro General

Is there any way around the issue of the SD card being shutdown in sleep mode, which causes apps running from there to crash when you awaken the device as dlls etc they are relying on, are suddenly not available for a few seconds.
Seems like a flaw in the OS to me, in that it should track file handles to SD card and bring them back to life correctly on re-awaken.

The OS closes any application running from a storage card when it can't detect that card quickly enough after being switched on. I believe this is actually meant to prevent a real crash when you've taken out the card during sleep mode. Unfortunately, even with the card present it takes some time to detect it, and the OS is too impatient...
Try this tweak to make it wait a little longer:
http://forum.xda-developers.com/showthread.php?p=849904&highlight=pnpunloaddelay#post849904

Thanks - will take a look at that!

Tried it, and it doesn't work for me.

Related

Cingular 8525 Device Speed Issue and Questions?

Device: 8525
The first question, does installing tons of applications on storage (memory) slow down your device? (I'm not speaking of running several programs at once but, essentially installing softwares on the device other than SD.)
Second question, the theory of, anything that goes on your TODAY'S SCREEN, should go on the device, however, is there a specific limitation as to how much should go onto the device?
In other words, I noticed that my memory runs roughly between (from soft boot) 28m and an average of 20-25m. Usually the device starts feeling sluggish around 20-25m. It's tolerable but this is only having basic applications on the device. I noticed that once I went below 20m, I'm prone to crashing and severe slowdown on applications launching, closing, etc.
I currently have all my applications on the SD card. I won't focus on the non-today screen applications but I did install those softwares as well on the SD card. The only thing I have installed on the device are Resco Keyboard, Tengo, Flexmail.
Needless to say, my device runs pretty fast. I do get occasionaly lock ups. Lock ups such like when I press the Standby button, at times, when I press the standby button again to wake it up, it won't wake up. Lights are still blinking as if it was active but nothing. I have to actually remove the battery and turn it back on.
This issue could be caused by? (Today screen items installed on SD card?)
I will probably try to reinstall all the todays screen item on the device later on but I'm still testing as to what is the best thing to do. Obviously, there is no way around having certain applications on the SD card but this obviously leads me to my first question.
Here are my current software (there are more but non-essentials are no issue and are on the SD card).
SBSH PocketBreeze
SBSH Contact Breeze
Pocket Informant
SBSH Ilauncher
SBSH Pocket Weather
Flexmail
PhoneAlarm
These are all on the SD card.
What do you think?
nutnbolt said:
Device: 8525
The first question, does installing tons of applications on storage (memory) slow down your device? (I'm not speaking of running several programs at once but, essentially installing softwares on the device other than SD.)
Second question, the theory of, anything that goes on your TODAY'S SCREEN, should go on the device, however, is there a specific limitation as to how much should go onto the device?
In other words, I noticed that my memory runs roughly between (from soft boot) 28m and an average of 20-25m. Usually the device starts feeling sluggish around 20-25m. It's tolerable but this is only having basic applications on the device. I noticed that once I went below 20m, I'm prone to crashing and severe slowdown on applications launching, closing, etc.
I currently have all my applications on the SD card. I won't focus on the non-today screen applications but I did install those softwares as well on the SD card. The only thing I have installed on the device are Resco Keyboard, Tengo, Flexmail.
Needless to say, my device runs pretty fast. I do get occasionaly lock ups. Lock ups such like when I press the Standby button, at times, when I press the standby button again to wake it up, it won't wake up. Lights are still blinking as if it was active but nothing. I have to actually remove the battery and turn it back on.
This issue could be caused by? (Today screen items installed on SD card?)
I will probably try to reinstall all the todays screen item on the device later on but I'm still testing as to what is the best thing to do. Obviously, there is no way around having certain applications on the SD card but this obviously leads me to my first question.
Here are my current software (there are more but non-essentials are no issue and are on the SD card).
SBSH PocketBreeze
SBSH Contact Breeze
Pocket Informant
SBSH Ilauncher
SBSH Pocket Weather
Flexmail
PhoneAlarm
These are all on the SD card.
What do you think?
Click to expand...
Click to collapse
To be honest it sounds like you have this pretty well thought out already. You know the theory - anything that runs allthe time should be in Main Memory the rest on SD etc etc.
My experience is that yes, if you over-crowd Main memory it will slow down and crash.
I largely ignore the rules about not storing certain apps on storage card. My only exceptions are Wallpaper and my regular Ring tone - (all the rest on card)
I did notice frequent hangs while I had Phone Alarm installed. (However it has several settings which perhaps could have been changed to make it work more smoothly)
I do not get many lockups but I have run all the usual precautions such as "The Fake Server" for Active Sync automatic soft re-sets, Task manager to shut running progs., etc etc
Overall I guess it's a trade off against speed if it's installed to Main Memory and slowing things down if you overfill Main memory. You find your own balance. I favour virtually everything on SD Card.
Mike
If I had it my way, I would store everything on the SD card. Unfortunately some applications will not work on it, however, some are so and so. It will but it won't. Nevertheless, I thought this out well but I needed to find out if there was anything I would miss in terms of device issues. Like when it goes to sleep mode, I noticed in phonealarm, there is a way to prevent the battery from sleeping? What does that mean? I don't know....
Anyway, anyone else have any other suggestions.
Just got a sandisk 1 gig card for my 8525. Oddly when I press the power button to recover from sleep mode, without the disk in it restores in under a second. With the empty card installed it takes up to 3-4 seconds. Is this normal??
TIA
roverman said:
Just got a sandisk 1 gig card for my 8525. Oddly when I press the power button to recover from sleep mode, without the disk in it restores in under a second. With the empty card installed it takes up to 3-4 seconds. Is this normal??
TIA
Click to expand...
Click to collapse
Does not sound excessive BUT I have same SD card and restores in under 1 second with card in.
Mike
I would put ALL of those apps on your device. The card should be used for programs that you OPEN and CLOSE when done. All of those apps run while the phone sleeps. Exit media player when you tyurn the phone off, in case it is playing mp3's that are on yourcard, etc. The whole point is this:
You're device should never, for any reason, try to access the card while asleep!!!
That's the golden rule...
OK so I have to ask. What happens when you break the golden rule? Is it possible that applications accessing the micro SD card while the unit is 'sleeping' (eg messaging software connecting to download new messages every X mins and trying to save them on the SD card) is the cause of the lockup / freeze condition that people are reporting (and that I have too - but only when apps that connect to data network are running in the background).
I have broken the golden rule. I store everything on my SD card with the exception of a few that didn't allow it. This includes softwares that even goes on my today's screen.
How is it performing?
Well, you will get lockup's if you don't know how each software reacts. What is the cause of it? I'm not sure exactly. I know that I narrowed down a couple of softwares that I initially stored on my SD card and then finally moved it onto my memory and the lockups/BSOD (Black screen of death) disappeared.
You have top lay around when installing each software. Some software will warn you that you should install it in memory but can get away with it if it's on the SD card and some softwares will tell you THIS SHOULD BE ON MEMORY, so I don't mess with that. I suggest install as much as you can on SD card and if something goes wrong, check the settings of the last recently software you installed and make sure nothing in the settings is causing the lockup. If there is nothing, then move it to memory.
So here is what I've found out so far for my 8525.
I've convinced myself that if any application, running in the background while the PDA is 'sleeping' (ie the screen turned off), tries to access the SD card it will cause the PDA to lock up.
For a while I thought the issue was related to apps connecting via DUN to the internet, but I now thinks the lock up are related to the SD card access.
So I do install apps on the SD card where possible - but NOT ones that would access the SD card while running in the background. This also applies to where data is stored - eg message attachments (if messaging is downloading e-mails/attachments periodically don't store them on the SD card).
Secondly ensure Active Sync is set to 'manual'. See the following post:
http://forum.xda-developers.com/archive/index.php/t-288352.html
When I ensure nothing is running in the background that accesses the SD card I don't see lock up. While I've not been able (yet) to attribute 100% of my lockups to SD card access by doing this I've been able to virtually eliminate lock ups (I was getting 2-3 per day).
This also implies that I can't leave the programs that I installed on the SD card running in background when the device goes into sleep if there is any possibility they will try and access the SD card (some apps won't do anything until you interact with them, some apps run in the background and connect/download data etc - those I can't leave running).
Hopefully the new ROM will be released shortly and will eliminate this problem and improve the reliability overall!!
derekmg said:
So here is what I've found out so far for my 8525.
I've convinced myself that if any application, running in the background while the PDA is 'sleeping' (ie the screen turned off), tries to access the SD card it will cause the PDA to lock up.
For a while I thought the issue was related to apps connecting via DUN to the internet, but I now thinks the lock up are related to the SD card access.
So I do install apps on the SD card where possible - but NOT ones that would access the SD card while running in the background. This also applies to where data is stored - eg message attachments (if messaging is downloading e-mails/attachments periodically don't store them on the SD card).
Secondly ensure Active Sync is set to 'manual'. See the following post:
http://forum.xda-developers.com/archive/index.php/t-288352.html
When I ensure nothing is running in the background that accesses the SD card I don't see lock up. While I've not been able (yet) to attribute 100% of my lockups to SD card access by doing this I've been able to virtually eliminate lock ups (I was getting 2-3 per day).
This also implies that I can't leave the programs that I installed on the SD card running in background when the device goes into sleep if there is any possibility they will try and access the SD card (some apps won't do anything until you interact with them, some apps run in the background and connect/download data etc - those I can't leave running).
Hopefully the new ROM will be released shortly and will eliminate this problem and improve the reliability overall!!
Click to expand...
Click to collapse
That is a good summary and good to get actual experience feedback. The proof of the pudding is in the eating or in your case the enormous reduction in lock ups.
Mike
I took another approach to this problem. I like to keep everything on my SD card as well, but I hate the lag that occurs if you put the device to sleep. My solution was, simply put, to never put it to sleep. I disabled sleep completely and I never use the power button to shut down the screen. It's very very nice having it instantly ready to go at the touch of a button. The battery life usage is minimal for me to have this benefit. However, I feel this device is a bit slow still. I would like to find an overclocking program that works for this device eventually.
I was able to reproduce the freezing in standby (i.e. the device not waking up, but leds blinking AND when I tried to call myself from another phone I heard the ringings in the caller phone, but no sign from the freezed TyTN).
I Installed AEButtons (on PHONE memory, not on card).
Put HW1 / HW2 that on single-click / double click to toggle WiFi.
I turn WiFI off, then on, using the HW shortcut.
Then put phone manually to sleep.
It won't wake up by any mean, except soft reset.
Unfortunately, this worked for me every time .
I am uninstalling now all programs one by one because sometimes the freezing would manifest when charging, too (but not always). I will probably end up with a hard reset and start rebuilding again...

Readyboost problem after resumn from sleep

Hi ALL, i have enable the ready boost service and i can see my sd card fine after resumn from sleep. However i have notice a problem which i after i resum from sleep, the SD card seems to re-write the whole readyboost cache again, i can notice the OS slow down during that period, and also the HD light keep flashing meaning it's working and spinning busy at the back. If i disable the ready boost, i notice no such problem after resumn.
Any one know the solution to this? or can you all check whether yours is doing the same?
BTW, i have update to sp1.....
I have the same problem and I have sp1 too.
I have an other problem too (experienced by many users in other posts): when I wake up the system from sleep or hybernate many times my sd disappear, so no more readyboost!
This morning I had the usual problem of sd disappearing so I decided to restart the system to have readyboost back on. It's been so a long restart! For many minutes the hd continued to work and the system was really slow!
I think Htc have to solve theese issues because it's annoying! Even if I'm sure that xda forum will find those solution much before!
I don't know what's going on, but my shift now has no drop out of SD card at all after sleep, i notice this after i complete re-install the Vista, don't know if that's the solution, at least the SD stays there now.
However i still have the hard-disk keeping spinning problem after resume when using ready boost, so i now have disable ready boost, until the problem is solve, i am happy without it.

Wake up problem

Hi,
I have noticed that each time when my xda exec wakes up from suspend mode, it takes 8-15seconds to respond. I have tried with memory cards of 128mb/512mb/4GB/8GB on WM5/WM6 roms and the problem is still here. But when I removed the memory card however, it wakes up instantly without freezing. I would like to know if there are any solutions to make it respond instantly when waking up?
Thanks.
This is probably because you have an app installed on your SD card that runs when device wakes up, try to install that app on main memory.
Thanks orb3000, you are right - it was a today plugin that reads the amount of free space on my sdhc card that froze the phone.

SD Card/Sense DRAINING my battery at 2% a minute !

My HD2 never goes into stanby.
I isolated the problem to Sense and the SD Card.
The ROM is Energy and Radio is fine.
What happens is simple, the stanby (screen off) current is on -200 instead of -2.
When I turn off Sense - it goes back to -2.
When I remove the SD Card - It goes back to -2.
Conclusion - When Sense is on, It must be using some of the memory card.
There are no apps installed on it, any auto updates, any software cache that is writing to the memory card, etc.
I JUST flashed the ROM and there is nothing on it. Flashed twice 2 various versions just to be safe.
Any idea how to fix this strange problem ?
re-format youre sd card, lots of users(including myself) have fixed the issue this way
Should I check " FAT 32" ?
Should I run a full format or a quick format ?
yeah, fat32...
i think full is better than quick
give it a try...
DN41
also make sure the alloc unit size is 32kb
^^^^^^^Love the animated Gif!^^
Thanks I did just that but no results.
I also found that even without installing anything to the SD Card, I can still see an Application Data folder on there with "HTC Image cache" and all kinds of things all on it.
Is it normal ?
Any other ideas ?
Silencer23 said:
Thanks I did just that but no results.
I also found that even without installing anything to the SD Card, I can still see an Application Data folder on there with "HTC Image cache" and all kinds of things all on it.
Is it normal ?
Any other ideas ?
Click to expand...
Click to collapse
that is normal for our phones. I always delete it after a flash then hard reset just to clear it, but it will always be there.
Do you have any other Sd cards laying around that you can try?
I did a test on mine today. Went to bed (I work nights) at 0800, left the phone on, locked, with screen off. Power settings set at 50% when unplugged, with backlight set to turn off at 5min and device standby at 10min.
I had a 85% charge when I went to bed, and when I checked it 8 hours later, it was at 77%. That was with 8 missed calls, So 40 minutes of screen on time and 40 minutes of active time with screen off.

[Q] Recovering files from messed up SD card and other problems with GT-i9506.

Hi!
So around christmas time my phone stock Galaxy S4 GT-i9506 4.4.2 started getting weird.
I kept wondering why my sound profile kept changing to something else eventough I've set it ie. for vibrate.
One day I noticed what was going on.
Everytime I open "settings" no matter how, through the gear in the upper corner of the notification drop down screen or from the app drawer, whatever...
My phone changes the sound profile automatically to silent. Once I exit the "settings" area alltogether the sound profile automatically changes to sound again.
No matter what profile I had to begin with it changes to silent when entering the "settings" area and to sound when exiting the "settings" area.
This problem still exists.
If i mess around in the sound settings area, everytime I open a setting to change, the sound profile goes to sound
momentarily until I back out from the menu to somewhere else in the general settings area, then it instantly goes back to silent again.
I haven't installed any apps that mess with sound settings.
Problem number 2 :
My phone started to randomly get really hot during which the battery drained really fast. And sometimes the phone would freeze.
Shutting down and starting the phone always made the phone work as normal again.
Next phase was that the phone started to randomly get hot again as before but this time the phone went to a boot loop.
The phone kept restarting itself over and over again.
In fact my aunts Samsung phone (don't know the model) started doing the same thing recently. I told her to remove the SD card and the phone was back to normal, so I guess this is a common problem with Samsung phones.
Next phase was that on top of the boot loop the phone kept unmounting and mounting the SD card. A Kingston micro SDHC 16GB class 4 card that wasn't too full.
Shutting down by removing the battery and starting again made the phone stable for a while. While the phone was stable "Gallery" functioned normally as any way of browsing the files on the SD card.
I still figured that the SD card was the problem, I removed it and the phone was back to normal apart from the sound profile problem.
Now to the things I need help the most.
I really need the files from the SD card but the SD Card wont open anymore in any computer, card reader or phone I've tried.
How can I recover the files from the SD card? A file recovering program perhaps?
What program is the best for this? It doesn't have to be free.
Also I guess an factory reset would fix the sound profile issue and some other occasional problems, but I would like to keep my phone as it is .
Is there a way to backup the whole phone, and do a factory reset and then restore every app, setting, file etc. I MEAN EVERYTHING back as they were? I just wan't my phone as it is without these bugs.
You can factory reset your phone but you can't recover everything. This is the idea of reset to get a fresh phone...

Categories

Resources