NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Acer Aspire One NetBSD 11.0-RC1 slow man pages rendering in virtual consoles



On Wed, Mar 04, 2026 at 06:24:58PM +0100, Ramiro Aceves wrote:
> I do not know why constty was set to vt100 in the Acer Aspire One NetBSD11.0-RC1, I do not remember having changed it.  In my AMD64 IntelNuc NetBSD 10.1 system is set to wsvt25.
> Also do not remember.

If you install via sysinst on amd64 or i386 *and* are running sysinst on
the glass console, it should be set to wsvt25 automatically, but the
logic is fragile and only present for those two architectures, while
virtual consoles and wsvt25 is used accross most architectures.

        /*
         * Get console device, should either be ttyE0 or tty0n.
         * Too hard to double check, so just 'know' the device numbers.
         */ 
        len = sizeof condev;
        if (sysctl(conmib, __arraycount(conmib), &condev, &len, NULL, 0) != -1
            && (condev & ~3) != 0x800) {
                            
                /*
                 * Current console is not com*, assume ttyE*.
                 * Modify /etc/ttys to use wsvt25 for all ports.
                 */
         
                run_program(RUN_CHROOT,
                            "sed -an -e 's/vt100/wsvt25/g;"
                            "H;$!d;g;w  /etc/ttys' /etc/ttys");
        }

We should simply check the TERM type used to run sysinst, as the
scripts invoking it try to automatically set a proper default.

"fgrep -r kern.consdev src/distrib" to see where it is used, and it should
be propagated to even more architectures.

Martin


Home | Main Index | Thread Index | Old Index