yashsingh1/xdaforums huggingface dataset:
[MDA III, XDA III, PDA2k, 9090 General] fusedwire:
I have not paired my phone with any accessory. My bluetooth hardware keeps shutting itself off.

If you claim the GPS receiver works fine, I think its because the application issues a "hold power" statement in it code (Jusst my theory). Something similar to the following code, which keeps backlight always on:

Public Class Backlight
'ensure the power requirement is released
Protected Overrides Sub Finalize()
Release()
End Sub

'handle to the power requirement
Private handle As IntPtr
Private Enum PowerState
PwrDeviceUnspecified = -1
'full on
D0 = 0
'low power
D1 = 1
'standby
D2 = 2
'sleep
D3 = 3
'off
D4 = 4
PwrDeviceMaximum = 5
End Enum

'keep the backlight lit
Public Sub Activate()
'request full power
handle = SetPowerRequirement("BKL1:", PowerState.D0, 1, IntPtr.Zero, 0)
End Sub

'release power requirement
Public Sub Release()
If handle.ToInt32() <> 0 Then
Dim result As Integer
result = ReleasePowerRequirement(handle)
handle = IntPtr.Zero
End If

End Sub

Private Declare Function SetPowerRequirement Lib "coredll.dll" (ByVal pvDevice As String, ByVal DeviceState As PowerState, ByVal DeviceFlags As Integer, ByVal pvSystemState As IntPtr, ByVal StateFlags As Integer) As IntPtr

Private Declare Function ReleasePowerRequirement Lib "coredll.dll" (ByVal handle As IntPtr) As Integer

End Class

End Namespace

The question is can we write a small program, which is always running, that keeps the bluetooth always on?? I dont have the visual studio SDK. Any programmers out here??

-----------------------------------

edited by buzz to put code inside

tags[/size]
[MDA III, XDA III, PDA2k, 9090 General] buzz_lightyear:
i'm phucking confused as well.. :o))))

...and hopefully we are talking about WIDCOMM BT stack.

Not the MS BT stack, where it seems to be working.

buzz
[MDA III, XDA III, PDA2k, 9090 General] ekapco:
Sorry talking about ms stack.

The suspend issue can be solved.

But the turning off when waking up or when powering on with button is not solved !!
[MDA III, XDA III, PDA2k, 9090 General] fusedwire:
ncruz...

Does the bluetooth shut off when u hit the power and resume it when using GPS??

My observations:

1. If the device is not suspended, the bluetooth works flawlessly.

2. If the device is suspended, bluetooth still works, LED's keep flashing - all good.

3. If the device is suspended and we wake it up by hitting the power button or any other key, the bluetooth shuts off.

Once again, I'm talking about the hardware on the phone. I don't use any accessory at the moment (nothing is paired).
[MDA III, XDA III, PDA2k, 9090 General] buzz_lightyear:
in that case, i'd say, that problem is with:

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\State\Resuming]

This is what i have there (Hima):

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\State\Resuming]
"Default"=dword:00000002
"bkl1:"=dword:00000004
"Flags"=dword:10000000

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\State\Resuming\{EB91C7C9-8BF6-4a2d-9AB8-69724EED97D1}]
"Default"=dword:00000004

buzz
[MDA III, XDA III, PDA2k, 9090 General] buzz_lightyear:
So what will happen, if you alter the flags like this:

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\State\Resuming]
"Flags"=dword:10010000

???

buzz
[MDA III, XDA III, PDA2k, 9090 General] fusedwire:
We have the same registry settings, compared it to the kjam as well.

Doesn't work.
[MDA III, XDA III, PDA2k, 9090 General] fusedwire:
Are you talking about logically or physically??

I dont know how the flags work.
[MDA III, XDA III, PDA2k, 9090 General] ncruz:
Nope, were talking about MS BT stack (which doesn't work). I haven't yet tryed the Widcomm stack for wm5...
[MDA III, XDA III, PDA2k, 9090 General] ncruz:
When you use any BT device after you turn the PDA off it will shutdown BT after some minutes and at this point the LED stops blinking...

If you turn on BT but don't use it it will keep on even switching the PDA on or off.
[MDA III, XDA III, PDA2k, 9090 General] efjay:
I think you'll find on your 2nd point even though the light is flashing BT has disconnected and does not work; it is as ncruz said, when the device is suspended after a few minutes BT will shut off but the light still flashes giving the impression BT is still on and working. This can be proved by your bt headset not picking up a call when the device is suspended.

Plus i dont think this is a hardware problem as the device was able to connect to bt with no problems when running WM2003SE. I got the registry dumped from a K-Jam and the registry entries for bt are the same as on the BA so it really looks like its more than a reg entry that will fix the problem. Remember the Universal also has this problem so the problem probably lies in the rom itself.
[MDA III, XDA III, PDA2k, 9090 General] ekapco:
I do not think this is the case because my bluetooth carkit finds the BA and want's to connect to it. So BT is still working !!

But when the BA wakes up when

making

the connection it will turn BT off.
[MDA III, XDA III, PDA2k, 9090 General] efjay:
I find the led will still blink even after bt has shutdown and also turning on bt but not using it doesnt make any difference either, in both cases it still shuts off.

Ive kind of given up on bt working properly, when i need to use bt for my gps i disable all power management for the duration of my journey; of course then bt works ok.
[MDA III, XDA III, PDA2k, 9090 General] efjay:
I cant keep up!! :D Thats an interesting point, of course a headset will try to connect straght away which as you say will then cause the bt to disconnect. Thanks for clarifying

Edit: 200 posts yay!! :D
[MDA III, XDA III, PDA2k, 9090 General] ekapco:
I have the Parrot ck3300 which has a built in GPS

If the carkit detects a previously paired device it asks to connect the gps first and then connects the phone part.

Therefor I know for sure that BT is still working when BA is switched off.

It looks like BA re-initializes the BT when waking up or powering on !!

Thus resetting it to off.
[MDA III, XDA III, PDA2k, 9090 General] Etter:
Nevermind.
[MDA III, XDA III, PDA2k, 9090 General] buzz_lightyear:
hi etter,

that was a good one!

thanx...

btw. we already sleep here. so sorry for not responding. ;o)))

buzz
[MDA III, XDA III, PDA2k, 9090 General] obiesoft:
Bluetooth

ok, so is the bluetoth problem fixed now or is it still draining power, i have not tried to do any reg. edit because i messed something up and had to clear hive and format all to get my phone back. But is the bluetooth better on the exec? i should be getting one for christmas, so i am not sure if i should get the exec or SEP910i. I will still keep my BA because it is a good phone, just no bluetooth
[MDA III, XDA III, PDA2k, 9090 General] odie3:
Edit/Rewrite:

Okay, my issue seems to be like most of the others, WM5 with Microsoft BT Stack turns off on Resume:

BA goes into Powersave [BT is on, Blinking BT Light] and when I hit the power button BT turns off [No Blinking BT Light]. The BT Icon at the bottom right *does* not have a Red line but if I go into BT Manager, BT is unchecked.

Now, I am using sdialer.exe to kick in Microsoft Voice Command.. which if the phone is in sleep BA wakes up fully, Microsoft Voice Command Chimes for a command, I give it a contact. At which point my *BT* Stays ON and I am talking to my contact via my BT headset.

During this post my wife called me, which my BA was in sleep mode. The phone wakes up fully but my BT drops off [BT LED was blinking On during this sleep time]. Note: BT headset is out of range and in my car. Edit: even if Headset is in range the BT turns off on wake up.
[MDA III, XDA III, PDA2k, 9090 General] ulfthomas:
Cont.

Would'nt it be possible to check what it says in the registry of a WM2003SE BA?

I currently have only one device and I am relluctant to reinstall it. :)
[MDA III, XDA III, PDA2k, 9090 General] alexanderjp:
Bluetooth issue this may help

Windows Pocket PC 2003 Yuk!

I purchased a Seimens SX66 and right away put WM5.0 and loved it, however my Bluetooth would turn off after some time and when I hit the power button. This really sucks b/c I use a Bluetooth headset.

I just went back to pocket PC 2003 and realized it is terrible except the Bluetooth works like a charm.

Here are the registry settings on my device with 2003. Can someone try this on a WM5 device to see if this will help with the Bluetooth issue?

HKEY_LOCAL_MACHINE\system\CurrentControlSet\Control\Power\state\on

Default = 00000000

Flags = 00010000

HKEY_LOCAL_MACHINE\system\CurrentControlSet\Control\Power\state\reboot

Default = 00000004

Flags = 00800000

HKEY_LOCAL_MACHINE\system\CurrentControlSet\Control\Power\state\resuming

Default = 00000002

Flags = 00000000

HKEY_LOCAL_MACHINE\system\CurrentControlSet\Control\Power\state\resuming\{eb91c7c9-8bf6-4a2d-9ab8-69724eed97d1}

Default = 00000004

HKEY_LOCAL_MACHINE\system\CurrentControlSet\Control\Power\state\screenoff

Default = 00000000

Flags = 00100000

HKEY_LOCAL_MACHINE\system\CurrentControlSet\Control\Power\state\screenoff\{eb91c7c9-8bf6-4a2d-9ab8-69724eed97d1}

Default = 00000004

HKEY_LOCAL_MACHINE\system\CurrentControlSet\Control\Power\state\suspend

Default = 00000003

Flags = 00200000

HKEY_LOCAL_MACHINE\system\CurrentControlSet\Control\Power\state\suspend\{eb91c7c9-8bf6-4a2d-9ab8-69724eed97d1}

Default = 00000004

HKEY_LOCAL_MACHINE\system\CurrentControlSet\Control\Power\state\unattended

Default = 00000000

Wav1: = 00000004

Flags = 0

HKEY_LOCAL_MACHINE\system\CurrentControlSet\Control\Power\state\unattended\{eb91c7c9-8bf6-4a2d-9ab8-69724eed97d1}

Default = 00000004

This would help out a lot of people.
[MDA III, XDA III, PDA2k, 9090 General] fusedwire:
Re: Bluetooth issue this may help

Alexander, can u check the registry settings for LocalMachine\Drivers\BuiltIn\Bluetooth and post them here??
[MDA III, XDA III, PDA2k, 9090 General] alexanderjp:
I guess there is a limit in the post. I will attach both config registry settings for you.

My problem is, when I set the suspend setting to keep bluetooth active the keyboard no longer works. This is craziness!

There must be a solution.
[MDA III, XDA III, PDA2k, 9090 General] fusedwire:
I just found this from the registry file provided by alexander... any one knws about this??

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\BluetoothRadioOffOverride]

"DllName"="BtFlightModeCtl.dll"
[MDA III, XDA III, PDA2k, 9090 General] alexanderjp:
Here is my current situation.

I have WM5 on my SX66. Everything works fine except bluetooth. When I enable it it will turn off after some time or when I hit the power button.

When I make a change in the registry to the suspend state and set the flag to 100000 from 200000 I can turn my bluetooth on and it will stay on even after I hit the power button on and off. The only thing is the keyboard does not work.

If I soft reset the unit with this change the bluetooth and keyboard work fine, only after I turn off the unit and turn it back on the keyboard stops.

I guess this is what everyone else is having?

What is the relationship with the bluetooth and the keyborad?

Is there a driver conflict?

Why does it work after soft reset and when the power button is used one of them stops depending on the flags?

What does the power button do that differs from the soft reset?

What is the meaning of life?

:shock:
[MDA III, XDA III, PDA2k, 9090 General] fucsia:
same here

I have the same experience. After doing the registry change the bluetooth stays on even after turnin off the device. But in this state it drains a lot of battery and responds to all the buttons, even if locked. Keyboard stops workin untill reboot.

Bluetooth remains the major problem !!
[MDA III, XDA III, PDA2k, 9090 General] alexanderjp:
Here is an update to my findings regarding BT and the power button.

I noticed in the registry: hklm\system\state\hardware is see 'Bluetooth with the value of 0 as well as Handsfree=0 and Cradled=0

When I check to enable Bluetooth this value changes to 1.

When I turn off the unit and turn it back on the value changes back to 0

I tried removing the Bluetooth dword to see what would happen and the dword entry was recreated after I hit the power button.

I then tried deleting the hardware key all together and the key was restored.

Is there a relation between a driver or the power button changing the 'hardware' key to default values of 0?

Is there a way to set the registry entry and prevent it from being changed?
[MDA III, XDA III, PDA2k, 9090 General] Mikee4fun:
YaY, I hope this works on my apache, because so far out of the wm5 roms the apache shipped rom sucksssssssssssssssssssssssssssss

Mike
[MDA III, XDA III, PDA2k, 9090 General] baeshin81:
When I use PHM Registry Editor, It gives me several options for the DWORD.

Is it in Binary, Decimal, or Hexidecimal or do i need to edit my binary data?

Quick answer is appreciated
[MDA III, XDA III, PDA2k, 9090 General] Sova:
so, no solution for battary draining yet?

I'll flash back to 2003se with no voice dial, but my battary will work 2-3 days insted of half-one day.
[MDA III, XDA III, PDA2k, 9090 General] MargaL:
Anybody got WIDCOMM BT stack running on 8125 yet?
[MDA III, XDA III, PDA2k, 9090 General] jake0840:
ok bt fixed now how about a bt scanner for the broadcomm set

I have a great pda BT scanner for the windows BT chipset but anyone found a good one for the braodcomm set ?
[MDA III, XDA III, PDA2k, 9090 General] markw2:
has anyone managed to fix this yet seems one of the main problems that needs fixing

so to make sure this topic is correct

i wanna know how to stop bluetooth going off!

it doesant go off if i disable all power stuff and let the device backlight go off but i would of thought this will drain more power since the device is still on just no backlight.

there must be a simple fix for this somehow but seems its baffling everyone this is certainly sommit that needs sortin as so many of us use it for handsfree now.

hellllllpppp:eek: :eek: :eek:
[MDA III, XDA III, PDA2k, 9090 General] johnny--2k:
well, this has worked great for my BT with my car, and the keyboard seems to work, but the battery drain is a killer.

Hoping for a battery drain fix!!
[MDA III, XDA III, PDA2k, 9090 General] tonyc9:
Guys I have a problem with my bluetooth and my dopod. It connects then disconnects.

I have also noticed that the systems unchecks the "turn on bluetooth" check box and the "make this device discoverable to other devices"

Does anyone have any ideas?

Guys I just read this at another forum.

"The Dopod 838 pro and WM5 have chronic problems with the bluetooth stack, which is why everyone is waiting for the new ROM to appear, which will hopefully be WM6. HTC (manufacturers of Dopod 838 pro) announced that the new ROM will fix all of the known problems"

This I learn after having a car accident (minor) in my car playing with the bluetooth and trying to get it to work. Hutchison 3g should only be selling these with a warning.

I assume there is also a problem with the JasJam as they are the same phone.
[MDA III, XDA III, PDA2k, 9090 General] wakakaka7:
hello...

im using xda IIs and upgrade to WM5..got 1 problem regarding bluetooth...i cannot receive any file from any type of hp but i can send them files..and they cant search me..any solution..? tq
[MDA III, XDA III, PDA2k, 9090 General] johnny--2k:
has anyone figured out a fix for the battery issue? It's really getting on my nerves now!
[MDA III, XDA III, PDA2k, 9090 General] ballain:
Problem Fixed by dealer

Hi, i had a ppc-6600 from bell mobility/Aliant in canada,

had the same problem , bluetooth was shutting off and i had to wait 4-5 ring for it to detect headset. I bring the headset to the dealer, (i had the gold warranty), and they send it for repair.

They changed the board and BT radio hardware, now under radio version

it is : HA00_144 and its working great, can turn off device without cutting off connection, headset button work and everything seem to be as it should.

You might want to try to push dealer on this issue, they didnt want to send it at first. As in the battery charge well I will post folllow up on that, just received it today.

once again radio version change from HA01_141 (I think) and now HA00_144 and working great. :cool:
[MDA III, XDA III, PDA2k, 9090 General] johnny--2k:
ok someone has to have a fix for the battery drain. It's getting really annoying...
[MDA III, XDA III, PDA2k, 9090 General] johnny--2k:
bueller.......bueller......

anyone with a battery fix yet? Come on guys, this is ridiculous
[MDA III, XDA III, PDA2k, 9090 General] JonGoten:
Any way to fix the battery drain by now?
[MDA III, XDA III, PDA2k, 9090 General] pharmeceutikle:
Anyway of maybe doing an automatic reconnect?

Instead of maybe figuring out a way to have the BT never disconnect, has there been anyone whose trying to find out how BT can be forced to reconnect automatically after being disconnected? I doubt through any registry hacks, but maybe an app that may do it.
[MDA III, XDA III, PDA2k, 9090 General] Zero|Cool:
omg i searched 13hours straight into the web tryin to find out why my BT goes off in my TYTN and I ended up in the forum again. U just gotta make come here everytime dont ya? :D at least now i know its not my hermes problem, its all hermes problem :rolleyes:
[Galaxy Note 8.0 (Tablet) Q&A, Help & Troubleshooti] greenm:
Where can i find the official 4.2.2 version released by Samsung for Note 5100? Is there a direct link? Does my tablet have to be rooted to install the 4.2.2 version?
[Galaxy Note 8.0 (Tablet) Q&A, Help & Troubleshooti] Elpidio:
here:

http://samsung-updates.com/device/?id=GT-N5100
[Galaxy Note 8.0 (Tablet) Q&A, Help & Troubleshooti] greenm:
can i install from any region even if my region currently does not have the 4.2 version? are there any step by step instructions? i don't want to brick my phone, my tablet is not rooted does it have to be? thanks so much
[Galaxy Note 8.0 (Tablet) Q&A, Help & Troubleshooti] tourist2:
Mine got updated to 4.2.2 over wifi today. I did not know it was for 4.2.2. I thought it was for a regular update. Anyway, mine is now running 8.2.2 and lost the multiple windows function.:crying:

I am in USA.
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] mongonexus:
hey guys, bought the note 3 tmo version, unlocked from cellunlocker , get all signal on att gophone except LTE, put correct apn settings in but not seeing LTE at this time, please help a fella in trouble,,thankyou,,steve
[Sony Xperia P, U, Sola, Go] KING STING3R:
Last night my phone was working just fine. When I woke up in morning it was showing me problems when launch anything, whenever I launch anything error pops up "unfortunately, the process android.process.acore has crashed". Not only this but viber, outlook, whatsapp and GAPPS are automatically crashing I cant even install antivirus from play store.

Please help me fix the problem it is getting real annoying.... FAST,

thanks
[Sony Xperia P, U, Sola, Go] Ben36:
get to the settings /apps/all screen (it may take some time) and clear contacts and contacts storage
[Sony Xperia P, U, Sola, Go] thomasneville:
Any other suggestions? i 'clear data' 'force stop' are highlighted but nothing happens after i press them
[Sony Xperia P, U, Sola, Go] ChikeD:
Root, BL locked unlocked?

I would say clear dalvik-cache for a start..
[Xperia Z1 Q&A, Help & Troubleshooting] redkelah:
Got my spanking new white Z1 downunder australia today. Lucky to get a nice non color tinted screen. Only thing is the gamma seems a tad too high especially the top of the screen, the LED backlighting seems to come from there. Even with a black picture there is some whitish brightness to it.

otherwise videos are very vivid in color. Viewing from the side is the usual slightly washed out coloration as in other sony panels from what i read.

any apps to tune down the gamma or just wait till next official firmware fix??
[Verizon HTC One (M7)] bmt626:
Please note you must be bootloader unlocked and S-OFF for this to work

you are doing this at your own risk dont blame me if something goes wrong i have tested this twice one on CM and once on Stock

that being said

:D

This guide will help you return to stock un-rooted, locked, and s-on in the event you ever need to use the warranty

You will need the decrypted RUU from here

http://xdaforums.com/showthread.php...rums.com/showpost.php?p=46153741&postcount=31

I recommend copy and paste for the command so you don’t mistype something

This will lock your bootloader and make it show LOCKED not RELOCKED

While still in the bootloader type

Fastboot oem rebootRUU

Once in ruu mode *blackscreen with HTC text* its time to flash the decrypted ruu make sure you have placed the rom in the folder and named it Rom.zip

Run following command

Fastboot flash zip Rom.zip

It appears some people are confused on the following. You must confirm your device successfully flashes the ruu before contiuning

It could work the first time or could error out multiple times typically it fails the first time then completes the 2nd bu not a promise also make sure you have checked the md5 hash

You will most likely get the following error

FAILED (remote: 90 hboot pre-update! please flush image again immediately)

Don’t worry this is normal (typically fails the first time) (also it could boot you out of ruu mode when it does) just make sure your phone still shows its in ruu mode

If it is not just retype

fastboot oem rebootRUU

Then re-run the command

Fastboot flash zip Rom.zip

Once it finishes the phone will stay in ruu mode simply type

Fastboot reboot-bootloader

At this point you are stock unrooted and bootloader locked but still s-off to change this type

fastboot oem writesecureflag 3

you should get a message back saying

“(bootloader) writesecureflag: partitions signature pass

OKAY [ 1.666s]

finished. total time: 1.666s”

now type

fastboot reboot-bootloader

and verify you are now S-ON andtype

fastboot reboot

and your phone will load to stock

note this will be stock version m7wlv_1.10.605.8 so you will need to take the ota to update to 605.10

hope this helps
[Verizon HTC One (M7)] Frankie1588:
Thanks for this!
[Verizon HTC One (M7)] Zwitterion:
Fantastic Post

Thanks so much for this.
[Verizon HTC One (M7)] bmt626:
hope it helps i did it twice before making the post to make sure dont wanna lead anyone down wrong direction
[Verizon HTC One (M7)] tpierce67:
I need HELP! I read the BIG RED PRINT about being bootloader unlocked but I still foolishly locked the bootloader prior to running this......I'm still S-Off but it will not flash the RUU. And now it is in a boot loop into recovery. I've tried running the lock unlock ADB scipt but I can't seem to get the device to connect in ADB mode.....fastboot works fine.

Hopefully I don't have a nice looking paper weight.

and BTW the reason i locked the BL is because I was reading other info on the web ( Youtube ) and got in a hurry.....LET THIS BE A REMINDER.
[Verizon HTC One (M7)] bmt626:
You do need to lock the bootloader at one point in my guide

What command did you run to lock the boot loader

Adb only works when booted in to a os

My advice is boot into bootloader then flash a custom recovery and flash cm from cm run unlock command in adb and try again following my directions
[Verizon HTC One (M7)] tpierce67:
Thanks for the assit. I ran fastoot oem lock as the first step. I saw a couple of vids on youtube with those instructions. I will try your suggestions and see what happens. I left the phone at work cause I have iMac at home and I figured it was a paper weight at this point. Hopefully I will have better luck tomorrow.
[Verizon HTC One (M7)] bmt626:
just run this command from an

adb shell
su
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796

that should make it read unlocked again i ran fastboot oem lock when i was first testing and that command got me back
[Verizon HTC One (M7)] bmt626:
let me know if you have issues ill be happy to help out