You are not logged in.

#1 2023-07-29 19:05:19

ZulluBalti
Member
Registered: 2021-04-07
Posts: 92

[Solved] Cursor voluntarily goes to the beginning

Hi,

I'm using arch linux

[zullu@zorch ~]$ uname -a 
Linux zorch 6.4.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 27 Jul 2023 22:02:18 +0000 x86_64 GNU/Linux 

Everything was working file and then suddenly my computer starts to freeze/hang a lot and in the terminal i get this error

"read-only file system"

This error is gone but now I'm getting another weird error. My cursor goes to the beginning of the line automatically. It doesn't matter where I'm it happen everywhere in the search bar of
the browser. In the textarea of this form while coding in lvim. If I'm watching a YT video then the video goes to the start.

I did a system update and while it was updating all of a sudden this text appear on the screen '^[[H'. I think it's a signal by kernel or something for the cursor to go the the start of the line.
Can anyone help me figure out what's causing this error?

Thanks

PS: It seems to go away for a min or two when I press Enter

Last edited by ZulluBalti (2023-07-30 16:43:13)

Offline

#2 2023-07-29 20:09:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,129

Re: [Solved] Cursor voluntarily goes to the beginning

Please use [code][/code] tags, the bbs vastly predates markdown. Edit your post in this regard.

"read-only file system" - Please post the complete system journal for a boot covering that, eg.

sudo journalctl -b -2 | curl -F 'f:1=<-' ix.io

for two boots ago.

Wrt the cursor behavior, something seems to generate spurious input. Do you have a spare keyboard to replace the current one and see whether this remains?

Offline

#3 2023-07-29 20:19:08

ZulluBalti
Member
Registered: 2021-04-07
Posts: 92

Re: [Solved] Cursor voluntarily goes to the beginning

Hi, this is the output of the command that you wrote about

[zullu@zorch ~]$ sudo journalctl -b -2 | curl -F 'f:1=<-' ix.io 
[sudo] password for zullu: 
^[[Hhttp://ix.io/4BO1 

here's the link
Output

Here you can see the ^[[H sequence again. while displaying the output.

I do have another keyboard and I have disabled it using xinput. Now let's see what happen

Last edited by ZulluBalti (2023-07-29 20:28:07)

Offline

#4 2023-07-29 21:00:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,129

Re: [Solved] Cursor voluntarily goes to the beginning

Oh, it's a laptop internal keyboard…  :\
Attach the extra (hopefully external) keyboard and disable the internal one w/ xinput (assuming this is an X11 session) or ideally in the BIOS/Firmware, if that's possible.

The journal you posted doesn't contain "read-only file system", the "-2" was just an example (and the journal also looks like it was cut short, did you hard-reboot?), you'll have to know or look out for a relevant boot.

'^[[H' is an escape sequence that tells the TE that the home key has been pressed, and I unfortunately suspect this to be a hardware problem.
You could boot some live-distro and see whether it exhibits the same behavior. If yes, you can assume that you'll need to replace the keyboard sad

Last edited by seth (2023-07-29 21:00:51)

Offline

#5 2023-07-29 21:23:36

ZulluBalti
Member
Registered: 2021-04-07
Posts: 92

Re: [Solved] Cursor voluntarily goes to the beginning

Thank you
On the external keyboard it's working perfectly well.

About the hard reboot yeah I did that a lot of times actually.
While updating it also froze for some time and then I pressed Ctrl+C a couple of times and some other keys.
When it resumed I did the update again but then when I reboot it gave me the error which says "load kernel first".
So I boot from a usb anch arch-chroot and then install linux again by typing this command

sudo pacman -Syu linxu

After the update it did froze a couple of time and I had to hard shutdown it again.
I'm afraid if I turn off  (or reboot) my computer now it will happen again.

Here's the output with
Link -b -15
Link -b -7
Link -b 6

Last edited by ZulluBalti (2023-07-29 21:31:02)

Offline

#6 2023-07-29 21:31:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,466
Website

Re: [Solved] Cursor voluntarily goes to the beginning

Before replacing I'd try the (metaphorical!) sledge-hammer approach first: mess with the home key a bit, it could just be stuck, or have some gunk (cat hair, part of a hot-pocket, etc) stuck under it.  If you have air duster, give it a good spray / cleaning.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2023-07-29 21:35:33

ZulluBalti
Member
Registered: 2021-04-07
Posts: 92

Re: [Solved] Cursor voluntarily goes to the beginning

seth wrote:

'^[[H' is an escape sequence that tells the TE that the home key has been pressed, and I unfortunately suspect this to be a hardware problem.
You could boot some live-distro and see whether it exhibits the same behavior. If yes, you can assume that you'll need to replace the keyboard sad

Can you tell me what TE stands for I've been googling it but all I get is 'tee' related results.
And ChatGPT thinks that it's a typo for TTY smile

Offline

#8 2023-07-29 21:36:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,129

Re: [Solved] Cursor voluntarily goes to the beginning

read-only remounts typically happen for IO errors, could just be the bus (notably if there're spurious events around anyway) but could also be your disk:
https://wiki.archlinux.org/title/SMART

smartctl -a /dev/…

Edit: "Terminal Emulator"

Last edited by seth (2023-07-29 21:36:47)

Offline

#9 2023-07-29 22:04:25

ZulluBalti
Member
Registered: 2021-04-07
Posts: 92

Re: [Solved] Cursor voluntarily goes to the beginning

Here's the output of smartctl

SMART SCAN LINK

also output of

smartctl -l selftest /dev/sda
[zullu@zorch ~]$ sudo smartctl -l selftest /dev/sda 
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.4.7-arch1-1] (local build) 
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org 
=== START OF READ SMART DATA SECTION === 
SMART Self-test log structure revision number 1 
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error 
# 1  Short offline       Completed without error       00%      6692         - 
# 2  Extended offline    Completed without error       00%      6692         - 

BTW i have a SSD with arch installed at /
and HDD which has some drives mounted on /mnt/

Last edited by ZulluBalti (2023-07-29 22:06:04)

Offline

#10 2023-07-30 07:01:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,129

Re: [Solved] Cursor voluntarily goes to the beginning

Most smart values seem bogus (what's frequent w/ SSDs), the only mildly concerning one is

187 Reported_Uncorrect      0x0032   099   000   000    Old_age   Always       -       6

but it's also not clear how reliable that is wrt all the other nonsense.
Do you have a report for the HDD (since we don't actually know what was mounted read-only)?

If nothing shows up, it could have been a fluke - just keep an eye on that.

Because of

It seems to go away for a min or two when I press Enter

I don't have really high hopes for that, but did tampering w/ the Home key fix the keyboard?

Offline

#11 2023-07-30 11:47:13

ZulluBalti
Member
Registered: 2021-04-07
Posts: 92

Re: [Solved] Cursor voluntarily goes to the beginning

[zullu@zorch ~]$ sudo smartctl -l selftest /dev/sdb 
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.4.7-arch1-1] (local build) 
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org 
=== START OF READ SMART DATA SECTION === 
SMART Self-test log structure revision number 1 
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error 
# 1  Short offline       Completed without error       00%     23641         - 
# 2  Short offline       Completed without error       00%      4573         - 
[zullu@zorch ~]$ sudo smartctl -l selftest /dev/sdb 
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.4.7-arch1-1] (local build) 
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org 
=== START OF READ SMART DATA SECTION === 
SMART Self-test log structure revision number 1 
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error 
# 1  Extended offline    Completed without error       00%     23643         - 
# 2  Short offline       Completed without error       00%     23641         - 
# 3  Short offline       Completed without error       00%      4573         - 

for

smartctl -a /dev/sdb

URL


About the keyboard after following @Tribiliy advice and removing the buttons and cleaning it. It's working fine now.

Offline

#12 2023-07-30 13:37:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,129

Re: [Solved] Cursor voluntarily goes to the beginning

No problems on that drive, so hope it was a fluke.

following @Tribiliy advice and removing the buttons and cleaning it. It's working fine now.

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB