Ubuntu 24.04.1 session Wayland. Unknown second screen

I have one 34-inch monitor connected. Ubuntu is installed as a second OS and a separate SSD.
Video card Nvidia. Drivers latest 550 proprietary tested
Ubuntu 24.04.1 switched to session Wayland.
The system has detected two monitors. The settings show an unknown 39-inch screen. How can I fix this? Where did the second monitor come from?
Everything works fine in the Ubuntu session (X.Org.)


2
3

Have tried Enabling the DRM kernel mode setting in grub and adding this:

nvidia-drm.modeset=1

FTR it runs as:

sudoedit /etc/default/grub

And should look like this:

GRUB_CMDLINE_LINUX="lsm=landlock,lockdown,yama,integrity,apparmor,bpf nvidia-drm.modeset=1"

DO NOT ADD THIS " ```
lsm=landlock,lockdown,yama,integrity,apparmor,bpf

Save and close.

Tell grub about the change

sudo update-grub


And Reboot to see the change

Thank you for your attention to my question. But I am not very good at this. It is difficult for me to understand what to do?

Are you familiar with “nano”?

No, I don’t know that.

  1. run in your terminal
sudo -H gedit /etc/default/grub
  1. Then add this to
GRUB_CMDLINE_LINUX=

It needs to look just like this:

GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"

Save the file and close it.

now update grub like:

sudo update-grub

Reboot to see the change.

It didn’t help. Still shows two monitors.
There is a warning in the terminal:
:~$ sudo -H gedit /etc/default/gru
(gedit:4905): dconf-WARNING **: 04:49:05.615: failed to commit changes to dconf: failed to execute child process ‘dbus-launch’ (No such file or directory)

See the difference “gru” is supposed be “grub”

I strongly suggest you become familiar with “sudoedit” and your terminal.

I made a typo here. Everything is correct in the terminal. It opens the file and gives this message
The file contained GRUB_CMDLINE_LINUX=“”
corrected to
GRUB_CMDLINE_LINUX=“nvidia-drm.modeset=1”

Please show this:

less /etc/default/grub | grep GRUB_CMDLINE_LINUX=

My apologies I understood wrong.

So you only have one monitor then correct?

if that is the case certain motherboards that have an HDMI and a Display Port will show two monitors.

I’ll need to see this then:

xrandr --listactivemonitors

Yes, there is one monitor, in the Ubuntu session settings it is also one. But when I go under Wayland - it shows two monitors enabled.

Very Strange indeed, just one more please:

ls  /sys/class/drm 

Ok then lets change grub again and remove “nvidia-drm.modeset=1” and replace it with:

video=HDMI-A-1 d

Update Grub again and reboot. Hopefully that will drop the bogus card.

If I understand correctly, I need to write it in the file like this:
GRUB_CMDLINE_LINUX=“video=DVI-D-1 d”

No I edited it to

"video=HDMI-A-1 d"

Sorry I have a houseful of Kids a Big Distraction.

Thank you for your help.
But I don’t understand what I should do with the line “video=HDMI-A-1 d”
I need to write it in the file like this:
GRUB_CMDLINE_LINUX=“video=HDMI-A-1 d”
I tried it. Alas. It didn’t help.

I see another type O
Mine reads like:

less /etc/default/grub | grep GRUB_CMDLINE_LINUX=
GRUB_CMDLINE_LINUX="video=-HDMI-A-1:d nvidia-drm.modeset=1"
Yours and this is once again my fault. 

video=HDMI-A-1 d

And should be:

video=HDMI-A-1:d

Before my change:
https://ibb.co/L9jD78v

After my Change:
https://ibb.co/6Nv8B4r

Sorry about the links but I can't upload via Forum tool. :(