From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DNS_FROM_AHBL_RHSBL,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrfy.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=7xFSnnuSntb7CqH95+DkSPK+bHkEFlWqrJEuiSWpqDY=; b=bk7KD9kQ3JVZ0x/KtXUozg1DLqSP6X/iCQD/KqYelmL7hkixIyWLjrppoLxYEbpTPs OVFwYr5xQl+0F+s5CfJOEoNMPFnb+M0UTUz9BrtY8vbRx7McsfITiAE5MejxdDCmCvU1 gtLidlZgLmnMYw0uwejxQTKNMUB/Mk7r2C/gU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=7xFSnnuSntb7CqH95+DkSPK+bHkEFlWqrJEuiSWpqDY=; b=MkfjX2NpvFdV+GWImfrDhby7w+5xzz13D5TK+1l8vN7suDALUdzX5GTWOxUXpv/uMj 5xLnZc9C4BloEc+Zt0pUb2Fbamnxka0KMZ67Tm0tgwW/fncAC7NckA+KktNxhPFVHnbe 95jn1FmOPfX4sT5qsy74yUSBIqoTZaVeTIlY8iXwRdcgjgGIFfP3A8ZJVO7j1R7vWofU 6+PqSbYhbpnWqssOL5GymbtWPDHraxEGuuv2x+3dX9WSFn/Oz7RpLjYyymyh/T8SgGDx TLJdJGNtEF5AidNZn6+L3T8YWMSTLcNAz5xhODHQ2uho0KJWxGlvW21uv2/OlZIxSKfp CGyg== X-Gm-Message-State: ALoCoQkANNGXdUcM5d31QvQ5PAynrg/mQK8z8yn8CPejJxYUKxmC89bshB+1NHvqbDm00w2zuEQK X-Received: by 10.50.78.232 with SMTP id e8mr15473902igx.5.1427927324724; Wed, 01 Apr 2015 15:28:44 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20150123021329.GF2702@gardel-login> From: Kay Sievers Date: Thu, 2 Apr 2015 00:28:24 +0200 Message-ID: To: Andy Lutomirski Content-Type: text/plain; charset=UTF-8 X-Mailman-Approved-At: Thu, 02 Apr 2015 01:34:46 +0300 Cc: systemd Mailing List , Lennart Poettering , kbd@lists.altlinux.org Subject: Re: [kbd] [systemd-devel] systemd-vconsole-setup fails very slowly X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2015 22:28:48 -0000 Archived-At: List-Archive: On Thu, Apr 2, 2015 at 12:00 AM, Andy Lutomirski wrote: > On Wed, Apr 1, 2015 at 2:47 PM, Kay Sievers wrote: >> On Wed, Apr 1, 2015 at 11:38 PM, Andy Lutomirski wrote: >>> On Wed, Apr 1, 2015 at 2:36 PM, Kay Sievers wrote: >> >>>> They should only get created when something accesses the corresponding >>>> tty. deallocvt(1) can kill unused ones and the device nodes should >>>> disappear. >>>> >>> >>> deallocvt doesn't seem to kill those device nodes for me. >> >> Seems to work here: >> >> # ls -l /dev/vcs[6789] >> crw-rw---- 1 root tty 7, 6 Apr 1 22:21 /dev/vcs6 >> # cat /dev/tty7 >> ^C >> # cat /dev/tty9 >> ^C >> # ls -l /dev/vcs[6789] >> crw-rw---- 1 root tty 7, 6 Apr 1 22:21 /dev/vcs6 >> crw-rw---- 1 root tty 7, 7 Apr 1 23:42 /dev/vcs7 >> crw-rw---- 1 root tty 7, 9 Apr 1 23:42 /dev/vcs9 >> # deallocvt 7 >> # ls -l /dev/vcs[6789] >> crw-rw---- 1 root tty 7, 6 Apr 1 22:21 /dev/vcs6 >> crw-rw---- 1 root tty 7, 9 Apr 1 23:42 /dev/vcs9 >> # deallocvt 9 >> # ls -l /dev/vcs[6789] >> crw-rw---- 1 root tty 7, 6 Apr 1 22:21 /dev/vcs6 > > Aha. It seems that I have something holding tty1-tty4 open. I'll fix > that on my end. Will that make vconsole-setup stop calling setfont? Oh, no. That was just in reply to the "vc_screen.c code seems to create those devices unconditionally". These devices should all be fully dynamic, handled inside the kernel. It will not influence the setfont behavior of vconsole-setup. To fix your issue, setfont should be changed, or we find and add some dummy font-related ioctl to vconsole-setup, to check if setfont would fail anyway on the current VT and we skip it. Kay