Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
radiomanoff opened this issue May 11, 2018 · 5 comments
Closed

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

radiomanoff opened this issue May 11, 2018 · 5 comments

Comments

@radiomanoff
Copy link

radiomanoff commented May 11, 2018

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
Copy link
Owner

notro commented May 16, 2018

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
Copy link
Author

radiomanoff commented May 17, 2018

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

You can correct the parameter columns with the command
stty columns 50

ili9488_init_waveform

Parameter rows reduce below 24 can not be? Although for the display of 320x240 need rows 18

@notro
Copy link
Owner

notro commented May 17, 2018

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

@radiomanoff
Copy link
Author

Thanks, I will try to study.

@github-actions
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants