xorg: Changes to 'xsf-docs'
xsf-docs/faq/general.mdwn | 19 +++++++++++++++++++
xsf-docs/howto/use-gdb.mdwn | 42 +++++++++++++++++++++++++++++++++++-------
2 files changed, 54 insertions(+), 7 deletions(-)
New commits:
commit a0dbd236a467fcd688e85d33a5409eadc6c75e38
Author: Cyril Brulebois <kibi@debian.org>
Date: Thu Feb 24 19:17:47 2011 +0100
use-gdb: Mention getting a core with gdm3.
diff --git a/xsf-docs/howto/use-gdb.mdwn b/xsf-docs/howto/use-gdb.mdwn
index 89de47e..daa7cc9 100644
--- a/xsf-docs/howto/use-gdb.mdwn
+++ b/xsf-docs/howto/use-gdb.mdwn
@@ -45,6 +45,17 @@ that.**
## Actual gdb work
+### Getting a core file
+
+ * Using `gdm3`: The idea is to tweak the daemon’s
+ `LocalXserverCommand` setting, adding the `-core` option. As of
+ `gdm3 2.30`, the defaults can be found in
+ `/usr/share/gdm/gdm.schemas`. Sample `/etc/gdm3/daemon.conf`
+ excerpt:
+
+ [daemon]
+ LocalXserverCommand=/usr/bin/Xorg -br -verbose -audit 0 -novtswitch -core
+
### Loading a core file
That’s trivial:
commit 69be710b26fb230628f64da67d0018d579ed868f
Author: Cyril Brulebois <kibi@debian.org>
Date: Thu Feb 24 19:00:13 2011 +0100
use-gdb: Mention the needed steps for each approach.
diff --git a/xsf-docs/howto/use-gdb.mdwn b/xsf-docs/howto/use-gdb.mdwn
index 4ae55ba..89de47e 100644
--- a/xsf-docs/howto/use-gdb.mdwn
+++ b/xsf-docs/howto/use-gdb.mdwn
@@ -19,12 +19,23 @@ This is a *post-mortem* approach. The idea is to run X with the
`-core` option. Once it dies, a core file (`/etc/X11/core`) is
generated, and can be loaded from `gdb`.
+Follow these steps:
+
+ 1. Getting a core file.
+ 2. Loading a core file.
+ 3. Displaying/saving a backtrace.
+
### Two-machine approach
You pay the “need a second machine” price, but that buys you
interactivity. Just log into the first machine from the second one,
using `ssh`.
+Follow these steps:
+
+ 1. Attaching/Starting X from gdb.
+ 2. Displaying/saving a backtrace.
+
### Needed packages
Obviously, `gdb` is needed; `xserver-xorg-core-dbg` contains the
commit 9de1c5e28da7ecba417876671cdfef1ea9bd335f
Author: Cyril Brulebois <kibi@debian.org>
Date: Thu Feb 24 18:52:57 2011 +0100
use-gdb: Mention loading a core dump.
diff --git a/xsf-docs/howto/use-gdb.mdwn b/xsf-docs/howto/use-gdb.mdwn
index a3be461..4ae55ba 100644
--- a/xsf-docs/howto/use-gdb.mdwn
+++ b/xsf-docs/howto/use-gdb.mdwn
@@ -34,6 +34,14 @@ that.**
## Actual gdb work
+### Loading a core file
+
+That’s trivial:
+
+ # gdb -c /etc/X11/core
+
+Now `gdb` is ready to display backtraces.
+
### Attaching X from gdb
The way of starting X doesn’t really matter, as `gdb` makes it
commit 2951c0265f337b17d95e2f16f149e1e11f504e52
Author: Cyril Brulebois <kibi@debian.org>
Date: Thu Feb 24 18:50:20 2011 +0100
use-gdb: Mention the core file for the single machine approach.
diff --git a/xsf-docs/howto/use-gdb.mdwn b/xsf-docs/howto/use-gdb.mdwn
index df7152d..a3be461 100644
--- a/xsf-docs/howto/use-gdb.mdwn
+++ b/xsf-docs/howto/use-gdb.mdwn
@@ -15,17 +15,15 @@ with a single machine.
### One-machine approach
-From a console (let’s assume it’s `vt1`), open a `root`
-terminal. Then, start a loop which will bring you back to this console
-after a given delay (in the following example, every 60 seconds), just
-in case. The ampersand (`&`) at the end makes it a background job.
-
- while :; do sleep 60; chvt 1; done &
+This is a *post-mortem* approach. The idea is to run X with the
+`-core` option. Once it dies, a core file (`/etc/X11/core`) is
+generated, and can be loaded from `gdb`.
### Two-machine approach
-That’s simpler, but then you need a second machine. Just log into the
-first machine from the second one, using `ssh`.
+You pay the “need a second machine” price, but that buys you
+interactivity. Just log into the first machine from the second one,
+using `ssh`.
### Needed packages
commit 25fbfe0adec72cd09ceee2f8055f583602e6eb75
Author: Cyril Brulebois <kibi@debian.org>
Date: Thu Feb 24 18:39:55 2011 +0100
faq/general: Mention configure-input, and terminate:ctrl_alt_bksp.
diff --git a/xsf-docs/faq/general.mdwn b/xsf-docs/faq/general.mdwn
index 80c23f3..515bc78 100644
--- a/xsf-docs/faq/general.mdwn
+++ b/xsf-docs/faq/general.mdwn
@@ -3,6 +3,14 @@
Cyril Brulebois <kibi@debian.org>
+## Input drivers
+
+ * *How do I configure input for X?*
+ Look at the [how to configure input](../howto/configure-input.html) documentation.
+
+ * *Why can’t I kill X through `Ctrl+Alt+Backspace`?*
+ That’s explained in the above-mentioned documentation.
+
## Video drivers
### Intel driver
commit c9df1b6b4b232d43f35f0456dd731428f9a982ef
Author: Cyril Brulebois <kibi@debian.org>
Date: Mon Feb 21 16:56:06 2011 +0100
faq/general: Mention how to start a bare X session.
diff --git a/xsf-docs/faq/general.mdwn b/xsf-docs/faq/general.mdwn
index 8e86196..80c23f3 100644
--- a/xsf-docs/faq/general.mdwn
+++ b/xsf-docs/faq/general.mdwn
@@ -37,3 +37,14 @@ Cyril Brulebois <kibi@debian.org>
(view it online:
[for squeeze](http://git.debian.org/?p=pkg-xorg/driver/xserver-xorg-video-nouveau.git;a=blob;f=debian/README.Debian;h=27ced6b1bf5102a5b72525318439efdfb330745d;hb=6c2f12ca18f55b55d49e083d86d87d970ce53a07),
[for sid](http://git.debian.org/?p=pkg-xorg/driver/xserver-xorg-video-nouveau.git;a=blob;f=debian/README.Debian)).
+
+
+## Others
+
+### Session management
+
+ * *How to start a bare X session (without Gnome, KDE, etc.)?*
+ Assuming there’s no X running on the `:1` display, run this from a
+ VT:
+
+ startx /usr/bin/xterm -- :1
Reply to: