Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Testing

notro edited this page Mar 24, 2013 · 13 revisions

This page list some ways to test the framebuffer drivers. All commands are issued from a SSH session.

X server

Install framebuffer driver

sudo apt-get install xserver-xorg-video-fbdev

Create file: /usr/share/X11/xorg.conf.d/99-fbdev.conf

Section "Device"  
  Identifier "myfb"
  Driver "fbdev"
  Option "fbdev" "/dev/fb1"
EndSection

Start X server

startx

Source: blogpost

mplayer

WIDTH is the display width.
scale is used because the movie is larger than most small displays. -3 means keep aspect ratio and calculate height.

apt-get install -y mplayer
wget http://fredrik.hubbe.net/plugger/test.mpg

mplayer -nolirc -vo fbdev2:/dev/fb1 -vf scale=WIDTH:-3 test.mpg

Image viewer

apt-get -y install fim
wget http://www.olsug.org/wiki/images/9/95/Tux-small.png

FRAMEBUFFER=/dev/fb1 fim Tux-small.png

Console

Use display as the primary console.
If a keyboard is plugged in after power on, a reboot may be necessary.

# Map console 1 to framebuffer 1, login screen will show up on the display
con2fbmap 1 1

con2fbmap 1
console 1 is mapped to framebuffer 1

# Revert
con2fbmap 1 0

fbtft_test

This project has some tests: https://github.com/notro/fbtft_test

Debug

To get debug output, add to the top of sourcefile: #define DEBUG
For drivers supporting dynamic debug see Debug

Clone this wiki locally