Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]X is stuck, cannot login, need to get into text mode
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ad_meis
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 120
Location: Tuscany, Italy

PostPosted: Thu Dec 29, 2011 1:17 pm    Post subject: [solved]X is stuck, cannot login, need to get into text mode Reply with quote

Dear All,

after many updates and days without rebooting, when I now switch on my laptop I get stuck with the X login where keyboard and touchpad are not responding, so that I have to halt brute force.

I want to start up the machine in text mode so that I can try to fix what's wrong first.

I found this gentoo wiki that seemed to be just what I needed: edit the grub and tell the machine that I want the text mode

http://www.gentoo-wiki.info/TIP_Booting_into_single_user_mode

I did try both procedures (adding '1' and 'softlevel=single') but none of them worked. I still get stuck with the freezed X screen.

What shall I do? Is there a better (=that works) way to use grub for this purpose? Thank you all


Last edited by ad_meis on Mon Jan 02, 2012 4:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Thu Dec 29, 2011 1:22 pm    Post subject: Reply with quote

When you get to X (where your keyboard and touchpad are nonresponsive) press the following key combinations:
1. Press Alt+SysRq+R (press all these three keys together, or if you want a more step by step method then press Alt first, then keeping Alt pressed, press SysRq and then keeping both pressed, press R. SysRq is usually written under the Print or PrtSc key)
2. Press Ctrl+Alt+F1 (this will take you to a terminal).
3. Once you are at your terminal, emerge all xorg drivers.
4. And for next time: read the elogs. You will save yourself much trouble.

EDIT: To answer your original query: you can get into single level by simply adding "single" at the end of your boot line in grub. In Gentoo you can also give "softlevel=boot" to start up in the boot runlevel.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
ad_meis
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 120
Location: Tuscany, Italy

PostPosted: Thu Dec 29, 2011 1:28 pm    Post subject: Reply with quote

Many thanks, now at least I can start working it through.

Could please say smthg or post a link about these elogs? (I am going to emerge elogviewer and elogv)
It's a few years I have been using gentoo now, and never heard of this.

thanks again
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Thu Dec 29, 2011 1:39 pm    Post subject: Reply with quote

ad_meis wrote:
Many thanks, now at least I can start working it through.

Could please say smthg or post a link about these elogs? (I am going to emerge elogviewer and elogv)
It's a few years I have been using gentoo now, and never heard of this.

thanks again
elog has been around a couple of years. It essentially collects all the information that is output during the emerge and saves them in a directory. By default, emerge also dumps all that information (from all the packages which have been emerged) into the terminal at the end of the emerge.

References:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=1#doc_chap4
http://en.gentoo-wiki.com/wiki/Gentoo_maintenance#Portage_Elog
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
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