Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

PockeHAL and raw framebuffer (LG KS20)


PockeHAL and raw framebuffer (LG KS20)

Postby s.l.i » Feb 12, 2008 @ 1:52pm

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!
s.l.i
pm Member
 
Posts: 6
Joined: Feb 12, 2008 @ 1:34pm


Postby j.edwards » Feb 13, 2008 @ 3:23am

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.
User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby s.l.i » Feb 25, 2008 @ 10:56am

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. :?
s.l.i
pm Member
 
Posts: 6
Joined: Feb 12, 2008 @ 1:34pm


Postby Kzinti » Feb 27, 2008 @ 6:14am

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.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby s.l.i » Feb 28, 2008 @ 8:41am

Hello,
here is the log file.
I compiled the fireworks sample with the logging lib.

Code: Select all









10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
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)

20 lines; 0 keywds; 29 nums; 79 ops; 1 strs; 0 coms    Syntactic Coloring v0.4 - Dan East  


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.
s.l.i
pm Member
 
Posts: 6
Joined: Feb 12, 2008 @ 1:34pm


Postby Kzinti » Feb 28, 2008 @ 6:17pm

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.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby s.l.i » Mar 10, 2008 @ 10:59am

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.
s.l.i
pm Member
 
Posts: 6
Joined: Feb 12, 2008 @ 1:34pm


Postby Kzinti » Mar 10, 2008 @ 4:11pm

Any chance of getting you to test the DirectDraw enabled version of PocketHAL on the LG KS20?
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby s.l.i » Mar 10, 2008 @ 4:24pm

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.
s.l.i
pm Member
 
Posts: 6
Joined: Feb 12, 2008 @ 1:34pm


Postby drgoldie » May 9, 2008 @ 12:43pm

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
drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby Kzinti » May 9, 2008 @ 7:26pm

Any chance you can try a plain GAPI application (that doesn't use GETRAWFRAMEBUFFER) and see if that works?
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Kzinti » May 9, 2008 @ 10:50pm

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.)
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby drgoldie » May 10, 2008 @ 2:08pm

I've also read that but it seems to be very hard to find those updated ROMs.

Any ideas?
drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby Kzinti » May 10, 2008 @ 7:45pm

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.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby drgoldie » May 11, 2008 @ 9:11am

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.
drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Next

Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum