wipe framebuffer with dd command

Started by ranshalit, December 05, 2015, 08:20:00 AM

Previous topic - Next topic

ranshalit

Hello,

I would like to ask what is the effect of wiping frame buffer (dd
if=/dev/zero of=/dev/fb0) ?
I have some issue with framebuffer timing on LCD 240x320.
I could not find a timing with width=240, height=320 which result in
stable picture, but
the following timing gave me stable ppicture with LCD:

Pixel clock=6500

Width=240
Height=512  <<------------- instead of 320 !!
Hfp=1
Hbp=100
HSW=14
Vfp=1
Vbp=1
VSW=10

The only strange thing is that I had to use height 512 instead of 320.
When I try to render image it is stable but it starts in different
line every time (and the rest of screen is blank)
And here comes the important part:
After doing:

     dd if=/dev/zero of=/dev/fb0

It resolved the issue , and a new image starts from line 0.

I don't understand why.
Does anyone have any idea ?
Do you think I still have a timing problem with LCD ?

Regards,
Ran

swahren

Please add the following information:

- exactly name of your OLinuXino board
- which software / kernel runs on your OLinuXino board
- exaclty name of LCD
- how is the LCD connected to the OLinuXino board (SPI, LCDIF)