Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Accidentally ran command "X"; how to exit w/o restart?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
bilbert
n00b
n00b


Joined: 01 Sep 2018
Posts: 13

PostPosted: Thu Feb 21, 2019 2:48 am    Post subject: Accidentally ran command "X"; how to exit w/o rest Reply with quote

I was latexing and typed "X" and hit enter to exit pdflatex but it turns out I had already done this so instead I ran the command "X" with no arguments, bringing up an unresponsive black screen. I have tried several keyboard shortcuts to open a shell but I cannot seem to escape the black screen. I'd really not like to restart and lose work on the document I was editing. Any ideas?[/code]
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 990
Location: The Holy city of Honolulu

PostPosted: Thu Feb 21, 2019 2:50 am    Post subject: Reply with quote

alt F1, alt F2, alt F3, etc etc... do those open a new VC for you?
_________________
Time is a great teacher, but unfortunately it kills all its pupils.
Back to top
View user's profile Send private message
bilbert
n00b
n00b


Joined: 01 Sep 2018
Posts: 13

PostPosted: Thu Feb 21, 2019 3:45 am    Post subject: Reply with quote

Muso wrote:
alt F1, alt F2, alt F3, etc etc... do those open a new VC for you?


I have tried alt+F-keys, ctrl+alt+F-keys, and ctrl+F-keys, as well as ctrl+all alphabetic keys
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 990
Location: The Holy city of Honolulu

PostPosted: Thu Feb 21, 2019 4:16 am    Post subject: Reply with quote

Do you have SSH running?
_________________
Time is a great teacher, but unfortunately it kills all its pupils.
Back to top
View user's profile Send private message
bilbert
n00b
n00b


Joined: 01 Sep 2018
Posts: 13

PostPosted: Thu Feb 21, 2019 4:22 am    Post subject: Reply with quote

Muso wrote:
Do you have SSH running?

No, don't believe so.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7232
Location: almost Mile High in the USA

PostPosted: Thu Feb 21, 2019 7:56 am    Post subject: Reply with quote

If Ctrl-Alt-F(X) doesn't work, control-alt-backspace doesn't work, and you have no other way to connect to the machine, you're pretty much SOL.

Last resort is if you have magic sysrq enabled in your kernel: alt-sysrq-k ...

then pretty much you need to reboot unfortunately...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14163

PostPosted: Fri Feb 22, 2019 2:32 am    Post subject: Reply with quote

If you give up on finding a way to recover, try to shutdown using a software-initiated stop. That will send SIGTERM to processes on the way down, and some editors will handle that by saving their work somewhere, which you can recover after you reboot. Top choices for that would be using ctrl-alt-delete to try to get init to bring down the system or briefly pressing the system power button. A long press will force stop the system. You want to push the button in, then let it return to normal without holding it down.
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 990
Location: The Holy city of Honolulu

PostPosted: Fri Feb 22, 2019 2:42 am    Post subject: Reply with quote

Set ssh to run during boot up so you can at least remotely fix any issues with X in the future. Even if you don't have another computer, you should be able to use a shell from an android phone to ssh in and fix any problems.
_________________
Time is a great teacher, but unfortunately it kills all its pupils.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7232
Location: almost Mile High in the USA

PostPosted: Fri Feb 22, 2019 3:57 am    Post subject: Reply with quote

Whoever thought nozap should be default ... j/k ...

This is an X server option to disable ctrl-alt-backspace to kill it, which can do some bad stuff if the X clients don't react to it properly...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum