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.
|
 |
|
11-28-2007, 12:04 PM
|
#1
|
Member
Registered: Dec 2006
Posts: 271
Rep:
|
Ctrl+F2 & Ctrl+F7 won't work
I was told that Ctrl+F2 and Ctrl+F7 are the standard Linux key combinations that take you to the terminal and back to the windows manager. I was also told they should work by default on any WM. For some reason that's not the case for me.
I tried eliminating a couple things to make sure they weren't causing it.
1. I had an alias for startx defined in ~/.bashrc:
Code:
alias startx="exec startx"
2. There were key bindings defined in ~/.fluxbox/keys:
Code:
! Define send-to keys
Control F1 :SendToWorkspace 1
Control F2 :SendToWorkspace 2
Control F3 :SendToWorkspace 3
Control F4 :SendToWorkspace 4
Control F5 :SendToWorkspace 5
Control F6 :SendToWorkspace 6
Control F7 :SendToWorkspace 7
Control F8 :SendToWorkspace 8
Control F9 :SendToWorkspace 9
Control F10 :SendToWorkspace 10
Control F11 :SendToWorkspace 11
Control F12 :SendToWorkspace 12
I tried to unset both the alias and the key bindings, but that didn't help.
Just to clarify, the startx alias prevents people from exiting out of WM and using the terminal when I'm away from my computer and xlock is on. The key bindings are self-explanatory.
|
|
|
11-28-2007, 12:15 PM
|
#2
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Into terminal ctrl+alt+f*, back into wm alt+f*
|
|
|
11-28-2007, 12:37 PM
|
#3
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
In Slackware when you have started X, you can get back to a login terminal by using CTRL+ALT+F6. Then to get back to your X session (0:0) you'd use CTRL+ALT+F2. if you start a second X session on :1 (startx -- :1), you can access that by using CTRL+ALT+F3. The key combinations without CTRL (ALT+F1 to ALT+F6) are for use when X is not running. If you try to change to one of these terminals while X is running you will probably have trouble getting back to your X session.
CTRL+ALT+F6 is the only console terminal that is supposed to be available when your are running with runlevel 4, but YMMV according to which version you are running. But, observe the caution above to avoid getting shut out from your running X session. If you are using KDM or other display manager you may have slightly different behaviour also -again the sane way that is *supposed* to work in Slackware is as above.
|
|
|
11-28-2007, 12:53 PM
|
#4
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Quote:
Originally Posted by gnashley
. If you try to change to one of these terminals while X is running you will probably have trouble getting back to your X session.
|
Can you explain that? Never had any problems myself, but still wondering what precautions should I take.
|
|
|
11-28-2007, 02:20 PM
|
#5
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
Perhaps there are no problems with current versions, but in the past I have seen other users who had problems and I had them myself -with cases like this:
You start an x session normally on tty1 using startx. From the running session you can exit okay to a login terminal by using CTL+ALT+F6 and you can return to your running X session by pressing CTRL+ALT+F2. But if you try to exit from your X session by going to some other console terminal other than CTRL+ALT+F6 -and especially by using a CLI terminal switch like ALT+F4, for instance, you are then unable to return to your X session by using CTRL+ALT+F2, nor exit to CTRL+ALT+F6. This means you are hung where you can't login to a terminal even to shut down X and restart. Only by having and using the obscure and hard-to-remember CTRL+SYSRQ method can you exit. this means you have to do a power-off the rude way, by hitting the reset button.
Here's another trick that I've learned about runlevel 4 -if you for some reason want to kill your display manager, you can do so by opening an xterm (as root) and typing 'init 5'. This kills the display manager and takes you to a console login where you can then issue the command 'init 3' -although this last is not really necessary normally. The thing is that if you want to kill the display manager and try the above trick but entering runlevel 3 *first* (without going to 5) you can also get a nasty lockup of X where you can't log in or out or shutdown. FWIW...
|
|
|
11-28-2007, 03:14 PM
|
#6
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Tried everything what you told here. Thanks for great ctrl+sysrq tip. I have never known about it. My OS is/was Slackware 10.2 (now smth similar to slackentoo). X is started on tty7 and I can change between terminals and wm without problems using alt. 'init 3' also works without problems - no need for 'init 5'.
|
|
|
11-29-2007, 01:02 AM
|
#7
|
Member
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Rep:
|
gnashley, thanks for those tips! I always thought something was messed up with my X configs, because Ctrl+Alt+F2 never took me to the console, and switching back to Ctrl+Alt+F1 just showed me X's logs.
|
|
|
11-29-2007, 01:27 AM
|
#8
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
It's on tty6.
|
|
|
12-01-2007, 03:54 PM
|
#9
|
Member
Registered: Dec 2006
Posts: 271
Original Poster
Rep:
|
I'm running init 3 and none of the tips above helped me. I typically login and run startx right away without doing anything else.
|
|
|
12-01-2007, 05:06 PM
|
#10
|
Member
Registered: Jun 2007
Location: Italy
Distribution: Slackware current
Posts: 39
Rep:
|
No need to type "startx" anytime you login if you open your /etc/inittab and change the runlevel value from 3 to 4.
|
|
|
12-02-2007, 12:35 AM
|
#11
|
Member
Registered: Dec 2006
Posts: 271
Original Poster
Rep:
|
But I like to start from the terminal.
|
|
|
12-02-2007, 04:15 AM
|
#12
|
Member
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316
Rep:
|
Something weird for me Ctrl+Alt+F7 sends me back to the xserver all the rest are CLI, how so ?
|
|
|
12-02-2007, 02:13 PM
|
#13
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Quote:
Originally Posted by IceChant
Something weird for me Ctrl+Alt+F7 sends me back to the xserver all the rest are CLI, how so ?
|
That should be so.
|
|
|
12-02-2007, 05:13 PM
|
#14
|
Member
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316
Rep:
|
I understand that but from what I see in this thread for most people it doesn't work.
|
|
|
12-05-2007, 05:23 PM
|
#15
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
I don't know about most of them, but on my system I get tty6 running runlevel 4 and tty 2-6 running runlevel 3. You can check inittab.
|
|
|
All times are GMT -5. The time now is 09:52 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
|
|