LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-14-2003, 01:07 PM   #1
shaun_bakker
LQ Newbie
 
Registered: Feb 2003
Distribution: Debian
Posts: 18

Rep: Reputation: 0
Unhappy System freezes in X


I am running a K6-2 500MHz system with a VooDoo3 video card, and a usb Logitech mouse. I installed debian 3.0r1 with the 2.4 kernel option. After installation, x wouldn't start. I realized this was due to it not being installed. I installed xserver-common and xserver-xfree86, and then got x to start. But, my system accepts no input from the keyboard or mouse after x starts. Not to reboot or switch terminals. Now, My system loads gdm (and the x server) upon bootup and I don't know how to stop/change that.

So, 2 questions:

1. How can I keep my system from loading gdm on startup?
2. How do I fix the freezing problem once I do?
 
Old 10-14-2003, 02:44 PM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Don't quite understand but if the problem is you can't get out of X to a black screen because when you logout of X it immediately starts up again. Then perhaps you could try starting top inside a terminal emulator, eg xterm. Then hit k and it says 'which pid to kill?'. You type the pid, the number to the far left of gdm. Then return. Then return again. If that doesn't work instead of the last return do TERM return. If that doesn't then KILL return.

This kills gdm and you go to the black screen with alt-ctrl-F1 say.

Then fiddle about to stop it buggering up at starup - hours of joy.
 
Old 10-14-2003, 03:18 PM   #3
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Use Ctrl+Alt+Backspace to exit from X. To setup the keyboard, screen and mouse you need to do dpkg-reconfigure xserver-xfree86 from the console. This will take you through a menu driven system whereby your hardware settings will be configured. Before you start get the the hsync and vsync settings for your monitor.

Last edited by TigerOC; 10-14-2003 at 03:20 PM.
 
Old 10-14-2003, 06:30 PM   #4
shaun_bakker
LQ Newbie
 
Registered: Feb 2003
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
Post Clarification

OK, so to clarify, the first problem is that my system is completely useless because at boot time, it automatically starts gdm, and I haven't been able to stop it. Once in gdm, the system becomes unresponsive to the keyboard and the mouse. This means I can't use ctrl-alt-backspace to et out of X, or even alt-ctrl-del to reboot. Everytime, I have to use a hard reboot. Any ideas on how to get my system from starting gdm so I can actually have a prompt to work from?
 
Old 10-15-2003, 02:34 AM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Apart from doing a re-install you have 2 options;
1. get Knoppix mount your drive and edit /etc/X11/XFree86Config-4 with at least your keyboard type.
2. Try doing the same with your install cd under rescue. (I don't think this will work because it loads the kernel from the drive and then continues the boot process).
 
Old 10-15-2003, 08:37 AM   #6
shaun_bakker
LQ Newbie
 
Registered: Feb 2003
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
Done and done

> 1. get Knoppix mount your drive and edit /etc/X11/XFree86Config-4 with at least your keyboard type.

I had this same thought, but instead decided to just do an HD install of knoppix. For anyone who wants debian, but doesn't have the time to put up with all the hardware config, this is a great answer. Worked perfectly for me, including my usb mouse which is something that debian had problems with. Now, I can take my time and personalize my system as I like.

Thanx!

 
Old 10-15-2003, 01:12 PM   #7
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
For completeness as 'twere:

Could have started in single user mode, 'failsafe', runlevel ?1. This, I assume, is what you are supposed to do.
 
Old 06-06-2007, 08:23 AM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,554

Rep: Reputation: 241Reputation: 241Reputation: 241
Well, if you could get into the system you have a few options. The main clincher being able to uninstall gdm, kdm, wdm, xdm, or whatever is starting X at boot. Debian boots into run level 2, but runs X if you have any of those or probably some others installed.

Option 1) If your keyboard was responsive you could Cntrl+Alt+Backspace several times until the ?dm gives up the ghost and puts you in a console. About 15 or so times. This doesn't work for all distros as init is geared to restart it indefinitely, except on debian.

Option 2) From an xterm, just killall ?dm, where ? is the alphanumberic associated with your ?dm and not ?.

Once out of X uninstall the display manager and you'll boot into the console. At the next boot/reboot.

Option 3, the one that should work for you is to boot into recovery aka single mode. If you're running grub it's not that difficult if you know what you're doing. "c" at the menu (assuming you have enough delay to use the keyboard). Then type in the root/kernel parms from your grub.conf manually. Grub does have "help" as a command option. It even has tab completion so if you're not sure what exactly you named that thing, grub will help a fellow out. The kernel line should end something like root=/dev/hd?? ro single.

Option 4, boot into another linux (console only) and chroot into your linux installion. Then uninstall your ?dm (or disconfigure it) from your distrobution that way.

Needless to say I've had to do these a few times when I upgrade the video driver, but it doesn't quite go as planned. To vesa or not to vesa, that is the question. Although I've had a few chipsets where even vesa didn't want to work. (except in very specific DefaultDepth's and Modes)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
system freezes zord Slackware 8 05-08-2005 12:53 AM
System freezes newlinuxgeek Linux - Hardware 4 03-01-2005 07:45 PM
System freezes... what should I check first? QCompson Linux - General 1 11-12-2004 02:36 PM
system freezes Clemente Mandriva 0 02-02-2004 09:50 AM
System freezes jayakrishnan Linux - General 2 08-27-2003 09:09 AM


All times are GMT -5. The time now is 01:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration