Blinkg mouse cursor, black mouse square trailer and monitor refresh around the mouse

Hi,

I have an asus rog g14 zephyrus. I got Fedora 35 installed on it.

I’m using the HDMI and USB C for dual monitor.

Looking at the screen is very painful because the area around the mouse is blinking or hiding the screen behind. I’ve noticed that the problem goes when I use nomodeset=0 at boot but in this case only the USB-C monitor is working, not the second monitor on HDMI.

Here is a smaple video Untitled

Any idea?

Hi, I check with your device spec, look like it have Nvidia driver. Did you already try to install Nvidia driver?

yes

$ grep “X Driver” /var/log/Xorg.0.log

[    12.335] (II) NVIDIA dlloader X Driver  495.46  Wed Oct 27 16:28:42 UTC 2021

$ sudo lspci -vvnn | grep VGA.

	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16+ MAbort- >Reset- FastB2B-
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16+ MAbort- >Reset- FastB2B-
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16+ MAbort- >Reset- FastB2B-
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16+ MAbort- >Reset- FastB2B-
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16+ MAbort- >Reset- FastB2B-
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU106M [GeForce RTX 2060 Max-Q] [10de:1f12] (rev a1) (prog-if 00 [VGA controller])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev c5) (prog-if 00 [VGA controller])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+

:thinking: I look again your video and look like the mouse pointer are too big. May be yo want to check How to zoom in, out with key+mouse in KDE? - #4 by bogdancovaciu - Kde Plasma - Manjaro Linux Forum. There a setting related to zooming near the mouse pointer.

I noted that you have the nvidia 2060 GPU and using dual monitors.
You did not say whether you are using wayland or xorg.
You also did not note whether you are using the nouveau driver or the proprietary nvidia driver.

I have noted that often there are issues in using dual external monitors when using the nouveau driver. There are also problems reported with the nvidia drivers when the user has not properly configured his machine to allow the nvidia GPU to control all the attached screens.

Since you did not already tell us the config, I will try to summarize what seems to work for most here.

  1. install the nvidia drivers from rpmfusion. The drivers can be installed by opening the gnome software panel then enabling the third party repo rpmfusion-nonfree-nvidia-driver followed by dnf install akmod-nvidia
  2. reboot
  3. copy the file /usr/share/X11/xorg.conf.d/nvidia.conf to /etc/X11/xorg.conf.d/nvidia.conf
  4. do a full update using dnf upgrade --refresh
  5. reboot again

After these steps have been completed the nvidia GPU should be able to properly manage both external monitors.
If the problem still continues it may be a wayland issue and if you are using wayland (it is the default on fedora 35) you may need to log out then when logging back in use the gear on the lower right corner of the password entry screen to select a login using xorg

Hopefully with these steps you will be able to solve the issue with the mouse pointer. Let us know what the results are please.

The mouse is big because with the blinking, I lost it too often. It is the same when the mouse is normal size

$ loginctl show-session 2 -p Type
Type=x11
$ dnf install akmod-nvidia
Package akmod-nvidia-3:495.46-1.fc35.x86_64 is already installed.

Are this happen only with multi monitor setup or also with single setup monitor using only main laptop display?

I read online about bugs for certain docking products.

If I use it with no external monitor, it is the same problem.

I do not connect it to a docking station, I cannot unfortunately with this model (or so say the expert that made the project for ASUS ROG).

I used this to install it

Maybe I forgot something? But I can’t see what.

Did you still have the Fedora KDE Spin live USB? Maybe you want to run the live version and compare it with your current version. From link you shared there an ability from asusctl that look like can switching the integrated GPU to Nvidia card.

This kind of thing as long as I know not always work flawlessly with certain devices, not only with Asus but with other manufacturer that have hybrid graphic card.

Control graphics modes without reboots for switching between iGPU, dGPU, on-demand, and vfio (for VM pass-through)

Ok, the nvidia driver is installed. Also you are using x11. Both are good, but did you copy the file I noted into /etc/X11/xorg.conf.d/ ??
That file makes it possible for the nvidia driver to control all the screens and without the config in that file, IME, the nvidia driver only controls the HDMI output.

When 2 different GPUs are actively controlling different screens there can be conflicts in trying to get them to cooperate.

In fact, on mine I decided I wanted the nvidia GPU to do everything so I also configured it as primary as described here in step #8.

Hi,

I finally got time to install Fedora to USB, the problem doesn’t appear. But running it from live USB, I cannot have a screen on USB-C port (It shows me a white screen, then half a screen then back to white).

Hi,

When I do ## Step #8: Edit the X11 configuration, I cannot boot the laptop, it get stuck on console mode.

When making config changes or installing software on the live install usb the changes exist only in RAM and disappear with a reboot.

If you installed it to a USB as an installed system then I don’t really understand the reason for the problems.

However, I believe that for nvidia to access the video through the usb-c port that you will need to do the following.

  1. if using xorg then copy /usr/share/X11/xorg.conf.d/nvidia.conf to /etc/X11/xorg.conf.d/nvidia.conf then reboot.

I am not sure how to do that if using wayland.

The step you just mentioned is Step 8 without adding the PrimaryGPU line right? I didn’t revert copying this file from my last test (except removing the PrimaryGPU line which prevent booting) it is there and shows the same problem.

from previous message, I got X11 not wayland, no?

I relaise that since doing the things on the link you provided I now have 2 NVDIA config

$ cat 90-nvidia-screen-G05.conf 
Section "ServerLayout"
  Identifier "layout"
  Option "AllowNVIDIAGPUScreens"
EndSection
$ cat nvidia.conf 
#This file is provided by xorg-x11-drv-nvidia
#Do not edit

Section "OutputClass"
	Identifier "nvidia"
	MatchDriver "nvidia-drm"
	Driver "nvidia"
	Option "AllowEmptyInitialConfiguration"
	Option "SLI" "Auto"
	Option "BaseMosaic" "on"
EndSection

Section "ServerLayout"
	Identifier "layout"
	Option "AllowNVIDIAGPUScreens"
EndSection

Also this the other GPU, the Radeon configuration

$ cat 10-radeon.conf 
Section "OutputClass"
	Identifier "Radeon"
	MatchDriver "radeon"
	Driver "radeon"

If you only have radeon then you do not need the nvidia.conf. Also if you only have nvidia you do not need radeon.conf. Only if you have both should you have both .conf files.

It also likely causes conflict if you have 2 different files for the nvidia so I would suggest merging both into a single file. I have no clue which one of those would take precedence. The one copied from /usr/share/X11/xorg.conf.d is the one provided by installing the drivers from rpmfusion so I suspect it is the best and should be the one kept. The content can go into either one though.

Hi,

As can be seen from an earlier post up on this thread my lspci, Asus ROG has both GPU.

I removed one of the nvidia then the other rebooted, still the same.

Hi,

From my tests, no linux live USB display from the box except Ubuntu 20.04.3. When I first got the machine I went with Fedora as it was more stable on ASUS ROG than Ubuntu overall.

I just ran Ubuntu live usb, the display on both external screen and laptop is perfect.

Is there any config files I can extract from Ubuntu live usb to configure my Fedora?