Skip to content

Instantly share code, notes, and snippets.

@falloutphil
Last active July 3, 2022 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save falloutphil/d406365f3eabf337e6821440d44fe33f to your computer and use it in GitHub Desktop.
Save falloutphil/d406365f3eabf337e6821440d44fe33f to your computer and use it in GitHub Desktop.
Using Framebuffer instead of X Windows
Can be used from qemu Ubuntu instance (see other gist).
Clone and build this on the host:
https://github.com/ponty/framebuffer-vncserver
Run it *as root*:
sudo ./framebuffer-vncserver -t /dev/input/by-path/platform-i8042-serio-1-event-mouse -k /dev/input/by-path/platform-i8042-serio-0-event-kbd
You can use the direct /dev/input/eventX as well if you want.
Then you can use vncviewer to connect just as if it was an x window connection.
fbset can be used:
fbset -g 1024 768 1024 768 32
And with no params to see settings:
fbset
Configurations:
cat /sys/class/graphics/fb0/modes
https://stackoverflow.com/questions/34904763/linux-framebuffer-set-resolution-correctly
You can make squeak vm transmit to framebuffer - again run as root:
sudo cogspur/squeak -vm-display-fbdev Cuis-Smalltalk-Dev/Cuis6.0-5069.image
Grub resolution:
/etc/default/grub
GRUB_GFXMODE=1024x768x32,auto
Some other stuff (might be of interest):
https://ubuntuhandbook.org/index.php/2021/05/screen-resolution-grub-boot-menu-ubuntu/
http://wiki.squeak.org/squeak/3484.diff?id=5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment