Writing to the Framebuffer
seenaburns.com
Writing to the Framebuffer
1–10 of 49 posts
Re: Writing to the Framebuffer
#2For example, echo "foo" | sudo tee /path/to/file
or any of the other ways listed here: https://stackoverflow.com/questions/82256/how-do-i-use-sudo-...
Re: Writing to the Framebuffer
#3The reason why sudo wasn't working is that it runs the command with root privileges, but redirecting to a file with > is done through the shell, which is running under your normal user level privileges. If you want to redirect to a file that only root can write to, you can use the tee command. That command will write anything passed to it via stdin to the file given as an arg. For example, echo "foo" | sudo tee /path…
Re: Writing to the Framebuffer
#4The reason why sudo wasn't working is that it runs the command with root privileges, but redirecting to a file with > is done through the shell, which is running under your normal user level privileges. If you want to redirect to a file that only root can write to, you can use the tee command. That command will write anything passed to it via stdin to the file given as an arg. For example, echo "foo" | sudo tee /path…
EDIT: it says so in TFA. Oops!
Re: Writing to the Framebuffer
#5GPUs can actually scan to a display from multiple overlapping framebuffers in different resolutions and color formats in the same time. Alpha blending and rotations are often supported as well.
A bit like a very large mouse cursor. In a way, mouse cursors are also framebuffers. Or like hardware video layers in the nineties.
Re: Writing to the Framebuffer
#6Re: Writing to the Framebuffer
#7You can (and should if you are writing software not only for yourself) ask the kernel about the framebuffer layout using FBIOGET_FSCREENINFO and FBIOGET_VSCREENINFO ioctls.
Re: Writing to the Framebuffer
#8There may be more than just one simultaneous framebuffer per display on the hardware level. GPUs can actually scan to a display from multiple overlapping framebuffers in different resolutions and color formats in the same time . Alpha blending and rotations are often supported as well. A bit like a very large mouse cursor. In a way, mouse cursors are also framebuffers. Or like hardware video layers in the nineties.
We like abstractions.
Re: Writing to the Framebuffer
#9Is /dev/fb writing directly to the framebuffer or is there translation going on kernel side? Is the card in VESA / BIOS mode when on a virtual console without X?
[0] https://www.kernel.org/doc/Documentation/fb/framebuffer.txt