Ubuntu – How to check if framebuffer is enabled

framebuffer

How do I know if I have framebuffer enabled? I actually don't quite understand what framebuffer is.

my /etc/initramfs-tools/conf.d/splash file has this: echo FRAMEBUFFER=y (coz I was following this answer).

This shows two ways to detect whether it's enabled. The ls -l /dev/fb* test is positive but the grep -i "frame buffer" /var/log/syslog test is negative! LOL LOL XD

Best Answer

In a nutshell , there exists part of memory responsible for containing current look of the screen or "frame", hence it's called framebuffer.

Under Linux ( if we remember that Unix philosophy of "everything is a file" ) actual framebuffer device to which you can write (as root) is /dev/fb0. The graphical X server and several other programs, such as fbi and fbterm are capable of writing to it. I've used here on this site to answer such question as:

How can I customize a full-screen console background (TTY)?

Frankly, I am not quite sure why the answer you linked enables it through the /etc/initramfs-tools/conf.d/splash. According to this, framebuffer support is something that will be enabled in the kernel modules. Here's my output of dmesg log for example: it shows that memory for framebuffer is allocated, despite the fact that i do not have /etc/initramfs-tools/conf.d/splash

$ grep -i 'frame.*buffer' /var/log/dmesg                       
[    0.847413] vesafb: framebuffer at 0xd0000000, mapped to 0xffffc90001000000, using 3072k, total 3072k
[    1.016865] Console: switching to colour frame buffer device 128x48
[    1.185527] fb0: VESA VGA frame buffer device
[    7.648201] Console: switching to colour frame buffer device 170x48
[    7.730459] radeon 0000:01:05.0: fb0: radeondrmfb frame buffer device

Perhaps the answer you linked works on the cited solutions from previous years, but it's not guaranteed that the information is still relevant - linux kernel has added support to a lot of modules and changed to support a lot of different hardware, so potentially solutions changed

Consider asking an actual question related to your Nvidia graphics. It will save you more time than figuring out all the small details

Related Question