The Work-In-Progress Rust-Written Apple DRM Driver Manages To Start Wayland's Weston
After passing the initial spinning cube milestone this past weekend, Asahi Lina has been working on bringing up more of this reverse-engineered kernel DRM/KMS driver. The actual display output still isn't working yet (Update: as of today, the display output is now working too!) but today took to livestreaming while working to bring up an actual Linux desktop on this first Rust DRM driver.
Asahi Lina shows off Weston with the in-development DRM kernel driver.
The KDE Plasma desktop isn't yet working on this driver but at least as of today the milestone was crossed of being able to start Wayland's Weston reference compositor.
Asahi Lina also showed off the current state of starting the X.Org Server with the driver.
🚀 Weston/Wayland works!!!!!! 🚀— Asahi Lina / 朝日リナ //nullptr::live (@LinaAsahi) September 28, 2022
KDE doesn't start all the way yet, but on X at least it showed the splash screen ^^ pic.twitter.com/WTf6Qaynl2
It's exciting to see the good and dedicated progress being made on bringing up this Apple DRM driver for Linux as well as the user-space work happening with the Mesa "AGX" driver for OpenGL support. Granted, it will still be some months and into 2023 before there is likely nice upstream support for end-users. The current target has been around OpenGL ~2.1 by year's end with the already mainlined Mesa code while getting this Rust DRM kernel driver mature and mainlined will likely take much longer. In any event, this effort is moving forward for those interested in running Linux on Apple M1/M2 hardware.
Besides the big graphics undertaking, the feature support Wiki for Asahi Linux outlines the progress on other ongoing hardware driver work like Thunderbolt, video encode/decode, neural engines, microphones, internal speakers, web camera, and other work-in-progress items for modern Macs.