Index | Thread | Search

From:
ken.dickey@whidbey.com
Subject:
Re: Porting framebuffer+libevdev (Linux) to framebuffer+libinput (OpenBSD)
To:
Matthieu Herrb <matthieu@openbsd.org>
Cc:
ports@openbsd.org, owner-ports@openbsd.org
Date:
Sun, 15 Jun 2025 11:09:25 -0700

Download raw body.

Thread
Thanks a bunch!

I also found wsdisplay/wscons.

Cheers,
-KenD

On 2025-06-15 07:34, Matthieu Herrb wrote:
> On Fri, Jun 13, 2025 at 10:33:51AM -0700, ken.dickey@whidbey.com wrote:
>> Greetings,
>> 
>> I am looking at getting a framebuffer back end for the OpenSmalltalk 
>> IDEs up
>> on OpenBSD.
...

> There are at least 3 ways to get a fbdev like dumb framebuffer under
> OpenBSD:
> 
> - use SDL2 which has a framebuffer mode (there as games using this
> mode, and also mpv supported it  to play videos on the console last
> time I checked). SDL2 also manages input, so you'd have to use its API
> for input too.
> 
> - wsdisplay(4) is capable of providing a dump framebuffer with 
> different
> pixel formats depending on the hardare. See
> xenocara/driver/xf86-video-wsfb/ for the code of the X11 driver that
> uses this feature for some code samples. In this case you can use the
> functions from libinput-openbsd for the input side. libinput-openbsd
> is not a complete libinput port, there are many stub function but it's
> enough to handle one pointer and one keyboard.
> 
> - finally drm also provides a potentially accelrated
> framebuffer. There are some examples in libdrm on how to use
> it. Again with drm you can use libpintput-openbsd for input.
> 
> I hope that, whatever method you choose, you'll enjoy your project.