yashsingh1/xdaforums huggingface dataset:
[Windows Mobile] caliban2:
just stumbling through the code... ;)

i'm not at home and recalling this from memory, but maybe the orientation-change isn't in phcanrc. cprog.exe calls all phone.dlls, that i can see with dotfred's taskmgr. but cprog.exe isn't changed by phonecanvas, so which dll manages what to do and which id to call from phcanrc.dll?!

crap. i think i can stop dreaming about ever having 5.0 running in landscape. :D
[Windows Mobile] Laurentius26:
Just giving you my taughts.

I think landscape phonecanvas only works on devices with a hardware keyboard.

If you slide out the keyboard it holds the dialer in landscape.

I've tried about all the dialers available on HD2; Rhodium, Oboe, Topaz and Huashan.

I've also cooked a rom with all Rhodium packages on HD2.

Just try one time what I did, a rom without a phonecanvas and put the reg key to rotate cprog.exe.

Hold your device in landscape and call it without opening the dialer.

You will notice the MS notification for incoming call is popping up in portrait.

Next open the dialer in landscape and call again.

You will notice the notification also works in landscape.

Answering the call doesn't rotate the dialer to portrait.

So I think our answer is in that popup, but I don't know yet how to disable it.

Instead of that popup the dialer should open, the G-Sensor would keep it in landscape.
[Windows Mobile] caliban2:
don't think it's related to hw-keyb. you see, with huashan-dialer i tried landscape with keyb out and with just screen rotated (hw-keyb not out) by using a hw-button (screen-rotation of winmo) or while gps-navigating in landscape.

phonecanvas 5.0 stays in landscape while incoming call, always. it just doesn't show me anything than a blank page (with taskbar and button-bar)

so somehow it doesn't trigger the switch.

4.2 from rhodium, which is landscape-enabled by htc, also rotates to portrait when receiving a call. so either htc never cared OR it isn't possible to prevent it. but then, why doesn't 5.0 rotate?

if you compare rgu's from 4.2 and 5.0 you'll notice that 5.0 does have landscape-keys, for example:

[HKEY_LOCAL_MACHINE\Security\Phone\Skin\DIALER\landscape\other]
"bmpNormal"="\\windows\\Dialer_Bkgnd_Land.png"

that png is just a grey 800x83 bar, but it's there, used to show at least something while in landscape i guess. reg's for font-size and -color in landscape are also in there. but other stuff is lacking (phcanimages2.dll).

there has to be an answer in there for your problem, i'm sure of that. :)

edit:

that reg-key above is from an unaltered dump. if i add the ls-keys from rhodium 4.2 and all the files that are specified in there, i get landscape with contact-list and the buttons right next to them. but phcanimages2.dll (button-graphics for landscape) isn't loaded, so those buttons are not shown, but i can press them, even make a call in landscape or receive one without knowing who's calling)
[Windows Mobile] Laurentius26:
Yes but if you press the hardware or software answer key it rotates back to portrait.

Edit, sorry I've overlooked your post about answering the call. On HD2 it's different.
[Windows Mobile] Laurentius26:
@caliban2,

I have no experience with Xperia LoL ;), but did you check operatorpkg if you are using correct phcanOverbmp.dll plus registry settings?

Maybe that will fix your problem with the blanc screen.
[Windows Mobile] Laurentius26:
I wonder if the dialer rotates fine on COM 2.

Atm I'm done with the dialer but I will try later. :D

If it works ok on COM 2 we know for shure it's something in SYS. ;)
[Windows Mobile] caliban2:
i meant that while the phone is ringing, the phone stays in landscape with 5.0. if i then press the hw answer-button (no buttons to press on empty screen), normal portrait progress-screen comes up. on 4.2 it already changes to portrait on incoming-screen.

as far as i can see htc never made a landscape call-screen, regardless if 4.2 for rhodium or leo. i thought you made one now and the problem is "just" the switch on incoming?! did i miss something? :D

thanks for the tip with phcanoverbmp, i'll check that.
[Windows Mobile] Laurentius26:
Hi Caliban,

I taught you saw my post here (post #14, #17):

http://xdaforums.com/showthread.php?t=978099&page=2

Those are screenshot I posted of the 4.2 phonecanvas working in landscape on HD2 with wm6.5.x

I can even answer calls and rotate it during a conversation.

The only problem I have is when I press the answer key (soft or hardware) it rotates back to portrait.
[Windows Mobile] ultrashot:
Laurentius26, too many posts about too little problem :)

phcanhtc.dll changes display orientation using ChangeDisplaySettingsEx function.

In my previous ROMs auto rotation was disabled by me, but... I don't recommend to do it. Sometimes canvas may be shown incorrectly.
[Windows Mobile] Laurentius26:
Thanks Ultrashot, true but your the expert and I'm to little experienced in dll hacking.

I've opened phcanhtc.dll in IDA but don't have a clue how to change the values.

Can you help a bit and explain more about it? :)
[Windows Mobile] ultrashot:
Laurentius26, find ChangeDisplaySettingsEx function and go to its address. Then press "ctrl-x", you'll find where it is used. There will be something like "BL ChangeDisplaySettingsEx". Go to options->general and set number of opcode bytes = 4

Now you'll be able to see bytes near instructions. Use your favourite hex-editor and replace this instruction with any useless one, for example: 0000A0E1 (it means MOV R0, R0)
[Windows Mobile] Laurentius26:
To be honest my buddy Cracing helped me a bit but we managed to find it. :D

Thanks a Lot Ultrashot. ;)
[Windows Mobile] Laurentius26:
Allrighty, attached are the patched phonecanvas packages for HD2 fully working in landscape on wm6.5.x.

Big thanks one more time to Ultrashot for the final step keeping it in landscape,

and Cracing for the help with IDA. :)

Cheers guys, I'm very happy I can finally use my navigation in landscape in the car without being interupted during incoming call. :D;)

Next few days I'm going to test.
[Windows Mobile] Rataplan:
You did it, great job buddy.

Greetz,
[Windows Mobile] Laurentius26:
Well not only me, Ultrashot helped me with final patch and Cracing with IDA.

Expect a beta rom fully landscape supported soon. ;)

Thanks mate. :)
[Windows Mobile] HD2Owner:
we basically only need to apply your modified phcanhtc and this key?

[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\PHONE]

"EnableSlideCover"=dword:00000000

i already have all other fixes in my rom (incoming caller id, phcanrc scrollfix).

can you fix the sip icon overlap in landscape too? is it fixed in portrait mode?
[Windows Mobile] Laurentius26:
You can use my packages I attached earlier, the dlls match the phonecanvas.

The sip icon I still don't know.
[Windows Mobile] orb3000:
Congrats Leo!

You and the team made it once again!

:)
[Windows Mobile] HD2Owner:
can you please try to do the same changes you did on this phcanhtc file?

the sip icon is already fixed in this dll.
[Windows Mobile] Laurentius26:
Sure I can.

It only needs fixing position I ques.

The dll was set to hex value 0030A0E30020A0E3

I've changed it to 2330A0E30020A0E3
[Windows Mobile] HD2Owner:
thanks buddy. i will flash and test right now... :D
[Windows Mobile] Laurentius26:
Good luck, hopefully the dialer rotates fine for you. :)
[Windows Mobile] HD2Owner:
it's working exactly like in your screenshot. :D

sip icon is fixed, but only in portrait mode.

as soon as i switch to landscape mode, sip icon is shifted again (port. and landsc.).

i need to close phonecanvas and open it again for the sip icon to be fixed in portrait mode.

i will ask ultrashot about fixing sip icon in landscape too.

hopefully he is able to help with this.
[Windows Mobile] Laurentius26:
That's great news, thanks for confirm. :)
[Windows Mobile] HD2Owner:
here are some screenshots to confirm it working and to show remaining sipicon position problem.

thanks alot to ultrashot, laurentius and cracing.
[Windows Mobile] SiemensLover:
Good job friends... as Laurentius say: together is power!

Now we need one more action like this to get a NEW phone canvas working on our HD2 and surely with full Landscape support ;-) ----------> my/our main problem

@ Laurentius: i suggest that u make a new Thread to put this progress (Landscape support) including HOW and already patched dlls so people can see it directly.

WBR

Siemens Lover
[Windows Mobile] Laurentius26:
@Siemenslover, if you have any question I'm happy to help you.

Most answer you can find in this thread.

The Huashan and Oboe 3g dialers I can't fix, hopefully someone else can help you.

Sorry my friend, I've tried but that's to complex for me.

The dialer I've used is not old, it's coming from latest 3.14 stock rom for HD2 and is 2g wvga.

I suggest you to give it a try. ;)

For any further development of the dialer I will open a new thread if you prefer.
[Windows Mobile] Laurentius26:
@HD2Owner,

I completly forgot to patch the file you asked with the fix Ultrashot recommended yesterday.

Weird thing is I've tried your file as I like the sip key fix and the dll also rotates the screen and works almost the same as the packages I shared in earlier post.

The only issue I'm having is when I answer incoming call the phone keeps ringing forever when I end the call. :D

After changing the dll to the original one everything works fine again.

You must have noticed this as well isn't?

Attached your phcan one more time and corrected.
[Windows Mobile] HD2Owner:
yeah.. i noticed this but i did not have time to report it yet... :D

what did you exactly fix patch now on this file?
[Windows Mobile] Laurentius26:
I've searched for ChangeDisplaySettingsEx function and its address in IDA Pro Advanced.

With a hex editor I changed the adres '63C501EB000050E3' to '0000A0E1000050E3' as Ultrashot suggested a few post earlier in this thread, post #40 and #41 here

He also posted a link to the MSDN library about the function.

I've tried the new modified dll but I'm affraid it still has same problem with the enless ringtone.

I've opened a new thread with the working phonecanvas here

as Siemenslover suggested to do so.

Unfortunatly the sip key isn't fixed yet, I will try to compair the dlls and see if possible to fix it.
[Windows Mobile] himsfile:
Hey Laurie,

Thank you for sharing ..... Would like to know if this would work with HTC HD Mini ?
[Windows Mobile] Laurentius26:
Haha.. no sweetheart they don't. :D
[Windows Mobile] ADB100:
Given up for the time being.....

OK, after lots of playing around with COM3 WM6.5 builds, phone canvases, hacks and LOTS of re-flashing I have given up trying to get either a new v5 Phone Canvas or the original v4 one working with build 23152 on my Leo. I have reverted back to the 23569 build until a working v5 Canvas can be found....

The hacks of replacing cprog.exe etc worked to some degree but were never quite right and I don't think ever will be :(

- The Native VoIP client was unusable due to the Phone Canvas

- Task Bar notifications were sometimes messed up

- Vibrate when receiving an email went on forever - a bit of a shock at 2am believe me..

I now have the Native VoIP working, the Task Bar notification doesn't 'stick' and show the previous call still connected (which is worrying when you think you have been on a call for 150-minutes) and there is a short vibrate when an email arrives. :)

I know its an older build but it still has the 'newer' look with the start menu at the bottom. I also swapped Office, OneNote & Windows Live for the versions in 23152 and it all appears to be working OK. I might try and swap some more of the SYS stuff that doesn't seem tied-in with the OS but that's for another day....

Andy
[Galaxy S I9000 General] drygmasken:
I have struggled for a couple of days now trying to fix my market problem but still no luck.

When ever I try to update or download an app it gets aborted after just a sec. So I can't update any of my apps or download new ones.

I have tried this already:

Wipe market data both in settings and with SGS tools

Titanium market doctor

Flashed JM8 from scratch with dalvik wipe and factory reset then Doc's 9.6.6 (work on non of fthem :(

Tried Appbrain (but not fast web installer) nedd an .apk for it)

Don't now what more I could do now :(

Any ideas? Anyone else having problems the latest days? Maybe a Market problem!?

I'm now on Doc's 9.6.6 with Spedmood K13C 500hz (Got the problem after I tried the 2.3.2 leak).
[Galaxy S I9000 General] colindodds:
Reboot recovery and clear dalvik and reboot
[Galaxy S I9000 General] drygmasken:
Did try several times, no luck :(
[Galaxy S I9000 General] RyMa69er:
Thats very strange, never heard of this before. I can only suggesst that you try flashing a different ROM like Darkys 9.3 final....Might not be any use
[Galaxy S I9000 General] drygmasken:
Now I also tried first flash JM8 with 512 and repartition.

And the flash one more time without repartition.

But still no downloads possible on market. "Download unsuccesful" :mad:
[Galaxy S I9000 General] fenerbuuh:
i got the same problem like 2-3 days now.#

any help pls. I did wipe dalvic, tryd another rom, used another market version , used another gmail account.. and so on.

Originally Posted by powerviga

Hi guys, I found out my solution for the market download problems

Had the market download problem accidentally after once rooting my i9k. Tried many ways, clear market and gtalk cache, wipe cache, factory reset, log out google, change password, change account, change sim, root after root, reboot after reboot still no working. Every time I downloaded or upgrade something, there was a download icon shown on notification shortly and disappeared. The download never finished! Reckon some of you encounter this as well.

But last night, I suddenly realised that there may be problems with my cache.rfs as I could not lagfix it to ext4 or any other form. I started to think cache.rfs is broken. So I searched on the Internet and found out a kernel (k12K) only have cache.rfs, instead of zImage. My market has survived right after installation and reboot! Brilliant! Then I install newer version of kernal with zImage and still working. The kernel name is update_SpeedMod_K12k_500Hz.tar. If you have same condition and problem with market, try it! I am not exactly remember where I downloaded this kernel from, and cannot post link cos this is my first post. But hopefully you can find it somewhere.

Good luck to your market!

My device: Samsung i9000

Android:2.2.1

ROM:I9000XXJPY

Kernel:2.6.32.9 hardcore@speedmod-k12t-500hz
[Galaxy S I9000 General] drygmasken:
You are my hero!!! My market works!!!
[HD2 Windows Phone 7 Development] pronor:
Hi Alcatrazx,

sounds logical :-) I´ll give it a try and report later, thanks.

pronor
[HD2 Windows Phone 7 Development] NEOhd2:
Thx

Thx Bro!

Will try it later too. I'll report.
[HD2 Windows Phone 7 Development] tardcutt:
One question though... Do you need to do this everytime you charge your phone, or just the first charge?
[HD2 Windows Phone 7 Development] Finalforce1111:
Sounds interesting, I will try and report
[HD2 Windows Phone 7 Development] breakergandalf:
Sounds like you have to do everytime... If you reboot your WP7, the battery is under the influence of the software again and does not charge correctly. Beat me if I'm wrong :D
[HD2 Windows Phone 7 Development] jeong840:
Very interesting. I will try it :)
[HD2 Windows Phone 7 Development] Johev:
It's a good idea for some times, but I would not use it as an every night thing.

I sometimes get calls or messages during the night (and usually they are important). Another thing is that if you use your phone to wake you up this will not work at all.

I hope WP7 development progresses and solves this issue in the upcoming updates.

Nevertheless it's a nice way of going by, and thanks for taking the time to test it and post about it.

PS: does the light turn green after 6hours of charging or not. Probably not, but worth asking :).
[HD2 Windows Phone 7 Development] pronor:
Another solution should be to charge a second battery in an external charger...

pronor
[HD2 Windows Phone 7 Development] karendar:
Another issue with this "workaround" is that MAGLDR keeps the screen opened, which can cause some devices to overheat, so be cautious with this one. I say that an external charger is the smartest alternative. I actually use this method and it works perfectly.
[HD2 Windows Phone 7 Development] ndamianou:
Sorry to sound pessimistic, BUT, people have already reported clearly in other Threads that they have tried the solution of charging their battery using an external charger with no luck. I can't see how this is any different. In addition, 6 hours will probably kill your battery in the long run (overcharging) - I have queried HTC support about it in the past.
[HD2 Windows Phone 7 Development] arkatis:
Simple enough mate! Though 6 hours of battery charging will probably make significant damage to your HD2 battery... HD2 normally will charge in about 1 and a half hour or 2 udner WM6.5 or Android!

Not bad idea though! Bravo..;)
[HD2 Windows Phone 7 Development] optyqus:
Charging while in Android remains for me the most convenient option. I must say though that this battery issue in wp7 is not that obvious for me. The phone charges quite well in wp7 and only sometimes I feel the need for a restart, after which the percentage increases with 15, not more.
[HD2 Windows Phone 7 Development] dazza9075:
most chargers since the beginning of time have a battery cut off, when the charger unit detects the polarity is starting to reverse it switches off, of course i cant say for sure using the MAGLDR method would use this, potentially it could just be a case of "connecting two wires to a battery" which as you guys have pointed out would not been good, at worst your battery could get seriously hot, or potentially if you reverse the battery polarity enough you would have half of a battery thats unusable.

I think what should be taken from this however, is that like myself and other have been saying for a long time, if your battery is charged propperly it will last a long longer, people reporting empty batteries within 20 odd hours, in my opinion, either have dud batteries or are not charging them properly

the MAJOR plus side to this post is the ability to fix the empty battery restart issue, that alone makes this idea a gold star and should be stickied!
[HD2 Windows Phone 7 Development] ndamianou:
People reporting these batteries issues my friend are people who are knowledgable enough to reach to xda-developers forums - i.e. people who have a pretty good understanding of what battery drainage is and whether their batteries are dying or not; who have installed a number of winmo roms, android roms etc.

there are roms that drain battery and others that handle power better. in the ports of Windows Phone 7 for HTC HD2 there is an issue with battery drainage, and thats a fact.
[HD2 Windows Phone 7 Development] TheOnly1:
There is no issue with bat drainage but with false bat stat reporting.
[HD2 Windows Phone 7 Development] huismeester:
Thats the true Sir but how fix it
[HD2 Windows Phone 7 Development] dazza9075:
Thank you, thats what i was saying, apparently not very well

your level of wit and sarcasm is actually quite funny given that you completely got my point wrong, the issue is quite simply this, the drivers for our HD2 are copies from another device, a device that is similar but not the same, the issues we have with battery are down to the fact that WE do not know if the battery is charged or not, at least at a first glance, and given the inability of many people on here to actually read threads and posts correctly it is not beyond the realm of possibility that many users dont know what level there battery is charged to, thus it may not be charged propperly.

If windows reports a full battery and its only half full then it will "appear" to empty twice as quick, now i think thats pretty clear for every one?
[HD2 Windows Phone 7 Development] dazza9075:
we cant

our phone must be different to a degree than the phone this ROM is based off otherwise we wouldnt have the issue, lets all assume for a second we can actually start chopping and changing files in WP7 like WM. We would need to find some sort of driver that exactly matches our HD2 and i doubt that will happen.

whoever made the driver isnt going to just bring out a new version for an old peice of hardware that isnt supported by MS, perhaps if a new piece of hardware has the same battery controller as us something can be done.....maybe
[HD2 Windows Phone 7 Development] TheOnly1:
You have the following options:

1. Try the registry tweak. That worked for me and I actually have no battery issues for the last 2 weeks or so.

2. Charge the battery under Android during the night. That's pretty usable as you only need to reboot and you still have a fully functional phone :D Way better IMO than the USB Mass Storage trick.

I have a minimal Android installation on my SD (Angry Birds, you know:rolleyes:) and it currently reports roughly the same values as WP7.
[HD2 Windows Phone 7 Development] genesis123:
I still recommend an external charger and let the phone charge over night. No need to reboot or anything similar as wp7 charges the battery fully (checked via android on sd).
[HD2 Windows Phone 7 Development] bteljuice:
when my battery is dead usually, all i do is enter bootloader and just plug my phone :)
[HD2 Windows Phone 7 Development] Alcatrazx:
The whole point is NOT to use the external charger. Because you have to constantly remove the cover. What if people do not have a cradle charger? And YES I confirmed in my first post that cradle charger has the same effect.
[HD2 Windows Phone 7 Development] Alcatrazx:
Mate many people don't have the charger. Most of us have a USB cable ... What if you're abroad and you're stuck ? This is a quick fix.
[HD2 Windows Phone 7 Development] Alcatrazx:
Yes but now I only wish that the next version of MGLDR gets this fixed. So we could at least charge the battery "passively" as we're doing with the present method.
[HD2 Windows Phone 7 Development] Alcatrazx:
Mate you may sound as pessimistic as you want. People who charged their battery externally (I was amongst them) got more battery life out of their WP7 devices. I've been there and tried it. It all falls down to what things you have on or off. Depends on the level of usage of your mobile. Don't expect to get a lot out of your mobile if you are constantly playing with it. I for one was mostly concerned about battery life, and was annoyed with useless registry fixes which were no fixes at all, And no it won't fry your battery I'd rather charge it this way than get 60% charge into the battery on a daily basis, it will just trickle when full. I even checked the temperature of the battery all fine using a digital meter (outside mobile)
[HD2 Windows Phone 7 Development] Alcatrazx:
Sorry to contradict you. But installing a ROM says nothing about the individual's knowledge or background with all due respect. Most probably the mobile has a built in cut off circuit which is automatically triggered and not via software. I cannot imagine mobiles as sophisticated as these smartphones not to have a cut off built in ... So I don't think its a matter of connecting 2 wires, we'll see..Now as far as drainage is concerned the "more drainage" which many people are reporting is due to the fact that if people have less charge in their batteries, 60% charge = 60% of the original time. Some other drainage is due to the usage of the MicroSD card, they will clearly get less hours out of their mobile so no wonder....

All in all I'd still stick to WP7 as the better alternative OS to the HD2 so we have to find remedies to improve this OS ...
[HD2 Windows Phone 7 Development] huismeester:
This one of Cotulla,s fix he told in thread