View: 3495|Reply: 5

force framebuffer resolution

[Copy link]

1

threads

1

posts

5

credits

Novice

Rank: 1

credits
5
Published in 2021-11-29 20:58:58 | Show all floors |Read mode
Hi all,

I have a problem with a orange PI pc. The framebuffer resolution is wrong after the system is booted up.
I have tried different solutions to fix the problem, it will boot up with 1024x768 but it should be 1280x2400.

Sometimes after a couple of reboots fb0 is 1280x2400p then it works..

This is how it should look like:

mode "1280x2400"
    geometry 1280 2400 1280 2400 32
    timings 0 0 0 0 0 0 0
    accel true
    rgba 8/16,8/8,8/0,0/0
endmode

Frame buffer device information:
    Name        : DRM emulated
    Address     : 0
    Size        : 12288000
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 1
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 5120
    Accelerator : No


The fbset command is not working --> "fbset -fb /dev/fb0 -g 1280 2400 1280 2400 32" , the result is --> ioctl FBIOPUT_VSCREENINFO: Invalid argument"

I have used rc.local,  "fbset -db /etc/fb.modes --all "1280x2400"

I tried armbianENV.txt with disp_mode not working :-(

(framebuffer path on NanoDLP is  = /dev/fb0)

/sys/class/graphics/fb0/modes = U:1024x768p-0  
/sys/class/graphics/fb1/modes = U:1280x2400p-0

Maybe force framebuffer fb0 to use U:1280x2400p-0 ???

I hope anyone can help, thank you!

Florian

0

threads

1

posts

12

credits

Novice

Rank: 1

credits
12
Published in 2023-8-3 02:20:26 | Show all floors
This post was finally edited by Walter.O at 2023-8-3 02:47


Hi.
I have the same problem on a debian Distro, headless.
the defaut resolution mode for my screen is 1280x720, while I would prefer having a smaller one, like 1024x768 because my screen is really small (11 inch maybe) - the only resolution that was accepted during my tests was "640x480"

With the command
  1. grep -r "1280x720" /usr/lib
Copy code

I was able to see more possible resolutions :
SCREEN_RESOLUTION=("1920x1080p60" "1280x720p60" "1920x1080p50" "1280x1024p60" "1024x768p60" "800x600p60" "640x480p60" "1360x768p60" "1440x900p60" "1680x1050p60")
But none of them seems to work , except 640x480p60 when I tried :
  1. fbset 640x480-60
Copy code

I worked around the issue by modifying my console font setup (hence it's easier to read the screen).

with :
  1. sudo setupcon -v
Copy code

I could list the default console font used by the system.

A list of fonts can be viewed in /usr/share/consolefonts/

Finally I modified the file /etc/console-setup/cached_setup_font.sh
and changed the default font with this one, much bigger :
'/usr/share/consolefonts/Uni3-Terminus24x12.psf.gz'
And then I ran the script :
  1. sudo /etc/console-setup/cached_setup_font.sh
Copy code
I would rather change my framebuffer screen resolution, if anyone had the solution

0

threads

15

posts

56

credits

Registered member

Rank: 2

credits
56
Published in 2023-8-4 18:00:11 | Show all floors
This is an excellent post I seen thanks to share it. It is really what I wanted to see hope in future you will continue for sharing such a excellent post. fnaf

0

threads

26

posts

236

credits

Intermediate member

Rank: 3Rank: 3

credits
236
Published in 2024-8-24 11:04:59 | Show all floors
For couples seeking a romantic getaway, a Masai Mara Luxury Safari offers unparalleled intimacy and adventure. Enjoy private game drives, candlelit dinners, and luxurious accommodations nestled in the heart of the wilderness. This unforgettable experience combines the thrill of a safari with the romance of a secluded retreat.

0

threads

18

posts

68

credits

Registered member

Rank: 2

credits
68
Published in 2024-9-23 14:52:33 | Show all floors
You can jump in and out of the Cookie Clicker 2 game anytime, which makes it great for busy schedules

0

threads

34

posts

102

credits

Registered member

Rank: 2

credits
102
Published in 2025-3-27 14:48:30 | Show all floors
During my vacations, I frequently engage in the game quordle wordle. It is a convenient and enjoyable method of expanding one's knowledge and challenging oneself without requiring an excessive amount of time.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list