r/openbsd • • Nov 03 '24

Will My X Hardware work on OpenBSD? If X=Nvidia, then no. Other answers inside.

112 Upvotes

First off. Your Nvidia graphics card won't work with OpenBSD except maybe as a VESA or UEFI framebuffer. No acceleration. Period. Nvidia themselves writes proprietary binary drivers for Linux and FreeBSD, but not OpenBSD. Will that change? Ask Nvidia. It's rather unlikely though.

Does OpenBSD support 3d Acceleration? Yes. As of this writing (7.6 was just released) OpenBSD has the DRM drivers from the Linux 6.6 stable branch. So it has the most up to date DRM drivers of the BSDs. As of 7.6 there's even GPU acceleration of video for AMD and Intel GPUs.

Will $X random laptop work? If it's an X-series or T-series thinkpad that wasn't released as new in the last month, probably. See above about Nvidia graphics though. Will other thinkpads work? Probably. The X and T series are most popular with developers so get the most attention. I've had good success with HP ProBooks, but rock a T490 Thinkpad currently. Framework laptops tend to work too.

Will $X desktop work? Probably. Try it. I've run it on any number of HP business desktops with great success. Intel graphics works great. AMD graphics should work well.

Will my Wifi work? If it's Intel, probably. Most of the Intel chipsets support 802.11ac speeds. Even the ax chipsets should work, but only at ac speeds. Why Intel? Someone contracted stsp@ to get them working well. Other stuff, works, but will probably be restricted to 802.11g speeds.

Will your random Temu-bought ARM board work? Who knows. Try it. arm64 RPi boards tend to work although at this time the RPi5 doesn't. It's too new and too different from the earlier boards.

There's no bluetooth support currently. Not because of security issues, but because when we last had bluetooth, it was unmaintained and a mess. If someone can come along with a decent bluetooth stack that is good, maintainable code, we'd take it. No one has stepped up so far.

HDMI audio could work but doesn't currently. Mainly because HDMI audio would get detected before regular audio and would become default audio. Most folks don't use HDMI audio though, so that change would break audio for most users and only benefit a handful.

This should cover the majority of hardware questions that keep getting asked. I'll edit it and try to keep it up to date.

M1 and M2 Macbooks should be supported. There will not be video acceleration.

Update 2024-12-08: Added mention of macbooks. Tweaked wifi wording. Tried to make it clearer where X represents any random hardware someone is asking about.


r/openbsd • • Oct 20 '26 Heartwarming

anouncement OpenBSD 8.0 released

251 Upvotes

OpenBSD 8.0 has been released.


r/openbsd • • 10h ago

Has OpenBSD made a stance concerning LLMs?

36 Upvotes

I have done my fair share of research and found no clear answer to this. From what I can find, there is no clear answer whether or not OpenBSD has banned or allows LLM-generated code. I understand other BSD projects have made the stance, such as NetBSD.

So I wanted to ask here, have they made a stance?


r/openbsd • • 2h ago

Time to consider an official support forum for OpenBSD?

7 Upvotes

I would like to make a suggestion to the OpenBSD community as a whole and I'm posting it here instead of the mailing lists to gauge interest before writing up something more formal to submit there. Recent changes to reddit where they've broken the ability to browse the old.reddit.com subdomain to non-logged in users and turned off RSS feeds for everyone is the reason why I'm posting this partly. I'm not trying to blame the mods of this sub-reddit here they do a good job in my opinion and I understand such things are outside of their control.

I also know encouraging the user to use email/mailing lists is how the OpenBSD community has managed to write great software for many years now and I'm thankful they haven't moved on to the "github" model of development since I dislike that for a lot of reasons. So please don't take this as me disliking the mailing list(s) or wanting to do away with them.

All that said.....

I think it's important that as a community we consider making it easier for the project to have a web presence where end users (and developers) can chat together, give each other support, ask questions and maintain and archive of guides/how tos/and have threads that are much easier to search and navigate. Most importantly, I think it's very important that we do this on a platform that the project has full control over. That way the rug can't be pulled out from under us and the community maintains control over its own destiny.

I'd like to call everyone's attention to FreeBSD's official support forums. Which are very active with lots of discussion happening. Mostly from people using the OS and helping each other and some discussion about development news and of course other things: https://forums.freebsd.org/

Lurk it for awhile if you haven't. It's using Xenforo to power the forum. Which has many "social" features modern users have come to expect. But the main reason it's nice is the fact that it's easy for end users to use and navigate around. They understand it and can easily use an existing social media account of theirs to by-pass manual registration/email verification and jump right in to posting and asking questions.

With recent happenings in the wider FOSS communities lately I'm personally seeing a big influx of people that are looking to use OpenBSD for the first time on the desktop and on their servers. This is a great thing and OpenBSD's documentation is very good. But aside from this sub-reddit there really isn't a good place on the web where they can go to ask a question and get an answer quickly. The man pages are great and we should encourage people to read them. But for a user that isn't accustomed to having good man pages to read or to how UNIX-like OSs work sometimes it's better if they're given direct examples of how to do things and a little hand holding. For example, helping them set-up working mail (so they can read/participate in mailing lists) or teaching them how things are different with the BSD utils vs. the GNU ones they might be used to. Or getting a quick answer to a question like "why does this port act different on OpenBSD compared to what I'm used to?" or "why is pledge/unveil killing this port when I attempt to do something I've done on Linux for years?". You get the idea.

I really think an official support forum hosted on the OpenBSD website would be of a great benefit to the project and it would not cost the project much money to operate at all. Assuming we copied FreeBSD and opted for buying a Xenforo license the upfront costs would be like $300 for the first month (license+a server to host it on) then after that monthly costs would be very little. Probably less than $20 a month. License renewal fees also aren't that bad (like $50 a year last I looked but I'll admit it has been awhile).

I would personally be willing to help pay these costs and handle all administration/sysop tasks for such a forum. Since I'm very familiar with this software I could have this spun up in half a day provided we had a web server to toss it on and a legit license.

I'm not sure how the OpenBSD project would feel about running commercial forum software instead of something "free". phpBB is licensed under the GNU license IIRC so I don't know how the project would feel about that either. I'm mainly advocating for Xenforo because I know it very well and I do believe it's the best option for a self hosted forum software platform. It's easily extended through an add-on/template system built into the admincp. So integrating it with anything we want would be very easy.

For example, it would be very easy to mirror what's being posted on the mailing lists on the forum itself. It would be very easy to allow cross posting between the forum and the mailing lists to. Although I'm not sure I'd go that far (I think an archive of important posts would be enough). Similarly, showing updates from CVS/got/git repos related to the projects like the ports tree would be easy enough for me to implement in an afternoon. Xenforo also has a thriving add-on community with a bunch of pre-built modifications available for free (some paid). But I doubt we'd want to use a lot of that stuff but it's there if something did catch our eye.

Last but not least: With Xenforo we can have our cake and eat it to as far as appealing to people that need "modern" websites/phone access with dynamic javascript powered page elements while also having a perfectly working GUI for people wishing to access the forum from text browsers. It'd as simple as offering a different "style" (collection of templates+css) for clients that do not support "modern" web browsers.


r/openbsd • • 18h ago

cterm v1.1 ~ super small terminal emulator

Thumbnail
gallery
51 Upvotes

Hi!

This is v1.1 of cterm,

There's now: Unicode, padding and Sixel support and a lot of fixes from last release.

I finally added Unicode support since I need it for Anki reviews; same goes for Sixel, I want to see the flashcards images.

Sixel is a separated patch; I assume most people don't want it so I excluded it.

Only bdf (more generally, bitmap) fonts supported, but if you want to convert your vector font to a bitmap, check out scripts/fontscale. It handles the scaling and conversion of vector fonts. You'll need otf2bdf.

I'm not sure if I want to package it since, like st, it's configured at compile-time

Finally, the codebase is still less than 30% that of st

https://github.com/uint23/cterm

For those curious:

font: https://github.com/uint23/bitmap-fonts (Andale-Mono12x24-JP.bdf)

window manager: https://github.com/uint23/sxwm

cat: https://github.com/uint23/xpet

cursor: https://github.com/wintermute-cell/xcursor-plan9 (modified for yellow insides)

wallpaper: https://github.com/uint23/uint23 (see latest commit)


r/openbsd • • 3h ago

[Mini-Guide] Using sysupgrade on modern Thinkpads like the T14 Gen 1 (and other "modern" laptops).

3 Upvotes

I'm leaving this here because it gets asked every new release and many people run into the bug and get confused when the system reboots after sysupgrade and can't finish booting. This issue affects a lot of modern Thinkpads and other semi-modern laptop hardware due to all the firmware/binary blobs involved with EFI and other misc. things on them beyond the control of the OpenBSD developers.

### The BUG

After running

sysupgrade 

The sysupgrade(8) tool will download the new kernel+base sets from whatever mirror you're using then it will reboot the system. Your system will go through POST after reboot, prompt for password to decrypt the SSD/HDD (if you use FDE) then detect the new kernel at the

boot>

prompt and either automatically attempt to run the kernel update after a short time or you can manually start by pressing return key.

So what happens is on may modern Thinkpads/laptops it'll start probing for hardware and get stuck here:

scsibus0 at <something>: 256 targets

Then it'll refuse to go any further. There are reports on the mailing lists that some machines can eventually pass through this freeze if you let them sit for 24-48+ hours. But I've personally never had the free time to let the machine sit idle that long to figure out if it'll work on my Thinkpad T14 Gen 1. Hence why I haven't sent a dmesg or filed a bug report even after dealing with this for two-three years now.

######## How to work around this issue

So what you'll want to do is shutdown/power down the machine. In other words; power cycle it aka turn it off and on again. If you do this and attempt booting again something in the firmware gets properly initialized and the hardware/disk can be properly brought up during the upgrade and the process will complete like it should. If you've already used sysupgrade(8) and gotten stuck just power cycle the machine. But if you want to avoid it in the future when using the tool invoke it with the "-n" flag then manually run

shutdown -p now 

Afterwards. The -n flag with sysupgrade instructs it to download the new kernel+base system sets to your /home/_sysupgrade directory but it does not automatically reboot the machine once the files have finished downloading. This way you can manually issue the shutdown(8) afterwards at your convenience. Then you can avoid the whole having to forcefully hold down the power button on your machine during POST/where it gets hung during boot when attempting to search for /bsd.upgrade on disk.

So on my machine running -current it looks like this:

I run:

doas sysupgrade -s -n

To download the latest current snapshot from the mirror I have set-up in /etc/installurl

After that once I have a chance to close/save my work in EDITOR and close stuff like my open browser I issue the command

doas shutdown -p now

Which will shutdown the system of course. Then I manually power it back on with the power button. Enter my password to decrypt the SSD when prompted. It detects /bsd.upgrade and installs the new kernel+base system sets. Then reboots on its own (which will work without hanging, at least on my machine). Enter my decryption password again and go through boot process until graphical log-in comes up. Log-in as my user account and I'm back in business since all my stuff like emacs, tmux session etc. auto launches based on configuration in my ~ directory.

This was pretty annoying the first time I ran into it on this new laptop. I've been wanting to track down the root cause for over two years now but again. I just haven't had time to wait around 24-48+ hours to see if it would finally pass through whatever is blocking it (I assume the machine's firmware/BIOS) to get any logs worth sending in as a bug report.

If any of you guys around here smarter than myself might know what may be causing this or how I could get logs without waiting 1-2 days and praying I'm all ears.

I hope someone with a newer thinkpad or Apple laptop (or any others that might suffer from this issue) will find this useful in the future. Other than this one issue and a minor issue with left mouse button not "waking up" properly after suspending to RAM I have no other major bugs with this particular machine. The mouse not waking up is usually as simple as running

zzz

Again and resuming. Typically, second time it wakes up the button comes back and functions just fine until I use zzz again. I think ZZZ might still be broken on this particular machine but I haven't attempted to suspend to SSD in over a year now.

Hope this was helpful.


r/openbsd • • 18h ago

I want to use OpenBSD as my daily driver but want to keep testing Linux distros virtually but can't

9 Upvotes

My desktop motherboard went bad recently. I an planning to assemble a new one soon.

I want to use OpenBSD as my daily driver but want to keep testing Linux distros virtually but as far as I know OpenBSD doesn't offer Oracle Virtual Box or similar app.

Any ideas?


r/openbsd • • 3d ago

Multimedia server inside a chroot environment

16 Upvotes

I understand that, by default, OpenBSD's http daemon (httpd.conf) runs in a chroot environment (/var/www). However, what I do not understand is why this is causing PHP hangups when I try to upload something to my Wordpress media folder. In addition, audio files (.m4a, .mp3) that are referenced by HTML5 pages throw an error when I try to play them ...

Basically, my question is: what do I need to do with my server configuration to allow the web server to properly handle these files. I would like to be able to use PHP and am wondering if I need to create a directory for it within the chroot directory (/var/www) for it to work.

Any useful guides on this are appreciated. I am relatively new to OpenBSD.


r/openbsd • • 4d ago

resolved firefox and unicode == small characters

Post image
28 Upvotes

OpenBSD -current with Mozilla Firefox 159.0.1 20261105201837.

I'm unable to change the font size for unicode characters (specifically traditional and simplified Chinese). The font size/encoding settings doesn't affect the size of the rendered characters and zoom text only affects western/latin characters. I've searched here and mailing lists and haven't found a solution. I even tried Hanzisize extension but that didn't work either (no change in font size).

Attached is an example wikipedia page of tiny Chinese character rendering next to Western/Latin characters.

Any tips for getting Chinese characters to render larger and/or respond to font size requests?


r/openbsd • • 5d ago

How to go about testing new changes under /usr/src without rebuilding the whole world?

25 Upvotes

I'm trying some pf-related changes¹ that require modifying files in /usr/src/sbin/pfctl/ and corresponding files in /usr/src/sys/net/pf*.[ch].

However, when I went to (re)build pfctl, it complained about a missing field because it was finding the original/unmodified /usr/include/net/pfvar.h file instead of the modified /usr/src/sys/net/pfvar.h file.

Is there some method that devs use to build a subset of things without rebuilding the whole world? Or do I have to kick off a "build the whole OpenBSD snapshot release image" process, then boot into that snapshot/kernel somehow to test my updated pf.conf/pfctl?

⸻

¹ The goal is to have a way to specify that any connection to a port triggers an overload and add the remote address to a table. Currently max-src-conn and max-src-conn-rate require at least one connection before they kick in and pfctl balks if I try to specify a value of 0 in pf.conf—tweaking the source for either of those so that they accept 0 as a minimum limit has a lot of snarled code because it assumes that limit=0 means we're not limiting. Adding a 3rd prohibited option seemed like the cleanest route to getting the "if you merely connect once, you've triggered overloaded" I was hoping for.


r/openbsd • • 5d ago

CLI guidelines

22 Upvotes

I found clig.dev . Some of it's advice runs contrary to what I (a novice) expect in OpenBSD. (configuration in ~/.config instead of /etc) Is there a guide yall find more idiomatic? (big plus if it's something an author actually thought was worth writing)


r/openbsd • • 10d ago

OpenBSD +Spectrwm

Thumbnail
gallery
95 Upvotes

Hi as you can see my former post where I, asked which wm to install my choice felt on Spectrwm why well muscle memory I am long time dwm/dwl user and this wm has long roots in OpenBSD if I am not mistaken. Here is my system finished and ready. I use nextdns unbound and pf in workstation mode. Librewolf alacritty and yt-x to watch YouTube and Darktable for work. Man it’s awesome be home again.


r/openbsd • • 10d ago

OpenBSD System management bus (SMBus) access via Python

17 Upvotes

Hi there.

First post on Reddit, so please be gentle. I want to access SMBus via Python, which works with the smbus3 package on Linux-based OSs. But because the /dev/i2c-0 device does not exist on OpenBSD, the smbus3 package does not work. I found out that the iic driver (https://man.openbsd.org/iic.4) can access SMBus on OpenBSD, but I don't know how to get there from Python. Is there someone that can either give some kind of translation from smbus3-based code to iic-based code or come up with a rudimentary Python package that adapts smbus3 to OpenBSD? Maybe one can call the iic functions from Python in a wrapper type way? Maybe one can generate the /dev/i2c-0 with the iic driver? Sorry, but this is far beyond my capabilites.

Cheers, tandoori

EDIT: From this post (https://www.reddit.com/r/openbsd/comments/vv6gkx/can_i_access_i2c_from_userland/), it seems like there is no userland access for iic/SMBus. Only a "kernel framework for writing drivers" (https://man.openbsd.org/iic.9) is mentioned. Or can one use exactly this framework to get a iic device for userland as the thread creator asked?


r/openbsd • • 11d ago

i enjoy bspwm.

Post image
119 Upvotes

This is my first time using bspwm and actually it was on openbsd lol


r/openbsd • • 11d ago

OpenBSD Mangowm

19 Upvotes

Hi
I am not a new user I just made a new account. Because Reddit being Reddit. And I have question about Mangowm on OpenBSD what is you guys experience? Or should I just stick to the good old dwm ? The reason I ask is more to try out how it works and I miss running OpenBSD.


r/openbsd • • 11d ago

Has this error been observed? Is the cause known? Boot command fails in the installer.

Post image
6 Upvotes

Hardware is a Thinkpad L420 with the latest bios and a I7-2640M. I have installed OpenBSD 8.0 on a Mac Pro 5,1 and got through it, but fauls almost immediately on this laptop.


r/openbsd • • 12d ago

first ever bsd booted on a phone? Spoiler

Post image
92 Upvotes

hello, and yes all of this is true. i think i am the first (or one of the first) person to boot openbsd on a actual phone.

some details about this setup:

phone model: asus zenfone3 (ZE520KL)

cpu: snapdragon 625

i got it working with chainloading, it's something like this: aboot → lk2nd → U-Boot → OpenBSD

currently this is working: screen and usb
currently it's not on github or any where but it will be uploaded soon.

(if any of you zenfone3 owners are reading this, here's my guide to unlock the bootloader https://github.com/proshiv85-byte/UnlockZenfone3 )


r/openbsd • • 13d ago

Daily driver use: practical concerns

25 Upvotes

Dear r/openbsd,

I've been using the OS since around 5.5 on a number of my servers, and I've always greatly enjoyed it. Such an amazingly awesome OS.

Recently I've been seriously considering running it as a daily driver on my Thinkpad with a Ryzen 4750U inside, but there are some practical concerns that worry me.

I would like to hear from those of you who have been running it as a daily driver for a while.

Most of the online world is web-based, so Slack, Teams, whatever, none of that should be a problem, with Firefox and Chromium in the package repos. Correct?

How do you deal with exchanging files? From what I gather reading from, and writing to, fat32/ext4 from OpenBSD, and ffs2 from Linux, is cumbersome and hacky and incomplete functionality - how do you solve the problem of flash drives, mounting the other dual-booted OS's drive to fix things, etc?

Thank you very much for giving me some perspective on this.


r/openbsd • • 13d ago

Dependency

Post image
15 Upvotes

When im trying to update,this pop up and say cant update. Can someone explain this to me and help me pls?


r/openbsd • • 13d ago

OpenBSD on a Thinkpad T60

14 Upvotes

Was searching around for laptops with 'taller' monitors and it looks like the T60 was the last thinkpad with a 4:3 monitor. I have an old one in the basement -- digging it out for a Sunday afternoon workout. I expect I can use it for most of daily tasks -- documents / spreadsheets and browsing (dont really care about streaming videos etc)

Anyone running on a T60 these days ?

UPDATE 11/12 - After upgrading the CPU to 64bit (T7600) I was able to install 8.0 amd64 with the packages needed. Everything "works" out of the box after the install. Will max out the RAM to 3g and if only there was way to control the fan noise......Definitely will not replace my current daily driver ...but works in a pinch and of course a head turner on the daily transit.


r/openbsd • • 14d ago

OpenBSD after one week.

101 Upvotes

Hello everyone. I'm currently using OpenBSD 8.0 on my Thinkpad T420 for about a week now. I am just LOVING how this system feels. It's just stable and polished. The only problem i had was about UVM memory envolving firefox, but i solved it myself by putting the process count on 1. I'm currently using CWM, and, honestly, i'm veeeery satisfied. The wifi just works great, hibernation and brightness are perfect. I REALLY DON'T WANT GOING BACK TO LINUX OR FREEBSD!! My daily uses on my laptop basically are:

-A browser (watching videos, reddit, chatting on forums, youtube music, reading docs...);
-A PDF viewer like Zathura;
-Terminal (currently using XTERM);
-Other simple stuff (File Manager (nnn), xclock, etc).

I loved the community too. In that first week, you guys helped me a lot on understanding the system and troubleshooting problems. Special big thank you for u/linetrace and other guys for explaining me the basis and pointing me the correct documentation. Big thx.

A screenshot of my current setup:


r/openbsd • • 14d ago

OpenBSD refuse to boot

Thumbnail
gallery
22 Upvotes

I installed OpenBSD 8.0 on this i386 machine with the sets pulled from ftp.openbsd.org. I let the default autolayout disk setup and didn't used disk encryption. When asked if I wanted X, I replied yes, and also yes when asked if I want Xenodm to launch X. First picture is the last thing I see before my screen turn off. Second picture is detail about my hardware. Note : even though the screen turn off, the power button light stay on and the fans also keep rotating. If someone could help me, it would be nice.


r/openbsd • • 14d ago

I intend to migrate to OpenBSD, but I want to confirm certain doubts I have about drivers.

20 Upvotes

After I started using FreeBSD on my PC, I wanted to use FreeBSD on my laptop, but it doesn't have Wi-Fi support, so I gave up. But a friend of mine said that OpenBSD fully supports my laptop, so I did some research:

It's a Lenovo Thinkpad E14 Gen 7 - AMD

APU - Ryzen 5 220 + Radeon 740M. From what I've read, it seems to support OpenBSD normally. Has anyone used OpenBSD on hardware with this APU?

Ethernet - Realtek RTL8168, already works on FreeBSD, and on OpenBSD as well, from what I've read, so I have no doubt it will work.

Wi-Fi (my biggest concern) - MEDIATEK MT7922, from what I understand, the mwx driver is what supports my Wi-Fi chip, but it seems it was only tested on the MEDIATEK MT7921, and it's also unclear if it's already available in OpenBSD 8.0 or only from OpenBSD 8.1 onwards.

Could someone who uses OpenBSD or follows the project more closely clarify this? Thank you for your patience!


r/openbsd • • 14d ago

iwx firmware on 8.0

13 Upvotes

I used a USB drive to get the firmware fw_update worked normally and ls /etc/firmware/iwx* does give me all the files is this a problem on 8.0?

I keep getting iwx0: could not load firmware, 35

iwx0: failed to load init firmware