PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

PockeHAL and raw framebuffer (LG KS20)

Hi there!

I am an owner of a LG KS20 pocket pc. This device has a big problem with every application that uses PocketHAL and nearly all other applications that use direct video access techniques.
The screen doesn't update and only a small rect on the lower right area will be shown.
I played around with some C++ GAPI samples and figured out that the RAW FRAMEBUFFER mode is the problem.

Now my question:
Is it possible to say PocketHAL that it should not use RAW FRAMEBUFFER access?
That would be great!
I have received feedback from users of my PHAL based app indicating this device has the problem as you described also. Thanks for investigating the issue. Hopefully there is an easy work around.
Please, could anyone here say yes or no? YES, it is possible to say PHAL to not use RAWFRAMEBUFFER? Or NO, forget it!

If there is no function or flag available to set such an option, I would be happy to get an extra version of the PHAL libs where RAWFRAMEBUFFER access is disabled. :?
I have posted a logging version of PocketHAL 1.0.4 in this thread: http://www.pocketmatrix.com/forums/view ... hp?t=27784

Can you download it, build your app with it and run it on your LG KS20? This will create a log file in the root of your device's filesystem. Please post that log file here.
Hello,
here is the log file.
I compiled the fireworks sample with the logging lib.

Code:


OEM String: "LGE"
PocketHAL (Version 1.0.4)
Display::Create( hwnd = 7C08D470, W:0, H:0, O:0, S:1 )
Initializing display...
VideoDetect::DetectDrivers()
GDIDriver: Detect()
GDIDriver: Found W:240, H:320, D:16
VideoDetect: OS Version is 5.2
DriverVGA: Detect()
DriverVGA: Raw info: W:240, H:320, X:2, Y:480, FB:4A5D27F0
DriverVGA: Native orientation is 0
DriverVGA: Found W:240, H:320, D:16
DriverVGA: Offset is 0
DriverVGA: Final framebuffer address = 4a5d27f0
CreateDriver( 00000008 )
Initializing video driver...
DriverVGA: Initialize()
Driver initialized!
Success, returning display params to caller (W:240, H:320, O:0, S:2)



Am I wrong, or does it look ok?
It's courious. My first experience with applications that use PHAL was that only a small rectangle of the screen was updated. Now I have a battery meter installed, that is about the windows taskbar and start button. Exactly this area is now updated but not longer the small rectangle as before. Very very strange.

I think, we LG KS20 owners have to wait for LG and new drivers... :cry:
Thanks for your efforts.
Everything looks ok. This should be updating the entire screen. You are saying it isn't? If that's the case, then there is a problem with the device and we can try to work around it.

There is a version of PocketHAL that uses DirectDraw here:

http://www.pocketmatrix.com/forums/view ... c&start=15

You could give this one a try? It should also generate a log file.
It seems like LG has fixed their video driver in a new ROM version. We'll now have to send it to a service centre and so on... So this thread has not to be continued. Anyway, thanks for your efforts.
Any chance of getting you to test the DirectDraw enabled version of PocketHAL on the LG KS20?
Oh, forgot to mention. I tested it with firework sample and with j.edwards PointUI and it did not help. The same problem with not updating screen...

I will give it a try again when I get my KS20 updated.
I finally got my KS20 and as reported before PocketHAL does not work (does not switch to graphics mode).

I tried 1.0.4, 1.0.5 and the DDraw version.

Is there anything I can do to help solving this issue?

Daniel
Any chance you can try a plain GAPI application (that doesn't use GETRAWFRAMEBUFFER) and see if that works?
So I've read in a few places that if you update the ROM on the LG KS20, it will fix the problem.

I'd rather not revert to GDI on this phone if there is a ROM upgrade that works. (GDI can be very slow when screen rotation is involved.)
I've also read that but it seems to be very hard to find those updated ROMs.

Any ideas?
Well the situation is that:

1) GAPI doesn't work
2) GETRAWFRAMEBUFFER doesn't work
3) DirectDraw doesn't work
4) There is a ROM update that fixes these issues

So I would try to find the ROM update.

If I could get my hands on an actual device, I might be able to figure out a way. But I can't do reverse engineering remotely.
I fully understand that you can't do a lot in this situation.

The ROM on my device is 10a from Feb 26th. I believe that this is the latest version (it seems that the other versions 1c, 1f, etc. that are floating around are just lanuage specific as they have pretty much the same date).

Since the KS20 can do H/W OpenGL ES we'll probably use that method only anyway. Still, even the OpenGL ES driver seems to make problems. The same goes for camera access and other things.
Well if you find a way to make it work on the KS20, I'd love to implement it in PocketHAL. Just keep me informed.
I already updated my KS20 german from v10b to v10e and now all GAPI/DirectDraw/PocketHAL applications are running on the device.
Though, sometimes they freeze, especially when device wakes up from standby and some other applications are running in background.
There are rumours that a v10f version will be available within next weeks. Maybe it fixes this behavior...

Here is the link to all you need for an update:
http://forum.xda-developers.com/showthread.php?t=369481

Unfortunately an english ROM update doesn't exist at the moment but many other languages are available.
Thanks for the update SLI.
I can also confirm that after the update PocketHAL works fine. It is a pitty that these updates are quite hard to find since they are mandatory to make the device usable.

BTW: Are there plans to extend the support frame buffer abstraction via OpenGL ES texture blitting?

Daniel
Is OpenGL ES texture blitting faster then direct screen access? Or are you proposing to use that as a workaroud on the LS20?

I haven't looked at it, but if there is a benefit, it can probably be added easily.
Usually it is slower, since textures are typically stored in a non-linear way and the driver does the reordering.

It would mainly be a work around for devices that do not work otherwise, such as the KS20 with its default ROM.