* [gentoo-user] Question about xorg and a kill process
@ 2009-05-27 4:30 Dale
2009-05-27 6:01 ` Hung Dang
0 siblings, 1 reply; 14+ messages in thread
From: Dale @ 2009-05-27 4:30 UTC (permalink / raw
To: gentoo-user
I know the subject is a bit lacking but here goes. I'm thinking about
trying this xorg-server upgrade again. I been thinking about a way to
do this and not have to pull the plug on my rig if it fails, which I bet
it does. This is the command I am thinking about trying.
/etc/init.d/xdm start && sleep 5m && /etc/init.d/xdm stop
I'm thinking this way. Start X first. If it fails, it will stop in 5
minutes and come back to a console. Think this will work? If xorg
works, I can switch back to a console and ctrl C the command and carry on.
Thoughts? Better ideas?
Dale
:-) :-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Question about xorg and a kill process
2009-05-27 4:30 [gentoo-user] Question about xorg and a kill process Dale
@ 2009-05-27 6:01 ` Hung Dang
2009-05-27 12:04 ` bn
2009-05-27 13:03 ` Dale
0 siblings, 2 replies; 14+ messages in thread
From: Hung Dang @ 2009-05-27 6:01 UTC (permalink / raw
To: gentoo-user
I often use Ctrl+F1 to F6 to back to the command line and if your X is
fine you can back the X screen using Ctrl+F7. Or if you want to kill
your X then Ctrl+Alt+Backspace may be helpful.
Hung
Dale wrote:
> I know the subject is a bit lacking but here goes. I'm thinking about
> trying this xorg-server upgrade again. I been thinking about a way to
> do this and not have to pull the plug on my rig if it fails, which I bet
> it does. This is the command I am thinking about trying.
>
> /etc/init.d/xdm start && sleep 5m && /etc/init.d/xdm stop
>
> I'm thinking this way. Start X first. If it fails, it will stop in 5
> minutes and come back to a console. Think this will work? If xorg
> works, I can switch back to a console and ctrl C the command and carry on.
>
> Thoughts? Better ideas?
>
> Dale
>
> :-) :-)
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Question about xorg and a kill process
2009-05-27 6:01 ` Hung Dang
@ 2009-05-27 12:04 ` bn
2009-05-27 13:03 ` Dale
1 sibling, 0 replies; 14+ messages in thread
From: bn @ 2009-05-27 12:04 UTC (permalink / raw
To: gentoo-user
Hung Dang ha scritto:
> I often use Ctrl+F1 to F6 to back to the command line and if your X is
> fine you can back the X screen using Ctrl+F7. Or if you want to kill
> your X then Ctrl+Alt+Backspace may be helpful.
Unless X freezes and steals your keyboard away.
m.
> Hung
>
>
> Dale wrote:
>> I know the subject is a bit lacking but here goes. I'm thinking about
>> trying this xorg-server upgrade again. I been thinking about a way to
>> do this and not have to pull the plug on my rig if it fails, which I bet
>> it does. This is the command I am thinking about trying.
>> /etc/init.d/xdm start && sleep 5m && /etc/init.d/xdm stop
>>
>> I'm thinking this way. Start X first. If it fails, it will stop in 5
>> minutes and come back to a console. Think this will work? If xorg
>> works, I can switch back to a console and ctrl C the command and carry
>> on.
>>
>> Thoughts? Better ideas?
>>
>> Dale
>>
>> :-) :-)
>>
>
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Question about xorg and a kill process
2009-05-27 6:01 ` Hung Dang
2009-05-27 12:04 ` bn
@ 2009-05-27 13:03 ` Dale
2009-05-27 14:16 ` Daniel da Veiga
2009-05-27 14:26 ` Neil Bothwick
1 sibling, 2 replies; 14+ messages in thread
From: Dale @ 2009-05-27 13:03 UTC (permalink / raw
To: gentoo-user
Hung Dang wrote:
> I often use Ctrl+F1 to F6 to back to the command line and if your X is
> fine you can back the X screen using Ctrl+F7. Or if you want to kill
> your X then Ctrl+Alt+Backspace may be helpful.
>
> Hung
>
>
> Dale wrote:
>> I know the subject is a bit lacking but here goes. I'm thinking about
>> trying this xorg-server upgrade again. I been thinking about a way to
>> do this and not have to pull the plug on my rig if it fails, which I bet
>> it does. This is the command I am thinking about trying.
>> /etc/init.d/xdm start && sleep 5m && /etc/init.d/xdm stop
>>
>> I'm thinking this way. Start X first. If it fails, it will stop in 5
>> minutes and come back to a console. Think this will work? If xorg
>> works, I can switch back to a console and ctrl C the command and
>> carry on.
>>
>> Thoughts? Better ideas?
>>
>> Dale
>>
>> :-) :-)
>>
That won't work because if xorg-server fails, my keyboard doesn't work
when I switch to X. If the keyboard doesn't work, I can't switch back
to anything or type anything.
I done been through this one time. I'm trying to figure out how to get
back to console with a keyboard that doesn't work at all.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Question about xorg and a kill process
2009-05-27 13:03 ` Dale
@ 2009-05-27 14:16 ` Daniel da Veiga
2009-05-27 14:22 ` Håkon Alstadheim
2009-05-27 15:01 ` Dale
2009-05-27 14:26 ` Neil Bothwick
1 sibling, 2 replies; 14+ messages in thread
From: Daniel da Veiga @ 2009-05-27 14:16 UTC (permalink / raw
To: gentoo-user
On Wed, May 27, 2009 at 10:03, Dale <rdalek1967@gmail.com> wrote:
> Hung Dang wrote:
>> I often use Ctrl+F1 to F6 to back to the command line and if your X is
>> fine you can back the X screen using Ctrl+F7. Or if you want to kill
>> your X then Ctrl+Alt+Backspace may be helpful.
>>
>> Hung
>>
>>
>> Dale wrote:
>>> I know the subject is a bit lacking but here goes. I'm thinking about
>>> trying this xorg-server upgrade again. I been thinking about a way to
>>> do this and not have to pull the plug on my rig if it fails, which I bet
>>> it does. This is the command I am thinking about trying.
>>> /etc/init.d/xdm start && sleep 5m && /etc/init.d/xdm stop
>>>
>>> I'm thinking this way. Start X first. If it fails, it will stop in 5
>>> minutes and come back to a console. Think this will work? If xorg
>>> works, I can switch back to a console and ctrl C the command and
>>> carry on.
>>>
>>> Thoughts? Better ideas?
>>>
>>> Dale
>>>
>>> :-) :-)
>>>
>
> That won't work because if xorg-server fails, my keyboard doesn't work
> when I switch to X. If the keyboard doesn't work, I can't switch back
> to anything or type anything.
>
> I done been through this one time. I'm trying to figure out how to get
> back to console with a keyboard that doesn't work at all.
>
Best way to do this is using a remote shell (SSH for example) in
another machine. If that's not an option or X driver fails in
conflicts with the kernel (mine did before I found a suitable config)
then you're pretty much lost, cause your video is gone for good.
You can try SYSREQ combinations to kill the server and if that fails
even cleanly reboot the rig, but as I said before, depending on the
problem your video is gone.
--
Daniel da Veiga
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Question about xorg and a kill process
2009-05-27 14:16 ` Daniel da Veiga
@ 2009-05-27 14:22 ` Håkon Alstadheim
2009-05-27 14:56 ` Dale
2009-05-27 15:01 ` Dale
1 sibling, 1 reply; 14+ messages in thread
From: Håkon Alstadheim @ 2009-05-27 14:22 UTC (permalink / raw
To: gentoo-user
Daniel da Veiga wrote:
> On Wed, May 27, 2009 at 10:03, Dale <rdalek1967@gmail.com> wrote:
>
>> Hung Dang wrote:
>>
>>> I often use Ctrl+F1 to F6 to back to the command line and if your X is
>>> fine you can back the X screen using Ctrl+F7. Or if you want to kill
>>> your X then Ctrl+Alt+Backspace may be helpful.
>>>
>>> Hung
>>>
>>>
>>> Dale wrote:
>>>
>>>> I know the subject is a bit lacking but here goes. I'm thinking about
>>>> trying this xorg-server upgrade again. I been thinking about a way to
>>>> do this and not have to pull the plug on my rig if it fails, which I bet
>>>> it does. This is the command I am thinking about trying.
>>>> /etc/init.d/xdm start && sleep 5m && /etc/init.d/xdm stop
>>>>
>>>> I'm thinking this way. Start X first. If it fails, it will stop in 5
>>>> minutes and come back to a console. Think this will work? If xorg
>>>> works, I can switch back to a console and ctrl C the command and
>>>> carry on.
>>>>
>>>> Thoughts? Better ideas?
>>>>
>>>> Dale
>>>>
>>>> :-) :-)
>>>>
>>>>
>> That won't work because if xorg-server fails, my keyboard doesn't work
>> when I switch to X. If the keyboard doesn't work, I can't switch back
>> to anything or type anything.
>>
>> I done been through this one time. I'm trying to figure out how to get
>> back to console with a keyboard that doesn't work at all.
>>
>>
>
> Best way to do this is using a remote shell (SSH for example) in
> another machine. If that's not an option or X driver fails in
> conflicts with the kernel (mine did before I found a suitable config)
> then you're pretty much lost, cause your video is gone for good.
>
> You can try SYSREQ combinations to kill the server and if that fails
> even cleanly reboot the rig, but as I said before, depending on the
> problem your video is gone.
>
>
stick a "chvt 1" after the "xdm stop".
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Question about xorg and a kill process
2009-05-27 14:22 ` Håkon Alstadheim
@ 2009-05-27 14:56 ` Dale
0 siblings, 0 replies; 14+ messages in thread
From: Dale @ 2009-05-27 14:56 UTC (permalink / raw
To: gentoo-user
Håkon Alstadheim wrote:
> Daniel da Veiga wrote:
>> On Wed, May 27, 2009 at 10:03, Dale <rdalek1967@gmail.com> wrote:
>>
>>> Hung Dang wrote:
>>>
>>>> I often use Ctrl+F1 to F6 to back to the command line and if your X is
>>>> fine you can back the X screen using Ctrl+F7. Or if you want to kill
>>>> your X then Ctrl+Alt+Backspace may be helpful.
>>>>
>>>> Hung
>>>>
>>>>
>>>> Dale wrote:
>>>>
>>>>> I know the subject is a bit lacking but here goes. I'm thinking
>>>>> about
>>>>> trying this xorg-server upgrade again. I been thinking about a
>>>>> way to
>>>>> do this and not have to pull the plug on my rig if it fails, which
>>>>> I bet
>>>>> it does. This is the command I am thinking about trying.
>>>>> /etc/init.d/xdm start && sleep 5m && /etc/init.d/xdm stop
>>>>>
>>>>> I'm thinking this way. Start X first. If it fails, it will stop
>>>>> in 5
>>>>> minutes and come back to a console. Think this will work? If xorg
>>>>> works, I can switch back to a console and ctrl C the command and
>>>>> carry on.
>>>>>
>>>>> Thoughts? Better ideas?
>>>>>
>>>>> Dale
>>>>>
>>>>> :-) :-)
>>>>>
>>>>>
>>> That won't work because if xorg-server fails, my keyboard doesn't work
>>> when I switch to X. If the keyboard doesn't work, I can't switch back
>>> to anything or type anything.
>>>
>>> I done been through this one time. I'm trying to figure out how to get
>>> back to console with a keyboard that doesn't work at all.
>>>
>>>
>>
>> Best way to do this is using a remote shell (SSH for example) in
>> another machine. If that's not an option or X driver fails in
>> conflicts with the kernel (mine did before I found a suitable config)
>> then you're pretty much lost, cause your video is gone for good.
>>
>> You can try SYSREQ combinations to kill the server and if that fails
>> even cleanly reboot the rig, but as I said before, depending on the
>> problem your video is gone.
>>
>>
> stick a "chvt 1" after the "xdm stop".
>
>
>
Did a man chvt and that is interesting. I got to add that to the
command just in case. ;-)
Thanks
Dale
:-) :-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Question about xorg and a kill process
2009-05-27 14:16 ` Daniel da Veiga
2009-05-27 14:22 ` Håkon Alstadheim
@ 2009-05-27 15:01 ` Dale
2009-05-27 15:09 ` Neil Bothwick
2009-05-28 10:51 ` Daniel Iliev
1 sibling, 2 replies; 14+ messages in thread
From: Dale @ 2009-05-27 15:01 UTC (permalink / raw
To: gentoo-user
Daniel da Veiga wrote:
> On Wed, May 27, 2009 at 10:03, Dale <rdalek1967@gmail.com> wrote:
>
>> Hung Dang wrote:
>>
>>> I often use Ctrl+F1 to F6 to back to the command line and if your X is
>>> fine you can back the X screen using Ctrl+F7. Or if you want to kill
>>> your X then Ctrl+Alt+Backspace may be helpful.
>>>
>>> Hung
>>>
>>>
>>> Dale wrote:
>>>
>>>> I know the subject is a bit lacking but here goes. I'm thinking about
>>>> trying this xorg-server upgrade again. I been thinking about a way to
>>>> do this and not have to pull the plug on my rig if it fails, which I bet
>>>> it does. This is the command I am thinking about trying.
>>>> /etc/init.d/xdm start && sleep 5m && /etc/init.d/xdm stop
>>>>
>>>> I'm thinking this way. Start X first. If it fails, it will stop in 5
>>>> minutes and come back to a console. Think this will work? If xorg
>>>> works, I can switch back to a console and ctrl C the command and
>>>> carry on.
>>>>
>>>> Thoughts? Better ideas?
>>>>
>>>> Dale
>>>>
>>>> :-) :-)
>>>>
>>>>
>> That won't work because if xorg-server fails, my keyboard doesn't work
>> when I switch to X. If the keyboard doesn't work, I can't switch back
>> to anything or type anything.
>>
>> I done been through this one time. I'm trying to figure out how to get
>> back to console with a keyboard that doesn't work at all.
>>
>>
>
> Best way to do this is using a remote shell (SSH for example) in
> another machine. If that's not an option or X driver fails in
> conflicts with the kernel (mine did before I found a suitable config)
> then you're pretty much lost, cause your video is gone for good.
>
> You can try SYSREQ combinations to kill the server and if that fails
> even cleanly reboot the rig, but as I said before, depending on the
> problem your video is gone.
>
>
I only have one machine right now. Someone gave me a HP laptop but I
haven't fixed it yet. Power connector is shorted out big time.
I got some SysRq commands printed out tho. Question, do I have to hit
the Alt key each time or what?
Dale
:-) :-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Question about xorg and a kill process
2009-05-27 15:01 ` Dale
@ 2009-05-27 15:09 ` Neil Bothwick
2009-05-27 15:35 ` Dale
2009-05-28 10:51 ` Daniel Iliev
1 sibling, 1 reply; 14+ messages in thread
From: Neil Bothwick @ 2009-05-27 15:09 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 452 bytes --]
On Wed, 27 May 2009 10:01:12 -0500, Dale wrote:
> I got some SysRq commands printed out tho. Question, do I have to hit
> the Alt key each time or what?
Hold down Atl, hold down SysRq, press each of the keys in turn. The usual
full sequence is R-E-I-S-U-B
Reboot
Even
If
System
Utterly
Broken
By ${DEITY} - this tagline picker is spooky at times :-O
--
Neil Bothwick
System halted - Press all keys at once to continue.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Question about xorg and a kill process
2009-05-27 15:09 ` Neil Bothwick
@ 2009-05-27 15:35 ` Dale
0 siblings, 0 replies; 14+ messages in thread
From: Dale @ 2009-05-27 15:35 UTC (permalink / raw
To: gentoo-user
Neil Bothwick wrote:
> On Wed, 27 May 2009 10:01:12 -0500, Dale wrote:
>
>
>> I got some SysRq commands printed out tho. Question, do I have to hit
>> the Alt key each time or what?
>>
>
> Hold down Atl, hold down SysRq, press each of the keys in turn. The usual
> full sequence is R-E-I-S-U-B
>
> Reboot
> Even
> If
> System
> Utterly
> Broken
>
> By ${DEITY} - this tagline picker is spooky at times :-O
>
>
>
Oh OK. That was what I was needing. Details !
Thanks much. I would have done this wrong - ly. That a word?
Dale
:-) :-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Question about xorg and a kill process
2009-05-27 15:01 ` Dale
2009-05-27 15:09 ` Neil Bothwick
@ 2009-05-28 10:51 ` Daniel Iliev
1 sibling, 0 replies; 14+ messages in thread
From: Daniel Iliev @ 2009-05-28 10:51 UTC (permalink / raw
To: gentoo-user
On Wed, 27 May 2009 10:01:12 -0500
Dale <rdalek1967@gmail.com> wrote:
>
> I only have one machine right now. Someone gave me a HP laptop but I
> haven't fixed it yet. Power connector is shorted out big time.
>
Then for example on tty2 start "sleep 300 ; /etc/init.d/xdm stop ;
killall X" and on tty1 do "/etc/init.d/xdm start"
Another approach is to use acpid. I've read this tip here posted by
Volker Hemmann IIRC. If you use acpid, there should be a file called
"/etc/acpi/default.sh"
Modify it, substituting the lines:
19 case "$action" in
20 power)
21 /sbin/init 0
with
19 case "$action" in
20 power)
21 /usr/bin/chvt 1
then do /etc/init.d/acpid restart.
Now pressing the power button on your machine should switch to the
active TTY to tty1
--
Best regards,
Daniel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Question about xorg and a kill process
2009-05-27 13:03 ` Dale
2009-05-27 14:16 ` Daniel da Veiga
@ 2009-05-27 14:26 ` Neil Bothwick
2009-05-27 14:58 ` Dale
1 sibling, 1 reply; 14+ messages in thread
From: Neil Bothwick @ 2009-05-27 14:26 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
On Wed, 27 May 2009 08:03:31 -0500, Dale wrote:
> I done been through this one time. I'm trying to figure out how to get
> back to console with a keyboard that doesn't work at all.
Have you tried Alt-SysRq-R?
--
Neil Bothwick
You cannot really appreciate Dilbert unless you've read it in the
original Klingon.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Question about xorg and a kill process
2009-05-27 14:26 ` Neil Bothwick
@ 2009-05-27 14:58 ` Dale
2009-05-27 15:06 ` Neil Bothwick
0 siblings, 1 reply; 14+ messages in thread
From: Dale @ 2009-05-27 14:58 UTC (permalink / raw
To: gentoo-user
Neil Bothwick wrote:
> On Wed, 27 May 2009 08:03:31 -0500, Dale wrote:
>
>
>> I done been through this one time. I'm trying to figure out how to get
>> back to console with a keyboard that doesn't work at all.
>>
>
> Have you tried Alt-SysRq-R?
>
>
>
I haven't but I may try it now tho. I have never used SysRq before.
This is a bit new to me. It has to be better than just pulling the plug
tho. That's what I had to do last time. Sort of pissed me off since I
had no warning that my keyboard would be as a useful as a screen door on
a submarine.
Adding that to my notes. Thanks.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2009-05-28 10:51 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-27 4:30 [gentoo-user] Question about xorg and a kill process Dale
2009-05-27 6:01 ` Hung Dang
2009-05-27 12:04 ` bn
2009-05-27 13:03 ` Dale
2009-05-27 14:16 ` Daniel da Veiga
2009-05-27 14:22 ` Håkon Alstadheim
2009-05-27 14:56 ` Dale
2009-05-27 15:01 ` Dale
2009-05-27 15:09 ` Neil Bothwick
2009-05-27 15:35 ` Dale
2009-05-28 10:51 ` Daniel Iliev
2009-05-27 14:26 ` Neil Bothwick
2009-05-27 14:58 ` Dale
2009-05-27 15:06 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox