Re: DirectFB for Linux
- Posted by jmduro Apr 02, 2019
- 1411 views
irv said...
I get:
open /dev/fb0: No such file or directory
This is with Linux Mint 18
Same message if I just type sudo fbset
fbset is not installed by default. You have to install the package.
sudo apt install fbset
On Ubuntu, framebuffers seem to be deactivated by default: https://unix.stackexchange.com/questions/33596/no-framebuffer-device-how-to-enable-it
Look at available framebuffers
sudo ls /dev/fb*
Your framebuffer might be "/dev/fb1" instead of the default "/dev/fb0". If there is no framebuffer then your Linux misses an optional package or a driver. Try to install the following:
sudo apt install libdirectfb-devI hope it installs also the specific driver for your graphics card. Check for framebuffers after installing the package. If there is still none, than it might be a little more complicated as it will be hardware specific. In this case, install hwinfo.
sudo apt install hwinfoThen run it and provide specific hardware information. Here is what hwinfo reports for my PC (extract):
31: PCI 02.0: 0300 VGA compatible controller (VGA) ... Hardware Class: graphics card Device Name: "Intel(R) HD Graphics Device" Model: "Intel 2nd Generation Core Processor Family Integrated Graphics Controller" ... Driver: "i915" Driver Modules: "i915" ... Driver Info #0: Driver Status: i915 is active Driver Activation Cmd: "modprobe i915" Config Status: cfg=new, avail=yes, need=no, active=unknown
Jean-Marc