vasilito 87ea8a9acf quirks: DRM panel orientation infrastructure + 36-entry data file (R12)
Phase R12 (2026-06-07) — DRM panel orientation quirks.
The data side lands now; consumer wiring in redox-drm is
deferred until compositor rotation lands (Phase 4 KDE).

Changes:

  1. DrmPanelOrientation enum (mod.rs:225) with four
     values: Normal, RightUp, LeftUp, BottomUp. Sourced
     from Linux 7.1 include/drm/drm_panel_orientation.h.
     Provides from_name() for TOML parsing and as_str()
     for logging.

  2. DmiDrmPanelQuirkRule (dmi.rs:517) — DMI match + panel
     orientation, mirrors the existing DmiAcpiQuirkRule
     shape from R11.

  3. DMI_DRM_PANEL_QUIRK_RULES (dmi.rs:531) — empty
     compiled-in table; runtime TOML is the data surface
     (see 50-drm-panel.toml).

  4. load_drm_panel_orientation() (dmi.rs:537) — reads
     live SMBIOS via read_dmi_info, applies the
     compiled-in + TOML rules, returns the orientation.
     Falls back to Normal if DMI data is unavailable or
     no rule matches.

  5. read_toml_drm_panel_entries + parse_drm_panel_toml
     (toml_loader.rs) — new [[drm_panel_quirk]] TOML
     table type with  sub-table +
     string. Unknown orientation names log a warning
     and skip the entry.

  6. load_drm_panel_orientation (toml_loader) — applies
     the first matching TOML rule, returns Normal if
     none match.

  7. 1 new unit test: phase_r12_drm_panel_orientation_from_name_round_trip
     exercises all four orientation values + a bogus
     name. 123/123 redox-driver-sys tests pass.

  8. quirks.d/50-drm-panel.toml (234 lines) — 36 DMI
     entries sourced from Linux 7.1
     drivers/gpu/drm/drm_panel_orientation_quirks.c.
     Covers Acer, Anbernic, Asus, AYA NEO (full range
     including 2/2S, 2021, AIR, FLIP, Founder, GEEK,
     NEXT, KUN, SLIDE), AYN (Loki Max, Loki Zero),
     Chuwi, Dynabook, GPD (MicroPC, WIN Max, Pocket 2/3,
     WIN2/3/4, WIN Max 2), Lenovo, OneXPlayer, OrangePi,
     Samsung Galaxy Book, Valve Jupiter/Galileo
     (Steam Deck family), ZOTAC. The data spans
     laptop, tablet, and handheld form factors.

cargo test: 123/123 (was 122, +1 for the new test).
cargo check: clean.
cargo clippy: no new warnings in this code.

Consumer wiring is R12.1 (out of scope for this turn):
redox-drm will call load_drm_panel_orientation() at
connector enumeration time and apply the returned
transform once the compositor supports rotation.
2026-06-07 21:36:12 +03:00

Red Bear OS

Red Bear OS

A microkernel operating system written in Rust, derived from Redox OS

MIT x86_64 Status


What is Red Bear OS?

Red Bear OS is a general-purpose, Unix-like operating system with a microkernel architecture, written in Rust. It is a full fork of Redox OS, frozen at release 0.1.0, with added hardware support, filesystem drivers, and a KDE Plasma desktop path.

Goals:

  • AMD & Intel parity — first-class support for both platforms on bare metal
  • KDE Plasma desktop — Wayland-based desktop environment via the KWin compositor
  • Hardware GPU acceleration — AMD GPU (amdgpu) and Intel GPU drivers via redox-drm
  • Modern subsystems — USB, WiFi, Bluetooth, ext4, GRUB, D-Bus
  • Offline-first builds — reproducible from archived, BLAKE3-verified sources

Quick Start

Prerequisites

Linux x86_64 host with Rust nightly, QEMU, nasm, and standard build tools.
See the Redox Build Guide for full setup.

Build & Run

# Clone
git clone https://gitea.redbearos.org/vasilito/RedBear-OS.git
cd RedBear-OS

# Build and run the desktop target in QEMU
./scripts/run.sh --build

# Build a live ISO for bare metal
./scripts/build-iso.sh redbear-full

# Build the text-only recovery target
./scripts/run.sh --build --config redbear-mini

Repository Hosting

The canonical Red Bear OS Git server is Gitea at https://gitea.redbearos.org/vasilito/RedBear-OS.git. GitHub is not a Red Bear OS source of truth and must not be used for pushes, issues, releases, or project coordination.

Public Scripts

Script Purpose
scripts/run.sh Build and run in QEMU (-b to build, -c <config> for target)
scripts/build-iso.sh Build a live ISO for bare-metal boot
scripts/build-all-isos.sh Build all live ISO targets
scripts/network-boot.sh PXE network boot helper
scripts/dual-boot.sh Dual-boot installation helper

Config Targets

Target Type Description
redbear-full Desktop Wayland + KDE + GPU drivers + D-Bus services
redbear-mini Console Text-only recovery / install target
redbear-grub Console Text-only with GRUB boot manager

Current Status

Red Bear OS boots to a login prompt in QEMU with working wired networking, D-Bus system bus, hardware detection daemons, and filesystem support (RedoxFS, ext4, FAT).

Area Status
Boot (ACPI/x2APIC/SMP) Bare-metal proven
Userspace drivers (PCI, storage, net) Working in QEMU
D-Bus system bus + services Working (login1, PolicyKit, UDisks, UPower)
ext4 / FAT filesystems Compiles, installer-wired
POSIX gaps (relibc) 🚧 Bounded Wayland-facing support
DRM/KMS display drivers 🚧 AMD + Intel compile; HW validation pending
Wayland compositor 🚧 Bounded proof; Qt6/KF6 clients crash at init
KDE Plasma desktop 🔄 In progress (Qt6/KF6 compile; KWin/QML blocked)
WiFi / Bluetooth 📋 Planned (architected, implementation pending)

How It Works

Red Bear OS uses a userspace driver model — all drivers run as unprivileged daemons:

Kernel (microkernel)
  └── schemes: memory, irq, event, pipe, debug
        └── Driver daemons (userspace)
              ├── pcid        → PCI enumeration
              ├── e1000d      → Intel ethernet
              ├── xhcid       → USB controller
              └── vesad       → Display framebuffer

The kernel provides minimal services (memory, interrupts, IPC). Everything else — filesystems, networking, graphics, input — runs in userspace.

Documentation

Contributing

Red Bear OS uses a full fork model. Upstream Redox sources are frozen and archived. All custom work lives in local/:

local/
├── sources/     # Red Bear source forks (git repos, directly editable)
├── recipes/     # Custom packages (drivers, GPU, system)
├── docs/        # Integration and planning docs
└── scripts/     # Build, test, and release tooling

We welcome contributions made with or without AI assistance — we care about quality, not how the code was produced.

License

MIT — same as upstream Redox OS.

S
Description
RedBear Operating System, based on RedoxOS. Licenced under MIT license.
https://redbearos.org
Readme MIT 20 GiB
Languages
C 43.9%
C++ 23.5%
Makefile 7.3%
Python 3.7%
JavaScript 3.4%
Other 17.1%