#External (HDMI) monitor causes mouse stutter and screen freeze for a split second.

133 messages · Page 1 of 1 (latest)

vivid dagger
#

NOTE: This happens to BOTH monitors when the external monitor is plugged in. The external monitor is ran by NVIDIA while the laptop screen by AMD. It is NOT a compositor issue like picom. I'm on i3.

#
[     9.184] Current Operating System: Linux totalrelinquishing 6.19.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 26 Mar 2026 19:20:28 +0000 x86_64
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     9.194] (WW) The directory "/usr/share/fonts/misc" does not exist.
[     9.195] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[     9.195] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     9.224] (WW) Warning, couldn't open module ati
[     9.224] (EE) Failed to load module "ati" (module does not exist, 0)
[     9.227] (WW) Warning, couldn't open module fbdev
[     9.227] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    10.304] (II) modeset(0): [DRI2] Setup complete
[    10.304] (II) modeset(0): [DRI2]   DRI driver: radeonsi
[    10.304] (II) modeset(0): [DRI2]   VDPAU driver: radeonsi
[    10.305] (II) Initializing extension MIT-SCREEN-SAVER
[    10.305] (II) Initializing extension DRI3
[    10.311] (II) GLX: Initialized DRI2 GL provider for screen 0
[    10.312] (II) Initializing extension XFree86-DRI
[    10.312] (II) Initializing extension DRI2
[    10.789] (II) modeset(G0): using drv /dev/dri/card0
[    10.790] (II) modeset(G0): Creating default Display subsection in Screen section
[    10.790] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
[    10.790] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[    10.790] (==) modeset(G0): RGB weight 888
[    10.790] (==) modeset(G0): Default visual is TrueColor
[    10.853] (II) modeset(G0): glamor: Using OpenGL 3.1 context.
[    10.853] (II) modeset(G0): glamor X acceleration enabled on NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2
[    10.853] (II) modeset(G0): glamor initialized
[    10.854] (II) modeset(G0): Output DP-1-9 has no monitor section
[    10.945] (II) modeset(G0): Output HDMI-1-1 has no monitor section
[    11.037] (--) modeset(G0): HDMI max TMDS frequency 335000KHz
[    11.037] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
[    11.037] (**) modeset(G0): Display dimensions: (340, 190) mm
[    11.037] (**) modeset(G0): DPI set to (76, 102)
[    11.101] (==) modeset(G0): Backing store enabled
[    11.101] (==) modeset(G0): Silken mouse enabled
[    11.101] (II) modeset(G0): Initializing kms color map for depth 24, 8 bpc.
[    11.101] (==) modeset(G0): DPMS enabled
[    11.101] (WW) modeset(G0): Option "AllowEmptyInitialConfiguration" is not used
[    11.101] (II) modeset(G0): [DRI2] Setup complete
[    11.101] (II) modeset(G0): [DRI2]   DRI driver: nouveau
[    11.101] (II) modeset(G0): [DRI2]   VDPAU driver: nouveau
[    11.143] (EE) modeset(G0): Failed to create pixmap
[anatta@totalrelinquishing ~]$ ```
#
Providers: number : 2
Provider 0: id: 0x4b cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 9 associated providers: 1 name:modesetting
Provider 1: id: 0x27d cap: 0x2, Sink Output crtcs: 4 outputs: 3 associated providers: 1 name:NVIDIA-G0
[anatta@totalrelinquishing ~]$ ```
#
Graphics:
  Device-1: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: ASUSTeK
    driver: nvidia v: 595.58.03 arch: Ampere pcie: speed: 5 GT/s lanes: 8 ports:
    active: none off: HDMI-A-1 empty: DP-9 bus-ID: 01:00.0 chip-ID: 10de:25a2
  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: eDP-1 empty: DP-1, DP-2, DP-3, DP-4, DP-5, DP-6,
    DP-7, DP-8, Writeback-1 bus-ID: 05:00.0 chip-ID: 1002:1681 temp: 65.0 C
  Device-3: Shine-optics USB2.0 HD UVC WebCam driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-4:2 chip-ID: 3277:0029
  Display: x11 server: X.Org v: 21.1.21 with: Xwayland v: 24.1.9
    compositor: Picom v: 13 driver: X: loaded: modesetting,nvidia unloaded: vesa
    alternate: fbdev,nouveau,nv dri: radeonsi
    gpu: amdgpu,nv_platform,nvidia,nvidia-nvswitch display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96
  Monitor-1: HDMI-A-1 mapped: HDMI-1-0 note: disabled pos: right
    model: Acer EK240Y P6 res: N/A dpi: 92 diag: 604mm (23.8")
  Monitor-2: eDP-1 pos: primary,left model: ChiMei InnoLux 0x1521
    res: 1920x1080 hz: 144 dpi: 142 diag: 394mm (15.5")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: radeonsi
    device: 3 drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia x11:
    drv: radeonsi inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: amd mesa v: 26.0.4-arch1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon 660M (radeonsi rembrandt
    ACO DRM 3.64 6.19.11-arch1-1) device-ID: 1002:1681
  API: Vulkan v: 1.4.341 surfaces: N/A device: 0 type: integrated-gpu
    driver: mesa radv device-ID: 1002:1681 device: 1 type: discrete-gpu
    driver: nvidia device-ID: 10de:25a2
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr
[anatta@totalrelinquishing ~]$ ```
#

This is how the mouse stutters. When I'm moving it around. it just stops, and sometimes if some animating task is being done on the screen, it freezes too, for a split second, and then it resolves. This sometimes happens multiple times in a few seconds or multiple times in a few minutes.

#

Or it happens when I'm moving from one monitor to the other one.

next venture
#

Hello

#

@vivid dagger your dgpu is bound to modesetting

#

not Nvidia Xorg

#

"(EE) modeset(G0): Failed to create pixmap "

#

create the config, /etc/modprobe.d/blacklist-nouveau.conf

#

and add
blacklist nouveau
options nouveau modeset=0

#

Then sudo mkinitcpio -P

#

and reboot

#

create /etc/modprobe.d/nvidia.conf or edit if its already there

#

and add: options nvidia-drm modeset=1

#

also download sudo pacman -S nvidia nvidia-utils nvidia-prime

#

create a xorg outputclass file

#

/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf

#

and inside it add:

#

Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
EndSection

#

then reboot

#

after this you can

#

grep -i nvidia /var/log/Xorg.0.log

#

to verify

#

the output must be Using driver 'nvidia' for NVIDIA-G0

#

not using driver modesetting

vivid dagger
vivid dagger
#

What part exactly. And how does this relate to the problem. I'm sorry but as a beginner. I have a really hard time connecting the dots. @next venture

next venture
#

alright

#

so bassically your nvidia gpu, which is your Dedicated gpu, the one supposed to be connected to your monitor is being started by modesetting

#

when it is supposed to be started by the NVIDIA Drivers

#

which causes mouse stuttering, e-monitor issues, nouveau drivers being used

#

the Arch wiki has stated: NVIDIA → “DRM kernel mode setting”

next venture
#

which explains why options nvidia-drm modeset=1 is needed

vivid dagger
#

I thought all this time the problem was unfixable until I connect HDMI to USB

next venture
#

no mode setting is not the kernel

#

it is the Xorg video drivers

#

that use the KMS interface (a.k.a kernel mode settiing interface) which just handles the display res and refresh rate

vivid dagger
#

right.

next venture
#

modesetting driver is a Xorg Drivers that talks to this KMS interface when the NVIDIIA drivers are not being used

#

Nvidia has its own xorg driver that replaces the modesetting

#

for your nvidia gpu

vivid dagger
#

will things change that if the hardware of my asus tuf is so that hdmi is directly connected to nvidia

next venture
#

Yes

#

your laptop is a hybrid gpu

#

which has an igpu and dgpu

#

so the internal screen is connected to your igpu whilst the external screen is connected to your dedicated gpu

vivid dagger
#

let me try that in a second

next venture
#

if you want to use your powerfull nvidia gpu for display output

vivid dagger
#

and get back to you

next venture
#

you MUST use the HDMI port

vivid dagger
#

and you please hold for a second

next venture
#

alright

vivid dagger
#

$ grep -i nvidia /var/log/Xorg.0.log
grep: /var/log/Xorg.0.log: binary file matches

#

@next venture

next venture
#

try

#

grep -a -i nvidia /var/log/Xorg.0.log

#

instead

vivid dagger
#
[    10.492] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event18)
[    10.493] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event19)
[    10.493] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event20)
[    10.494] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=9 (/dev/input/event21)
[    10.790] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[    10.853] (II) modeset(G0): glamor X acceleration enabled on NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2```
#

@next venture do i need to reboot to apply the changes

next venture
#

mm the nvidia drivers arent loaded

#

yes reboot

vivid dagger
#

okay

#

i think that worked?

#
[    10.492] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event18)
[    10.493] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event19)
[    10.493] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event20)
[    10.494] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=9 (/dev/input/event21)
[    10.790] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[    10.853] (II) modeset(G0): glamor X acceleration enabled on NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2
[anatta@totalrelinquishing ~]$ ```
#

because the only monitor working now is the external one

#

internal isnt working

#

its completely switched off

vivid dagger
next venture
#

that means xorg is now using the nvidia driver

vivid dagger
next venture
#

the log shows modeset(G0): glamor X acceleration enabled on NVIDIA

next venture
#

as the screen didnt disconnect

vivid dagger
next venture
#

xorg just didnt initialize your igpu

vivid dagger
#

if i want no stuttering?

next venture
#

no its not gonna stay that way

#

just a misconfig

#

edit /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf

#

and remove Option "PrimaryGPU" "yes"

#

and reboot

vivid dagger
#

but before that

#

[ 10.853] (II) modeset(G0): glamor X acceleration enabled on NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2

#

if this line caused the thing

#

@next venture

next venture
#

mhm

vivid dagger
#

its still present in the logs AFTER reboot

#

then how did you know

#

that it worked

next venture
#

srry i didnt put much context to the statement

#

i was wrong on the fact of nvidia drivers working

#

as i hadnt examined your second log i was talking about the fact of only your external monitor working

#

however as your second log shows

#

its still using modesetting fallback

#

so thanks for pnting it out

#

so driver didnt load but monitor did get detected

#

Find the line: Option "PrimaryGPU" "yes"

Delete it and save, afterwards you can go to:
/etc/modprobe.d/blacklist-nouveau.conf
and add
blacklist nouveau
options nouveau modeset=0
which stops the nouveau drivers from loading
make sure to save the files.
go to /etc/modprobe.d/nvidia.conf
add options nvidia-drm modeset=1
save the file
in terminal you need to run sudo mkinitcpio -P
completely reboot system
do grep -aEi "Using driver" /var/log/Xorg.0.log
and share your logs

vivid dagger
#

let me do that real quick

#

just liek that?

#

shouldn't we be doing optiosn nvidia-drm modeset=0?

next venture
#

modeset=0 is only for nouveau to disable it.

#

/etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
options nouveau modeset=0

#

/etc/modprobe.d/nvidia.conf
options nvidia-drm modeset=1

#

@vivid dagger i have to go for now.... someone will be here shortly if the forum gains attention, you may have to wait

vivid dagger
cobalt lichenBOT
#

gehrman1ht received a thank you cookie!

vivid dagger
#

hy @next venture

#

so $ grep -aEi "Using driver" /var/log/Xorg.0.log
[anatta@totalrelinquishing ~]$

#

no logs when i do this grep command

#
[    10.492] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event18)
[    10.493] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event19)
[    10.493] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event20)
[    10.494] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=9 (/dev/input/event21)
[    10.790] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[    10.853] (II) modeset(G0): glamor X acceleration enabled on NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2
[anatta@totalrelinquishing ~]$ ```
#

but this shows

woven dune
#

is everything alright

#

?

#

now

vivid dagger
#

i think I'll need to get a usb if my laptop supports thunderbolt

#

but other than that