Mir (software) explained

Mir
Author:Canonical Ltd.
Developer:Canonical Ltd.
Latest Release Version:2.17.0
Latest Release Date:[1]
Programming Language:C++
Operating System:Linux
Genre:Display server
License:GPLv2 or GPLv3[2]

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 as part of the development of Unity 8, intended as the next generation for the Unity user interface. Four years later Unity 8 was dropped[6] although Mir's development continued for Internet of Things (IoT) applications.

Software architecture

Mir is built on EGL[7] and uses some of the infrastructure originally developed for Wayland[8] such as Mesa's EGL implementation[7] and Jolla's libhybris.[9] [10] The compatibility layer for X, XMir, is based on XWayland.[11]

Other parts of the infrastructure used by Mir originate from Android. These parts include Google's Protocol Buffers,[12] and previously included Android's input stack,[13] which has since been replaced by Wayland's libinput, prior to the end of 2015. 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".[14]

According to Ryan Paul of Ars Technica,

it has basic Wayland support.[15]

Adoption

, 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,[16] based on the previous proof-of-concept port of XBMC to Wayland.[17] On the same day Canonical developer Oliver Ries had confirmed that "this is the first native Mir client out in the wild".[18]

Among Ubuntu derivatives using a non-Unity environment, Xubuntu developers had announced in early August 2013 that they would evaluate running Xfce via XMir,[19] but three weeks later decided to refrain from adopting it.[20]

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.[21] Later, on, 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.[22] [23]

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."[24]

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."

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."[25]

Toolkits

Criticism

In March 2013, Canonical Ltd. announced Mir as the replacement display server for the X.Org Server in Ubuntu.[33] Previously, in 2010, it had announced that it would use Wayland.[34] Canonical stated that it could not meet Ubuntu's needs with Wayland. There were several posts made in objection or clarification, by people leading other similar or affected projects.[35] [36] [37] [38]

When originally announcing Mir, Canonical made various claims about Wayland's input system, which the Wayland developers rebutted.[39] [40] 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."[41] In late 2015 Mir switched from a custom Android-derived input stack to Wayland's libinput.[42] [43]

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."[44] [45] [46] [47] Garrett's concerns were echoed by Bradley M. Kuhn,[48] [49] Executive Director of the Software Freedom Conservancy.[50] 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,[51] 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."[52] [53] [54]

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."[55] [56] [57]

See also

Notes and References

  1. Web site: Mir - Releases. . 20 June 2024.
  2. Web site: Mir Relicensed To GPLv2 Or GPLv3. Larabel. Michael. 9 August 2017. Phoronix. 21 November 2017.
  3. Web site: MirSpec. wiki.ubuntu.com. 6 March 2013.
  4. Web site: Canonical reveals plans to launch Mir display server – Update. https://web.archive.org/web/20130306011841/http://www.h-online.com/open/news/item/Canonical-reveals-plans-to-launch-Mir-display-server-Update-1815982.html. 6 March 2013. H-online.com. 24 February 2013. 6 March 2013.
  5. Web site: Brodkin. Jon. Ubuntu dumps X window system, creates replacement for PC and mobile. Ars Technica. 17 May 2012. 6 March 2013.
  6. Web site: Ubuntu Unity is dead: Desktop will switch back to GNOME next year. arstechnica.com. 5 April 2017 . 5 April 2017.
  7. Web site: Canonical announced a new display server – Mir, and it is good for the consumer . Geek.co.il . 12 March 2013 . 23 August 2013 .
  8. Web site: Tomorrow Comes Today: Mir and YOU! . Christopher Halse Rogers . 23 August 2013 . https://web.archive.org/web/20130323144343/http://blog.cooperteam.net/2013/03/mir-and-you.html . 23 March 2013 . dead .
  9. Web site: Carsten Munk . Wayland utilizing Android GPU drivers on glibc based systems, Part 1 . Mer Project . 11 April 2013 . 3 July 2013 .
  10. Web site: libhybris in Launchpad . Launchpad.net . 5 February 2013 . 3 July 2013 .
  11. Web site: Mir – An outpost envisioned as a new home . Thomas Voss . 4 March 2013 . 23 August 2013 .
  12. Web site: Tomorrow Comes Today: Artistic differences . Christopher Halse Rogers . 18 March 2013 . 27 February 2023 .
  13. Web site: android-input README . Launchpad.net .
  14. Web site: Tomorrow Comes Today: Server Allocated Buffers in Mir . Christopher Halse Rogers . 23 August 2013 . https://web.archive.org/web/20131106130925/http://blog.cooperteam.net/2013/03/server-allocated-buffers-in-mir.html . 6 November 2013 . dead .
  15. Web site: Mir Now Has Initial Support For Wayland Clients. 18 September 2017. Phoronix. 28 September 2017.
  16. Web site: XBMC on Mir . Sam Spilsbury . 23 July 2013 . 23 August 2013 .
  17. Web site: "Hello" from XBMC on Wayland . Sam Spilsbury . 27 February 2013 . 13 September 2013 .
  18. Web site: Sam Spilsbury is still the man. Oliver Ries. Google+. 23 August 2013.
  19. Web site: XMir-Based Xubuntu Images Now Available. Phoronix.com. 6 August 2013. 23 August 2013.
  20. Web site: Xfce-Based Xubuntu Will Not Ship XMir For 13.10. Phoronix.com. 23 August 2013.
  21. Web site: Ubuntu graphic stack roadmap update. Lists.ubuntu.com. 26 June 2013. 17 July 2013.
  22. Web site: Ubuntu 13.10 Desktop Will Not Use XMir By Default. Phoronix.com. 4 October 2013.
  23. Web site: XMir update for Ubuntu 13.10. Fridge.ubuntu.com. 30 September 2013. 4 October 2013.
  24. Web site: Mark Shuttleworth's Q&A. Youtube. Shuttleworth. Mark. 20 May 2016.
  25. Web site: Unity8 . 8 April 2017. Shuttleworth. Mark. Google Plus. 8 April 2017.
  26. Web site: Announcing SDL 2.0.2 . 8 March 2014 . 16 March 2014 . 7 December 2018 . https://web.archive.org/web/20181207160208/http://lists.libsdl.org/pipermail/sdl-libsdl.org/2014-March/093652.html . dead .
  27. Web site: Some of Linux's Most Popular Games Will Run Natively on Mir . Joey-Elijah . Sneddon . 5 February 2014 . 19 March 2014 .
  28. Web site: SDL 2.0.4 Was Quietly Released Last Week With Wayland & Mir By Default. Phoronix.
  29. Web site: Sdl 2.0.10 released!. 25 July 2019. 8 December 2019. Simple Directmedia Layer.
  30. Web site: GTK+ 3.16.0 released. Matthias. Clasen. 22 March 2015. 10 June 2015.
  31. Web site: GTK4 Ejects The Mir Backend & Drops The Big GDK Lock - Phoronix. 2021-05-09. phoronix.com.
  32. Web site: Ubuntu SDK . Canonical Ltd. 11 September 2015. 11 September 2015.
  33. Web site: Canonical announces Mir, a custom display server that will serve up future versions of Unity . engadget.com . 4 March 2013 .
  34. Web site: Unity on Wayland . Shuttleworth . Mark . Mark Shuttleworth . 4 November 2010 . 16 July 2013 .
  35. Web site: War is Peace . Grässlin . Martin . 8 March 2013 . 16 July 2013 .
  36. Web site: KDE, LightDM and the Mir Kerfuffle . Edmundson . David . 12 March 2013 . 16 July 2013 . dead . https://web.archive.org/web/20130518151403/http://www.sharpley.org.uk/blog/lightdm-mir-wayland . 18 May 2013 .
  37. Web site: GNOME Will Move Full-Speed With Wayland Support . Larabel . Michael . Michael Larabel . 13 March 2013 . . 16 July 2013 .
  38. Web site: Mir in Kubuntu . Grässlin . Martin . 12 May 2013 . 16 July 2013 .
  39. Web site: Upstream X/Wayland Developers Bash Canonical, Mir . Larabel . Michael . Michael Larabel . 4 March 2013 . . 16 July 2013 .
  40. Web site: A Note To Canonical: "Don't Piss on Wayland" . Larabel . Michael . Michael Larabel . 5 March 2013 . . 16 July 2013 .
  41. Web site: Mir Spec – Why Not Wayland / Weston? . 15 March 2014 . Canonical Ltd . Canonical Ltd . 7 January 2014 .
  42. Web site: Mir 0.18 Release Brings Prep Work For Vulkan, Libinput By Default . Phoronix.
  43. Web site: New Mir Release (0.18). Maker Musings. 22 April 2016. 25 June 2016. https://web.archive.org/web/20160625095513/http://kdubois.net/?p=2032. dead.
  44. Web site: Mir, the Canonical CLA and skewing the playing field . Garrett . Matthew . 19 June 2013 . . 16 July 2013 .
  45. Web site: Mir's GPLv3 License Is Now Raising Concerns . Phoronix . 19 June 2013 . 23 September 2013 .
  46. News: Die Woche: Canonical wiederholt Fehler . heise open . Heise.de . de . 23 September 2013 . 7 June 2016 . https://web.archive.org/web/20160607151128/http://www.heise.de/open/artikel/Die-Woche-Canonical-wiederholt-Fehler-1920097.html . dead .
  47. News: Intel entfernt Mir-Unterstützung . Pro-Linux.de . de . 23 September 2013 .
  48. Web site: Matthew Garrett on Mir . Bradley M. Kuhn . Ebb.org . 23 June 2013 . 23 September 2013 .
  49. Web site: Project Harmony (and "Next Generation Contributor Agreements") Considered Harmful . Bradley M. Kuhn . Ebb.org . 23 September 2013 .
  50. Web site: Software Freedom Conservancy Appoints Full-Time Executive Director . 4 October 2010 .
  51. Web site: On Selling Exceptions to the GNU GPL . 7 January 2010 . Richard Stallman . Free Software Foundation .
  52. Web site: Kubuntu Won't be Switching to Mir or XMir . KDE . 23 September 2013 .
  53. Web site: Miscellaneous News . Bodnar . Ladislav . 1 July 2013 . . 7 July 2013 .
  54. Web site: Kubuntu plans to steer clear of Mir and switch to Wayland . https://web.archive.org/web/20130629223624/http://www.h-online.com/open/news/item/Kubuntu-plans-to-steer-clear-of-Mir-and-switch-to-Wayland-1897942.html . 29 June 2013 . H-online.com . 27 June 2013 . 23 September 2013 .
  55. Web site: Intel . xf86-video-intel 2.99.902 snapshot . Chris Wilson . 7 September 2013 . 8 September 2013 .
  56. Web site: Michael Larabel . Intel Reverts Plans, Will Not Support Ubuntu's XMir . Phoronix . 7 September 2013 . 8 September 2013 .
  57. Web site: Intel rejection of Ubuntu's Mir patch forces Canonical to go own way . . Jon . Brodkin . 9 September 2013 . 3 November 2013 .