PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Apache (http://forum.ppcgeeks.com/forumdisplay.php?f=14)
-   -   Questions regarding registry settings in custom OEM (http://forum.ppcgeeks.com/showthread.php?t=7282)

Ryan07 08-16-2007 11:13 AM

Questions regarding registry settings in custom OEM
 
I have a HUGE custom RGU file that pretty much makes my 6700 ready to go when I hard reset. There are only two things that I can't get to work and I'd like some advice.

First, in Start > Settings > System > Power > Advanced
I want to uncheck the On External Power box. I have the backlight settings working properly to dim the screen after one minute on AC power. I do want the device to suspend on battery after 1 minute and that is working.

Code:

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Timeouts]
        "ACResumingSuspendTimeout"=dword:0000000f
        "ACSuspendTimeout"=dword:00000000
        "ACUserIdle"=dword:00000000
        "BatteryPoll"=dword:00001388
        "BattResumingSuspendTimeout"=dword:0000000f
        "BattSuspendTimeout"=dword:0000003c
        "BattUserIdle"=dword:00000000

The ACSuspendTimeout shows as 0 which should be unchecked but on a hard reset it is set to 30 minutes and remains checked. Am I in the right place for this? Can I add a value called "ACTimeoutChecked" like in the backlight settings perhaps?

The backlight settings work fine. It is disabled for battery and blanks the screen without suspend for AC power.

Code:

[HKEY_CURRENT_USER\ControlPanel\BackLight]
        "ACTimeout"=dword:0000003c
        "ACTimeoutUnchecked"=dword:00000000
        "BatteryTimeout"=dword:00000000
        "BatteryTimeoutUnchecked"=dword:0000001e
        "QKeyLedOnOff"=dword:00000001
        "QKeyLedTimeout"=dword:0000000a
        "DefaultACBrightness"=dword:0000000a
        "DefaultBrightness"=dword:00000008
        "ACBacklightOnTap"=dword:00000001
        "BacklightOnTap"=dword:00000001
        "ACBrightness"=dword:0000000a
        "Brightness"=dword:00000008
        "AutoMode"=dword:00000000
        "OnOffBatt"=dword:00000001
        "OnOffAC"=dword:00000001
        "OnOff"=dword:00000001
        "BatteryTimeoutChecked"=dword:00000001
        "BatteryTimeoutTemp"=dword:00000000
        "ACTimeoutChecked"=dword:00000000
        "ACTimeoutTemp"=dword:00000000

The last question I have is about the Start > Settings > Personal > Menu
I would like to know if I can uncheck all of the boxes through the registry or rather set a value to uncheck them for me. I have no idea where to look for this portion.

Thanks for the time.

schettj 08-16-2007 11:58 AM

For registry mojo, the most successful but tedious method is to do something like
hard reset, dump full reg to a file, change settings as desired, dump full reg to another file, copy both reg files to desktop, diff/compare files using some freeware or commercial tool to find differences, figure out which ones relate to what setting(s) - usually that's obvious - and then put desired settings into an RGU.

The only possible problem you can run into is RGU processing order. Or having your settings overwritten by a proxml file that is processed on cold boot.

I actually just keep my custom settings in a .reg file on my card -- I double tap that sucker after a cold boot to be sure all my desired reg settings are applied.

schoenof 08-16-2007 04:01 PM

I have the same question related to customizing the fixed items in the start menu....I have not been able to get it working yet....

I also have a question related to the registration info for Resco Explorer (or any Resco product).....I can't seem to find any registry settings.....I did the hard reset, full reg dump1, register program, full reg dump2, and use compare tool to find reg changes....no luck...I also checked the filesystem (hiding files in ROM) and was not able to find anything...

Anyone know how Resco Explorer stores registration info?

Thanks!

schettj 08-16-2007 05:56 PM

There is another "hidden" registry (same place email settings go) that sometimes is used - much harder to find stuff in there. I was playing with MobileProfiler a while back, didn't get too far with it.

http://www.iaccarino.de/silvio/stuff...ilerReadme.htm

brightedge 08-16-2007 07:34 PM

To edit the Start Menu items, you'll have to delve into OEM\OEM_HTC\initflashfiles.dat. In order to see that file, you'll have to unhide Protected Operating System Files.

First, back up the untouched file. Then, open the file in Notepad and look for the commented out area "Start Menu Contents" (about halfway down.) Then look for the current entries that look like this:

Directory("\Windows\Start Menu"):-File("...

Replace the stuff after -File("... with your custom entry. Don't touch the PermDir entries. There's also a couple hiding further down the file, so search thoroughly. Remember, there's a limit to the number of entries you can have (7 I think...) You might have to play around with it until you get it to work perfectly.

One note of warning...I've noticed duplicate entries in the Start > Settings > Personal > Menu after editing this file. It doesn't seem to adversely affect the phone though.

Ryan07 08-17-2007 09:59 PM

Brightedge, thanks a ton. That's exactly what I was looking for. That's a pretty handy file.

I still can't figure out the power setting deal. I know I have the right key, ACSuspendTimeout. I change it to say, 5 minutes and can see the registry key change after a refresh. I uncheck the box, refresh the registry again and the value is back to 0. The odd part is that my other power and backlight settings stick fine.

Thanks again BE.

brightedge 08-18-2007 09:13 AM

You're welcome Ryan :)

As far as the power settings go, I'm not sure where you are going wrong. My suggestion would be for you to do the following:

1) Remove any custom power reg edits from your rom and hard reset
2) Do a baseline reg dump with dillSoft's RegistryDump(PPC)
3) Manually make the changes to the power settings using Start > Settings > ....
4) Do another reg dump
5) Use a program like UltraCompare to compare the two files. UltraCompare has a handy button at the top that will only show you the changes between the two files.
6) Discarding any useless changes (ActiveSync stuff and whatnot), edit your custom reg oem to include the changes seen in the diff.
7) Create a new rom and test whether it worked :)

Good luck!

Ryan07 08-20-2007 10:46 AM

Thanks everyone for the continued advice. I've used the dump/diff method already. That's how I've gotten as far as I have. I know I have the right key, but it just won't stick. Again, the weird part is that all the other power/backlight settings I use are taking properly. It's really no big deal. The system goes to sleep after 30 minutes on AC power rather than just blanking the screen. The only time that will happen is charging overnight, so it's just a matter of pushing the power button in the AM.

Quote:

The only possible problem you can run into is RGU processing order. Or having your settings overwritten by a proxml file that is processed on cold boot.
This must be the key, but I just don't know why it would be affecting that one key and not the rest. My RGU file starts with FF so it is processing last. I have about 50 changes made throughout the registry and they all stick except this one.

Thanks again.


All times are GMT -4. The time now is 08:34 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0