Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-23-2005, 02:06 PM
|
#1
|
Member
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61
Rep:
|
Virtual Terminals
The problem:
Virtual terminals will not work at all when in X. Virtual terminals DO work while at the init 3 login prompt but NOT in init 4 login
What I've tried:
Editing /etc/inittab and changing:
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
to
# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:
and
# 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
to
# These are the standard console login getties in multiuser mode:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
Doing xorgconfig 2 different ways:
setting my keyboard as
3 Generic 104-key PC
and
64 Logitech Internet Navigator Keyboard
I am not sure why none of this works since Virtual Terminals worked in Mandrake 10.1, Knoppix 3.4, Slax 4.2 and BeatrIX 2005.1.
My system is Slackware 10.1, Full install, running the bareacpi kernel (2.4.29).
Thank you in advance for your help.
P.S. My window manager is XFCE 4.2.0 and my Nvidia driver is 7174
|
|
|
04-23-2005, 02:53 PM
|
#2
|
Member
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705
Rep:
|
Re: Virtual Terminals
Quote:
Originally posted by Kruncher
The problem:
Virtual terminals will not work at all when in X. Virtual terminals DO work while at the init 3 login prompt but NOT in init 4 login
|
init 4 starts X straight to the GUI............kdm, gdm, xfce, etc.............
|
|
|
04-23-2005, 02:59 PM
|
#3
|
Member
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61
Original Poster
Rep:
|
oh ok.
When I set the /etc/inittab default runlevel to 4 it will start up the gdm login manager, from there on virtual terminals do not work.
If I set the default runlevel to 3 the virtual terminals work untill I login AND run startx
|
|
|
04-23-2005, 03:30 PM
|
#4
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep: 
|
Quote:
When I set the /etc/inittab default runlevel to 4 it will start up the gdm login manager, from there on virtual terminals do not work.
|
What do you mean by "virtual terminals do not work" ? If you set in xorg.conf appropriate generic keyboard model, Ctrl+Alt+F7 key combination won't you bring to virt. terminal ? If you log in from gdm and start some X-terminal like xterm, gnome-terminal, konsole, aterm etc. and type do you recognize some instances of agetty login running ?
|
|
|
04-23-2005, 04:01 PM
|
#5
|
Member
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61
Original Poster
Rep:
|
ps ax | grep agetty:
2611 tty1 Ss+ 0:00 /sbin/agetty 38400 tty1 linux
2612 tty2 Ss+ 0:00 /sbin/agetty 38400 tty2 linux
2613 tty3 Ss+ 0:00 /sbin/agetty 38400 tty3 linux
2614 tty4 Ss+ 0:00 /sbin/agetty 38400 tty4 linux
2615 tty5 Ss+ 0:00 /sbin/agetty 38400 tty5 linux
2616 tty6 Ss+ 0:00 /sbin/agetty 38400 tty6 linux
I mean when I hit Ctrl+Alt+F# in X my pc does nothing at all, it just stays on the current desktop, no flash of black, no console at all.
Normal consoles work fine (xterm, konsole, etc).
When the default runlevel is set at 3 Alt+F# works fine, I can switch to all my virtual consoles with no problem.
|
|
|
04-23-2005, 06:12 PM
|
#6
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep: 
|
Quote:
Originally posted by Kruncher
ps ax | grep agetty:
2611 tty1 Ss+ 0:00 /sbin/agetty 38400 tty1 linux
2612 tty2 Ss+ 0:00 /sbin/agetty 38400 tty2 linux
2613 tty3 Ss+ 0:00 /sbin/agetty 38400 tty3 linux
2614 tty4 Ss+ 0:00 /sbin/agetty 38400 tty4 linux
2615 tty5 Ss+ 0:00 /sbin/agetty 38400 tty5 linux
2616 tty6 Ss+ 0:00 /sbin/agetty 38400 tty6 linux
|
Agettys are running, so problem is likely caused by wrong keyboard configuration for X window - like Alt key as Meta key mapping. Try to change /usr/X11R6/lib/X11/xorg.conf in section for input device - keyboard. The most basic setting would look like following
Section "InputDevice"
Identifier "Keyboard"
Driver "kbd"
Option "XkbModel" "pc104" # set to your real kbd layout
EndSection
Just for curiosity you can make sure programaticaly that logins are running by calling chvt utility from X-terminal.
should switch you to terminal on /dev/tty6. Depending on permission settings in device tree, it has to be likely run under root login.
|
|
|
04-23-2005, 06:46 PM
|
#7
|
Member
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61
Original Poster
Rep:
|
I ran chvt 6 as root and it switched to tty6, so what does that mean?
I tried editing /usr/X11R6/lib/X11/xorg.conf but the file does not exist.
My xorg.conf is located at /etc/X11/xorg.conf and this is the part that I belive your talking about :
Code:
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.
# Option "Protocol" "Xqueue"
Option "AutoRepeat" "500 30"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# Option "LeftAlt" "Meta"
# Option "RightAlt" "ModeShift"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# These are the default XKB settings for Xorg
# Option "XkbRules" "xorg"
# Option "XkbModel" "pc101"
# Option "XkbLayout" "us"
# Option "XkbVariant" ""
# Option "XkbOptions" ""
# Option "XkbDisable"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Option "XkbVariant" "us"
EndSection
Could this have anything to do with the part in xorgconfig where it asks you "Do you want to select additional XKB options (group switcher, group indicator, etc.)?" and I said No?
|
|
|
04-24-2005, 10:56 AM
|
#8
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep: 
|
Please just set minimal config for keyboard as I wrote in my previous post, ie. comment out with hash ('#') XkbRules, XkbLayout and XkbVariant lines and restart X server (ctrl+alt+backspace). Then try to switch again to some running virtual terminal (ctr+alt+f6) and let me know if it did help.
|
|
|
04-24-2005, 10:56 PM
|
#9
|
Member
Registered: Mar 2005
Distribution: Ubuntu
Posts: 61
Original Poster
Rep:
|
Yes, virtual terminals work now! Thank you dunric.
Could you explain why commenting out those 3 lines made virtual terminals work?
Again thank you.
|
|
|
04-25-2005, 06:19 AM
|
#10
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep: 
|
It seems the problem was in XkbVariant option, because "us" variant, at least in xorg 6.8.2 official package, doesn't exist. Existing variants are "basic" and "intl" for example, but if you don't wish special behaviour, you need not to use this option.
|
|
|
All times are GMT -5. The time now is 12:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|