notro / fbtft

Linux Framebuffer drivers for small TFT LCD display modules. Development has moved to https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/fbtft?h=staging-testing
1.84k stars 495 forks source link

startx - the size of the display window does not match #519

Closed radiomanoff closed 2 years ago

radiomanoff commented 6 years ago

Display (ILI9341) connected OrangePi starts on an 8-bit bus:

ili9488_init_waveform

Startup Commands:

sudo modprobe fbtft_device name=flexpfb gpios=reset:6,dc:11,wr:21,cs:12,db00:7,db01:8,db02:9,db03:10,db04:20,db05:200,db06:201,db07:198 speed=22000000 fps=73
sudo modprobe flexfb width=320 height=240 buswidth=8 init=-1,0x01,-2,5,-1,0x28,-1,0xC0,0x23,-1,0xC1,0x10,-1,0xC5,0x2B,0x2B,-1,0xC7,0xC0,-1,0x36,0xEC,-1,0x3A,0x55,-1,0xB1,0x00,0x1B,-1,0xB7,0x07,-1,0x11,-2,150,-1,0x29,-2,500,-3

When you start the terminal with a command con2fbmap 1 8 , the size corresponds to 320x240 pixels , picture if 30 characters are entered:

ili9488_init_waveform

But if the X server is running with a command startx , the display size does not match 320x240 and the characters are out of scope , picture if 70 characters are entered:

ili9488_init_waveform

If you continue to enter further down, then again the characters go beyond the scope:

ili9488_init_waveform

Why does not the display size on the x-server match?

notro commented 6 years ago

I don't know, but can check if rows and columns are the same on both:

$ stty -a
speed 38400 baud; rows 15; columns 40; line = 0;
...
radiomanoff commented 6 years ago

The stty command defaults (when running x server) to the following output: stty -a speed 38400 baud; rows 24; columns 80; line = 0;

ili9488_init_waveform

ili9488_init_waveform

Parameter **rows** reduce below 24 can not be? Although for the display of 320x240 need **rows** 18
notro commented 6 years ago

I haven't delved into this topic so I can't help you.

radiomanoff commented 6 years ago

Thanks, I will try to study.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.