Hello, gentooers in general and Alan in particular
I've been using Alan Mackenzie's patch until kernel 5.13, with
success. It failed with 5.14.4 --yes, I know, but it doesn't hurt to
try :)
Jorge Almeida
Just in case it is useful:
param.vc = vc;
+ /* NEW STOUGH, 2021-04-03 */
+#ifdef CONFIG_FRAMEBUFFER_CONSOLE_SOFT_SCROLLBACK
+ /* Undo any soft scrolling - <Alt><Fn> and <Shift><PgUp/Down> do
+
Hello, Jorge.
I must confess that somebody told me by private email that it fails on systems which change their screen geometry during boot-up. For example,
a system which first boots into 80x25, then changes to a frame buffer.
I know why this is happening, but I don't have a machine to debug it on,
so the debugging is happening slowly, with the help of my correspondent.
It also doesn't seem to work on machines with kernel parameters such as vga=791.
I'm assuming that the patch you tried to apply was 5.10.49-scroll.20210715.diff. If so, please leave it applied (with the
one failed hunk), and additionally apply this:
On Wed, Sep 22, 2021 at 9:29 PM Alan Mackenzie <acm@muc.de> wrote:
Hi Alan, thanks for the reply
I must confess that somebody told me by private email that it fails on systems which change their screen geometry during boot-up. For example,
a system which first boots into 80x25, then changes to a frame buffer.
I know why this is happening, but I don't have a machine to debug it on,
so the debugging is happening slowly, with the help of my correspondent.
It also doesn't seem to work on machines with kernel parameters such as vga=791.
OK, I don't know much about this kind of stuff, but I don't think
there's a problem there. I have an integrated GPU (intel), driver
i915, resolution 1920x1080. It boots (via Refind) with the proper
resolution, and that's it. All the VTs show the same resolution and
font. I don't use a login manager. No problems, no change is supposed
to happen. I start an X session from a login shell, in any VT except
tty1, which I like to keep as console.
I'm assuming that the patch you tried to apply was 5.10.49-scroll.20210715.diff. If so, please leave it applied (with the
one failed hunk), and additionally apply this:
I may have missed some announcement from you, I'm using
diff.20210405.diff. I wasn't aware of newer versions. Is there an URL
to download it? I would try it before trying to apply the patch
included in your message.
Thanks,
Jorge Almeida
As for the two(?) versions of my patch, they differed mainly in the aesthetics - diff.20210405.diff had lots of ugly maintainer comments in
it. So, could I ask you please to try that 1-hunk patch I posted
yesterday on top of the version you have. Please then tell me whether
or not it works.
On Thu, Sep 23, 2021 at 6:03 PM Alan Mackenzie <acm@muc.de> wrote:
It still fails:
$ patch -p0 <../patch_for_5.14.diff
patching file ./drivers/tty/vt/vt.c
Hunk #1 FAILED at 3208.
1 out of 1 hunk FAILED -- saving rejects to file ./drivers/tty/vt/vt.c.rej
Thanks,
Jorge Almeida
$ patch -p0 <../patch_for_5.14.diff
patching file ./drivers/tty/vt/vt.c
Hunk #1 FAILED at 3208.
1 out of 1 hunk FAILED -- saving rejects to file ./drivers/tty/vt/vt.c.rej
attached. Please start again from a gentoo-sources without any previous traces of the scrollback patches, and apply that patch. _Surely_ it
should work this time.
To apply the patch (you surely know this already), cd to the top of the kernel tree, and use[...]
$ patch -p1 < 5.14.5-scroll-20210924.diff
.. Please let me know again how it works out. Thanks!
On Fri, Sep 24, 2021 at 5:29 PM Alan Mackenzie <acm@muc.de> wrote:
Hello, Alan
$ patch -p0 <../patch_for_5.14.diff
patching file ./drivers/tty/vt/vt.c
Hunk #1 FAILED at 3208.
1 out of 1 hunk FAILED -- saving rejects to file ./drivers/tty/vt/vt.c.rej
attached. Please start again from a gentoo-sources without any previous traces of the scrollback patches, and apply that patch. _Surely_ it
should work this time.
Sure enough, the patch was succesful. Unfortunately, I cannot test it, because my computer is out of luck (big thunderstorm, crappy power
provider, not-so-smart owner).
I can ssh into it and it all seems fine, but VT's other than tty1 go
dim after 1 or 2 seconds (showing the greeting) and then go black; I
can login blindly! I'm sure it has nothing to do with the patch,
since I also booted the former kernel (for which the previous patch
has been applied with success as expected) and it happens the same.
Damaged UPS or MO, maybe... Anyway, I'll try again when I manage to
fix or replace the computer and I'll report then.
Thanks,
Jorge Almeida
P.S. I just noticed you mention gentoo-sources. I use the vanilla
kernel from kernel.org. Could that be a problem?
Sure enough, the patch was succesful. Unfortunately, I cannot test it,
because my computer is out of luck (big thunderstorm, crappy power
provider, not-so-smart owner).
I'm sorry to hear it. I'm sure you've done it already, but get a decent backup from that machine somehow while it is still even partly working.
On 26/09/2021 13:36, Alan Mackenzie wrote:
Sure enough, the patch was succesful. Unfortunately, I cannot test it,
because my computer is out of luck (big thunderstorm, crappy power
provider, not-so-smart owner).
I'm sorry to hear it. I'm sure you've done it already, but get a decentSounds like the drive is fine, but of course the question is "for how
backup from that machine somehow while it is still even partly working.
long? ..."
When you rebuild it, get a surge protector and then put a UPS behind
that ... snag is that's all extra expense :-(
Cheers,
Wol
When you rebuild it, get a surge protector and then put a UPS behind
that ... snag is that's all extra expense :-(
On Sun, Sep 26, 2021 at 6:24 PM antlists <antlists@youngman.org.uk> wrote:
Hello, Wol and Dale
When you rebuild it, get a surge protector and then put a UPS behind
that ... snag is that's all extra expense :-(
Surge protectors: I googled it and mostly got bad reviews. Do they _really_work? What would you recommend? It probably should be
something amazon-purchasable! Availability in my country is probably
limited (and overpriced to boot, I bet).
UPS: never gave it serious thought, I had the impression there was too
much unclear stuff: for example, is it noisy (does it need a fan)? If
(when) some component needs replacement will I know it before
disaster? And does the replacement require a "qualified technician"? (
Dale's description is not very reassuring!)
Note that my lightning problem happened at night with both computer
and monitor powered down (but still connected to a wall outlet through
an interrupted extension; hence the "not-so-smart" self-qualifying...)
On Sun, Sep 26, 2021 at 6:24 PM antlists <antlists@youngman.org.uk> wrote: Hello, Wol and Dale
When you rebuild it, get a surge protector and then put a UPS behindSurge protectors: I googled it and mostly got bad reviews. Do they _really_work? What would you recommend? It probably should be
that ... snag is that's all extra expense :-(
something amazon-purchasable! Availability in my country is probably
limited (and overpriced to boot, I bet).
UPS: never gave it serious thought, I had the impression there was too
much unclear stuff: for example, is it noisy (does it need a fan)? If
(when) some component needs replacement will I know it before
disaster? And does the replacement require a "qualified technician"? (
Dale's description is not very reassuring!)
Note that my lightning problem happened at night with both computer
and monitor powered down (but still connected to a wall outlet through
an interrupted extension; hence the "not-so-smart" self-qualifying...)
Thanks for your suggestions
Jorge
Jorge Almeida wrote:
On Sun, Sep 26, 2021 at 6:24 PM antlists <antlists@youngman.org.uk> wrote: Hello, Wol and Dale
When you rebuild it, get a surge protector and then put a UPS behind
that ... snag is that's all extra expense :-(
Hope that info helps. Also hope you can find something to prevent
future problems.
On Fri, Sep 24, 2021 at 5:29 PM Alan Mackenzie <acm@muc.de> wrote:
attached. Please start again from a gentoo-sources without any previous traces of the scrollback patches, and apply that patch. _Surely_ it
should work this time.
Sure enough, the patch was succesful. Unfortunately, I cannot test it,
Anyway, I'll try again when I manage to fix or replace the computer
and I'll report then.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 239:49:15 |
Calls: | 6,624 |
Files: | 12,173 |
Messages: | 5,320,014 |