From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 552F0158020 for ; Wed, 14 Dec 2022 10:53:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9706E0866; Wed, 14 Dec 2022 10:53:11 +0000 (UTC) Received: from mx3.muc.de (mx3.muc.de [193.149.48.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 461C7E0845 for ; Wed, 14 Dec 2022 10:53:10 +0000 (UTC) Received: (qmail 37082 invoked by uid 3782); 14 Dec 2022 11:53:08 +0100 Received: from acm.muc.de (p4fe15aa1.dip0.t-ipconnect.de [79.225.90.161]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 14 Dec 2022 11:53:08 +0100 Received: (qmail 4058 invoked by uid 1000); 14 Dec 2022 10:53:07 -0000 Date: Wed, 14 Dec 2022 10:53:07 +0000 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Soft scrolling on framebuffer consoles - New version of the patch. Message-ID: References: <2423893.jE0xQCEvom@wstn> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2423893.jE0xQCEvom@wstn> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Archives-Salt: d99bddb2-14e4-4740-8231-01be5effaf48 X-Archives-Hash: 8722e4cdc1d0a547983936e404362904 Hello, Peter. On Tue, Dec 13, 2022 at 03:44:49 +0000, Peter Humphrey wrote: > On Monday, 12 December 2022 18:23:28 GMT Alan Mackenzie wrote: > > Here is the latest version of my soft scrolling patch for the gentoo > > kernel version 5.15.80. It will surely work on any reasonably recent > > kernel version, and also on future versions. The new version doesn't > > add any new functionality, it just patches the kernel giving rise to > > fewer messages from the patch utility. > You've done it again! What a fine effort. It's saved me much wailing and > gnashing of teeth. Thanks for that! > Is there any chance of enabling gpm to work with it? That would save > yet more generations of tooth enamel. :) Yes, that's been annoying me for some time, too - when the screen is scrolled, and one tries to mark a portion of text with GPM, it gets the text that was on the screen before the scroll, and corrupts the display of the text. I had a look at it last night, and the problem is that the kernel doesn't currently store the 32-bit unicode characters which have been scrolled off the screen - just the 8-bit character glyph codes together with the 8-bit colour information. So it would triple the amount of information stored for each character position. That surely shouldn't be a problem on today's machines, though - even with FRAMEBUFFER_CONSOLE_SOFT_SCROLLBACK_SIZE set to 512 kB, that would only be 1.5 MB per console. So yes, this should be doable. It's definitely more than a day's work, almost certainly less than a month's. I'll see what I can manage. > Seriously, though, it's just wonderful as it is, and we all owe you a debt. Thanks again! > -- > Regards, > Peter. -- Alan Mackenzie (Nuremberg, Germany).