Mir

Merge lp:~vanvugt/mir/undocument-xmir into lp:mir

Proposed by Daniel van Vugt
Status: Merged
Approved by: Alan Griffiths
Approved revision: no longer in the source branch.
Merged at revision: 2985
Proposed branch: lp:~vanvugt/mir/undocument-xmir
Merge into: lp:mir
Diff against target: 249 lines (+3/-201)
5 files modified
doc/building_source_for_pc.md (+0/-47)
doc/debug_for_xmir.md (+0/-85)
doc/installing_prebuilt_on_pc.md (+2/-9)
doc/mainpage.md (+0/-1)
doc/using_mir_on_pc.md (+1/-59)
To merge this branch: bzr merge lp:~vanvugt/mir/undocument-xmir
Reviewer Review Type Date Requested Status
Alan Griffiths Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+273207@code.launchpad.net

Commit message

Remove documentation about the old xmir. It's long dead (LP: #1200114)

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Yep.

There's other stuff that's out of date too. But beyond current scope.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/building_source_for_pc.md'
2--- doc/building_source_for_pc.md 2013-08-28 03:41:48 +0000
3+++ doc/building_source_for_pc.md 2015-10-02 10:04:24 +0000
4@@ -65,50 +65,3 @@
5
6 Compile as per normal instructions and pass --with-egl-platforms="mir,drm" to
7 the configure options. You will need libmirclient installed as shown above.
8-
9-Building X.Org
10---------------
11-
12-To run an X server inside Mir you need to build a patched version of the X.Org
13-X server.
14-
15-The patch is hosted on GitHub:
16-
17- $ git clone https://github.com/RAOF/xserver.git
18-
19-Compile as per normal instructions and pass --enable-xmir to the configure
20-options. You will need libmirclient installed as shown above.
21-
22-Building the X.Org drivers
23---------------------------
24-
25-To run an X server inside Mir you also need a patched version of your X.Org
26-video driver.
27-
28-The three drivers - Intel, Radeon, and Nouveau - are available on Launchpad:
29-
30- $ bzr branch lp:~mir-team/mir/xf86-video-intel-vladmir
31- $ bzr branch lp:~mir-team/mir/xf86-video-ati-vladmir
32- $ bzr branch lp:~mir-team/mir/xf86-video-nouveau
33-
34-Compile as per normal instructions. These need to be built after the X server,
35-as they depend on new interfaces there.
36-
37-Building Unity System Compositor
38---------------------------------
39-
40-If you want to run a full system using XMir then you need to use a system
41-compositor. For Ubuntu we have a system compositor project on Launchpad
42-(https://launchpad.net/unity-system-compositor). Compile with the following:
43-
44- $ bzr branch lp:unity-system-compositor
45- $ cd unity-system-compositor
46- $ mkdir build
47- $ cd build
48- $ cmake ..
49-
50-You will need libmirserver installed as shown above.
51-
52-To use the system compositor you need a display manager that supports it. At the
53-time of writing LightDM is the only display manager with support and has been
54-available since version 1.7.4.
55
56=== removed file 'doc/debug_for_xmir.md'
57--- doc/debug_for_xmir.md 2013-09-12 21:36:55 +0000
58+++ doc/debug_for_xmir.md 1970-01-01 00:00:00 +0000
59@@ -1,85 +0,0 @@
60-Debug for XMir {#debug_for_xmir}
61-=================
62-
63-What is XMir ?
64-----------------
65-
66-In order to help with debugging, it's important to understand what XMir is
67-and what bugs are likely to occur. XMir is not a replacement to X and does
68-not alter X or compiz window management functionality in the current Ubuntu
69-stack. XMir is an addition to the system. XMir enables Mir to be
70-employed as a system compositor under the X stack, in this configuration
71-Mir composites the greeter and the desktop sessions.
72-
73-XMir is currently targeted at the Ubuntu 13.10 release as being the default
74-configuration. It currently supports open source graphics drivers based on
75-Mesa, Nouveau and Radeon. Once XMir is installed and properly configured,
76-upon boot or restart of the LightDM daemon, Mir will determine if there
77-is proper driver support; in the instance where proprietary drivers not
78-supporting the Mir driver model are detected, LightDM will continue to
79-boot into the standalone X configuration without error. From a visual
80-perspective on Ubuntu desktop, XMir and standalone X are identical (note,
81-currently there is an X cursor present on XMir but this soon be disabled,
82-making the experience truly identical and indiscernible without checking on
83-what processes are running, see \ref using_mir_on_pc).
84-
85-How to toggle between XMir and standalone X ?
86--------------------------------------
87-
88-In order to return to a standalone X configuration, comment out the following
89-line in /etc/lightdm/lightdm.conf.d/10-unity-system-compositor.conf to look to
90-look like this:
91-
92- [SeatDefaults]
93- #type=unity
94-
95-Simply reboot or restart LightDM.
96-To reverse the process, simply comment the line back in to enable XMir.
97-
98-Most common bugs
99--------------------------------------
100-
101-At the moment, the most common bugs are related to failures to boot into XMir.
102-Due to the robust fallback mechanisms in place, most failures will result in
103-completing the boot sequence standalone X configuration, when you expected
104-XMir.
105-
106-1. First check your /etc/lightdm/lightdm.conf.d/10-unity-system-compositor.conf
107- has type=unity properly enabled.
108-
109-2. When logging a bug, please include the log files contained in the
110- /var/log/lightdm/ directory. Note, it is good to inspect the last update to
111- these files to see if they were written to in your boot attempt,
112- obviously if they were not updated their contents are irrelevant.
113- The most important of these files is likely the lightdm.log and
114- unity-system-compositor.log. You are more than welcome to inspect these
115- files, frequently there will be an error statement in
116- unity-system-compositor.log which can be traced back into the source code
117- for further debug.
118-
119-3. If you have the experience of booting to a black screen which seems frozen,
120- you may attempt to switch VT's by selecting <Ctrl+Alt+F8> to see if there is
121- a UI present. Alternatively, <Ctrl+Alt+F1>, login at the console, copy out
122- the log files mentioned above, then toggle back to standalone X as described
123- above and rebooting.
124-
125-Other bugs
126--------------------------------------
127-
128-If you experience a UI lock up or a crash, it would be helpful to double check
129-for X backtracing which can be found here: https://wiki.ubuntu.com/X/Debugging
130-
131-Note, it is highly unlikely you will see any visual corruption due to XMir. If
132-you experience a visual corruption during use, it is most likely that it a bug
133-that exists in the standalone X Ubuntu configuration. Please attempt to toggle
134-back to the standalone X configuration and replicate the use case. If you
135-succeed in only being able to repeat the visual corruption in XMir and not in
136-standalone X, please file a bug with a detailed description of hardware used,
137-XMir component versions used and the use case steps. You may check the versions
138-of key XMir components by the following
139-
140- dpkg -s libmirclient3 | grep Version
141- dpkg -s libmirserver0 | grep Version
142- dpkg -s lightdm | grep Version
143- dpkg -s unity-system-compositor | grep Version
144-
145
146=== modified file 'doc/installing_prebuilt_on_pc.md'
147--- doc/installing_prebuilt_on_pc.md 2014-03-06 06:05:17 +0000
148+++ doc/installing_prebuilt_on_pc.md 2015-10-02 10:04:24 +0000
149@@ -4,12 +4,5 @@
150 Install Ubuntu 13.10 or later if you haven't done so already. Uninstall any
151 proprietary drivers (-nvidia, -fglrx) and reboot on the FOSS drivers.
152
153-Install Mir in Ubuntu 13.10:
154-
155- sudo apt-get update
156- sudo apt-get install mir-demos unity-system-compositor
157-
158-Install Mir in Ubuntu 14.04 or later:
159-
160- sudo apt-get update
161- sudo apt-get install mir-demos ubuntu-desktop-mir
162+ sudo apt-get update
163+ sudo apt-get install mir-demos
164
165=== modified file 'doc/mainpage.md'
166--- doc/mainpage.md 2015-06-26 11:31:44 +0000
167+++ doc/mainpage.md 2015-10-02 10:04:24 +0000
168@@ -41,7 +41,6 @@
169
170 - \ref using_mir_on_pc
171 - \ref using_mir_on_android
172- - \ref debug_for_xmir
173 - \ref demo_shell_controls
174 - \ref demo_server
175
176
177=== modified file 'doc/using_mir_on_pc.md'
178--- doc/using_mir_on_pc.md 2015-02-22 07:46:25 +0000
179+++ doc/using_mir_on_pc.md 2015-10-02 10:04:24 +0000
180@@ -24,68 +24,10 @@
181 custom Mesa yourself and ensuring it can be found by Mir, e.g., by using
182 LD_LIBRARY_PATH.
183
184-Using Mir as system compositor with X
185--------------------------------------
186-
187-Note: for this to work you need to have Mir and all its dependencies (which
188-include lightdm, Mesa and the Xorg drivers). The easiest way is to run Ubuntu
189-13.10 or later.
190-
191-If you are running Ubuntu 13.10, additionally install unity-system-compositor.
192-If you are running Ubuntu 14.04 or later, instead install ubuntu-desktop-mir.
193-These packages will install dependencies you need and will create a file in
194-/etc/lightdm/lightdm.conf.d/10-unity-system-compositor.conf.
195-
196-If you have instead built from source, to set up the system compositor, create
197-/etc/lightdm/lightdm.conf.d/10-unity-system-compositor.conf yourself and make
198-it look like this:
199-
200- [SeatDefaults]
201- type=unity
202-
203-Now restart lightdm:
204-
205- $ sudo restart lightdm
206-
207-Or you may simply reboot.
208-
209-In theory, you should now find yourself back in Ubuntu and not notice
210-anything different. You can verify you're in Mir several ways:
211-
212- $ ps aux | grep unity-system-compositor
213- $ grep -i xmir /var/log/Xorg.0.log
214- $ ls -l /var/log/lightdm/unity-system-compositor.log
215-
216-If problems occur, have a look at the following log files:
217-
218- /var/log/lightdm/lightdm.log
219- /var/log/lightdm/unity-system-compositor.log
220- /var/log/lightdm/x-0.log
221- /var/log/Xorg.0.log
222-
223-You may not be able to get to a terminal if your video system has locked up. In
224-that case secure shell into to your machine and read / copy these logs. They are
225-overwritten on next boot.
226-
227-In any case, if you wish to deactivate XMir upon boot, simply comment out
228-the type=unity line from
229-/etc/lightdm/lightdm.conf.d/10-unity-system-compositor.conf, like this:
230-
231- [SeatDefaults]
232- #type=unity
233-
234-If you cannot boot into a graphical display or terminal to disable XMir, then
235-enter recovery mode as described in https://wiki.ubuntu.com/RecoveryMode. From
236-there edit / move / remove
237-/etc/lightdm/lightdm.conf.d/10-unity-system-compositor.conf and then reboot.
238-To modify the filesystem you will need to enter the following command:
239-
240- # mount / -o remount,rw
241-
242 Running Mir natively
243 --------------------
244
245-You can also run Mir natively. To do so, log in to VT1 (Ctrl+Alt+F1) _after_
246+To run Mir natively on a PC/desktop/laptop, log in to VT1 (Ctrl+Alt+F1) _after_
247 you are already logged in to X. If you do so before then you will not be
248 assigned adequate credentials to access the graphics hardware and will get
249 strange errors.

Subscribers

People subscribed via source and target branches