Related
The application I'm developing needs the device to always remain on, even until the battery runs out, so I need to disable the auto power off feature if it has been enabled.
I've tried using
Code:
SystemParametersInfo(SPI_SETBATTERYIDLETIMEOUT,...);
but it just doesn't work. Returns success but nothing changes, not even the registry keys where the values are held. I found the registry settings in HKLM\System\CurrentControlSet\Control\Power\Timeouts, and played around with setting them, but they aren't picked up until a soft reset occurs which isn't a viable solution.
So the first thing I need to know is what the difference between the reg keys
HKLM\System\CCS\Control\Power\Timeouts\BattSuspendTimeout:dword
and
HKLM\System\CCS\Control\Power\BattPowerOff:dword
are.
They both seem to contain the same value, and similar names.
The second thing I need to know is what needs to be done to notify the system that the idle timeout has changed, and to reload the value from the registry. I tried an HWND_BROADCAST of WM_SETTINGCHANGED but to no avail. How does the system dialog where you can change the idle timeouts inform the system those values have changed??
Thanks,
Timbo.
Let's start a thread of all the reg tweaks ppl have come up with. If they are saved as .reg files (to an SD), we can install them with a mere double-click by using TRE (options>associate), and anyone can contribute to this post WITHOUT having to build .cab files! Why is this kewl; cos when u hard reset it's a real ball-ache to go back into all the forums to find the tweaks u applied and to navigate thro TRE to re-apply them all. This applies particuarly to settings (Owner info etc). Over and above, we are no longer beholden to tweak shareware, but have full and instant control over our settings.
Each tweak should have 2 reg files; Apply the tweak, and remove the tweak (if possible). In this manner, we can have a directory of reg files, and can turn on and off tweaks with a simple d.click.
Attached is a basic set I've compiled. Please let everyone know if any are a problem (ie perhaps whole key gets replaced and overrides something u have already changed). Files described below:
[*]Reg Date_In_Titlebar ON.reg
Adds the date to the title bar, with format according to your short-date format under settiings>regional (or found manually changed in another Tweak I'll cover later). I do NOT have a .reg file that will undo (ie delete) this new key, but it's easy to see what key is being added so u can delete it. <Credit: Well known PPC tweak - I probably learnt from toenailed>
Can someone please find out where we can change the font for this - it's a horrible bold font that doesn't fit in the space available?
[*]Reg Font_Menu_+_Pop_700 ON.reg
Change menus and popups to a smaller font. Nice size, makes VGA look more VGA-like, yet not so small that it fails cleartype nor looks daft. Requires a reset. <Credit: Well known PPC tweak - I probably learnt from toenailed>
[*]Reg Font_Menu_+_Pop_900 DEFAULT.reg
Reset above change to default of 900
[*]Reg Font_System_700 ON.reg
Changes system font to 2 pts smaller. I find that dialog boxes with radio buttons got a bit wierd, and you don;t get much more screen estate height cos of icon sizes staying the same in file lists, so I don't bother with this tweak. Requires a reset. <Credit: Well known PPC tweak - I probably learnt from toenailed>
[*]Reg Font_System_900 DEFAULT.reg
Turn above off
[*]Reg GPRS_+_3G_Always _On DEFAULT.reg
Awesome tweak to make sure ur phone connects to GPRS/3G and stays there. However, you'll want to switch this off overnight etc, which is the main reason I created this post and these reg files. NOTE: you will absolutely HAVE to replace the "MTN SA Web" bit with the name of your connection which you will find in this key using TRE
<Credit: BrettS http://forum.xda-developers.com/viewtopic.php?t=30277>
[*]Reg GPRS_+_3G_Always _On ON.reg
Turn off the above. Remember to change connection name in file
[*]Reg PIE_Homepage_Default.reg
When u press the E (explorer) keyboard key u go to clubimate homepage - annoying. This resets that hard button to whatever u want (current reg file is windows\default.htm)
<Credit: I forget, someone on clubimate forums>
[*]Reg TerminalServices_Cache_Larger DEFAULT.reg
AWESOME improvement in Terminal Services client horrible black blocks. Increases cache sizez - I did not notice an increase in traffic/cost
<Credit: Carnivor from MS KB http://forum.xda-developers.com/viewtopic.php?t=29996>
[*]Reg TerminalServices_Cache_Larger ON.reg
Turns above off
More coming as I go thro the wiki and toenailed tweak posts and extract usefull ones for us lonely Universal users...
can you add the actual keys to here?
http://wiki.xda-developers.com/index.php?pagename=Universal_Registry
cos of this thread
http://forum.xda-developers.com/viewtopic.php?t=30396
Doh! That post came up after I started this thread.
Still this thread is useful for the actual .reg files to same n00bies some time (and to save me time too). I'll make sure everything here is duplicated there tho.
Here are a few more .reg files:
Several versions of date_in_title_bar (covered above)
Hide_Screen_Rotation icon
Hide that icon that allows u to rotate screen - but JJ does it automatically so Icon is not so necessary
Regional_settings
These are for me - u should edit file in text editor to customise 4 yourself. Best part is my short date format that keeps date in title bar small and visible
Ringtone_settings
Customise as above
Screen_Speed_Glyph_Cache
Double your screen cache. COsts a LITTLE memory, and improves screen size
Screen_font_'smaller'
Set screen font size to "smaller". This can be changed in "settings"m and I only include it here in line with my suggestion that we have a collection of files to run quickly on reset. You may want to customise as above
SIP_Settings. Ditto
All in updated zip file.
I would really appreciate if anyone can find a way to get rid of the Last Call in the dialer screen... I know its somewhere hidden in Registry, but I dont seems to be finding a way to get tru it...
Having the Last Dialed No. showing rite up on the Dialer Screen is really bothering and if you happened to press the phone button by mistake twice there we go the last dialed no. has been dialed already for you....
Bump: no-one contributing to this learning?
haven't found anything else worth posting yet m8, u got the best ones already :wink:
craigiecraigie4: Thanks for these - great idea!
I have a suggestion:
HKCU/ControlPanel/Backlight sets the backlight duration for the keyboard (in seconds). It's available through the control panel, but I like it set to more than the CP maximum of 10 seconds. Sorry - I don't know how to create a reg file.
To reset, choose another value in the backlight control panel applet.
Don't have any others to add though
Found another one:
Change the width of the vertical scroll bar and the height of the horizontal scroll bar so they take less room on the screen:
HKLM\System\GWE
Change cxVScr to (say) 10 to make vertical scrollbar narrower. Default value is 14
Change cyHScr to (say) 10 to make horizontal scrollbar narrower. Default value is 14
This change affects various scroll options in the system including the up/down arrows in selection boxes. 10 is a nice size.
This one is in this forum:
from davidberrysmith
--------------------------------------------------------------------------------
Any body remember these reg tweaks from himalaya? they still work
*** Speed Up Your Windows Mobile Pocket PC.
1. Open your registry editor o_n your Pocket PC
2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\GDI\GLYPHCACHE\
3. Change the value of 'limit' from 8192 to 32768
4. Close registry editor and soft reset.
*** disable start menu animation
Browse to HKEY_LOCAL_MACHINE\SYSTEM\GWE\Menu\
Change the "AniType" value from 6 to 0.
_________________
i-mate jasjar
Click to expand...
Click to collapse
SiliconS said:
Found another one:
Change the width of the vertical scroll bar and the height of the horizontal scroll bar so they take less room on the screen:
HKLM\System\GWE
Change cxVScr to (say) 10 to make vertical scrollbar narrower. Default value is 14
Change cyHScr to (say) 10 to make horizontal scrollbar narrower. Default value is 14
This change affects various scroll options in the system including the up/down arrows in selection boxes. 10 is a nice size.
Click to expand...
Click to collapse
Nice one dude. I can't make the .reg file cos I can only create reg files of the entire key, and there are too many other things under GWE that users may have changed.
Internet Explorer
Somewhere in those forums I found the IE reg hack to make mine 5.5, this helps connecting to my bank account and viewing other secured sites.
read this somewhere
To change the ability to receive files via Bluetooth (OBEX)
The setting is at 'HKEY_LOCAL_MACHINE\Software\Microsoft\Obex'
The 'IsEnabled' DWORD value should be set to '1' to enable OBEX and '0' to disable OBEX.
For example, to enable the ability to receive fles via Bluetooth
HKEY_LOCAL_MACHINE\Software\Microsoft\Obex\IsEnabled = 1
says receive so i dont know about send, try it!! might be it
But apparently now this is the same feature as the receive incoming beams setting in connections.
Yes, I know that's not free but 90% of all this hacks have been included in Tweaks2K2. And the other 10% are about to be included :twisted:
Yeah, true. Idea of this thread was to have a facility whereby a hard reset can be quickly restored to a working device - install a few basic apps, run the .reg files, and there u go. Takes me about half an hour from HR thro to up and running perfectly.
craigiecraigie4 said:
Yeah, true. Idea of this thread was to have a facility whereby a hard reset can be quickly restored to a working device - install a few basic apps, run the .reg files, and there u go. Takes me about half an hour from HR thro to up and running perfectly.
Click to expand...
Click to collapse
With your .reg files as inspiration I'm just about getting there in the same way. I've written down all the steps and I just run through them. I've done this since I had my XDA2 and it makes a hard reset so much less traumatic:
Code:
Hard reset. Wait for Today screen then soft reset.
Connect cable to ActiveSync. Set up guest connection.
Turn off beams, error reporting
Set basic clock accuracy
Copy Step 1 files to root of PPC [These are the CABs for the programs I install]
Run CABs. Leave O2 Connections CAB. Put gps.CAB and PIMAddin onto storage card
Run TRE registry editor. Associate .reg files to TRE
Open the .reg file [This applies my registry settings. See below]
Run O2 connections CAB
Copy all Step 2 files to root of PPC [This adds shortcuts to StorageCard-installed programs to my Start Menu and gives me my freeware email client and PZP icons and profiles]
Run SDK Certs CAB
Run OzVGA. Change all fonts to same size as qVGA
PPC: edit registry: browse to HKLM\ControlPanel\GPS Settings. Delete the DWORD marked "hide"
CPL > Personal > Buttons: match Button 2 to [Task switcher], Button 4 to <Rotate Screen>; Set button lock
CPL > Personal > Menus: ActiveSync, File Explorer, Internet Explorer, nPOPw, Pocket Informant, Task Manager, TomTom Navigator
CPL > Personal > Owner: set owner information
CPL > Personal > Phone: change band to GSM
CPL > Personal > Today: set items to Date, PZP, PocketPlus, PocketBreeze, Messaging; set theme to Windows Default
CPL > System > Clock: Show time on all screens
CPL > System > Regional: Set locale to UK
CPL > Connections > GPS: set program port COM0
Soft reset
Set password for PPC
PC: backup previously sync'ed files folder
PC ActiveSync: delete previous partnership. Don't delete sync'ed files folder
CPL > System > About: Set DeviceID = XDAExec
Connect PPC and PC with cable
Sync only Contacts, Calendar (all), Tasks, Favourites
Sync files. Replace the items on the device
PocketBreeze: import settings
PocketPlus: import settings
PocketInformant: run and let it fanny about
PocketWeather (on PocketBreeze tab): import settings
Run ListPro. Enter registration code
Disconnect from PC
Set up phone speed dials
Set up voicedial tags
Set up ActiveSync via Bluetooth to Workstation
Set up bond to headset
Set up bond to GPS thingy. Choose Serial Port as profile
Start TomTom Navigator. Run through startup.
InternetExplorer: sort out view settings. Set default page to about:blank
Choose Transcriber input method. Import settings file
This is my .reg file that does almost everything I need done in one step:
Code:
[HKEY_LOCAL_MACHINE\ControlPanel\GPS Settings]
"Group"=dword:00000002
[HKEY_CURRENT_USER\ControlPanel\Backlight]
"QKeyLedTimeout"=dword:0000001e
[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client]
"Keyboard Layout"="00000409"
"BitmapPersistCacheSize"=dword:00000001
"BitmapCacheSize"=dword:00000015
[HKEY_LOCAL_MACHINE\System\GDI\GLYPHCACHE]
"limit"=dword:00004000
[HKEY_LOCAL_MACHINE\nls\overrides]
"SSDte"="d/M "
[HKEY_LOCAL_MACHINE\HARDWARE\OEM\KEYBD]
"PieHomePage"="about:blank"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell]
"TBOpt"=hex:\
13,00,00,00
It makes a massive difference using commercial software that has a reliable import/export process for the settings and this, IMHO, is usually the biggest difference between paid-for software and freeware alternatives.
Silicon, don't u want to re-post your post here:
http://forum.xda-developers.com/viewtopic.php?t=31697
We need more of these 'standard' configs to help new users get up n running without giving up on their universal.
dude, your screen - how?
craigiecraigie4
how did you make htc look like that?
is it standard? emailable? I don't really want the merc style if it can be changed, but its a nice screen all the same
Re: dude, your screen - how?
simon_darley said:
craigiecraigie4
how did you make htc look like that?
is it standard? emailable? I don't really want the merc style if it can be changed, but its a nice screen all the same
Click to expand...
Click to collapse
You don't want merc!! well u can just f off then! ;-)
It's WisbarAdvance2 with WAD - see another post I started in this forum. u can put in on any universal, with whatever walpaper u want, and there are plenty of free skins
Re: dude, your screen - how?
craigiecraigie4 said:
It's WisbarAdvance2 with WAD - see another post I started in this forum. u can put in on any universal, with whatever walpaper u want, and there are plenty of free skins
Click to expand...
Click to collapse
Whatever it is, it's distracting to have such a big picture in your signature in such text-based forums.
Sorry craigiecraigie4. Don't mean to offend. Just MHO.
One side-effect of this latest Dopod-gps-rom is that ClearType is disabled, and there's no control panel applet for it.
I have set the correct registry values to enable it nonetheless, but it gets disabled again after soft-reset.
Is there any way to permanently enable cleartype, or to stop the soft-reset changing these values? Where do I start to look, extended rom?
thanks!
Edit:
* Solved: I was looking for ClearType applet, but this setting is also in Settings|System|Screen|ClearType
* Solved also for Landscape modus: http://forum.xda-developers.com/viewtopic.php?t=15688
Make sure you made the change to the following registry key
\HKLM\SOFTWARE\Microsoft\Shell
Change the value for NoClearType from 1 to 0.
This unlocks the ClearType option.
You may then go to Today->Settings->System->Screen. Now the ClearType tab is shown and you can enable it there.
Hello, i was looking for a standalone backlight manager to use in ultimate launch ( with cycling ) and i've found this great stuff on 4pda.ru but unfortunately it's all in russian. I've manage to make it work well on my trinity but i'can't understand all the options and there's no .ini nor lang.text to edit. Some help is welcome for the translation, even if you don't translate the program i would like a russian helper that can list all the options (would be perfect with screenshots). thanks a lot for viewing perhaps helping !!!
P.S. :sorry for english, when you read my posts you know i'm french ; )
UPDATE 06.05.2008 new cab below containing the english mui.cab. Install both then go to config first line of the second tab to change language. All credits to MalVal
MVBklight 1.4.3
1. Install MVBklight.CAB.
2. To change the language: install MVBklight.MUI.CAB, go to settings the first line of the second tab.
3. To change the skin: copy a new skin to Skins folder in program folder and choose this skin in settings.
Thanks a lot it works perfectly now i can configure my cycling function. your great
Your program is really perfect MalVal, I was looking for a stuff like that for a month, really happy that the Dev himself answer me. The torch, the cycling function, the today plugin, the fact that it's multiplatform, nice work. Do you have made other progs ?
Yes. MVBalance. It dysplays remained money in your mobile on today.
But it have only russian interface, and i think it will be difficult to adjust it.
Hi MalVal,
Did you have a short tuto ? How does it works, I launch it, change langage, but did not understand how to make it works!
Thanks for your help
Universal backlight manager MVBklight.
Features:
- System WM2003, WM5/WM6, qVGA, VGA.
- Control of backlight from the today (joystick: right - increases, left - decrease, central button - the settings menu, up / down go to next plugin).
- Popup with backlight regulator (joystick: to the right/up - increases, to the left/down - decrease, closing by the central button).
- Set and get of backlight from a command line (the example, ‘ Cmd 244 ’ - set new, Cmd - returns current).
- Increase/decrease of backlight from a command line (the example, ‘ Cmd + ’ - increases, ‘ Cmd - ‘ - reduces).
- Switch backlight from max to min and back ('Cmd m').
- Cycle change of backlight through Cmd.
Cmd 2 5 7 10 on a circle changes values. If was < 2 sets 2, if < 5 sets 5, ..., if >= 10 sets 2.
Similarly with decrease, Cmd 10 7 5 2 - if was more than 10 sets 10 if > 7 sets 7, ... if <= 2 sets 10.
- Switch on of the necessary backlight at connection to an external power (only if plugin is active) and switch back to battery backlight.
- The torch mode, switch on the maximum backlight and the white fullscreen (Torch.exe in a program folder).
- Settings of colors.
- Support of skin (32-bits RGBA bmp).
- Various kinds of sliders (without skins ).
- Display of backlight value by number or in percentage.
- Possibility of manual input of dwIoControlCode codes (see DeviceIoControl in MSDN) and the registry keys which are responsible for set and get of current value of backlight (these codes and keys differ from a device to device).
Installation:
1. Install the cab in the main memory (not on storage)
2. Start from Start-up-> Programs-> MVBklight or from explorer \Program Files\MalVal\MVBklight\Cfg.exe, make settings.
3. In the same place, in settings switch on a plugin.
Settings:
1. At the first start in line "Settings for" there will be a name of your PDA and will be established default settings for it. If default settings does not work, we can manually adjust it.
2. In the field "Type" choose your PDA type.
Input section, branch and keys of registry in which current values of backlight are stored (Battery and power). For many PDA - HKCU\ControlPanel\Backlight, ACBrightness and Brightness.
They can be looked in the registry (corresponding values vary after backlight change by a built-in regulator). In the same place it is possible to find the maximum and minimum.
3. For WM5/WM6 it is necessary to enter corresponding sexadecimal codes DeviceIoControl.
4. Specify a skin folder. There should be four 32-bit bitmas with an alpha-channel (folders should be in a plugin folder).
To find out backlight settings for each concrete device, it is necessary:
1. Find out what file with exptention dll, cpl or any is responsible for backlight on this device (means backlight adjustment through the menu Settings-> System-> Backlight or Brightness ).
Usually this file is in a windows folder and has a certain speaking name of type COMBacklight.dll (on ETEN).
As a last resort, it is necessary to investigate all files suspected on backlight control.
2. It is necessary to copy these files on PC.
3. Then we use IDAPro to disassemble it and try to find options needed.
There are some known settings in attach (my database).
PS. Sorry for my english .
Hi MalVal,
your app did sound so sweet ;-) but unfortunately is does not work on my Artemis.
The slider shows up - but it does not change the brightness no matter what I do.
A couple of observations:
it shows Arte20000 instead of Arte200 and this name is fixed
for device type it says WM2003 but it should read WM6.1 or at least WM6
most of the settings for registry are greyed out and not changable
Might be that the problems come from my Rom being modified ?
Best regards,
mst
Hi MalVal,
Same issue for as mst46. I'm using your soft with Artemis PDA and "ARTEMIS TOUCH 4.01 WM6.1 WWE ROM".
As previously mentioned, only ARTE10000 is proposed and no way to modify other fields as they are "greyed".
BUT, it seems that is it because of the english translation you quickly done. I try removing the cfg.exe.mui file you provide, and then relaunch conf, then, even if written in a langage I cannot understand (russian ?), it is possible to select another item than "ARTE10000" and then are able to edit the following fields.
I try to select WM5/WM6, then HKCU, then ControlPanel\backlight, then Brightness, then ACBrightness, but seems that it has no effect. Difficult to o further when don't know what are the files editing
Could you take a look at it ? Thanks for your support.
Same thing happens with ipaq hx2490b. The device name is correct, the OS appears as WM2003(I haveWM6.1), and other options are greyed.
If default settings does not work, you can manually setup it :
1. Set manual in field Settings for
and restsart Cfg.exe. All fields become accessible.
2. see post above.
Known codes for some HTC:
HTC Hermes, НТС Х7500:
Codes: Pwr - 0x220010, Bat - 0x220018
HTC 4350 Herald:
HTC P3300:
HTC 3400 :
Pwr – 0x8, Bat – 0x7
Registry: HKCU\ControlPanel\Backlight, ACBrightness and Brightness
HTC Wizard:
0x2
HKCU\ControlPanel\Backlight, ACBrightness, Brightness
iPaq 3715:
Battery – 0x7, Power – 0x8
Registry the same
You can try these. If it does not help, it is necessary to analyze built-in backight manager with IDA.
Hi Malval,
I've been able to make it work with the parameters you provides for my P3300.
But there is still a problem with the translation file I belive.
I first install the Cab, then replace the cfg.exe plus the cfg.exe.mui file with the one you provide in the early post.
When running the conf, it is possbile to have it in english, but it was not possible to select something else than ARTE10000 in the second field (settings for) of the system tab. The "manual" option is not available!
In order to make it works, I remove the cfg.exe.mui file, and relaunch the conf. Then all messages come back to russian, but in the second field of system (settings for I belive it is writen in russian), I was able to select something else than ARTE10000 and I've been able to access following fields (they are no more greyed).
Once the "manual" field selected, I exit the conf, and replace the conf.exe.mui file and I've been able to see what are the fields I was modifying as the langage come back to english.
But, in the "Settings for" field, it is written "(null)", and opening the drop down box, only ARTE10000 is available.
I hope it can helps you in order to modify your code to fix this minor bug.
For those who follow the instruction I gives, and having a P3300 running "ARTEMIS TOUCH 4.01 WM6.1 WWE ROM", I set a "Maximum value" to 4 otherwise you will have a surpise of a blank screen if seting a higher values.
Regards
Hi, JBT1.
Thanks for bag.
I've upload a new one. In the same post. Check it.
I've also add mui for plagin.
In the next release i'll add all files in one cab-file and i'll update database to support artemis.
Hi Malval,
Sounds good this time. Manual is available now in the settings and today plugin menu is in english.
Thank you for this great application.
I have an issue now with the assignement of a button with your popup application. I assign it to the button 6, and it works fine except when running TomTom! If running Tomtom and hitting button 6, it call the default assignment who is the Voice speed dial! I beleive it is a Rom or Tomtom issue.
Will look forward for your next rev
Thank you
I tried it on my Kaiser.
Hanging when changing the backlight.
Working great now on my Artemis. Great tool .
Thank you MalVal !
mst
Can someone post a screenshot of what the actual today plug in will look like? Been trying to get it to work on my kaiser but not having any luck
mattarse, romualdrichard!
I need more information, what is the problem.
Screenshot.
More screenshots in attach. I hope it enough.
please do you have more screenshots of this program?
The backlight doesn't change at all. Im on a kaiser with duttys newest 6.1 rom.
If I leave it set for kaiser it is stuck on WM2003, but changing it to manual and setting it for Wm2005/2006 doesn't help either.
I assume the problem is in one of the other settings, but I reallydon't know what to test.
Any help you can give would be appreciated, I've been looking for a program like this for awhile.
Hi there,
my slider become unstable, hang after a while or if I scroll too fast, after install the above 3 tabs by modifing the registry. Anyone experience the same? Any solution?
Put the registry settings back the way you found them... that should do the trick. Use Schaps Advanced Config tool to do the registry hacking for you - you have an option then to return things to their default setting if you don't get the desired result.
whatever
schap's advanced modifies exact the same values in a same registry, that you would edit manually, so there's no difference.
another question how did you add tabs to manila, editing registry?!
you should edit XML in 2694..._manila file in \windows to get additional tabs.
No difference!!
ucxoq said:
whatever
schap's advanced modifies exact the same values in a same registry, that you would edit manually, so there's no difference.
Click to expand...
Click to collapse
... actually there's a lot of difference! Schaps allows you to know exactly what you're adjusting, which is very useful - and you can return the settings to default if the result isn't to your liking. BIG difference to messing with the registry yourself! Yes, the result is the same, the level of skill / knowledge / risk is definitely not the same