Sunday, October 12th 2008, 12:25am UTC+1

You are not logged in.

  • Login
  • Register

rawatsk

Beginner

Posts: 3

Location: india

1

Thursday, October 18th 2007, 7:38am

Framebuffer + savagefb problem

Hello All,

I m using Qtopia core 4.3.2 over a i386 based board em568 powered with via processor.
I m using savagefb framebuffer driver for this setup.

lspci replies with
--------------------------------------------------------------------------------------
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8605 [ProSavage PM133]
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8605 [PM133 AGP]
0000:00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
0000:00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:07.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1a)
0000:00:07.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1a)
0000:00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
0000:00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 50)
0000:00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0000:01:00.0 VGA compatible controller: S3 Inc. 86C380 [ProSavageDDR K4M266] (rev 02)
-----------------------------------------------------------------------------------------------

fbset -fb /dev/fb0 replies :)
-----------------------------------------------------------------------------------------------
mode "800x600-60"
# D: 40.000 MHz, H: 37.879 kHz, V: 60.317 Hz
geometry 800 600 800 4096 16
timings 25000 88 40 23 1 128 4
hsync high
vsync high
accel true
rgba 5/11,6/5,5/0,0/0
endmode
----------------------------------------------------------------------------------------------

The test framebuffer code provided on trolltech site gives me a perfact square with nice colours. :)

but when i try to run any of the qtopia example/demo code it displays of all junk over the screen. X(

Can anyone give me a clue where to proceed from here. ?(

Thanks in advance.

shishir
  • Go to the top of the page

stinos

Intermediate

2

Friday, October 19th 2007, 8:38am

RE: Framebuffer + savagefb problem

Quoted

Originally posted by rawatsk
but when i try to run any of the qtopia example/demo code it displays of all junk over the screen. X(


that usually means the code is drawing images with a different resulution (or maybe color). eg if the code thinks the screen is 500 lines wide but ot's actually 600, everything gets shifted 100 lines so it looks like junk ;-]

make sure the code uses 800x600 and rgba.
madinsjamania
  • Go to the top of the page

rawatsk

Beginner

Posts: 3

Location: india

3

Friday, October 19th 2007, 10:59am

RE: Framebuffer + savagefb problem

Thanx buddy atleast someone heard me.

Being a newbie i am not very sure how exactly i can set resolution and colour in the code.
I m trying example and demo (qtdemo) application of qtopia itself.
I tried it by setting QWS_SIZE environment variable. but no luck.

Other thing which i tried in the meanwhile is i did all the similar things over a linux PC having intel 810 graphics chip. there i hav been able to make things working pretty nicely. also since i hav compiled qtopia with vnc support for my SBC the applications i run there i can see with vnc viewer but not over my TFT screen.
So i know solution to this problem has to be something really simple.
  • Go to the top of the page

stinos

Intermediate

4

Friday, October 19th 2007, 6:40pm

sorry but i can't help you any further.. I don't have qtopia or an emdedded device I can test on..
your best chance is getting a reply from someone who knows thi stuff, or asking somewhere else, or, maybe faster + you'll learn from it: find out where in your program stuff is drawn, and attach a debugger or use some printf() statements to see what resolution it's actually using, then try to find out where it gets the numbers..
madinsjamania
  • Go to the top of the page

Posts: 1

Occupation: senior engineer

5

Thursday, October 25th 2007, 9:51am

RE: Framebuffer + savagefb problem

Hope this can help u.
Qtopia core defaultly handle the 16bits framebuffer as 5(R), 6(G) ,5(B) , but actually the special board maybe quite different . Most of boards has a bit , like
5 (R) , 5(G) ,5 (B) ,1 (a). According to this , you have to modify the core sourcode yourself a bit .
My suggestion is :
1. Check the driver or related doc and see what's the exact data structure of framebuffer . fbset sometimes does not show out correct info.
2. If needed , modify the qscreen_qws.h file , qtopia core defines the framebuffer structure here. (several macros)
3. See if your board driver need some special module or ioctl to make framebuffer works well . That's very often.

Wish you good luck .

This post has been edited 1 times, last edit by "comfortjerry" (Oct 25th 2007, 9:52am)

  • Go to the top of the page

nijish

Trainee

Posts: 154

Location: Bangalore

Occupation: Software Engineer

6

Thursday, November 8th 2007, 4:40pm

Jerry and All,

i wanted to know, would the same be the problem for having vertical strips being displayed on the screen?

i have posted a query in KDE but am pasting it here again.

--------------------------------------------------------------------------------------
Hi All,

I have a problem here.

When i open my browser, it displays the complete window with vertical lines on top of the display. that is, the browser display is proper. but there are evenly spaced black vertical lines displayed on top of it.

strangely, this problem does not happen when i have a QLabel or a QComboBox dropdown list. In these scenarios, the display of these widgets is proper.

about my configuration, i am using:
qt-embedded-free-3.3.8
konqueror3-embedded-0.2-20060121
these run on a ppc board for an embedded device.

does anybody have an idea why this problem occurs? is it because of byte order?
i have checked with endianness. no success.
--------------------------------------------------------------------------------------


modes excuse if reposting is not permitted.

does anybody have ideas on this?

thanks in advance,
Nijish
  • Go to the top of the page

Rate this thread