From 12083ec1fa1cf5e973f87360b778accbea38c14c Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Mon, 2 Apr 2018 20:34:29 +0100 Subject: [PATCH] readme: console fun, arm /dev/fb0 works --- README.adoc | 29 +++++++++++++++++++++++++++++ kernel_config_fragment | 3 +++ 2 files changed, 32 insertions(+) diff --git a/README.adoc b/README.adoc index 3835dd0..d7bad98 100644 --- a/README.adoc +++ b/README.adoc @@ -280,6 +280,27 @@ This makes things a bit more reproducible, since the microsecond in which you pr + But on the other hand maybe you are interested in observing the interrupts generated by key presses. +==== Console fun + +You can also try those on the Ctrl + Alt + F3 of your Ubuntu host, but it is much more fun inside a VM! + +Stop blinking: + + echo 0 > /sys/class/graphics/fbcon/cursor_blink + +Rotate the console 90 degrees! + + echo 1 > /sys/class/graphics/fbcon/rotate + +Requires `CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y`. + +Documented under: `fb/`. + +TODO: font and keymap. Mentioned at: https://cmcenroe.me/2017/05/05/linux-console.html and I think can be done with Busybox `loadkmap` and `loadfont`, we just have to understand their formats, related: + +* https://unix.stackexchange.com/questions/177024/remap-keyboard-on-the-linux-console +* https://superuser.com/questions/194202/remapping-keys-system-wide-in-linux-not-just-in-x + === Automatic startup commands When debugging a module, it becomes tedious to wait for build and re-type: @@ -1318,6 +1339,14 @@ A friend told me this but I haven't tried it yet: * `xf86-video-modesetting` is likely the missing ingredient, but it does not seem possible to activate it from Buildroot currently without patching things. * `xf86-video-fbdev` should work as well, but we need to make sure fbdev is enabled, and maybe add some line to the `Xorg.conf` +Also if I do: + +.... +cat /dev/urandom > /dev/fb0 +.... + +the screen fills up with random colors, so I think it can truly work. + === X11 MIPS Haven't tried it, doubt it will work out of the box! :-) diff --git a/kernel_config_fragment b/kernel_config_fragment index 6cd069c..c16acaf 100644 --- a/kernel_config_fragment +++ b/kernel_config_fragment @@ -76,6 +76,9 @@ CONFIG_VIRTIO_PCI=y CONFIG_VIRTIO_BLK=y CONFIG_VIRTIO_NET=y +# Misc +#CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y + ## Networking # Will everything blow up?