ghaerr / microwindows

The Nano-X Window System
Other
648 stars 92 forks source link

Error running nano-X on linux framebuffer #64

Open Ellis2781 opened 2 years ago

Ellis2781 commented 2 years ago

After switching to a different tty and killing my initial xorg session I still get this same error.

Error opening /dev/fb0: No such file or directory. Check kernel config
Cannot initialize screen

I am using the linux-fb config and my framebuffer drivers are loaded as well

ghaerr commented 2 years ago

Hello @Ellis2781,

This usually means that the console isn't actually compiled or booted for graphics mode.

killing my initial xorg session I still get this same error.

The Xorg server usually runs by accessing the CRT controller, although there is a frame buffer version of X that does not. So this doesn't mean you actually have framebuffer access working on your Linux box.

Error opening /dev/fb0: No such file or directory. Check kernel config

This is the normal message that the kernel can't switch the console to frame buffer mode. You may have to change some boot options to boot in vga mode. Try googling "setting up the linux framebuffer" to read up on it. I found https://doc.qt.io/archives/3.3/emb-framebuffer-howto.html as interesting. I've also found https://www.kernel.org/doc/html/v5.5/fb/fbcon.html. It looks like the later kernel versions are making this quite complicated; the earlier kernels were much simpler, it seems.

Thank you!