Zend certified PHP/Magento developer

Second monitor in Arch/BSPWM only refreshes when mouse cursor is actively moved over the screen

I recently connected a second monitor to my computer (Arch Linux) with the BSPWM and Xorg. However, I’m having trouble with the image on the second monitor not updating automatically. The image only refreshes when I actively move the mouse cursor over the screen, and clicking on the screen doesn’t refresh the image either.

My laptop is an HP model, and its primary monitor is the laptop’s internal display (eDP1). I have a secondary monitor, a BenQ Zowie XL2411K, which is connected to the laptop via HDMI (HDMI-1-0)

Graphic cards — Nvidia, Intel

00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
    DeviceName: Onboard - Video
    Subsystem: Hewlett-Packard Company Device 84f8
--
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
    DeviceName: NVIDIA GeForce GTX 1050
    Subsystem: Hewlett-Packard Company Device 84f8

Xrandr — connected monitors output

eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
HDMI-1-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 531mm x 299mm

Seems it’s the problem with the Nvidia/BSPWM/Xorg config which is not configured for using two monitors at the same time.

p.s. Clarifying the problem from my perspective — the issue I’m experiencing is that the image on my second monitor doesn’t update automatically unless I move the mouse cursor over it. Even when the mouse cursor is stationary on the screen, the image won’t update. As a workaround, I’ve found that I need to continue moving the mouse cursor over the second screen for the image to update properly.

I couldn’t find any related topics about the such problem and would appreciate your help!