1 |
On Tue, 07 Jul 2009 02:22:26 -0500 |
2 |
Dale wrote: |
3 |
|
4 |
> David Relson wrote: |
5 |
> > On Mon, 6 Jul 2009 15:21:43 -0700 |
6 |
> > Kevin O'Gorman wrote: |
7 |
> > |
8 |
> > |
9 |
> >> On Mon, Jul 6, 2009 at 2:17 PM, Paul |
10 |
> >> Hartman<paul.hartman+gentoo@×××××.com> wrote: |
11 |
> >> |
12 |
> >>> On Mon, Jul 6, 2009 at 2:33 PM, Kevin O'Gorman<kogorman@×××××.com> |
13 |
> >>> wrote: |
14 |
> >>> |
15 |
> >>>> I'm having trouble configuring X, and to save time I'd like to be |
16 |
> >>>> able to shut it down, edit some stuff, and start it up again. |
17 |
> >>>> |
18 |
> >>>> What is the gentoo way to do that? |
19 |
> >>>> |
20 |
> >>> It depends on how you started X in the first place. If you did a |
21 |
> >>> "startx" (or similar), logging out should be all you need to do to |
22 |
> >>> get out of X. If you use a login manager, XDM/GDM/KDM then it'll |
23 |
> >>> restart itself so you'll need to switch to a VT (ctrl-alt-F1) and |
24 |
> >>> then sudo /etc/init.d/xdm stop to shut down XDM (and therefore X). |
25 |
> >>> You can then rmmod your video drivers or do whatever changes you |
26 |
> >>> want to do. sudo /etc/init.d/xdm start to bring it back up. |
27 |
> >>> |
28 |
> >>> |
29 |
> >>> |
30 |
> >> Several of you suggested "/etc/init.d/xdm start" or so to get it |
31 |
> >> (re)started. It doesn't work. Instead the start-stop daemon |
32 |
> >> complains of not being able to stat "/usr/bin/xdm" which doesn't |
33 |
> >> exist. And no I didn't mispell it. I've never seen this before an |
34 |
> >> I'm baffled. |
35 |
> >> |
36 |
> >> ++ kevin |
37 |
> >> |
38 |
> > |
39 |
> > Hi Kevin, |
40 |
> > |
41 |
> > This weekend I needed to stop and start X a lot because I was |
42 |
> > experimenting with running dosemu from a tty command line and the |
43 |
> > DOS application I'm running under dosemu hangs the command line. |
44 |
> > |
45 |
> > Using an ssh session (from another machine) I found that |
46 |
> > "/etc/init.d/xdm stop" works to stop X. However, |
47 |
> > restarting is a bit tricky since "/etc/init.d/xdm start" fails |
48 |
> > because of files in "/var/lib/init.d/*/xdm". If one runs "rm |
49 |
> > -rf /var/lib/init.d/*/xdm" then runs "/etc/init.d/xdm start" one is |
50 |
> > good to go. |
51 |
> > |
52 |
> > HTH, |
53 |
> > |
54 |
> > David |
55 |
> > |
56 |
> > |
57 |
> > |
58 |
> |
59 |
> Then /etc/init.d/xdm zap may be easier and cleaner. |
60 |
> |
61 |
> Dale |
62 |
|
63 |
I hadn't known of zap. Indeed it's an easier way to do the cleanup. |
64 |
However, use it _after_ stop. |
65 |
|
66 |
I tried it instead of stop. What it does is remove the |
67 |
/var/init.d/*/xdm files. With them gone, "/etc/init.d/xdm status" |
68 |
can't tell that xdm has been started and "/etc/init.d/xdm stop" doesn't |
69 |
do anything. I had to frog around to fix the problem. |
70 |
|
71 |
Be careful !! |
72 |
|
73 |
David |