Hello, i´m new in this forum. I'm not very good in english, but i will try it.
I'm developing an applicqation in XDAII that uses serial port.That application is automatically re-installed every time I do a hard-reset (i have modified config.txt in the extended rom).The problem is that every time i do a hard restet, the irda port is enabled in the configuration-conexions-transfer menu. So every time i do a hard reset i have to disable manually the irda transfer. Do somebody know how to disable the irda modifiyng a registry key? Once i know the registry key that do this, i can build a application that modify that key. Thank a lof for all.
Your question interested me as I have also done what you are describing, and what you are asking is a very good idea.
I did a little investigation into the registry but I don't have good news. I did a total dump of my XDAII registry with Beam Ticked and Un-Ticked. I then did a compare of the 2 results. It seems the setting is in
HKLM\Software\Microsoft\Obex and Key IsEnabled is set to 1 for On or 0 for Off.
However changing the registry value just changes the state of the tick and makes no differance to the serial port being locked. So it seems that the registry is just a store for the current setting of the tick.
If you do get a final answer to this please post on this forum thread as it would be useful for me as well.
If you set this registry value and then reboot/reset the device, is IR turned off, (and the serial port unlocked)? I'm wondering if during the boot process it reads this value and will turn off IRDA ??
Yes, it does then seem to work.
So it seems you have to set the IsEnabled key to 0, and then do a warm reset.
So I guess an exe could check the value in the registry key and if it was 1, it could set it to 0 and then do a warm reset. If the key was already 0 then nothing would need to be done.
IR Problem
Hi all,
had the same problem about 3 months ago. To solve the problem i replaced the comport to 9999 during the installation of the cab file.
Work fine for me
Does anyone know how to programmatically enable the "Button Lock" function on the HTC devices? It's obviously not a registry key, so I assume there's some kind of (HTC) API function used to accomplish it :?:
maybe capturing and handling the event would be the way to go
i would asume that the hardware buttons throw events like most other things in windows
try looking into it
I'm not sure I understand what you're meaning by "capturing and handling the event"? There's no event to capture, unless you're suggesting I should "emulate" a couple of UI keypress-events which changes this setting. But that kind of implemenations usually aren't very stable.
It seems like quite of few device configuration settings isn't stored (or is visible) in either registry or filesystem. Is there some kind of non-visible configuraton hive available on these devices?
try reading this
http://www.pocketpcdn.com/forum/viewtopic.php?t=1966
you can prob find more using this search
http://www.google.dk/search?num=20&...G=Søg&meta=lr=lang_da|lang_en|lang_no|lang_sv
Ok, now I understand why you're talking about events. But the "Button Lock" setting isn't set by a hardware button. Its set from a "control panel applet", which got two alternatives
"When device is off:
( ) Lock all button except Power button
(*) Do not lock button"
Where the latter is the default after a cold reboot. Settings like these are not stored in registry, and I havent found an API for setting them either..
well the thing i was talking about was when you said program
i talked about one could write a program capturing all the buttons and only redirect the power button and leave the other event hanging
but i would asume that in the sdk there would be a flag which indicated if the the buttonlock was active
where i save if it is i'm not sure but it sure keep it on after a softreset so it cant be in active mem
Wille, did you ever work this one out? It's another of the many things I'd like to adjust programmatically.
have you looked in the stk ?
it should contain all the function calls that makes a pda work
changing something in the reg and changing sometime from a program are 2 different things
theora said:
Wille, did you ever work this one out? It's another of the many things I'd like to adjust programmatically.
Click to expand...
Click to collapse
No, unfortunately I didn't. Its not possible from an official standpoint since it seems to be a vendor specific implementation. The setting isn't stored in the registry or inside the standard file system.
You can try if Mort can help, he has made MortSaver, which shuts off the screen and buttons to act as buttonlock and screensaver in one. Perhaps he can help? Right now you can find him in the thread on MortRing, or through his website www.sto-helit.de. Or you can PM him of course.
I just handle the button events in MortSaver. Nothing special there...
wille said:
Does anyone know how to programmatically enable the "Button Lock" function on the HTC devices? It's obviously not a registry key, so I assume there's some kind of (HTC) API function used to accomplish it :?:
Click to expand...
Click to collapse
Try some reversing on \windows\buttonlock.exe and you'll get what u want
I've seen it's possible to set through a KernelIoControl call, but I haven't got enough debugging/re experience to determine the required function parameters.
(are there any in-memory debuggers like SoftIce available for these devices/Windows Mobile?)
As far as I know the best debugger right now is the free embedded visual tools from Microsoft.
There is nothing even close to SICE for CE.
However, IDA Pro, even though a disassembler and not a debugger, is quite powerful and usually does the trick.
Button Lock set/enable
I am also looking for a program/setting to turn on the button lock. I found this in another forum on xda-developers.com through a google search. There is a file to download but when executed on the PPC it gives an error Setup Failed "The file "\temp\SetButtonLock.exe" is not a valid Windows CE Setup file." I am not a programmer but I manage over 60 of these devices right now soon to be hundreds. Any info is appreciated.
http://forum.xda-developers.com/viewtopic.php?p=112394
This device is known by several names:
Audiovox PPC-6600
Audiovox PPC-6601
XdaIII (XDAIIi)
XdaIIs - O2
MdaIII (T-Mobile)
SPV M2000
i-mate PDA2k (MOST POPULAR NAME)
i-mate Pocket PC Phone 2
Qtek 9090
Siemens SX66 (Cingular)
HTC Blue Angel
Unicom CU928 (CDMA based China)
XV6600WOC (Verizon)
wille said:
Does anyone know how to programmatically enable the "Button Lock" function on the HTC devices? It's obviously not a registry key, so I assume there's some kind of (HTC) API function used to accomplish it :?:
Click to expand...
Click to collapse
Hi Wille,
This is probably too late to help, but I came across your post while looking for a solution. I ended up having to reverse engineer it myself...
You can use KernelIoControl(...) to set the button lock:
BOOL success = KernelIoControl(0x01012A00, &in, sizeof(in), NULL, 0, NULL);
struct button_lock_in
{
DWORD set_or_get;
DWORD set_value;
};
If set_or_get is 0x00000000, the set_value must be 0x00000000 to disable key lock and 0x00000001 to enable key lock.
If set_or_get is 0x00000001, set_value should be 0x00000000 (but it may be ignored). You then pass in a pointer to a DWORD in lpOutBuf and set nOutBufSize to sizeof(DWORD) (4 bytes). You'll get a 0x00000001 or 0x00000000 depending on if the buttons are locked or unlocked.
The above calls seem to work, but because it was gained from intercepting kernel calls and not from documentation I can not warrant that the above will work or won't set fire to your XDA.
By the way, lpBytesReturned doesn't seem to be implemented properly. It is unmodified by the KernelIoControl(...) IOCTL.
HELP
HELP
Somehow when I did a hard reset (for the first time) the ButtonLock is gone from Settings->System
Tried to call Audiovox/UTStar support, no help available.
Any idea how to get that app back? thx
Keylocking
Microsoft recommended way of doing this (turning keylock on) is posting
VK_F22 keycode (special key for locking WM5). I did small utility which looks Power Notification Queue and as soon as it sees WM_SUSPENDING message in it, it throws VK_F22 thus locking keyboard,
Utility can be found from
http://mobilitytoday.com/forum/showthread.php?t=13030
Devicelock
There is an aygshell-API function from Microsoft:
HRESULT SHDeviceLockAndPrompt();
But it is available only in very new Windows Mobile versions.
It works fine on a MDA Pro with AKU2.0 (OS 5.1.195 Build 14847.2.0.0) and on the landscape smartphone emulator image (same OS build) but it is not available in the standard emulator image with OS version 5.1.1700 (Build 14343.0.0.0).
How about the PIN-settings?
I would like to alternate between regular screen lock and PIN-lock..
I just got the HTC Wizard (Qtek 9100), and finally fixed the backlight bug.
This is the bug that turns off your backlight every time you go into Standby Mode. Here is the fix.
Use a Registry Editor and go to...
HKEY_CURRENT_USER\ControlPanel\BackLight
You should see a bunch of DWORD values. Look for the following:
ExtOnOff
OnOff
If you have this bug, they will both be set to 0 by default. Change these values to the preferred backlight setting of your choice, 0-4, 0 being off and 4 being brightest.
Now soft-reset your device.
If you've done this correctly, the bug should be SQUASHED and you should no longer have any backlight problems after standby.
If you recently hard-reset your device, you might not see those DWORD values and might have to create them on your own. I haven't studied it much, but it looks like those values are created on the first time you change your backlight settings.
You might also have to change these values the next time you feel like changing your brightness settings.
For Registry Editors, I prefer Mobile Registry Editor from...
http://www.breaksoft.com/Blog/Utilities/2005/1/Mobile_Registry_Editor.aspx
Now enjoy your HTC Wizard as you were meant to. I know I will.
Hello!
I need to write software that disallows any screen rotation on my Wizard.
How can I do it? I didn’t found any registry settings for this. The best way
that I see is hooking ChangeDisplaySettingsEx. But unfortunately, SetWindowsHookEx
doesn’t works on WM 5.0, at least it said on some topics. Please, give me any solution for this problem or example code to hook some API function.
wm5: [HKLM\System\GDI\Rotation]
Angle=dword:0
00000000 portrait
0000005a righthanded landscape
0000010e lefthanded landscape
then RegistryNotifyCallback will do
tanks a lot
I will try this way.
But I afraid it will be notified after screen rotation starting.
Adjusting this registry value in regedit tool did't help.
So I suppose this value is changing after rotation is done.
You can delete the start up service of ScreanRotate.
Go to HKLM/Services/ScreanRotate and delete it.
I think before you doing this,you can export it to a reg file
It's not bad idea.
but delete this key leading to system restart for apply
I just try to stop this service.
Not luck : (
This key not present in the registry storage.
I am under WM 5.0
Maybe you talk about some early system.
Hi hoblano, I'm experiencing the same problem, did you find a solution ?
thanks,
Scalposcarno
use task manager 2.7 and stop service...if you know it is service...
same way to stop kbd lights...btw,
I tried, but the result is the same as the one obtained by manually deleting the Screen Rotate voice within the services voices in the registry: avoiding the load of the service providing the icon on the task bar enabling the user to rotate the sceen one or more times by tapping on it.
I still don't understand ... at this point the most probable thing is that the service that rotate the OS screen when rotating by hand the HW screen, is invisible with respect to registry voices and to applications like Task Manager 2.7 or MemMaid. Apart from criticizing the constructor choice (why didn't they thought that someone should have been more comfortable using only one view mode ? e.g. landscape one), is there a way to obtain a list of core services and to avoid one of those to be loaded ? or, otherway, is there a way to intercept the event thrown when manually rotating the screen of the terminal ?
By the way, I'll have to do it with Java ...
thanks all
This may be more of a question specific to WM 6.1 than the Treo Pro itself. I really enjoy using a program that acts as a client to control and listen to my police scanner called Win500. (Main reason for buying Treo Pro with WM). It's a program that uses a custon TCP port via either wifi or evdo. My problem/goal is... I want to turn off the backlight and keep this app running.
I have played with what I think are all my options. Telling the device to turn off backlight after 30 seconds only dims the backlight but it does stay on. I am looking for one of two fixes. Either to be able to keep this program running and passing the audio to the speaker after hitting the top 'off' button. Or somehow have the backlight completely shut off after 30 seconds. Ideally it would be the first option so I could lock the key pad/touchscreen and have the clock screensaver. Possible Registry hack? Could a I make shortcuts with options specific to this program? I see you can turn the backlight all the way off in the settings.. I am a new with WM. So don't know if any of this is possible?
You should search for a registry hack to keep WiFi turned on while the device is in standby. If I'm correct this setting is available in Diamond Tweak, and HD Tweak...
The description for this tweak is: "Keeps WLAN online/connected in standby mode."
The values on the HTC Diamond used are:
1.
Code:
HKLM\System\CurrentControlSet\Control\Power\State\Suspend\{98C5250D-C29A-4985-AE5F-AFE5367E5006}\Default
2.
Code:
HKLM\System\CurrentControlSet\Control\Power\State\Resuming\{98C5250D-C29A-4985-AE5F-AFE5367E5006}\Default
3.
Code:
HKLM\System\CurrentControlSet\Control\Power\State\Unattended\{98C5250D-C29A-4985-AE5F-AFE5367E5006}\Default
I checked this on my Treo Pro. The values are the same.
So just download Diamond Tweak and apply the tweak on your TP.
Don't mess around with other tweaks! Mind that the application is not written for the TP. There are a lot of tweaks that should work since it's both WM6.1. But better safe than sorry Backup your device before applying any tweaks!
Okay thanks I will try that. I do want more than just to keep the wifi running. Also, will need to keep the program running and have it pass audio to the speaker. Plus I use the evdo data more than the wifi. But I will give it a shot.
Use this - works great. I have it set to my HOLD side button.
Here is the Readme for it.
davidck65 said:
Use this - works great. I have it set to my HOLD side button.
Click to expand...
Click to collapse
Thanks a bunch! exactly what I was looking for.
Finally got to try the program and it does work great