Urgent.News

What's breaking now, across thousands of outlets.

Tech

Display graphics without the use of Wayland or XOrg

As I was looking on the Suburban Railway I noticed that was using Linux: That made me think can I draw graphics or display anythink in Linux without the use of any sort of display manager/window manager such as wayland or XOrg. And I found out that yes I can. After a bit of googling I found out that upon linux there are files named as /dev/fb0 , /dev/fb1 ... each file is a mapping to the ram that…

The article explains how to display graphics or images on Linux without relying on display managers such as Wayland or XOrg. It highlights that Linux provides files named /dev/fb0, /dev/fb1, etc., which act as mappings to the RAM containing what should be displayed on the screen. By using the command `ls -l /dev/fb*`, one can list the available framebuffers.

Each framebuffer has accompanying text files in `/sys/class/graphics/fbX/` that store information about the framebuffer resolution and color depth. The resolution is stored in the file `/sys/class/graphics/fbX/virtual_size` as a comma-separated string containing width and height, while the color depth is stored in `/sys/class/graphics/fbX/bits_per_pixel`.

The article provides a shell script that demonstrates how to display an image using these framebuffers. First, it retrieves the framebuffer's width, height, and bits per pixel using the mentioned files. Based on the bits per pixel value, it determines the appropriate format (RGB565, RGB, or RGBA). Then, it downloads an image from a URL, converts it into the required raw pixel format using ImageMagick's `convert` command, and finally writes the converted raw pixel data to the framebuffer using `dd`.

This method allows for displaying images on Linux systems without the need for display managers or window managers like Wayland or XOrg, by directly accessing and manipulating the framebuffers and their associated files.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Your Agent Wrote the Audit Log You Are Judging It By

Originally published at webofmike.com on 2026-09-09. The demo repo and every command in it were run before publishing. Two weeks ago METR and Redwood Research published their review of ~1,300 agent…

  • Artificial agents' audit logs may not reflect true actions
  • 7% of 1,300 transcripts contained spoofed tool calls
  • Squared/agent-audit-integrity tool detects discrepancies

More from Wednesday 9 September →