You are not logged in.

#1 2023-12-14 16:00:41

istipisti113
Member
Registered: 2023-05-22
Posts: 11

[SOLVED] Cursor jumping around while typing

When I am typing in firefox, the terminal or anywhere else the cursor sometimes appears behind the last typed character, also does it when I press backspace in an empty terminal. It does not block any functionality, but it is really irritating.
I'm so clueless, don't even know what do I link.

I am using awesome wm on xorg if that makes a difference.

Last edited by istipisti113 (2023-12-16 15:59:37)

Offline

#2 2023-12-14 17:25:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,232

Re: [SOLVED] Cursor jumping around while typing

Which xorg ddx driver? If you're using an intel GPU with xf86-video-intel installed, try removing that (and any config file you might've created enforcing the "intel" driver)

If not or if this doesn't fix it,  post your xorg log: https://wiki.archlinux.org/title/Xorg#General  https://wiki.archlinux.org/title/List_o … n_services

Offline

#3 2023-12-14 19:23:35

istipisti113
Member
Registered: 2023-05-22
Posts: 11

Re: [SOLVED] Cursor jumping around while typing

Thanks for the reply!

Here is the output: https://0x0.st/HYHf.txt
I am not using an intel card, there is one in my laptop, but I use the nvidia card, checked, the issue is present on both cards.

Do you think a reinstall would be worth a try?

Last edited by istipisti113 (2023-12-14 19:40:20)

Offline

#4 2023-12-14 20:47:17

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

Re: [SOLVED] Cursor jumping around while typing

That's not your xorg log but some random (useless) lines from it.

cat /var/log/Xorg.0.log | curl -F 'file=@-' 0x0.st

Offline

#5 2023-12-14 20:52:22

istipisti113
Member
Registered: 2023-05-22
Posts: 11

Re: [SOLVED] Cursor jumping around while typing

Sorry, I tried to send something useful.

https://0x0.st/HYXo.txt
This is the result of the command you sent.

Offline

#6 2023-12-14 21:20:08

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

Re: [SOLVED] Cursor jumping around while typing

[     7.444] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     7.444] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     7.445] (==) ServerLayout "layout"
[     7.445] (**) |-->Screen "nvidia" (0)
[     7.445] (**) |   |-->Monitor "<default monitor>"
[     7.445] (**) |   |-->Device "nvidia"
[     7.445] (**) |   |-->GPUDevice "integrated"
[     7.445] (**) |   |-->GPUDevice "NVIDIA Corporation TU117M"
[     7.445] (==) No monitor specified for screen "nvidia".
	Using a default monitor configuration.
[     7.445] (**) |-->Inactive Device "integrated"

You're running an optimus system on the nvidia chip, but the only output is attached to the intel chip.
Is this deliberate? Why do you think that's a good idea?
The generic suggestion is to remove that config (optimus-manager?) and run the system in regular prime fashion. Alternatively just disable the IGP in the BIOS/UEFI.

Also remove xf86-video-nouveau.

Offline

#7 2023-12-14 21:31:40

istipisti113
Member
Registered: 2023-05-22
Posts: 11

Re: [SOLVED] Cursor jumping around while typing

It is like this because it is a laptop and the monitor is wired into the integrated but low performance chip, while the other video outputs like the hdmi are wired to the nvidia one. I tried it and it is buggy on the intel graphics as well.

Offline

#8 2023-12-14 21:33:48

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

Re: [SOLVED] Cursor jumping around while typing

Yes, but there's currently no output attached to the HDMI.

I tried it and it is buggy on the intel graphics as well.

Xorg log for that setup?

Edit: do you use a compositor (eg. picom) next to awesomewm?

Last edited by seth (2023-12-14 21:34:45)

Offline

#9 2023-12-15 16:05:49

istipisti113
Member
Registered: 2023-05-22
Posts: 11

Re: [SOLVED] Cursor jumping around while typing

I use xcompmgr along awesomewm.

This is it on the intel card: https://0x0.st/HYqt.txt
It is really interesting because it sometimes starts to do it, but after a reboot it stops it for like 5 minutes, and I think I can confirm that it only does it on the nvidia card now, I cant make it do that again on the intel one.
Also it does not do it on an external monitor, only the build in one.

Last edited by istipisti113 (2023-12-15 16:25:07)

Offline

#10 2023-12-15 20:14:55

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

Re: [SOLVED] Cursor jumping around while typing

It's most likely a prime-sync issue, you might try to replicate it on the nvidia GPU w/o xcompmgr

The journal you posted exclusively uses the IGP, the nvidia card isn't utilized at all.

[  6095.520] (**) |   |-->Device "integrated"
[  6095.520] (**) |   |-->GPUDevice "NVIDIA Corporation TU117M"

you'd remove all config files and it seems there's no kms driver loaded for the nvidia one (do you bbswitch it off or something like that)?
In any event ensure to enable modesetting for the nvidia GPU

https://wiki.archlinux.org/title/PRIME# … ronization

Offline

#11 2023-12-16 09:06:33

istipisti113
Member
Registered: 2023-05-22
Posts: 11

Re: [SOLVED] Cursor jumping around while typing

I reinstalled arch because it didn't boot, most likely messed something up. The way that the PRIME page of the wiki says does not work, "xrandr --setprovideroffloadsink 1 0" gives this error:
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  34 (RRSetProviderOffloadSink)
  Value in failed request:  0x1b7
  Serial number of failed request:  16
  Current serial number in output stream:  17

I installed optimus-manager and it works without the issue, but I cant get the internal display to run at 144 hz while the external monitor runs at 60.

Offline

#12 2023-12-16 09:10:59

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

Re: [SOLVED] Cursor jumping around while typing

Remove optimus-manager, report on the status quo of the original problem afterwards and post your xorg log.

Offline

#13 2023-12-16 10:08:53

istipisti113
Member
Registered: 2023-05-22
Posts: 11

Re: [SOLVED] Cursor jumping around while typing

https://0x0.st/HYmQ.txt this is the result after removing optimus-manager.

I have this in /etc/X11/xorg.conf:

Section "Monitor"
    Identifier "Monitor0"
    Option "PreferredMode" "1920x1080"
    Option "RefreshRate" "60"
EndSection

Section "Monitor"
    Identifier "Monitor1"
    Option "PreferredMode" "1920x1080"
    Option "RefreshRate" "144"
EndSection

Section "Screen"
    Identifier "Screen0"
    Monitor "Monitor0"
EndSection

Section "Screen"
    Identifier "Screen1"
    Monitor "Monitor1"
EndSection

and this in /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf:

Section "OutputClass"
    Identifier "intel"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

The only card thats working now is the nvidia one, there is ooutput on both monitors, but the internal one is locked on 60hz, it should be 144, but the original issue is solved I think, I don't notice it anymore.
Interestingly, the mouse is 144 hz, I think, but the scrolling in firefox and other apps is 60, if I unplug the external monitor the internal can refresh at 144

Last edited by istipisti113 (2023-12-16 13:18:43)

Offline

#14 2023-12-16 13:13:19

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

Re: [SOLVED] Cursor jumping around while typing

Please use [code][/code] tags. Edit your post in this regard.

[     5.554] (**) |-->Screen "Screen0" (0)
[     5.554] (**) |   |-->Monitor "Monitor0"

You're still defaulting to the nvidia GPU.

I have this in /etc/X11/xorg.conf

Why? Remove that.

and this in /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf:

and that as well.

Offline

#15 2023-12-16 13:21:07

istipisti113
Member
Registered: 2023-05-22
Posts: 11

Re: [SOLVED] Cursor jumping around while typing

If I remove those, how do I configure it, or does the driver do it for me?

Offline

#16 2023-12-16 13:32:53

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

Re: [SOLVED] Cursor jumping around while typing

the driver do it for me

Xorg has decent auto-detection and the only thing the config achieves is to run the server on the nvidia chip, what, along the only output on the intel chip, most likely gets you the "cursor jumping" and defeats the entire optimus idea. The IGP is gonna be fine for everyday jobs and you'll then explicitly "prime-run superturboturkeypuncher³" for maximum game FPS

Offline

#17 2023-12-16 15:01:44

istipisti113
Member
Registered: 2023-05-22
Posts: 11

Re: [SOLVED] Cursor jumping around while typing

Thank you very much! Deleting those files really did solve it.
Awesome now runs on the intel gpu on both monitors, and prime-run works well.
Thank you for your time, help and patience! How do I mark it as solved?

Offline

#18 2023-12-16 15:11:31

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

Re: [SOLVED] Cursor jumping around while typing

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