Qt applications + nothing on the screen

jeremy
Hi everybody,

First, thanks to read my post.

So, my problem is I've installed Qt everywhere 4.6 (another problems with
4.7 :) ) on my mini2440 board with emdebian as rootfs on SD card.

When I want to execute application like "patientcare" the program "wait"
but nothing is display on the screen

I exported variables as following (after the command export in the shell):

declare -x TSLIB_CALIBFILE="/usr/local/tslib/etc/ts.calib"
declare -x TSLIB_CONFFILE="/usr/local/tslib/etc/ts.conf"
declare -x TSLIB_CONSOLEDEVICE="none"
declare -x TSLIB_FBDEVICE="/dev/fb0"
declare -x TSLIB_PLUGINDIR="/usr/local/tslib/lib/ts"
declare -x TSLIB_TSDEVICE="/dev/input/ts"
declare -x TSLIB_TSEVENTTYPE="INPUT"

declare -x QWS_MOUSE_PROTO="tslib:/dev/input/ts"

I am looking for this for long time :( no success

Thank you again !!

Jérémy

Vladimir Malyk
try -qws key for Qt apps

jeremy
I use this key. Assume that I want to execute patientcare demo :

cd .../embedded-widgets-1.1.0/examples/patiencare# ./patientcare -qws

Then I get a cursor which is blinking/waiting. I suppose that the
application is running but nothing appears on the screen.

I've also exported :

QWS_DISPLAY=LinuxFB:mmWidth=80:mmHeight=50

but still the same behavior

jeremy
ok how to change boot options to display everything in the LCD instead of
the serial output ?

Thanks again

Vladimir Malyk
try setenv bootargs console=tty0

jeremy
thanks but nothing appears on the LCD. Do you have an idea how to check the
LCD driver ?

Vladimir Malyk
> Then I get a cursor which is blinking/waiting

it works.
also, may be console=tty0 is bad idea. what for do you need boot process on
LCD?

Vladimir Malyk
or cursor blinks in serial console, not LCD?

jeremy
> what for do you need boot process on LCD?

I just want to check if the LCD driver works well, what do you think ?

> or cursor blinks in serial console, not LCD?

When I execute Qt applications (like catalog demo or patientcare demos) the
cursor in the serial console is blinking and waiting so I suppose that the
application is running correctly but there is still blank screen to the LCD

Vladimir Malyk
you use kernel from CD?

jeremy
no I didn't I compiled myself kernel (with the option :
mini2440_defconfig)+ rootfs (emdebian) according to a HOWTOs

Do you think I should try with kernel from FriendlyARM ? I don't have the
dvd now

Vladimir Malyk
there some kernel patches for mini2440. try kernels from
http://www.friendlyarm.net/dl.php?file=linux-zImage_20100925.zip

also, if you're using uBoot - don't forget zImage -> uImage (mkimage
command from uBoot tools).

jeremy
ok I'll try this evening and I'll tell you. So I just need to erase the
kernel mtd and write/flash with the new one ? This means I don't need to
modify my rootfs mtd ?

Thanks a lot really !

Vladimir Malyk
> So I just need to erase the kernel mtd and write/flash with the new one ?

yes. also kernel image depends on LCD type. if success - you'll see linux
logo during kernel boot

jeremy
ok from the back of my lcd I can read : LY-TFT-35-S001

Does this mean that I have to use T35 image ?

jeremy
I found : The type of my LCD is VGA1024*768 (and not 35) so just put
mini2440=2tb and TUX appears ...

thanks

sivanesan
Try with  export QT_ONSCREEN_PAINT=force and then run your application like
./MyApp -qws