Software:Mir
Original author(s) | Canonical Ltd. |
---|---|
Developer(s) | Canonical Ltd. |
Stable release | 2.12.1
/ 24 February 2023[1] |
Written in | C++ |
Operating system | Linux |
Type | Display server |
License | GPLv2 or GPLv3[2] |
Website | {{{1}}} |
Mir is a computer display server and, recently, a Wayland compositor for the Linux operating system that is under development by Canonical Ltd. It was planned to replace the currently used X Window System for Ubuntu;[3][4][5] however, the plan changed and Mutter was adopted as part of GNOME Shell.
Mir was announced by Canonical on 4 March 2013[6] as part of the development of Unity 8, intended as the next generation for the Unity user interface.[3] Four years later Unity 8 was dropped[7] although Mir's development continued for Internet of Things (IoT) applications.
Software architecture
Mir is built on EGL[8] and uses some of the infrastructure originally developed for Wayland[9] such as Mesa's EGL implementation[8] and Jolla's libhybris.[10][11] The compatibility layer for X, XMir, is based on XWayland.[12]
Other parts of the infrastructure used by Mir originate from Android. These parts include Google's Protocol Buffers,[13] and previously included Android's input stack,[14] which has since been replaced by Wayland's libinput, prior to the end of 2015.[15][16] An implementation detail in memory management shared with Android is the use of server-allocated buffers which Canonical employee Christopher Halse Rogers claims to be a requirement for "the ARM world and Android graphics stack".[17][18]
According to Ryan Paul of Ars Technica,
Some of the benefits that Mir will eventually offer include lower overhead in the display pipeline, more seamless transitions between display modes during the boot process, richer input handling that will make it easier to support things like touchscreen gestures, more seamless support for systems with switchable graphics hardware (like laptops that can dynamically shift between using embedded and discrete graphics), and better application interchange (which will help improve things like the clipboard and drag-and-drop).[18]
(As of September 2017) it has basic Wayland support.[19]
Adoption
(As of May 2014), the only announced desktop environment with native support for Mir was Canonical's Unity 8. No other Linux distribution announced plans to adopt Mir as default display server.
On 23 July 2013, Compiz developer Sam Spilsbury had announced a proof-of-concept port of XBMC to Mir,[20] based on the previous proof-of-concept port of XBMC to Wayland.[21] On the same day Canonical developer Oliver Ries had confirmed that "this is the first native Mir client out in the wild".[22]
Among Ubuntu derivatives using a non-Unity environment, Xubuntu developers had announced in early August 2013 that they would evaluate running Xfce via XMir,[23] but three weeks later decided to refrain from adopting it.[24]
Ubuntu
In June 2013, Canonical's publicly announced milestones for Mir development were to ship Unity 7 with XMir by default and a pure X11 fallback mode with Ubuntu 13.10, remove the X11 fallback with Ubuntu 14.04 LTS, and Unity 8 running natively on Mir by Ubuntu 14.10.[25] Later, on 2013, Canonical announced a postponement of their Mir plans for desktop use and not use XMir as default in Ubuntu 13.10. Ubuntu Touch, however is targeted to ship with Mir and a smartphone version of Unity 8.[26][27]
In May 2016, during his traditional video interview with the community held during the Ubuntu Online Summit, Mark Shuttleworth confirmed that "You will be able to get 16.10 with Unity 8, just like you can get 16.04 with MATE, or KDE, or GNOME. It'll be there, it'll be an option, and the team that's working on that is committed to making that a first-class option."[28]
On 5 April 2017, Canonical announced that with the release of Ubuntu 18.04 LTS, the Unity 8 interface would be abandoned in favor of GNOME. When asked if the decision would also mean the end of Mir development, Canonical's Michael Hall said that given the divergent development paths taken by Mir and its competitor, Wayland, "Using Mir simply isn't an option we have."[7]
However, Mark Shuttleworth clarified on 8 April 2017 that development would continue for Mir's use in Internet of Things (IoT) applications, stating: "we have lots of IoT projects using Mir as a compositor so that code continues to receive investment."[29]
Toolkits
- SDL supported both Mir and Wayland starting with SDL 2.0.2 but it was disabled by default.[30][31] Wayland and Mir support was enabled by default starting with SDL 2.0.4.[32] With the release of 2.0.10, Mir support was dropped in favor of Wayland.[33]
- GTK 3.16 included an experimental Mir backend,[34] but was removed in GTK 4.[35]
- Qt5 is the official and supported toolkit for Unity8 and Ubuntu Touch, included in the Ubuntu SDK.[36]
Criticism
In March 2013, Canonical Ltd. announced Mir as the replacement display server for the X.Org Server in Ubuntu.[6] Previously, in 2010, it had announced that it would use Wayland.[37] Canonical stated that it could not meet Ubuntu's needs with Wayland.[18] There were several posts made in objection or clarification, by people leading other similar or affected projects.[38][39][40][41]
When originally announcing Mir, Canonical made various claims about Wayland's input system, which the Wayland developers rebutted.[42][43] Official Canonical documentation in 2014 states, "our evaluation of the protocol definition revealed that the Wayland protocol does not meet our requirements. First, we are aiming for a more extensible input event handling that takes future developments like 3D input devices (e.g. Leap Motion) into account ... With respect to mobile use-cases, we think that the handling of input methods should be reflected in the display server protocol, too. As another example, we consider the shell integration parts of the protocol as privileged and we'd rather avoid having any sort of shell behavior defined in the client facing protocol."[44] In late 2015 Mir switched from a custom Android-derived input stack to Wayland's libinput.[15][16]
Long-time Linux kernel developer Matthew Garrett criticized the choice of licensing for Canonical's software projects, particularly Mir. Unlike X.Org Server and Wayland, both under the MIT License, Mir is licensed under GPLv3 – "an odd [choice]" for "GPLv3-hostile markets" – but contributors are required to sign an agreement that "grants Canonical the right to relicense your contribution under their choice of license. This means that, despite not being the sole copyright holder, Canonical are free to relicense your code under a proprietary license." He concludes that this creates asymmetry where "you end up with a situation that looks awfully like Canonical wanting to squash competition by making it impossible for anyone else to sell modified versions of Canonical's software in the same market."[45][46][47][48] Garrett's concerns were echoed by Bradley M. Kuhn,[49][50] Executive Director of the Software Freedom Conservancy.[51] Richard Stallman of the Free Software Foundation has stated on the similar case of MySQL that he supports dual-licensing of GPL software, as long as there are no proprietary extensions or proprietary versions of the free program,[52] which was not the case for MySQL.
In June 2013, Jonathan Riddell of Kubuntu announced that Kubuntu did not plan to switch to Mir. He stated "A few months ago Canonical announced their new graphics system for Ubuntu, Mir. It's a shame the Linux desktop market hasn't taken off as we all hoped at the turn of the millennium and they feel the need to follow a more Apple or Android style of approach making an OS which works in isolation rather than as part of a community development method. Here at Kubuntu we still want to work as part of the community development, taking the fine software from KDE and other upstream projects and putting it on computers worldwide. So when Ubuntu desktop gets switched to Mir we won't be following. We'll be staying with X on the images for our 13.10 release now in development and the 14.04 LTS release next year. After that we hope to switch to Wayland which is what KDE and every other Linux distro hopes to do."[53][54][55]
In September 2013, an Intel developer removed XMir support from their video driver and wrote "We do not condone or support Canonical in the course of action they have chosen, and will not carry XMir patches upstream."[56][57][58]
See also
References
- ↑ "Mir - Releases". https://github.com/MirServer/mir/releases.
- ↑ Larabel, Michael (9 August 2017). "Mir Relicensed To GPLv2 Or GPLv3". Phoronix. https://www.phoronix.com/scan.php?page=news_item&px=Mir-GPLv2-or-GPLv3.
- ↑ 3.0 3.1 "MirSpec". wiki.ubuntu.com. https://wiki.ubuntu.com/MirSpec.
- ↑ "Canonical reveals plans to launch Mir display server – Update". H-online.com. 24 February 2013. http://www.h-online.com/open/news/item/Canonical-reveals-plans-to-launch-Mir-display-server-Update-1815982.html.
- ↑ Brodkin, Jon (17 May 2012). "Ubuntu dumps X window system, creates replacement for PC and mobile". Ars Technica. https://arstechnica.com/information-technology/2013/03/ubuntu-dumps-x-window-system-creates-replacement-for-pc-and-mobile/.
- ↑ 6.0 6.1 "Canonical announces Mir, a custom display server that will serve up future versions of Unity". engadget.com. 4 March 2013. https://www.engadget.com/2013/03/04/canonical-announces-mir/.
- ↑ 7.0 7.1 "Ubuntu Unity is dead: Desktop will switch back to GNOME next year". arstechnica.com. 5 April 2017. https://arstechnica.com/information-technology/2017/04/ubuntu-unity-is-dead-desktop-will-switch-back-to-gnome-next-year/.
- ↑ 8.0 8.1 "Canonical announced a new display server – Mir, and it is good for the consumer". Geek.co.il. 12 March 2013. http://geek.co.il/2013/03/12/canonical-announced-a-new-display-server-mir-and-it-is-good-for-the-consumer.
- ↑ Christopher Halse Rogers. "Tomorrow Comes Today: Mir and YOU!". http://blog.cooperteam.net/2013/03/mir-and-you.html.
- ↑ Carsten Munk (11 April 2013). "Wayland utilizing Android GPU drivers on glibc based systems, Part 1". Mer Project. http://mer-project.blogspot.com/2013/04/wayland-utilizing-android-gpu-drivers.html.
- ↑ "libhybris in Launchpad". Launchpad.net. 5 February 2013. https://launchpad.net/libhybris.
- ↑ Thomas Voss (4 March 2013). "Mir – An outpost envisioned as a new home". https://samohtv.wordpress.com/2013/03/04/mir-an-outpost-envisioned-as-a-new-home/.
- ↑ Christopher Halse Rogers (18 March 2013). "Tomorrow Comes Today: Artistic differences". https://blog.cooperteam.net/2013/03/18/artistic-differences/.
- ↑ "android-input README". Launchpad.net. http://bazaar.launchpad.net/~mir-team/mir/trunk/view/head:/3rd_party/android-input/README.
- ↑ 15.0 15.1 "Mir 0.18 Release Brings Prep Work For Vulkan, Libinput By Default". Phoronix. http://phoronix.com/scan.php?page=news_item&px=Mir-0.18-Released.
- ↑ 16.0 16.1 "New Mir Release (0.18)". Maker Musings. http://kdubois.net/?p=2032.
- ↑ Christopher Halse Rogers. "Tomorrow Comes Today: Server Allocated Buffers in Mir". http://blog.cooperteam.net/2013/03/server-allocated-buffers-in-mir.html.
- ↑ 18.0 18.1 18.2 Paul, Ryan (17 October 2013). "Ubuntu 13.10 review: The Linux OS of the future remains a year away". https://arstechnica.com/information-technology/2013/10/ubuntu-13-10-review-the-linux-os-of-the-future-remains-a-year-away/.
- ↑ "Mir Now Has Initial Support For Wayland Clients". Phoronix. 18 September 2017. https://www.phoronix.com/scan.php?page=news_item&px=Mir-Wayland-Clients-Lands.
- ↑ Sam Spilsbury (23 July 2013). "XBMC on Mir". https://smspillaz.wordpress.com/2013/07/23/xbmc-on-mir/.
- ↑ Sam Spilsbury (27 February 2013). ""Hello" from XBMC on Wayland". http://smspillaz.wordpress.com/2013/02/27/hello-from-xbmc-on-wayland/.
- ↑ Oliver Ries. "Sam Spilsbury is still the man". Google+. https://plus.google.com/u/0/117745549829232162250/posts/EM2TCVDvhsP.
- ↑ "XMir-Based Xubuntu Images Now Available". Phoronix.com. 6 August 2013. https://www.phoronix.com/scan.php?page=news_item&px=MTQyOTQ.
- ↑ "Xfce-Based Xubuntu Will Not Ship XMir For 13.10". Phoronix.com. https://www.phoronix.com/scan.php?page=news_item&px=MTQ0MjU.
- ↑ "Ubuntu graphic stack roadmap update". Lists.ubuntu.com. 26 June 2013. https://lists.ubuntu.com/archives/ubuntu-devel/2013-June/037401.html.
- ↑ "Ubuntu 13.10 Desktop Will Not Use XMir By Default". Phoronix.com. https://www.phoronix.com/scan.php?page=news_item&px=MTQ3NDQ.
- ↑ "XMir update for Ubuntu 13.10". Fridge.ubuntu.com. 30 September 2013. http://fridge.ubuntu.com/2013/10/01/xmir-update-for-ubuntu-13-10/.
- ↑ Shuttleworth, Mark. "Mark Shuttleworth's Q&A". https://www.youtube.com/watch?v=c_5WArtEFaU.
- ↑ Shuttleworth, Mark (8 April 2017). "Unity8". Google Plus. https://plus.google.com/+MarkShuttleworthCanonical/posts/7LYubpaHUHH.
- ↑ "Announcing SDL 2.0.2". 8 March 2014. http://lists.libsdl.org/pipermail/sdl-libsdl.org/2014-March/093652.html.
- ↑ Sneddon, Joey-Elijah (5 February 2014). "Some of Linux's Most Popular Games Will Run Natively on Mir". http://www.omgubuntu.co.uk/2014/02/mir-sdl-support.
- ↑ "SDL 2.0.4 Was Quietly Released Last Week With Wayland & Mir By Default". Phoronix. https://www.phoronix.com/scan.php?page=news_item&px=SDL-2.0.4-Released.
- ↑ "Sdl 2.0.10 released!". 25 July 2019. https://discourse.libsdl.org/t/sdl-2-0-10-released/26429.
- ↑ Clasen, Matthias (22 March 2015). "GTK+ 3.16.0 released". https://mail.gnome.org/archives/gnome-announce-list/2015-March/msg00029.html.
- ↑ "GTK4 Ejects The Mir Backend & Drops The Big GDK Lock - Phoronix". https://phoronix.com/scan.php?page=news_item&px=GTK4-Drops-Mir-Backend.
- ↑ Canonical Ltd (11 September 2015). "Ubuntu SDK". http://developer.ubuntu.com/.
- ↑ Shuttleworth, Mark (4 November 2010). "Unity on Wayland". http://www.markshuttleworth.com/archives/551.
- ↑ Grässlin, Martin (8 March 2013). "War is Peace". http://blog.martin-graesslin.com/blog/2013/03/war-is-peace/.
- ↑ Edmundson, David (12 March 2013). "KDE, LightDM and the Mir Kerfuffle". http://www.sharpley.org.uk/blog/lightdm-mir-wayland.
- ↑ Larabel, Michael (13 March 2013). "GNOME Will Move Full-Speed With Wayland Support". Phoronix. https://www.phoronix.com/scan.php?page=news_item&px=MTMyNjQ.
- ↑ Grässlin, Martin (12 May 2013). "Mir in Kubuntu". http://blog.martin-graesslin.com/blog/2013/05/mir-in-kubuntu/.
- ↑ Larabel, Michael (4 March 2013). "Upstream X/Wayland Developers Bash Canonical, Mir". Phoronix. https://www.phoronix.com/scan.php?page=news_item&px=MTMxNzY.
- ↑ Larabel, Michael (5 March 2013). "A Note To Canonical: "Don't Piss on Wayland"". Phoronix. https://www.phoronix.com/scan.php?page=news_item&px=MTMxODA.
- ↑ Canonical Ltd (7 January 2014). "Mir Spec – Why Not Wayland / Weston?". https://wiki.ubuntu.com/Mir/Spec#Why_Not_Wayland_.2BAC8_Weston.3F.
- ↑ Garrett, Matthew (19 June 2013). "Mir, the Canonical CLA and skewing the playing field". Dreamwidth. http://mjg59.dreamwidth.org/25376.html.
- ↑ "Mir's GPLv3 License Is Now Raising Concerns". Phoronix. 19 June 2013. https://www.phoronix.com/scan.php?page=news_item&px=MTM5MjI.
- ↑ "Die Woche: Canonical wiederholt Fehler" (in de). heise open (Heise.de). http://www.heise.de/open/artikel/Die-Woche-Canonical-wiederholt-Fehler-1920097.html.
- ↑ "Intel entfernt Mir-Unterstützung" (in de). Pro-Linux.de. http://www.pro-linux.de/news/1/20222/intel-entfernt-mir-unterstuetzung.html.
- ↑ Bradley M. Kuhn (23 June 2013). "Matthew Garrett on Mir". Ebb.org. http://ebb.org/bkuhn/blog/2013/06/23/mjg-canonical.html.
- ↑ Bradley M. Kuhn. "Project Harmony (and "Next Generation Contributor Agreements") Considered Harmful". Ebb.org. http://ebb.org/bkuhn/blog/2011/07/07/harmony-harmful.html.
- ↑ "Software Freedom Conservancy Appoints Full-Time Executive Director". 4 October 2010. http://sfconservancy.org/news/2010/oct/04/kuhn-executive-director/.
- ↑ Richard Stallman (7 January 2010). "On Selling Exceptions to the GNU GPL". Free Software Foundation. http://www.fsf.org/blogs/rms/selling-exceptions.
- ↑ "Kubuntu Won't be Switching to Mir or XMir". KDE. https://blogs.kde.org/2013/06/26/kubuntu-wont-be-switching-mir-or-xmir.
- ↑ Bodnar, Ladislav (1 July 2013). "Miscellaneous News". DistroWatch. http://distrowatch.com/weekly.php?issue=20130701#news.
- ↑ "Kubuntu plans to steer clear of Mir and switch to Wayland". H-online.com. 27 June 2013. http://www.h-online.com/open/news/item/Kubuntu-plans-to-steer-clear-of-Mir-and-switch-to-Wayland-1897942.html.
- ↑ Intel (7 September 2013). "xf86-video-intel 2.99.902 snapshot". Chris Wilson. http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=58a7611.
- ↑ Michael Larabel (7 September 2013). "Intel Reverts Plans, Will Not Support Ubuntu's XMir". Phoronix. https://www.phoronix.com/scan.php?page=news_item&px=MTQ1NjY.
- ↑ Brodkin, Jon (9 September 2013). "Intel rejection of Ubuntu's Mir patch forces Canonical to go own way". https://arstechnica.com/information-technology/2013/09/intel-rejection-of-ubuntus-mir-patch-forces-canonical-to-go-own-way/.