From nobody Wed Jul 27 22:09:56 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LtSdF33d1z4XsSW for ; Wed, 27 Jul 2022 22:10:09 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LtSdD2X54z3dyX for ; Wed, 27 Jul 2022 22:10:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vs1-xe30.google.com with SMTP id b67so27285vsc.1 for ; Wed, 27 Jul 2022 15:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=uYwOumUJXKLFGELiin/IGHns/IJlYXel+qqQAnYrVkA=; b=Az1AD+XFlNvFztfcydmlEoCjU33uSId5NO6XS7ZZxTOqhgZe2BQBtFC2O2FFFlNbcu RSScTkK1TJy9GnlMU24MjtE6yHMImpgs2yybAVLkwVYxbWcPZd+jk4/IixYAH5kI9u81 Cx45T1hnGh+Chr7GeQdHfLra1jhS/IuMTzHHwLahlEuN6AbLW7zNBwcCpFagv8nuLw2v jFN6IOZ2jm3nP/eWCkEksQp2XVNruG3g8/QmK/4Y49CzgaztU48CyVo8JMG1VnxtmuqY cpdQ9lQ3XqJoZwJoVhCuZc50YkK7x4/vNEFlYiS7hIOxmm0VKQRqibcLUWqzxWQo0okS 5ecQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=uYwOumUJXKLFGELiin/IGHns/IJlYXel+qqQAnYrVkA=; b=s2k8I6z4SOTOSdqlvMMiZpJeusiIDe+uZ9JbtX/3rAGgrkERhx6R6WoxYql2VCTkGZ TF/uSxrKXAtrjE0ipfYYYZ9wEskdiJEBVAOy5kP90aBe/yeJSyyYnvKzL+KiBh+TNZSQ KBgZCP0UU+Hw9tFtlNKOOAALRv4zIP/T+3lZkmtxbDOicLA3aZl2WI8O2o21cgMpfKU2 cbNqtkQFPLOKcv7EToFs8WU8wLEve7TmEovpmAj2qrE5NatfHTUEoF8+zNNENXD7OEA0 uWyCxX69HB1R+37TXGFc4+xKfvbyqIJAN2KilcONIX3vEJ2xbkWYj52VZv3UeRV0xA4Q 29wg== X-Gm-Message-State: AJIora+EQqOBGRqd1mCYEfAtU4ARZQ1urRGQXnvwZ5r629nn92ZkpNEF 9q/h0/YhsxxiHjHenuw7jIZt2MyhqJCbPjSY90GA5A== X-Google-Smtp-Source: AGRyM1vbNPZ50QSnBDws+qPf1PKVHGVQTlEKxna62OBumfDw1LN9YDN9L4GEffeZ3QPJQ24HHz8WPOQeLKne6Z7PQ6g= X-Received: by 2002:a67:ab02:0:b0:356:51a5:993e with SMTP id u2-20020a67ab02000000b0035651a5993emr7654659vse.12.1658959807296; Wed, 27 Jul 2022 15:10:07 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <20220727072737.53528f96e08c7a3390e49170@dec.sakura.ne.jp> In-Reply-To: From: Warner Losh Date: Wed, 27 Jul 2022 16:09:56 -0600 Message-ID: Subject: Re: from X to terminal needs an fflush To: Chris Cc: Ivan Quitschal , Tomoaki AOKI , FreeBSD Current Content-Type: multipart/alternative; boundary="00000000000002d52505e4d0aea5" X-Rspamd-Queue-Id: 4LtSdD2X54z3dyX X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=Az1AD+XF; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::e30) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::e30:from]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; R_SPF_NA(0.00)[no SPF record]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; RCPT_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[bsdimp.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FREEMAIL_CC(0.00)[hotmail.com,dec.sakura.ne.jp,freebsd.org] X-ThisMailContainsUnwantedMimeParts: N --00000000000002d52505e4d0aea5 Content-Type: text/plain; charset="UTF-8" On Wed, Jul 27, 2022 at 3:54 PM Chris 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 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 > >>> > >> > >> 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. > >> > >> 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


=
On Wed, Jul 27, 2022 at 3:54 PM Chris= <bsd-lists@bsdforge.com&g= t; wrote:
On 202= 2-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 happen= ing to me but so far
>>>>>> no
>>>>>> success.
>>>>>> problem is this:
>>>>>>
>>>>>> sometimes happens, sometimes doesnt, but once im o= n X and do a "F2",
>>>>>> "F3"
>>>>>> whatever
>>>>>> in order to get back to terminal, it *does* get ba= ck to terminal but
>>>>>> the
>>>>>> screen
>>>>>> still shows like i was on X, therefore i have to d= o a F* twice in order
>>>>>> to
>>>>>> see the
>>>>>> console , like an fflush was missing somewhere. >>>>> If I'm following you correctly; you should be perf= orming 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&= lt;1-8>.
>>>
>>>
>>>>
>>>> Sorry.
>>>>> accomplish your goal. Does doing it that way fix it fo= r 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=C2=A0 =C2=A0 <junchoon@dec.sakura.ne.jp>
>>>
>>
>> hi
>>
>> no gyuys, i know how to go back from X to terminal, what i was say= ing is
>> that by doing CTRL + ALT + F* it wasnt working until i did *anothe= r*
>> 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=C2=A0 solved by changing EE theme, this wa= y 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=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure
> # Virtual terminals
> ttyv1=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure
> ttyv2=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure
> ttyv3=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure
> ttyv4=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure
> ttyv5=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure
> ttyv6=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure
> ttyv7=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure
> ttyv8=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure
> ttyv9=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure
> ttyva=C2=A0 =C2=A0"/usr/libexec/getty Pc"=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0xterm=C2=A0 =C2=A0onifexists secure
> ttyvb=C2=A0 =C2=A0"/usr/local/bin/xdm -nodaemon"=C2=A0 xterm= =C2=A0 =C2=A0off secure
>
>
> my F-key dedicated to get back to X is F12 , as it should be IMO. ques= tion
> 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&#= 39;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 s= et 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 e= xpanded to 8
in July of 1999 by des with the explanation "Fe= ed the vty monster".

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

Warner
--00000000000002d52505e4d0aea5--