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= <<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> > On Wed, 27 Jul 2022, Ivan Quitschal wrote:<br> > <br> >> <br> >> <br> >> On Tue, 26 Jul 2022, Tomoaki AOKI wrote:<br> >> <br> >>> On Tue, 26 Jul 2022 10:30:25 -0700<br> >>> Chris <<a href=3D"mailto:bsd-lists@bsdforge.com" target=3D"= _blank">bsd-lists@bsdforge.com</a>> wrote:<br> >>> <br> >>>> On 2022-07-26 10:29, Chris wrote:<br> >>>>> On 2022-07-22 08:27, Ivan Quitschal wrote:<br> >>>>>> hi all<br> >>>>>> <br> >>>>>> Ive been trying to solve a problem which is happen= ing to me but so far <br> >>>>>> no<br> >>>>>> success.<br> >>>>>> problem is this:<br> >>>>>> <br> >>>>>> sometimes happens, sometimes doesnt, but once im o= n X and do a "F2", <br> >>>>>> "F3"<br> >>>>>> whatever<br> >>>>>> in order to get back to terminal, it *does* get ba= ck to terminal but <br> >>>>>> the<br> >>>>>> screen<br> >>>>>> still shows like i was on X, therefore i have to d= o a F* twice in order <br> >>>>>> to<br> >>>>>> see the<br> >>>>>> console , like an fflush was missing somewhere.<br= > >>>>> If I'm following you correctly; you should be perf= orming a <br> >>>>> Ctrl+Atl+F<1-8><br> >>>>> to<br> >>>> TYPO sorry. That *should* have read: Ctrl+Alt+F<1-8>= <br> >>> <br> >>> ...and Alt+F<1-8> to switch vtys afterwards.<br> >>> To get back to X, Alt+F9.<br> >>> <br> >>> You need Ctrl+ only on X, and does not work with Ctrl+ on vty&= lt;1-8>.<br> >>> <br> >>> <br> >>>> <br> >>>> Sorry.<br> >>>>> accomplish your goal. Does doing it that way fix it fo= r you?<br> >>>>> <br> >>>>> HTH<br> >>>>> <br> >>>>> --Chris<br> >>>>>> <br> >>>>>> im using the drm-devel-kmod git for i915kms.ko btw= <br> >>>>>> <br> >>>>>> any ideas what could it be?<br> >>>>>> <br> >>>>>> thank you guys<br> >>>>>> <br> >>>>>> --tzk<br> >>> <br> >>> <br> >>> -- Tomoaki AOKI=C2=A0 =C2=A0 <<a href=3D"mailto:junchoon@de= c.sakura.ne.jp" target=3D"_blank">junchoon@dec.sakura.ne.jp</a>><br> >>> <br> >> <br> >> hi<br> >> <br> >> no gyuys, i know how to go back from X to terminal, what i was say= ing is <br> >> that by doing CTRL + ALT + F* it wasnt working until i did *anothe= r* <br> >> CTRL+ALT+F<something>.<br> >> <br> >> example:<br> >> im getting off from X , so i do an CTRL+ALT+F2<br> >> <br> >> nothing happens, until you do *another* CTRL+ALT+F3 . so you gotta= do a <br> >> CTRL+ALT+F* twice in order to get back to terminal<br> >> <br> >> but i found out the problem lies within enlightenment themes, not = anything <br> >> else .<br> >> at least the problem is=C2=A0 solved by changing EE theme, this wa= y i can get <br> >> back instantly to terminal with just ONE CTRL+ALT+F2<br> >> <br> >> thanks<br> >> <br> >> Ivan<br> >> <br> > <br> > <br> > btw, there is something i always wanted to ask, why do we have just 9 = <br> > terminals?<br> > im really asking , never understood that<br> > <br> > in my case here , im using all F* keys<br> > <br> > my /etc/ttys<br> > <br> > ttyv0=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br> > # Virtual terminals<br> > ttyv1=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br> > ttyv2=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br> > ttyv3=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br> > ttyv4=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br> > ttyv5=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br> > ttyv6=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br> > ttyv7=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br> > ttyv8=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br> > ttyv9=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br> > ttyva=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure<br> > ttyvb=C2=A0 =C2=A0"/usr/local/bin/xdm -nodaemon"=C2=A0 xterm= =C2=A0 =C2=A0off secure<br> > <br> > <br> > my F-key dedicated to get back to X is F12 , as it should be IMO. ques= tion <br> > is ,<br> > why isnt it yet?<br> > <br> > im sure there is a reason, just curious because honestly i got no idea= <br> > 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 "Fe= ed the vty monster".</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>