Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2022 16:09:56 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Chris <bsd-lists@bsdforge.com>
Cc:        Ivan Quitschal <tezeka@hotmail.com>, Tomoaki AOKI <junchoon@dec.sakura.ne.jp>,  FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: from X to terminal needs an fflush
Message-ID:  <CANCZdfqps%2Bgv4CJ504Rq1m3WvQUbcztW8JcTYFKsqDM%2Bv_mFhw@mail.gmail.com>
In-Reply-To: <e5ad8bde68c8876a6e48616767584b75@bsdforge.com>
References:  <CP6P284MB19006F54D9B9FC5AAB59830ACB909@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM> <f4253e3437be7efec213a9296d3e094a@bsdforge.com> <b379ae9b9cc08e4daa90e2953c838eb4@bsdforge.com> <20220727072737.53528f96e08c7a3390e49170@dec.sakura.ne.jp> <CP6P284MB19000047B533B145D701C98DCB979@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM> <CP6P284MB1900C24C5E334B80565D2D1BCB979@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM> <e5ad8bde68c8876a6e48616767584b75@bsdforge.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000002d52505e4d0aea5
Content-Type: text/plain; charset="UTF-8"

On Wed, Jul 27, 2022 at 3:54 PM Chris <bsd-lists@bsdforge.com> wrote:

> On 2022-07-27 13:45, Ivan Quitschal wrote:
> > On Wed, 27 Jul 2022, Ivan Quitschal wrote:
> >
> >>
> >>
> >> On Tue, 26 Jul 2022, Tomoaki AOKI wrote:
> >>
> >>> On Tue, 26 Jul 2022 10:30:25 -0700
> >>> Chris <bsd-lists@bsdforge.com> wrote:
> >>>
> >>>> On 2022-07-26 10:29, Chris wrote:
> >>>>> On 2022-07-22 08:27, Ivan Quitschal wrote:
> >>>>>> hi all
> >>>>>>
> >>>>>> Ive been trying to solve a problem which is happening to me but so
> far
> >>>>>> no
> >>>>>> success.
> >>>>>> problem is this:
> >>>>>>
> >>>>>> sometimes happens, sometimes doesnt, but once im on X and do a
> "F2",
> >>>>>> "F3"
> >>>>>> whatever
> >>>>>> in order to get back to terminal, it *does* get back to terminal
> but
> >>>>>> the
> >>>>>> screen
> >>>>>> still shows like i was on X, therefore i have to do a F* twice in
> order
> >>>>>> to
> >>>>>> see the
> >>>>>> console , like an fflush was missing somewhere.
> >>>>> If I'm following you correctly; you should be performing a
> >>>>> Ctrl+Atl+F<1-8>
> >>>>> to
> >>>> TYPO sorry. That *should* have read: Ctrl+Alt+F<1-8>
> >>>
> >>> ...and Alt+F<1-8> to switch vtys afterwards.
> >>> To get back to X, Alt+F9.
> >>>
> >>> You need Ctrl+ only on X, and does not work with Ctrl+ on vty<1-8>.
> >>>
> >>>
> >>>>
> >>>> Sorry.
> >>>>> accomplish your goal. Does doing it that way fix it for you?
> >>>>>
> >>>>> HTH
> >>>>>
> >>>>> --Chris
> >>>>>>
> >>>>>> im using the drm-devel-kmod git for i915kms.ko btw
> >>>>>>
> >>>>>> any ideas what could it be?
> >>>>>>
> >>>>>> thank you guys
> >>>>>>
> >>>>>> --tzk
> >>>
> >>>
> >>> -- Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>
> >>>
> >>
> >> hi
> >>
> >> no gyuys, i know how to go back from X to terminal, what i was saying
> is
> >> that by doing CTRL + ALT + F* it wasnt working until i did *another*
> >> CTRL+ALT+F<something>.
> >>
> >> example:
> >> im getting off from X , so i do an CTRL+ALT+F2
> >>
> >> nothing happens, until you do *another* CTRL+ALT+F3 . so you gotta do a
> >> CTRL+ALT+F* twice in order to get back to terminal
> >>
> >> but i found out the problem lies within enlightenment themes, not
> anything
> >> else .
> >> at least the problem is  solved by changing EE theme, this way i can
> get
> >> back instantly to terminal with just ONE CTRL+ALT+F2
> >>
> >> thanks
> >>
> >> Ivan
> >>
> >
> >
> > btw, there is something i always wanted to ask, why do we have just 9
> > terminals?
> > im really asking , never understood that
> >
> > in my case here , im using all F* keys
> >
> > my /etc/ttys
> >
> > ttyv0   "/usr/libexec/getty Pc"         xterm   onifexists secure
> > # Virtual terminals
> > ttyv1   "/usr/libexec/getty Pc"         xterm   onifexists secure
> > ttyv2   "/usr/libexec/getty Pc"         xterm   onifexists secure
> > ttyv3   "/usr/libexec/getty Pc"         xterm   onifexists secure
> > ttyv4   "/usr/libexec/getty Pc"         xterm   onifexists secure
> > ttyv5   "/usr/libexec/getty Pc"         xterm   onifexists secure
> > ttyv6   "/usr/libexec/getty Pc"         xterm   onifexists secure
> > ttyv7   "/usr/libexec/getty Pc"         xterm   onifexists secure
> > ttyv8   "/usr/libexec/getty Pc"         xterm   onifexists secure
> > ttyv9   "/usr/libexec/getty Pc"         xterm   onifexists secure
> > ttyva   "/usr/libexec/getty Pc"         xterm   onifexists secure
> > ttyvb   "/usr/local/bin/xdm -nodaemon"  xterm   off secure
> >
> >
> > my F-key dedicated to get back to X is F12 , as it should be IMO.
> question
> > is ,
> > why isnt it yet?
> >
> > im sure there is a reason, just curious because honestly i got no idea
> > whatsoever
> ttys(5) is fairly informative and less /etc/ttys has some info. But I
> can't
> remember
> the history on why 9 was the default. The SUN || terminal keyboard
> mapping,
> maybe?
>

The default has 8 terminals (v0 - v7) with xdm running on v8. The great
syscons
rewrite of 1999 set MAXCONS to 16, but it was 16 before the rewrite.
Digging further
we see it was 3 in 1998 when ttys was moved to etc/etc.i386, but later
expanded to 8
in July of 1999 by des with the explanation "Feed the vty monster".

tl;dr: Meh, 8 seems good, since 3 was too few.

Warner

--00000000000002d52505e4d0aea5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jul 27, 2022 at 3:54 PM Chris=
 &lt;<a href=3D"mailto:bsd-lists@bsdforge.com">bsd-lists@bsdforge.com</a>&g=
t; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 202=
2-07-27 13:45, Ivan Quitschal wrote:<br>
&gt; On Wed, 27 Jul 2022, Ivan Quitschal wrote:<br>
&gt; <br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt; On Tue, 26 Jul 2022, Tomoaki AOKI wrote:<br>
&gt;&gt; <br>
&gt;&gt;&gt; On Tue, 26 Jul 2022 10:30:25 -0700<br>
&gt;&gt;&gt; Chris &lt;<a href=3D"mailto:bsd-lists@bsdforge.com" target=3D"=
_blank">bsd-lists@bsdforge.com</a>&gt; wrote:<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; On 2022-07-26 10:29, Chris wrote:<br>
&gt;&gt;&gt;&gt;&gt; On 2022-07-22 08:27, Ivan Quitschal wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt; hi all<br>
&gt;&gt;&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt;&gt; Ive been trying to solve a problem which is happen=
ing to me but so far <br>
&gt;&gt;&gt;&gt;&gt;&gt; no<br>
&gt;&gt;&gt;&gt;&gt;&gt; success.<br>
&gt;&gt;&gt;&gt;&gt;&gt; problem is this:<br>
&gt;&gt;&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt;&gt; sometimes happens, sometimes doesnt, but once im o=
n X and do a &quot;F2&quot;, <br>
&gt;&gt;&gt;&gt;&gt;&gt; &quot;F3&quot;<br>
&gt;&gt;&gt;&gt;&gt;&gt; whatever<br>
&gt;&gt;&gt;&gt;&gt;&gt; in order to get back to terminal, it *does* get ba=
ck to terminal but <br>
&gt;&gt;&gt;&gt;&gt;&gt; the<br>
&gt;&gt;&gt;&gt;&gt;&gt; screen<br>
&gt;&gt;&gt;&gt;&gt;&gt; still shows like i was on X, therefore i have to d=
o a F* twice in order <br>
&gt;&gt;&gt;&gt;&gt;&gt; to<br>
&gt;&gt;&gt;&gt;&gt;&gt; see the<br>
&gt;&gt;&gt;&gt;&gt;&gt; console , like an fflush was missing somewhere.<br=
>
&gt;&gt;&gt;&gt;&gt; If I&#39;m following you correctly; you should be perf=
orming a <br>
&gt;&gt;&gt;&gt;&gt; Ctrl+Atl+F&lt;1-8&gt;<br>
&gt;&gt;&gt;&gt;&gt; to<br>
&gt;&gt;&gt;&gt; TYPO sorry. That *should* have read: Ctrl+Alt+F&lt;1-8&gt;=
<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; ...and Alt+F&lt;1-8&gt; to switch vtys afterwards.<br>
&gt;&gt;&gt; To get back to X, Alt+F9.<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; You need Ctrl+ only on X, and does not work with Ctrl+ on vty&=
lt;1-8&gt;.<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; Sorry.<br>
&gt;&gt;&gt;&gt;&gt; accomplish your goal. Does doing it that way fix it fo=
r you?<br>
&gt;&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt; HTH<br>
&gt;&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt; --Chris<br>
&gt;&gt;&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt;&gt; im using the drm-devel-kmod git for i915kms.ko btw=
<br>
&gt;&gt;&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt;&gt; any ideas what could it be?<br>
&gt;&gt;&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt;&gt; thank you guys<br>
&gt;&gt;&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt;&gt; --tzk<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; -- Tomoaki AOKI=C2=A0 =C2=A0 &lt;<a href=3D"mailto:junchoon@de=
c.sakura.ne.jp" target=3D"_blank">junchoon@dec.sakura.ne.jp</a>&gt;<br>
&gt;&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt; hi<br>
&gt;&gt; <br>
&gt;&gt; no gyuys, i know how to go back from X to terminal, what i was say=
ing is <br>
&gt;&gt; that by doing CTRL + ALT + F* it wasnt working until i did *anothe=
r* <br>
&gt;&gt; CTRL+ALT+F&lt;something&gt;.<br>
&gt;&gt; <br>
&gt;&gt; example:<br>
&gt;&gt; im getting off from X , so i do an CTRL+ALT+F2<br>
&gt;&gt; <br>
&gt;&gt; nothing happens, until you do *another* CTRL+ALT+F3 . so you gotta=
 do a <br>
&gt;&gt; CTRL+ALT+F* twice in order to get back to terminal<br>
&gt;&gt; <br>
&gt;&gt; but i found out the problem lies within enlightenment themes, not =
anything <br>
&gt;&gt; else .<br>
&gt;&gt; at least the problem is=C2=A0 solved by changing EE theme, this wa=
y i can get <br>
&gt;&gt; back instantly to terminal with just ONE CTRL+ALT+F2<br>
&gt;&gt; <br>
&gt;&gt; thanks<br>
&gt;&gt; <br>
&gt;&gt; Ivan<br>
&gt;&gt; <br>
&gt; <br>
&gt; <br>
&gt; btw, there is something i always wanted to ask, why do we have just 9 =
<br>
&gt; terminals?<br>
&gt; im really asking , never understood that<br>
&gt; <br>
&gt; in my case here , im using all F* keys<br>
&gt; <br>
&gt; my /etc/ttys<br>
&gt; <br>
&gt; ttyv0=C2=A0 =C2=A0&quot;/usr/libexec/getty Pc&quot;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br>
&gt; # Virtual terminals<br>
&gt; ttyv1=C2=A0 =C2=A0&quot;/usr/libexec/getty Pc&quot;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br>
&gt; ttyv2=C2=A0 =C2=A0&quot;/usr/libexec/getty Pc&quot;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br>
&gt; ttyv3=C2=A0 =C2=A0&quot;/usr/libexec/getty Pc&quot;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br>
&gt; ttyv4=C2=A0 =C2=A0&quot;/usr/libexec/getty Pc&quot;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br>
&gt; ttyv5=C2=A0 =C2=A0&quot;/usr/libexec/getty Pc&quot;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br>
&gt; ttyv6=C2=A0 =C2=A0&quot;/usr/libexec/getty Pc&quot;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br>
&gt; ttyv7=C2=A0 =C2=A0&quot;/usr/libexec/getty Pc&quot;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br>
&gt; ttyv8=C2=A0 =C2=A0&quot;/usr/libexec/getty Pc&quot;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br>
&gt; ttyv9=C2=A0 =C2=A0&quot;/usr/libexec/getty Pc&quot;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br>
&gt; ttyva=C2=A0 =C2=A0&quot;/usr/libexec/getty Pc&quot;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br>
&gt; ttyvb=C2=A0 =C2=A0&quot;/usr/local/bin/xdm -nodaemon&quot;=C2=A0 xterm=
=C2=A0 =C2=A0off secure<br>
&gt; <br>
&gt; <br>
&gt; my F-key dedicated to get back to X is F12 , as it should be IMO. ques=
tion <br>
&gt; is ,<br>
&gt; why isnt it yet?<br>
&gt; <br>
&gt; im sure there is a reason, just curious because honestly i got no idea=
 <br>
&gt; whatsoever<br>
ttys(5) is fairly informative and less /etc/ttys has some info. But I can&#=
39;t <br>
remember<br>
the history on why 9 was the default. The SUN || terminal keyboard mapping,=
 <br>
maybe?<br></blockquote><div><br></div><div>The default has 8 terminals (v0 =
- v7) with xdm running on v8. The great syscons</div><div>rewrite of 1999 s=
et MAXCONS to 16, but it was 16 before the rewrite. Digging further</div><d=
iv>we see it was 3 in 1998 when ttys was moved to etc/etc.i386, but later e=
xpanded to 8</div><div>in July of 1999 by des with the explanation &quot;Fe=
ed the vty monster&quot;.</div><div><br></div><div>tl;dr: Meh, 8 seems good=
, since 3 was too few.</div><div><br></div><div>Warner</div></div></div>

--00000000000002d52505e4d0aea5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqps%2Bgv4CJ504Rq1m3WvQUbcztW8JcTYFKsqDM%2Bv_mFhw>