Cursor laggy and top of the screen shows a line when its moved

I just installed a Endeavour OS on an ASUS TUF A16 laptop.

Since I opened the installer I noticed the cursor was laggy. And a glitch-like line also appeares at the top when I move it.

I finished the installation, using gnome and the issue persists.

It also happens either if I use the touchpad or a Mouse

I’ll try to attach a picture of the line that shows when I move the mouse.

Curious. Might you share the output of xrandr?

xrandr
Screen 0: minimum 16 x 16, current 1920 x 1200, maximum 32767 x 32767
eDP-1 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 340mm x 210mm
   1920x1200    164.87*+
   1600x1200    164.88  
   1440x1080    164.85  
   1400x1050    164.88  
   1280x1024    164.93  
   1280x960     164.80  
   1152x864     164.93  
   1024x768     164.99  
   800x600      164.72  
   640x480      164.26  
   320x240      163.69  
   1680x1050    164.82  
   1440x900     164.86  
   1280x800     164.81  
   1152x720     164.77  
   960x600      164.72  
   928x580      164.51  
   800x500      164.66  
   768x480      164.47  
   720x480      164.67  
   640x400      164.67  
   320x200      161.83  
   1920x1080    164.83  
   1600x900     164.77  
   1368x768     164.98  
   1280x720     164.71  
   1024x576     164.94  
   864x486      164.71  
   720x400      164.23  
   640x350      164.46  

EDIT: also, I’ve noticed that if I go to settings - displays and turn on (Adjust for TV) the cursor stops being laggy/jumpy. but the line at the top still appears.

ANd also, when I changed the refresh rate from 165,01Hz to 60,01Hz it was still presenting issues, but when I clicked (Revert settings), the issues (MOSTLY) stopped (no laggy cursor, no line at the top), however Everytime the screen goes to sleep the cursor starts lagging again.


ALSO I’ve started presenting this issue, that certain gnome windows have a black area around it. like this picture

Certainly graphical issues there.

Could you share your GPU details please:

inxi -Gxx

Could you also confirm whether this occurs in both X11 and Wayland.

Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 33 [Radeon RX 7600/7600
    XT/7600M XT/7600S/7700S / PRO W7600] vendor: ASUSTeK driver: amdgpu
    v: kernel arch: RDNA-3 pcie: speed: 16 GT/s lanes: 8 ports: active: eDP-1
    empty: DP-1,HDMI-A-1,Writeback-1 bus-ID: 03:00.0 chip-ID: 1002:7480
  Device-2: Advanced Micro Devices [AMD/ATI] Rembrandt [Radeon 680M]
    vendor: ASUSTeK driver: amdgpu v: kernel arch: RDNA-2 pcie: speed: 16 GT/s
    lanes: 16 ports: active: none empty: DP-2, DP-3, DP-4, DP-5, DP-6,
    Writeback-2, eDP-2 bus-ID: 77:00.0 chip-ID: 1002:1681 temp: 57.0 C
  Device-3: Sonix USB2.0 HD UVC WebCam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-3:2 chip-ID: 2b7e:b685
  Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.4
    compositor: gnome-shell v: 47.2 driver: X: loaded: amdgpu
    unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: BOE Display NE160WUM-NX2 res: 1920x1200 dpi: 141
    diag: 407mm (16")
  API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: radeonsi
    device: 2 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi
    wayland: drv: radeonsi x11: drv: radeonsi
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.3.3-arch1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 7600S (radeonsi
    navi33 LLVM 18.1.8 DRM 3.59 6.12.8-arch1-1) device-ID: 1002:7480
    display-ID: :0.0

And, yeah. It seems its the same when I login either using Gnome on Wayland or Gnome Xorg

Also. weirdly enough, I was using an HDMI cable to mirror the image on a TV, and while on the laptop Im using the mouse is still laggy, on the TV it moves smoothly, so the visual lag effect happens only on one screen

With the TV connected, can you run inxi -Gxx again, and see which device (Radeon RX 7600M or Radeon 680M) is driving each display?

At the moment, your Radeon RX 7600M is driving the laptop screen (eDP-1), and exhibiting the issues. If the TV is utilising the Radeon 680M, perhaps this is an RX 7600M specific issue?

Just some thoughts. I’m less experienced with the quirks of AMD GPU’s. My initial hunches were Intel / Nvidia related, but clearly not applicable here.

Hi, this seems to be the same problem and there’s a fix in the thread. Hope this helps:

https://www.reddit.com/r/gnome/comments/1fsf6wz/thick_black_borders_around_some_windows/

Sure
Here is the inxi -Gxx outpu while I haver the TV connected by HDMI mirrowing the laptop screen

Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 33 [Radeon RX 7600/7600
    XT/7600M XT/7600S/7700S / PRO W7600] vendor: ASUSTeK driver: amdgpu
    v: kernel arch: RDNA-3 pcie: speed: 16 GT/s lanes: 8 ports:
    active: HDMI-A-1,eDP-1 empty: DP-1,Writeback-1 bus-ID: 03:00.0
    chip-ID: 1002:7480
  Device-2: Advanced Micro Devices [AMD/ATI] Rembrandt [Radeon 680M]
    vendor: ASUSTeK driver: amdgpu v: kernel arch: RDNA-2 pcie: speed: 16 GT/s
    lanes: 16 ports: active: none empty: DP-2, DP-3, DP-4, DP-5, DP-6,
    Writeback-2, eDP-2 bus-ID: 77:00.0 chip-ID: 1002:1681 temp: 32.0 C
  Device-3: Sonix USB2.0 HD UVC WebCam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-3:2 chip-ID: 2b7e:b685
  Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.4
    compositor: gnome-shell v: 47.2 driver: X: loaded: amdgpu
    unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: 0
  Monitor-1: HDMI-A-1 model: MONITOR res: 1920x1080 dpi: 42
    diag: 1322mm (52")
  Monitor-2: eDP-1 model: BOE Display NE160WUM-NX2 res: 1920x1200 dpi: 141
    diag: 407mm (16")
  API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: radeonsi
    device: 2 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi
    wayland: drv: radeonsi x11: drv: radeonsi
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.3.3-arch1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 7600S (radeonsi
    navi33 LLVM 18.1.8 DRM 3.59 6.12.8-arch1-1) device-ID: 1002:7480
    display-ID: :0.0

Thanks I installed vulkan-radeom and unistalled amdvlk

However This seems to have only solved the black borders issue,but not the jumpy/laggy mouse issues on my laptop screen

Under Xorg, if you enable TearFree, does that help? This command will enable it only for the current Xorg session (good to test with).

xrandr --output eDP-1 --set TearFree on

Under Wayland, you might try enabling/disabling variable refresh rate in the display settings, and see if that has any impact.

WHen I ran xrandr --output eDP-1 --set TearFree on I got this output:

warning: output eDP-1 not found; ignoring
X Error of failed request:  BadRROutput (invalid Output parameter)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  15 (RRGetOutputProperty)
  Serial number of failed request:  57
  Current serial number in output stream:  57

Curious. Can you share the output of xrandr again please, under a Xorg session, to double check the monitor name.

xrandr

This is the input I got after I rand xrandx after login in selecting Gnome on Xorg

Screen 0: minimum 320 x 200, current 1920 x 1200, maximum 16384 x 16384
eDP connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 345mm x 215mm
   1920x1200    165.01*+  60.01 +
   1920x1080    165.01  
   1600x1200    165.01  
   1680x1050    165.01  
   1280x1024    165.01  
   1440x900     165.01  
   1280x800     165.01  
   1280x720     165.01  
   1024x768     165.01  
   800x600      165.01  
   640x480      165.01  
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
eDP-1-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-2 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-3 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-4 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-5 disconnected (normal left inverted right x axis y axis)

Cool, the command should be revised to this then:

xrandr --output eDP --set TearFree on

I Ran the command on the terminal, I got no output, and there doesn’t really see any changes to the situation, I also rebooted the laptop just in case, and its the same.

Also, as an update:

I don’t know at what point it really happened. But the image seemed to not match the screen.

On this image it should be visible that the right side of the screen has a black border, and that part of the screen at the bottom is not fully visible.

I seems I got it fine after enabling and disabling “Adjust for TV” on the display setting a number of times

Rebooting would reset “TearFree on”, as that command only applies to the current session, but so long as you saw the issue persist, that was enough for testing purposes to confirm that didn’t help.

Does running at 60Hz have the same issue?

Im really not quite able to replicate it at the same level now, But I see that if I Turn on adjust for TV The image doesnt fit the screen fine

On this case, it can be seen that there is a black border around, And yeah, it’s the same both at 161,01 Hz and 60,01Hz

But I’ve noticed that disabling Adjust for TV makes the image fit the screen fine. (But again, the lag is more prominent)

Just a note, this setting is intended for use with TV’s that don’t have the “just scan” option (or similar) when connecting a PC. It stops them from clipping off the edges of the displayed image.

It might appear to be improving something here, but it’s not really addressing the issue.

When I look online, the models I see have different resolution to what xrandr output for you here. Let’s back it up a bit, and see if we can confirm what your exact laptop resolution should be.

inxi -SMxx --za