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