LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-05-2006, 04:17 PM   #16
LocoMojo
Member
 
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165

Original Poster
Rep: Reputation: 30

Ok, whew! I finally solved this doozy!

Somehow my /etc/X11/xkb/compiled symbolic link became an empty file rather than a symbolic link to my /var/lib/xkb directory.

I don't know how this symbolic link became an empty file. It doesn't appear, at a quick glance, to be related to any of Pat's recent upgrades.

This has got me a little puzzled, but I'm just tickled to have my consoles back when I log in at runlevel 4 via KDM

Hope someone else out there finds this useful.

Cheers all!

LocoMojo
 
Old 07-07-2006, 12:14 PM   #17
craig.martell
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
Interestingly,

I have the exact opposite problem. All was working fine in FC4. Upgraded to FC5 -- which went very smoothly -- and I can only access VTs IF I USE KDM or GDM etc. If I start in run level 3, log in and run startx, I cannot use VTs. My symptoms are exactly the same as yours when you are using *DM. One more catch is if I run startx as root, I can switch to a VT with no problem. My current solution is to start my machine into KDM. But I prefer run level 3 -- because sometimes I don't run X.

Any thoughts?
 
Old 07-07-2006, 07:33 PM   #18
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by LocoMojo
Somehow my /etc/X11/xkb/compiled symbolic link became an empty file rather than a symbolic link to my /var/lib/xkb directory.

I don't know how this symbolic link became an empty file. It doesn't appear, at a quick glance, to be related to any of Pat's recent upgrades.
You such luck here...I've been having this problem but I've been slacking for a long time. I have the /etc/inittab properly setup and I also have a /etc/X11/xkb/compiled symlinking the /var/lib/xkb directory. However, there is just a README file in /var/lib/xkb. Is that right?

I still can't switch between virtual consoles from run-level 4.

Tux,
 
Old 07-07-2006, 10:15 PM   #19
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
Virtual Terminals

Quote:
However, there is just a README file in /var/lib/xkb. Is that right?
It appears to be correct, at least my machine is set up the same way, and I can use virtual terminals from either startx or kdm (haven't tried gdm or xdm).
Regards,
Bill
 
Old 07-08-2006, 01:00 AM   #20
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Post

Wow. The number of people overlooking what's been staring them in the face is kinda scary.

Anyway... the difference is the runlevel.

In runlevel 4, only vt6 gets a getty assigned to it. Trying to switch to virtual terminals 1-5 will get you nothing but a blank screen.

This section of /etc/inittab has been pasted before in this thread, but here it is again, and I'll explain what it does so things will be made clear:

Code:
# These are the standard console login getties in multiuser mode:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
Look at the second colon-separated field that has the numbers in it. What this field does is dictate during which runlevels that particular console will be active. The "1", "2", and "3" in each field mean that when the machine is in runlevels 1, 2, and 3, that these consoles will be activated. Notice the "4" in the line for c6 (console 6, aka vt6) and that it doesn't appear in any of the others. What this does is makes it so that when you're in runlevel 4, only c6 (vt6) is active.
 
Old 07-08-2006, 01:59 AM   #21
Daga
Member
 
Registered: Apr 2006
Location: A comfy chair...
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
I'll chime in and say that this is the default setup for runlevels in Slackware.

EDIT: at least in the latest releases.

Last edited by Daga; 07-08-2006 at 02:01 AM.
 
Old 07-08-2006, 02:50 AM   #22
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by evilDagmar
Wow. The number of people overlooking what's been staring them in the face is kinda scary.

Anyway... the difference is the runlevel.

In runlevel 4, only vt6 gets a getty assigned to it. Trying to switch to virtual terminals 1-5 will get you nothing but a blank screen.
Not as scary as the fact that you can't possibly have read the
the whole thread before lashing out :}

He clearly stated that the problem also occurred when he
booted into runlevel 3 and MANUALLY started KDM or
GDM ...


Cheers,
Tink
 
Old 07-08-2006, 06:37 AM   #23
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Quote:
Originally Posted by Tinkster
Not as scary as the fact that you can't possibly have read the
the whole thread before lashing out :}

He clearly stated that the problem also occurred when he
booted into runlevel 3 and MANUALLY started KDM or
GDM ...
Really? Seems to me that you're the one who needs to read the whole thread before "lashing out". I read the entire thread very carefully actually (including the replies by threadjackers not even running Slackware).

Remember the bit where he was asked about his inittab before and said it was "intact"? He also quoted this from his process list:

Quote:
Originally Posted by LocoMojo
P.S. - ps aux | grep agetty | grep -v grep gives me:

root 5152 0.0 0.0 1564 496 tty2 Ss+ Mar02 0:00 /sbin/agetty 38400 tty2 linux
root 5153 0.0 0.0 1560 496 tty3 Ss+ Mar02 0:00 /sbin/agetty 38400 tty3 linux
root 5154 0.0 0.0 1564 496 tty4 Ss+ Mar02 0:00 /sbin/agetty 38400 tty4 linux
root 5155 0.0 0.0 1560 488 tty5 Ss+ Mar02 0:00 /sbin/agetty 38400 tty5 linux
root 5156 0.0 0.0 1564 496 tty6 Ss+ Mar02 0:00 /sbin/agetty 38400 tty6 linux
This says pretty clearly that he's in runlevel 3, logged into vt1 (else where did tty1 go?). He might have noticed something was up if he'd done this from runlevel 4. Unless he's made some radical changes to his inittab there's no way this would be the result on a Slackware box from doing this in runlevel 4. No examination was made of this same information from runlevel 4. This is an important detail that added to my suspicion, fully explained below.

All the other things here (excluding the business with the xkb directory) are so impossibly obscure as to be ludicrous compared to the possibility that he panicked and didn't go for ctrl-alt-f6 after hitting F1 through F5, or that his F6 key got a bit of something under it and got stuck, or that he had DontVTSwich enabled in /etc/X11/xorg.conf, but a copy of the xorg.conf without it enabled in his home directory that he'd forgotten about. If there's one way that you can manifest a problem like this, this is it. Using startx, ~/xorg.conf will be read if it's there--if and only if you're root. Using gdm/xdm/kdm, it'll only be using /etc/X11/xorg.conf. As to xkb, well YEAH if you screw up keymappings, keys will stop working but I have my doubts about whether or not it could do this and leave any keys still working. I'm not really convinced replacing this symlink is what "fixed" the issue. Anyone want to try to replicate the problem for bonus points?

GDM and KDM have a lot of components, but XDM has nearly none--to the point where you might as well just throw out the DM and consider it to be a problem with X, itself. Anything able to affect XDM is almost certainly going to affect the other two as a result (while the converse is nowhere near necessarily true).

You've forgotten rule number one. When someone's gone through a long and winding batch of testing that results in an impossible and contradictory set of criteria, they've usually got one of the details wrong because they thought it was trivial or didn't understand the importance of it. When asked about inittab, he commented that it was "intact". "Intact" isn't enough. The machine isn't even going to boot if it's not there. Attention needed to be called specifically to inittab and the means by which consoles are assigned on a per-runlevel basis (especially considering how many people don't even know that they're started based on the runlevel).
 
Old 07-08-2006, 04:57 PM   #24
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by evilDagmar
Really? Seems to me that you're the one who needs to read the whole thread before "lashing out". I read the entire thread very carefully actually (including the replies by threadjackers not even running Slackware).
First I thought of not even dignifying this with a response,
but I changed my mind; I'll let the original poster speak.
Quote:
Before doing that I decided to fool around a bit to see if I can't pinpoint the problem. "Maybe it has something to do with X?" I edited my inittab file to change the default run level from 4 to 3 and I rebooted.

Got to a console, logged in my regular user, lo and behold, I was able to switch to another console. "Aha! It does have something to do with X."

I decided to try to start X with "startx" instead of one of the *dm's. Got into KDE and umm, I was able to switch to a console. WTF?

"Ok, it's not X then, it was KDM". I killed X and then started KDM. Got into KDE and tried to switch to a console, no go. "Aha, KDM is the culprit! Hmm, don't tell me it's KDE and not KDM!"

Rebooted then started KDM and logged into Gnome...no go. Tried again with KDM and Fluxbox...no go. Again with GDM and Gnome...no go. "Eh?" Again with XDM and Fluxbox...no go.
Cheers,
Tink
 
Old 07-08-2006, 09:35 PM   #25
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Then please feel free to explain how the apparent cause of this was supposed to even be possible instead of popping off another pointless insult. I tried to replicate the problem this morning by blowing away the symlink and it refused to manifest the same symptom.
 
  


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
alternatives to xdm, gdm, or kdm hdo781 Debian 1 02-02-2005 11:55 AM
gdm, kdm, xdm daemons, which do I need? Feldon Linux - Software 5 10-16-2004 10:56 PM
KDM, GDM, XDM login problems TomJ Linux - Software 2 10-04-2004 12:14 PM
Cannot start xdm, kdm or gdm icisyd Linux - Newbie 13 09-23-2004 07:38 PM
X login screen XDM/KDM/GDM jesselong Linux - Software 4 06-12-2004 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:49 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
Open Source Consulting | Domain Registration