PDA

View Full Version : Registry tweaks to save some RAM


moneytoo
24th December 2007, 12:37 AM
The most important thing. Back up your user data!! You cant harm your device since you can almost in any case master reset but when performing master reset the internal storage will be erased. Back up your registry as well. Some services, networks and relateed stuff may stop working.

Every time WM boots, system writes amount of free memory. Check it and compare free memory spare after performing selected tweaks.

HKCU\Performance\Available RAM on boot

I have performed master reset, set Default homescreen (WeatherUpdateService take too much ram space), installed Resco Explorer, Registry Editor, Celetask, and Oxios Memory. Micro SD is inserted but all programs are stored in internal memory.

Do not continue without registry backup (PHM Registry Editor works fine) and back up of user data from internal memory (Sprite Backup)!

Tweaks:

Safe to modify.
At your own risk.

Go to Start Menu -> Connection Setup and check if "Enable Auto Configuration" is turned off.

\Windows\StartUp (Delete)
- btdwake.lnk
- PKG.lnk

btdwake = Bluetooth Disk Driver (BT FTP)

HKLM\init (Delete)
- Launch98: TimeWizard.exe
- Launch99: SAPSettings.exe
- Launch100: uptimesqm.exe
- Depend100
- Launch101: ConnectionSetupAuto.exe

HKLM\Services (Delete. Be vary carful with these keys! WM may not start if you delete needed key. Backup this registry if you would need these services in the future.)
- App
- BTAGSVC
- BthAsPlugin
- BTHIDSVC
- CERTENROL
- Clock
- GPSDaemonService
- HtcServices
- OBEX
- SDS
- SNApi
- SqmUpload
- Stk_service
- USSD
- Windows Live

HKLM\Services (Delete)
- Trusted (this key cannot be deleted, so delete all values except "SIMInit: siminit.dll")

HKLM\System\StorageManager\FATFS (Set)
- EnableCache: 0

HKCU\Software\HTC\ConectionSetup (Set)
- EnableAUTODetect: 0
- EnableAutoNotify: 0

HKLM\Drivers\BuiltIn (Create "Flags: 4" (DWORD))
- Error Reporting
- DebugLog
- DebugLog_PMIOCTL
- SmartCard

HKLM\Drivers\BuiltIn\ipsecsvc (Change)
- Flags: 4

HKLM\Comm\Cellular\Wap\Driver (Change)
- Flags: 4


Wings defaults:
- Available RAM on boot: 19 701 640 B
- Task Manager shows: 19,252 KB
- Freeing memory using Oxios Hibernate: 20 260 KB
- Task Manager shows then: 19,720 KB

After the tweaks:
- Available RAM on boot: 21 381 120 B
- Task Manager shows: 20,736 KB
- Freeing memory using Oxios Hibernate: 21696 KB
- Task Manager shows then: 21,356 KB


Well, cca 1.5 MB isnt too much but since there is so little RAM, every single MB counts.
Now I have to put all the programs back on Wings and see if there will be any change.


Notes:
- "Flag = 4" means service wont be loaded
- I tried to set "Keep = 0" for services in "HKLM\Services" but it just did not work so smooth as deleting. ("Keep = 0" should unload the service after initialization)
- Its mostly BlueTooth/OBEX/A2DP, SIM/SIM Toolkit, network services... which i dont use so much.

Do you know any other RAM saving tweak (only memory related)?
Has anyone tried to change IE cache limit? It returns back to 5120 after reset...

Rytt55
24th December 2007, 08:10 AM
This does sound awesome! But I do not want to change my home screen. From what your saying also, it seems that the weather program (2nd icon) is constantly on (auto update and display), which in turn, is using up RAM. Is it possible to just close/delete it from windows itself or the registry? I think this will give us at least another 5-6k in ram which will put us at around 18 or so from start. I am fine with 18, but not 12 from start.

moneytoo
24th December 2007, 10:22 AM
If you dont use the HTC homescreen the Weather Update wont be loaded. Otherwise you just have to live with that.

saman-cz
24th December 2007, 11:01 AM
This is pretty crazy. You advice do delete services without explaining what each do..
For example:
Stk_service - what if user wants to use SIM Toolkit?
OBEX- sending files, contacts over bluetooth?

moneytoo
24th December 2007, 11:18 AM
If users want to use BT (OBEX, A2DP, HID, GPS), SIM Toolkit, USSD messages, Windows Live... then they just have to not delete these services or restore them from backup (just import missing registry).
I thing the memory size is much more crazy than this. :)

A.Bagatov
24th December 2007, 12:46 PM
Thanks a lot! I will try it soon.

qumran
22nd January 2008, 09:37 PM
Hi! Thanks for the great tips!

I did ALL the tweaks described and now my windows messenger does not start, I thought i did a registry backup but apparently i screwed up.:rolleyes: Does anybody now what values i have to re-enter to get messenger to start working again without doing a reset?

Thanks...

(I know i totally screwed up when there was BIG RED LETTERS SAYING "Do not continue without registry backup (PHM Registry Editor works fine) and back up of user data from internal memory (Sprite Backup)!" but i did. Kick me)

undac
26th February 2008, 04:56 PM
one (or more) of these tweaks makes my SMS service stop working (no matter if I choose to recieve/send SMS over gprs or gsm)

any which one that would be? (I know I could just try them all ;) )

Contedracula
28th February 2008, 05:45 PM
Hi!
Someone has tryed to install fring on this device?
I did it yesterday and i disable autostart immediately, but i have seen that before installing it i had 4-6 mb free cleaning the ram with terminate all and now about 9 not cleaning and 10-11 closing all apps.
I have no time for a complete test at the moment but if someone can try to install fring and test the phone it will be great.

Bye

MickyMax
13th March 2008, 11:46 AM
When I disable this service, I can't send any SMS !

HKLM\Comm\Cellular\Wap\Driver (Change)
- Flags: 4

ilordvader
13th March 2008, 01:18 PM
Sorry I know Its not for this Post
But does anyone know how to add Personal .wav file
to start up - Need Registry tweaks for it
so when the Phone starts it plays the Tune I want it to :)

thxs for ur Help :)

NeoID
13th May 2008, 07:11 PM
\Windows\StartUp (Delete)
- btdwake.lnk
- PKG.lnk

How did you delete them? They seem to be locked by the system...

Edit: After doing the registry-changes I've 17,536 KB free.. still far from 20,000 which I was hoping for..
Ff you know any other tweaks, like how to make it turn of the screen completely (instead of just turning of the backlight), please tell me (wouldn't save RAM but battery) :)

Thanks...