Put graphics on the screen without /dev/fb0

安稳与你 提交于 2019-12-08 05:22:59

问题


I am trying to draw things on the screen without an X11 server. (I want my program to be in initrd, so I don't want to bloat it with X11.)

It's easy when I have /dev/fb0, but when I use Xen, I don't have it (also I am not sure how that works - the passing of vesafb to the kernel by grub and such).

I've tried SDL but it won't work without /dev/fb0 or X11. How does X11 work without /dev/fb0? It seems like no matter what I do X11 will always work... yet all libraries (like directfb, SDL, etc.) will fail.


回答1:


the /dev/fb0 handeling with kernel. you must enable:

  • CONFIG_FRAMEBUFFER_CONSOLE if you want to enable 'df' for console
  • CONFIG_DRM and VGA card driver in this.
  • FB and your VGA card driver in this.


来源:https://stackoverflow.com/questions/20720134/put-graphics-on-the-screen-without-dev-fb0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!