Topic: Qt 4.6 on chumby

Hi,

I tried to compile Qt 4.6 for a chumby one. So far it compiles and I 'm able to run examples but the display only draws the first line on screen (one pixel height). The (console) output from Qt's framebuffer program looks right (see below). Maybe you know what is going on here? Would be nice if you can help me.

Thanks for your time,
Andreas

Output from Qt's framebuffer test program:

The framebuffer device was opened successfully.

Fixed screen info:
    id:          chumbyfwfb
    smem_start:  0x43a00000
    smem_len:    307200
    type:        0
    type_aux:    0
    visual:      2
    xpanstep:    0
    ypanstep:    1
    ywrapstep:   0
    line_length: 0
    mmio_start:  0x0
    mmio_len:    0
    accel:       0

The framebuffer device was mapped to memory successfully.

Successfully switched to graphics mode.

Variable screen info:
    xres:           320
    yres:           240
    xres_virtual:   320
    yres_virtual:   480
    yoffset:        0
    xoffset:        1
    bits_per_pixel: 16
    grayscale: 0
    red:    offset: 11, length:  5, msb_right:  0
    green:  offset:  5, length:  6, msb_right:  0
    blue:   offset:  0, length:  5, msb_right:  0
    transp: offset:  0, length:  0, msb_right:  0
    nonstd:       0
    activate:     0
    height:       240
    width:        320
    accel_flags:  0x0
    pixclock:     154000
    left_margin:  5
    right_margin: 4
    upper_margin: 3
    lower_margin: 3
    hsync_len:    40
    vsync_len:    2
    sync:         0
    vmode:        0

Frame Buffer Performance test...
        Average:   4194 usecs
        Bandwidth: 69.854 MByte/Sec
        Max. FPS:  238.436 fps

Re: Qt 4.6 on chumby

Have you tried the composite video out kernel yet?  It fixes some bugs in the framebuffer implementation that are required for some of the more advanced framebuffer uses.

Re: Qt 4.6 on chumby

I have installed the composite video out kernel but it makes no difference. So far I have tried to compile and run SDL directFB and Qt4.6. Nothing really works.

One more note: I killed the control panel with /usr/chumby/scripts/stop_control_panel before I started the test programs.

I bought this device because I want to run some custom stuff with GUI. I hope someone can help me to make at least one GUI framework work with the chumby (no flash please :-).

Re: Qt 4.6 on chumby

Televio wrote:

I have installed the composite video out kernel but it makes no difference. So far I have tried to compile and run SDL directFB and Qt4.6. Nothing really works.

One more note: I killed the control panel with /usr/chumby/scripts/stop_control_panel before I started the test programs.

I bought this device because I want to run some custom stuff with GUI. I hope someone can help me to make at least one GUI framework work with the chumby (no flash please :-).

Whatever progress you make, please update the community via these forums!  I know there are others that are interested in running custom GUI without flash.

Linux Guy - Occasional Chumby Hacker

Re: Qt 4.6 on chumby

Did you set the video output to LCD?

switch_output -l  (that's an L, not a 1)

switch_output script is included with composite video out patch.'

Had the same problem, that fixed it.  Now if only I could figure out why QT isn't intercepting the touchscreen mouse events...

Re: Qt 4.6 on chumby

Riotstarter wrote:

Did you set the video output to LCD?

switch_output -l  (that's an L, not a 1)

switch_output script is included with composite video out patch.'

Had the same problem, that fixed it.  Now if only I could figure out why QT isn't intercepting the touchscreen mouse events...

How did you fix it ? . I have tried switch_output,  i have used stop_control_panel,
Qt framebuffer test ./framebuffer /dev/fb1 draws only red, green and bule in topmost line of display, without /dev/fb0 nothing appears.

Any Qt test with  -qws -display :1 or without, nothing appears

Re: Qt 4.6 on chumby

kate wrote:

How did you fix it ? . I have tried switch_output,  i have used stop_control_panel,
Qt framebuffer test ./framebuffer /dev/fb1 draws only red, green and bule in topmost line of display, without /dev/fb0 nothing appears.

Any Qt test with  -qws -display :1 or without, nothing appears

I found reason and solution. The framebuffer displayed on device ( for some reason ) is /dev/fb1 . and
The /dev/fb1 FBIOGET_FSCREENINFO returns line length as 0

Fixed screen info:
        id:          chumbyfwfb
        smem_start:  0x43a00000
        smem_len:    307200
        type:        0
        type_aux:    0
        visual:      2
        xpanstep:    0
        ypanstep:    1
        ywrapstep:   0
        line_length: 0

The /dev/fb0 returns correct line length. It looks a like driver bug but i fixed it with couple of lines workaround in
qscreenlinux_fb.cpp

Re: Qt 4.6 on chumby

Would you be able summarize how make Qt 4.6 for Chumby One?

Re: Qt 4.6 on chumby

Hi, I use Qt 4.6.2 on my Chumby One and have a problem: the colors are not correct.

Have somebody a hint for me?

Greetings, Crossy