Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Question about xorg and a kill process
Date: Wed, 27 May 2009 14:57:49
Message-Id: 4A1D5488.1080400@gmail.com
In Reply to: Re: [gentoo-user] Question about xorg and a kill process by "Håkon Alstadheim"
1 Håkon Alstadheim wrote:
2 > Daniel da Veiga wrote:
3 >> On Wed, May 27, 2009 at 10:03, Dale <rdalek1967@×××××.com> wrote:
4 >>
5 >>> Hung Dang wrote:
6 >>>
7 >>>> I often use Ctrl+F1 to F6 to back to the command line and if your X is
8 >>>> fine you can back the X screen using Ctrl+F7. Or if you want to kill
9 >>>> your X then Ctrl+Alt+Backspace may be helpful.
10 >>>>
11 >>>> Hung
12 >>>>
13 >>>>
14 >>>> Dale wrote:
15 >>>>
16 >>>>> I know the subject is a bit lacking but here goes. I'm thinking
17 >>>>> about
18 >>>>> trying this xorg-server upgrade again. I been thinking about a
19 >>>>> way to
20 >>>>> do this and not have to pull the plug on my rig if it fails, which
21 >>>>> I bet
22 >>>>> it does. This is the command I am thinking about trying.
23 >>>>> /etc/init.d/xdm start && sleep 5m && /etc/init.d/xdm stop
24 >>>>>
25 >>>>> I'm thinking this way. Start X first. If it fails, it will stop
26 >>>>> in 5
27 >>>>> minutes and come back to a console. Think this will work? If xorg
28 >>>>> works, I can switch back to a console and ctrl C the command and
29 >>>>> carry on.
30 >>>>>
31 >>>>> Thoughts? Better ideas?
32 >>>>>
33 >>>>> Dale
34 >>>>>
35 >>>>> :-) :-)
36 >>>>>
37 >>>>>
38 >>> That won't work because if xorg-server fails, my keyboard doesn't work
39 >>> when I switch to X. If the keyboard doesn't work, I can't switch back
40 >>> to anything or type anything.
41 >>>
42 >>> I done been through this one time. I'm trying to figure out how to get
43 >>> back to console with a keyboard that doesn't work at all.
44 >>>
45 >>>
46 >>
47 >> Best way to do this is using a remote shell (SSH for example) in
48 >> another machine. If that's not an option or X driver fails in
49 >> conflicts with the kernel (mine did before I found a suitable config)
50 >> then you're pretty much lost, cause your video is gone for good.
51 >>
52 >> You can try SYSREQ combinations to kill the server and if that fails
53 >> even cleanly reboot the rig, but as I said before, depending on the
54 >> problem your video is gone.
55 >>
56 >>
57 > stick a "chvt 1" after the "xdm stop".
58 >
59 >
60 >
61
62 Did a man chvt and that is interesting. I got to add that to the
63 command just in case. ;-)
64
65 Thanks
66
67 Dale
68
69 :-) :-)