WiFi AlwaysOn New Solution! (WiFi in Standby) - HD2 Windows Mobile 6.5 Themes and Apps

For those of you that are looking for a more permanent solution without the hassle of using mortscripts and apps that run everytime you start your device then look no further. Just simply change or add if they dont exist, the following registry keys:
Key: HKLM\Comm\BCMSDDHD1\Parms
Name: SuspendOffDelayInterval
Default Value: 30000
New Value: 0
Key: HKLM\Comm\BCMSDDHD1\Parms
Name: WlanAlwaysOnEnable
Default Value: 0
New Value: 1
And you are done! Also try soft resetting! You will see the values keep!
No other registry changes are necessary!
This is also being incorported into Touch Tools 2 to make things even easier for people!
Enjoy!

Nice find! Thanks mate

super,diky

thanks dude...

I found my value to be 2 and Wifi is not switching off on standby.
So you may try only with:
Key: HKLM\Comm\BCMSDDHD1\Parms
Name: WlanAlwaysOnEnable
Default Value: 0
New Value: 2
May be it will do.

kuwait said:
I found my value to be 2 and Wifi is not switching off on standby.
So you may try only with:
Key: HKLM\Comm\BCMSDDHD1\Parms
Name: WlanAlwaysOnEnable
Default Value: 0
New Value: 2
May be it will do.
Click to expand...
Click to collapse
Thats unusual, would have thought an 'Enable' parameter would either be 1 or 0.

nice find
thanks for the tip

genius! thanks so much.....
eagerly awaiting touch tools 2 btw .....

I guess this worked for me! thank you sir!

Great! Excited to try it.

Related

easy and quick way to make a reg. cab?

Hi,
everytime I make a ROM flash (very often) I have to do some reg hacks to get my unit syncing (due to our firewire at work).
Is there a quick and easy way I can make a cab do this work for me?
the entry is:
Reg Sub Key: [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RNDIS]
Name of value to add: MTU
Type: DWORD
Data: 1514 (Value is in Decimal)
Reg Sub Key: [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RNDIS]
Name of Value to add: MaxOutTransfer
Type: DWORD
Data: 1642 (Value is in Decimal)
hi, does anyone have a clue how to do this?

Vox Menu Background?

Found this:
For the advanced user (involves registry modification) - but well worth doing:
How to set the start menu background image (note: you only have to do the registry modifications once
on your device - if you done them before you don't have to do this again - just copy the image over):
In a registry editor go to this key:
HKLM/Software/Microsoft/Shell/Rai/:MSStart
Check if you have an entry called "BKBitmapFile". If you do not, create a new "String" value.
Name : BKBitmapFile
Value data: \Application Data\Home\{Image}
Add the following lines to the same key :MSStart
a Dword value with the name BKBitmapLogPixelsX and the data value 131 in decimal
a Dword value with the name BKBitmapLogPixelsY and the data value 131 in decimal
a Dword value with the name BKBitmapTransparent and the data value 16711935 in decimal
a Dword value with the name BKDefaultGradient and the data value 1 in decimal
a Dword value with the name BKFlags and the data value 26 in decimal
and finally a String value with the name BKUnselected and the value data COLOR_ALERTWINDOW
Copy {Image} to
\Application Data\Home\
Soft-reset your device.
(I take no responsability for these modifications - modify the registry at your own risk).
(From Juni's Skins WM6 Skin Instructions... http://www.juniskins.com)
Has anyone tried?
NOT WORKING
still looking for a working method.

Force Titanium to Refresh?

This is hopefully painfully easy for experienced developers on here, but I've googled till my fingers bled and have not been able to find a suitable answer.
How do I force the Titanium menu in WM6.5 to refresh... i.e. pick up new data from the Windows registry?
For the old "Today" screen, advice seems to be use the Send Message command to broadbast an INI change to all open Windows:
Code:
Public Shared HWND_BROADCAST As IntPtr = IntPtr.op_Explicit(&HFFFF)
Public Const WM_WININICHANGE = &H1A
---------------------------------------
ret = SendMessage(HWND_BROADCAST, WM_WININICHANGE, 252, 0)
But this doesn't seem to be working for Titanium.
Anyone got any ideas?
I'm just using the refresh Titanium.exe which can be found in Twolf's Multiplugin Cab found here: http://forum.xda-developers.com/showthread.php?p=3906994
Thanks for the link.
Couldn't see any exes in the cab, just what I assume are mortscripts. Do you write you apps in .NET or in mortscript? If the former, how do you "shell" the script from within your program?
digital_elysium said:
Thanks for the link.
Couldn't see any exes in the cab, just what I assume are mortscripts. Do you write you apps in .NET or in mortscript? If the former, how do you "shell" the script from within your program?
Click to expand...
Click to collapse
Me & Twolf, use mortscript, the plugin you see there is by Twolf.
Owh yh, it probably is the Refresh Titanium.mscr, which i ment, there's just a link made in the start menu folder. Refresh Titanium will refresh the today screen...
To use it in another mortscript file, just use: Run(\Program Files\...\Refresh Titanium.mscr) where ... stands for the folder where you put it in...
Maybe a bit off topic but does somone know what is the command to disable and enable (not refresh) the today screen in wm6.5? I need it for use in a mort script.
claus1953 said:
Maybe a bit off topic but does somone know what is the command to disable and enable (not refresh) the today screen in wm6.5? I need it for use in a mort script.
Click to expand...
Click to collapse
I don't really know, but i wonder why Twolf uses double RefreshToday in his mscr. So maybe just one time will disable it?:s not sure.
---edit---
i figured it out for you claus...
So first write 0 (for disable) to: HKEY_LOCAL_MACHINE\Software\Microsoft\Today\Items\"Windows Default":Enabled
Then RedrawToday
Now today screen will be empty and you can do whatever you want...
larbke666 said:
I don't really know, but i wonder why Twolf uses double RefreshToday in his mscr. So maybe just one time will disable it?:s not sure.
---edit---
i figured it out for you claus...
So first write 0 (for disable) to: HKEY_LOCAL_MACHINE\Software\Microsoft\Today\Items\"Windows Default":Enabled
Then RedrawToday
Now today screen will be empty and you can do whatever you want...
Click to expand...
Click to collapse
Thanks a lot, it worked
Sorry, only read this now.
I used to use the refresh.exe made by a forum menber (I have no idea who... ).
Now Im using only the today refresh option of Mortscript that is simply:
Code:
RedrawToday
claus1953 said:
Thanks a lot, it worked
Click to expand...
Click to collapse
Hi,
I don't know much about mortscript, I am looking for one that will reload Windows Default after I change the cpr ( I hope this is what you are talking about )
In case you dont have it yet...
Thanks Twolf, my life is easier now
digital_elysium said:
This is hopefully painfully easy for experienced developers on here, but I've googled till my fingers bled and have not been able to find a suitable answer.
How do I force the Titanium menu in WM6.5 to refresh... i.e. pick up new data from the Windows registry?
For the old "Today" screen, advice seems to be use the Send Message command to broadbast an INI change to all open Windows:
Code:
Public Shared HWND_BROADCAST As IntPtr = IntPtr.op_Explicit(&HFFFF)
Public Const WM_WININICHANGE = &H1A
---------------------------------------
ret = SendMessage(HWND_BROADCAST, WM_WININICHANGE, 252, 0)
But this doesn't seem to be working for Titanium.
Anyone got any ideas?
Click to expand...
Click to collapse
I don't know if you still want to do this in .net but here is the working code:
Declare Function SendMessage Lib "coredll.dll" (ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As IntPtr
Declare Function GetDesktopWindow Lib "coredll.dll" () As IntPtr
Private Const WM_WININICHANGE As Long = &H1A ' 0x1a = 26 ; &HF2 = 242
SendMessage(GetDesktopWindow(), WM_WININICHANGE, &HF2, 0)
Click to expand...
Click to collapse
have fun!

[DEV][TUTORIAL] How to poll GPIO values from Haret

In case you need to know how to poll GPIO values from photon, here is a small how-to:
First of all, read THIS:
http://htc-linux.org/wiki/index.php?title=HaRET_Documentation#Polling_GPIOs
To disable automatic launch of Android when you execute HarET, you must rename your file "startup.txt" to "default.txt"
The issue is, when you poll for GPIOs with Haret, you got a numeric value that does not match with GPIOs in Linux (board-photon.h)
To translate "HarET GPIO" to "Linux GPIO", here is a trick:
Haret gives you this line:
009.179 GPIOS 92f00808(117)=300100
Click to expand...
Click to collapse
Take the number between parenthesis: 117
Divide it by 32:
117/32 = 3, rest = 21
3 is the GPIO bank:
bank0 = 0 to 15
bank1 = 16 to 42
bank2 = 43 to 67
bank3 = 68 to 94
bank4 = 95 to 106
bank5 = 107 to 121
in our example, bank3 starts at value 68, so the Linux GPIO is:
68 + 21(rest of division) = 89
note: if the bank number is higher than 5, it means it is the following bank, or the one after. in this case, remove 6 or 12 to the bank number so you have a value between 0 and 5, and do the normal computation.
I must to say THANK YOU!
hmm I not understand (rest) I got 3,65625 (bank 3, rest 65626)
r0bin said:
117/32 = 3, rest = 21
Click to expand...
Click to collapse
Also next situation:
057.215 GPIOS 92f0083c(313)=61c8102
9,78125 (bank 9, rest 78125)
munjeni said:
hmm I not understand (rest) I got 3,65625 (bank 3, rest 65626)
Also next situation:
057.215 GPIOS 92f0083c(313)=61c8102
9,78125 (bank 9, rest 78125)
Click to expand...
Click to collapse
lol
on my sample, another way to say it:
117/32 = (3 * 32) + 21
or:
117/32 = 3.65625, you take the 3, rest 0.65625 * 32 = 21
in your case:
303/32 = 9.78125, you take the 9, rest 0.78125 * 32 = 25
9 is too big, remove 6 => it's bank3
bank3 = 68+25 = 93
in board-photon.h, it is defined like:
LIBERTY_GPIO_LS_EN 93
in the code (board-photon.c) it seems it's the GPIO for power
thanks, understand now \o/
Hi,
I got slightly different format for GPIOS.
Please refer to here
http://pastebin.com/xr4p3cd8
How to I convert them?
Thanks in advance

[Tasker] Hidden Photo Backup! [Also App-idea]

Dear XDA-Members
After some have requested me to post my tasker profile here is a noob friendly walk trough.
This is the first time I make a tutorial like this so any corrections are more then welcome (since English isn't my native language)
I haven't made this fully on my own, some ideas I got from other posts.
So here it goes:
It was hard to find a good trigger for the task to start and I decided to add it to opening/closing of the camera app.
Profiles:
Application -> (Your default photo app (you can add more then one)
Start task:
Variable / Variable set / name = %Camerastart / To %TIMES - 15 //Set a variable so you can later compare which photos are new and which are old
Exit task:
1. File / List FIles / Dir = DCIM/Camera (Location of the map the photos go in) / Match = *.jpg / Variable = %Files // For each file in the folder create a variable
2. Task / For / Variable = %File / Items = %Files(1 // For every variable do the next loop
-3. File / Test File / Type = Modified / Data = %File / Store result In = %Filetime / Continue Task After Error = True // Look when the photo was taken (modified)
-4. Task / If / Condition = %Filetime > %Camerastart // Compare the variables to see if the photo is either new or old
--5. File / Copy File / From = %File / To = DCIM/Backup (Location of folder you want to copy the new photos too) / (Use root = true // optional) // If true copy the photo to another map
-6. Task / End If // Self explanatory
7. Task / End for // End the loop
I Hope you guys liked this tutorial and I helped some of you out.
I also uploaded the .txt file, rename it to .xml so you can easily import it to tasker. (This was made with the newest version (4.5u1)
Edit: Forgot to add one thing, add a file named .nomedia to the folder where you place the extra photos (Do this with root explorer or some other that displays hidden items), this will prevent the photos from displaying in the gallery app.
// Old
Dear XDA-Members,
I'm not sure if something like this already exists but after a while of searching I haven't found anything like this.
We probably all had one of those moments in our life that we took a photo of something or someone that we wanted to keep really badly but someone forced us to delete it from the gallery.
So my idea was that after a photo gets taken by the camera app and saved to the default location /sdcard/DCIM/camera (or other place, dependence on the camera app (possibly customizable setting?)) a backup is instantly made to a folder (of choice) that isn't displayed in any gallery. And I know dropbox could instantly sync this to the cloud but this firstly drains my data plan and you can't save it locally and only on the cloud (not talking about the huge amount of battery that is drained).
Maybe it's easier to make a camera app that saves a photo on 2 places (one displayed in the gallery and the other one is saved in a secret folder that you can assign yourself and see with the most file browsers.)
I hope you guys like this idea and maybe someone could work this out if they have the time for it.
tldr; Lightweight app that secretly 'backups' photos to a secret folder that isn't displayed in the gallery app.
Sorry for my English, it isn't my native language.
Tasker can do that
Tasker?
mushipkw said:
Tasker can do that
Click to expand...
Click to collapse
What would be the trigger event then?
I have explored all the tasker options but weren't able to find anything that could reproduce this.
Tasker worked
Mikhail5555 said:
What would be the trigger event then?
I have explored all the tasker options but weren't able to find anything that could reproduce this.
Click to expand...
Click to collapse
Wow, I can't believe how powerful tasker actually is.
I managed to make a task for backing up photos made by my standard camera. It took me an hour but it is working now.
If anyone interested in the task send me a pm and I will send the task.
Mikhail5555 said:
Dear XDA-Members
After some have requested me to post my tasker profile here is a noob friendly walk trough.
This is the first time I make a tutorial like this so any corrections are more then welcome (since English isn't my native language)
I haven't made this fully on my own, some ideas I got from other posts.
So here it goes:
It was hard to find a good trigger for the task to start and I decided to add it to opening/closing of the camera app.
Profiles:
Application -> (Your default photo app (you can add more then one)
Start task:
Variable / Variable set / name = %Camerastart / To %TIMES - 15 //Set a variable so you can later compare which photos are new and which are old
Exit task:
1. File / List FIles / Dir = DCIM/Camera (Location of the map the photos go in) / Match = *.jpg / Variable = %Files // For each file in the folder create a variable
2. Task / For / Variable = %File / Items = %Files(1 // For every variable do the next loop
-3. File / Test File / Type = Modified / Data = %File / Store result In = %Filetime / Continue Task After Error = True // Look when the photo was taken (modified)
-4. Task / If / Condition = %Filetime > %Camerastart // Compare the variables to see if the photo is either new or old
--5. File / Copy File / From = %File / To = DCIM/Backup (Location of folder you want to copy the new photos too) / (Use root = true // optional) // If true copy the photo to another map
-6. Task / End If // Self explanatory
7. Task / End for // End the loop
I Hope you guys liked this tutorial and I helped some of you out.
I also uploaded the .txt file, rename it to .xml so you can easily import it to tasker. (This was made with the newest version (4.5u1)
// Old
Dear XDA-Members,
I'm not sure if something like this already exists but after a while of searching I haven't found anything like this.
We probably all had one of those moments in our life that we took a photo of something or someone that we wanted to keep really badly but someone forced us to delete it from the gallery.
So my idea was that after a photo gets taken by the camera app and saved to the default location /sdcard/DCIM/camera (or other place, dependence on the camera app (possibly customizable setting?)) a backup is instantly made to a folder (of choice) that isn't displayed in any gallery. And I know dropbox could instantly sync this to the cloud but this firstly drains my data plan and you can't save it locally and only on the cloud (not talking about the huge amount of battery that is drained).
Maybe it's easier to make a camera app that saves a photo on 2 places (one displayed in the gallery and the other one is saved in a secret folder that you can assign yourself and see with the most file browsers.)
I hope you guys like this idea and maybe someone could work this out if they have the time for it.
tldr; Lightweight app that secretly 'backups' photos to a secret folder that isn't displayed in the gallery app.
Sorry for my English, it isn't my native language.
Click to expand...
Click to collapse
Excellent, just what i was looking for. Great tutorial.
---------- Post added at 01:29 AM ---------- Previous post was at 01:19 AM ----------
Might want to change the title of the post
Since your request was pretty much solved by yourself.
GerManiac said:
Excellent, just what i was looking for. Great tutorial.
---------- Post added at 01:29 AM ---------- Previous post was at 01:19 AM ----------
Might want to change the title of the post
Since your request was pretty much solved by yourself.
Click to expand...
Click to collapse
Completely forgot about the title, sorry [emoji15]
How you import?
eloko said:
How you import?
Click to expand...
Click to collapse
Just follow the instructions and make it yourself, the directories might not work if you import
eloko said:
How you import?
Click to expand...
Click to collapse
Otherwise download the .txt file, rename it to .xml and import it into tasker. (Don't forget to change the dirs)
Mikhail5555 said:
Otherwise download the .txt file, rename it to .xml and import it into tasker. (Don't forget to change the dirs)
Click to expand...
Click to collapse
I don't see the option to import.
I try when I have the chance to be on pc.
Thanks
Mikhail5555 said:
Exit task:
1. File / List FIles / Dir = DCIM/Camera (Location of the map the photos go in) / Match = *.jpg / Variable = %Files // For each file in the folder create a variable
Click to expand...
Click to collapse
Thanks for the very nice tutorial of yours
I have a question or rather a problem!
What if I wanted to make a backup of videos too, how should I add to the list?
M S T F said:
Thanks for the very nice tutorial of yours
I have a question or rather a problem!
What if I wanted to make a backup of videos too, how should I add to the list?
Click to expand...
Click to collapse
Thanks for the nice words, It is actually pretty easy to add more files to the list of items that are gettings copied.
Exit task:
1. File / List FIles / Dir = DCIM/Camera (Location of the map the photos go in) / Match = *.jpg / Variable = %Files // For each file in the folder create a variable
Just edit the "Match = *.jpg" to for instant "Match = *.jpg/*.mp4/*.png".
The / means OR so you can add almost all the file extentions that you want and/or need.
Don't forget the scan will take longer the more items you add.
Mikhail5555 said:
Thanks for the nice words, It is actually pretty easy to add more files to the list of items that are gettings copied.
Exit task:
1. File / List FIles / Dir = DCIM/Camera (Location of the map the photos go in) / Match = *.jpg / Variable = %Files // For each file in the folder create a variable
Just edit the "Match = *.jpg" to for instant "Match = *.jpg/*.mp4/*.png".
The / means OR so you can add almost all the file extentions that you want and/or need.
Don't forget the scan will take longer the more items you add.
Click to expand...
Click to collapse
Thanks for the reply,
After adding mp4 to the list I ran into error, as you can see in the following screenshot.
Actually the remaining photos after the first video file in the folder aren't backed up. but the first video file itself is copied to the destination folder.
Any idea what could be the reason
M S T F said:
Thanks for the reply,
After adding mp4 to the list I ran into error, as you can see in the following screenshot.
Actually the remaining photos after the first video file in the folder aren't backed up. but the first video file itself is copied to the destination folder.
Any idea what could be the reason
Click to expand...
Click to collapse
Try disabling 'use root', i'm not sure why the copying times out though
Could you also show the bottem lines from the error that tasker gives?
Mikhail5555 said:
Try disabling 'use root', i'm not sure why the copying times out though
Could you also show the bottem lines from the error that tasker gives?
Click to expand...
Click to collapse
Here I have copied the whole log for your consideration. I am looking forward for a solution.:good:
Code:
16.28.14/Variables doreplresult: |%File| -> |/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4|
16.28.14/Variables doreplresult: |%File| -> |/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4|
16.28.14/Shell runSync test -e '/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4' root: true timeout: 3000
16.28.14/Shell have process
16.28.14/Shell write cmd: test -e '/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4'
16.28.14/Shell start process timeout timer 3000ms for: test -e '/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4'
16.28.14/Shell start process-thread ID 530
16.28.14/Shell joined with 530
16.28.14/Shell exit result: 0
16.28.14/Shell non-null timeout
16.28.14/Shell runSync test -f '/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4' root: true timeout: 3000
16.28.14/Shell have process
16.28.14/Shell write cmd: test -f '/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4'
16.28.14/Shell start process timeout timer 3000ms for: test -f '/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4'
16.28.14/Shell start process-thread ID 532
16.28.14/Shell joined with 532
16.28.14/Shell exit result: 0
16.28.14/Shell non-null timeout
16.28.14/Shell runSync test -d '/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4' root: true timeout: 3000
16.28.14/Shell have process
16.28.14/Shell write cmd: test -d '/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4'
16.28.14/Shell start process timeout timer 3000ms for: test -d '/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4'
16.28.14/Shell start process-thread ID 534
16.28.15/Shell joined with 534
16.28.15/Shell exit result: 1
16.28.15/Shell non-null timeout
16.28.15/Shell runSync test -e '/storage/extSdCard/Camera-Backup' root: true timeout: 3000
16.28.15/Shell have process
16.28.15/Shell write cmd: test -e '/storage/extSdCard/Camera-Backup'
16.28.15/Shell start process timeout timer 3000ms for: test -e '/storage/extSdCard/Camera-Backup'
16.28.15/Shell start process-thread ID 536
16.28.15/Shell joined with 536
16.28.15/Shell exit result: 0
16.28.15/Shell non-null timeout
16.28.15/Shell runSync test -f '/storage/extSdCard/Camera-Backup' root: true timeout: 3000
16.28.15/Shell have process
16.28.15/Shell write cmd: test -f '/storage/extSdCard/Camera-Backup'
16.28.15/Shell start process timeout timer 3000ms for: test -f '/storage/extSdCard/Camera-Backup'
16.28.15/Shell start process-thread ID 538
16.28.15/Shell joined with 538
16.28.15/Shell exit result: 1
16.28.15/Shell non-null timeout
16.28.15/Shell runSync test -d '/storage/extSdCard/Camera-Backup' root: true timeout: 3000
16.28.15/Shell have process
16.28.15/Shell write cmd: test -d '/storage/extSdCard/Camera-Backup'
16.28.15/Shell start process timeout timer 3000ms for: test -d '/storage/extSdCard/Camera-Backup'
16.28.15/Shell start process-thread ID 540
16.28.15/Shell joined with 540
16.28.15/Shell exit result: 0
16.28.15/Shell non-null timeout
16.28.15/Shell runSync cp '/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4' '/storage/extSdCard/Camera-Backup' root: true timeout: 7000
16.28.15/Shell have process
16.28.15/Shell write cmd: cp '/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4' '/storage/extSdCard/Camera-Backup'
16.28.15/Shell start process timeout timer 7000ms for: cp '/storage/extSdCard/DCIM/CamTest/20140905_182414.mp4' '/storage/extSdCard/Camera-Backup'
16.28.15/Shell start process-thread ID 542
16.28.22/Shell joined with 542
16.28.22/Shell exit result: 9
16.28.22/Shell non-null timeout

Categories

Resources