On 05/06 03:15, Mick wrote:
> On Sunday, 6 May 2018 14:28:41 BST Philip Webb wrote:
> 
> > What has always worked is  Control-Alt-F7 , if you started from TTY1 ;
> > IIRC if you start with TTY2, then 'startx', you come back via  C-A-F8  etc.
> > Perhaps you could test that & report back.
> 
> From a console in Gentoo you should be able to switch to your primary 
> xsession 
> with:
> 
>  Alt+F7
> 
> Other distros may use Alt+F5.
> 
> 
> > > 1) For debugging purposes I would like to get a fully working switch
> > > between the Linux console and X11 back and forth.
> > > 2) If that is not possible see below.  But!
> > > If I was accidentally thrown to the Linux console
> > > by my own eloborated usage of the keyboard (hrrrrmmmm)
> > > I am able to do the following:
> > > Login as myself (console login) and do another startx.
> > > This will start a new X11 session.
> > > Is it possible somehow to "take over" the original X11 session,
> > > which is still running in the background
> > > to cleanly ending the tasks running and waiting for my input?
> > 
> > I suspect there is a way to do that, but I don't know how.
> 
> From the console use Alt+F7.
> 
> From within the secondary xsession use Ctrl+Alt+F7.
> 
> Alt+F8/Ctrl+Alt+F8 should take you back to your secondary xsession.
> 
> -- 
> Regards,
> Mick

Hi,

oh YEAH!
This little thread is becoming a life-saver for me! :)

Mu remembrance of ALT-something-F12 may be from times one 
has to configure X11 by hand (timings etc...you know...or not,
if you are younger/luckier).

Ok...what works here is:

One X11-session
>From X11:
CTRL-ALT-F1: Console 1
...
CTRL-ALT-F<n>: Console <n> (n:1...6)

>From the console, opened that way:
ALT-F<n>: Console <n> (n:1...6)

ALT-F7: Back to X11

Now with two X11-sessions:
Firstly:
CTRL-ALT-F1: Console 1
ALT-F2: Console 2, login as user and startx (start X)
ALT-F2: Console 2, login as user and startx (start X)

which starts a new X11-session, which is than bound to ALT-F8 from the
console and CTRL-ALT from the previous X11 session.
Interesting:
If an application is running, which is able to interpret 
ALT-something-keystrokes as shortcuts - this comes first!
X11 gives the applications priority.

At least with my configuration (devilspie and openbox).

A big thank yu to all who have answered my question :)
Great help!
Cheers
Meino





Reply via email to