Bug 31624 - Beta1 LiveDVD Mageia9 Plasma unable to use 2 screens with the nvidia free driver (nouveau?)
Summary: Beta1 LiveDVD Mageia9 Plasma unable to use 2 screens with the nvidia free dri...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: Release (media or process) (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: IN_ERRATA8, IN_ERRATA9
Depends on:
Blocks:
 
Reported: 2023-03-03 16:38 CET by Philippe Didier
Modified: 2023-11-15 21:29 CET (History)
6 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
result of inxi with nvidia nonfree driver (709 bytes, text/plain)
2023-03-04 09:43 CET, Philippe Didier
Details
result of inxi with nvidia free driver (nouveau) (907 bytes, text/plain)
2023-03-04 09:44 CET, Philippe Didier
Details

Description Philippe Didier 2023-03-03 16:38:27 CET
Description of problem:

I tested the Beta1 Plasma Live DVD 

hardware : processor intel 15-9400F
           NVidia GeForce GT 1030
           1st display iiyama PL2474H
           2nd display Sony TV connected by HDMI


A) without the nonfree driver
1) In the beginning the displays are cloned
2) But when I get into the GUI interface to select language, accept licence, choose country time etc.. these windows are spreaded on the two displays (cut in their middle) and I have to go from a display to the other to make a choice and validate it
3) After that Plasma is launched and the external TV gets black
4) The TV doesn't exist in the plasma system settings when I try to clone it from the main display

B) with the non-free driver
Everything is OK
1) the displays are cloned even for choosing language etc...
2) The plasma system setting allows to clone the TV from the main monitor
Comment 1 Lewis Smith 2023-03-03 20:11:00 CET
Thank you for the report, which basically says that with the proprietary nVidia driver all works OK, but not with 'nouveau'.
Please post the output of:
 $ inxi -Gxx
to detail the graphics setup; for both the Nouveau & Nvidia drivers if possible.

CC: (none) => lewyssmith

Comment 2 Philippe Didier 2023-03-04 09:43:24 CET
Created attachment 13729 [details]
result of inxi with nvidia nonfree driver

result of inxi with nvidia nonfree driver
Comment 3 Philippe Didier 2023-03-04 09:44:09 CET
Created attachment 13730 [details]
result of inxi with nvidia free driver (nouveau)

result of inxi with nvidia free driver (nouveau)
Comment 4 Philippe Didier 2023-03-04 10:00:04 CET
Surprising !!!

After having launched the Live DVD with nouveau I got the same problem than described in comment 0

then I used inxi in a console
the screen becomes black for one second
And a window appears above the window of the console

This window proposes a choice of display :
1st monitor (with no 2nd monitor)
or 2nd monitor (with no first monitor)
or 2 cloned monitors
or screen spreaded on the 2 monitors side by side

I choose cloned monitors and then it's OK : the two monitors exist in the Plasma system setting and I can modify the display


I remember that for Mageia8 the window proposing a choice of display appeared at the end of the launching of a LiveDVD...

this step seems to be missing for Mageia9 :
 => no problem for the non free driver since the 2 monitors exist for the Plasma system setting ...) 
=> but this is wrong for nouveau since it's not possible to use a the second monitor
Comment 5 Martin Whitaker 2023-03-04 12:58:23 CET
When booting using the free (nouveau) driver, try editing the boot command line in the GRUB menu and removing the word "noxconf".

CC: (none) => mageia

Comment 6 Philippe Didier 2023-03-05 00:23:04 CET
Hi Martin

I have edited the command line in the GRUB menu and removed "noxconf"

1)
That solved the first part of the problem : 
Now the 2 monitors are cloned in the beginning and the four windows and the mouse cursor appear twice (once on each monitor) 
no problem to choose language, to accept licence, to choose country, local time and keyboard 

BUT
2)
Only the first monitor displays something, the TV is black
the display is clean and readable
I have to launch again inxi -Gxx since in the Plasma setting only one monitor exists


After that I don't get the window proposing the choice of display like in comment 4

Nevertheless, in the Plasma setting the two monitors then exist and I can choose to clone the second one (TV) on the first


But after having used inxi -Gxx the polices in Plasma are fuzzy, whatever police I choose, and even if I increase their size (that was not the case with the method used in comment 4)

It's quite unreadable (fortunately I know Mageia enough to guess what is written)
the problem is the same on the two monitors...

Is it now a Plasma problem ? or still a nouveau problem ?

NB those fuzzy polices didn't appear before I use inxi -Gxx which induces this time  something different than in comment 4


NB with NVidia non-free driver everything works well out of the box : 
- no need to remove noxconf in GRUB (I don't know if this word is present in GRUB for the non-free driver)
- no need to use inxi -Gxx to have the two monitors present in Plasma setting


Anything else to try for nouveau ?
Comment 7 Martin Whitaker 2023-03-05 10:45:50 CET
Hi Philippe

Could you try both removing "noxconf" and changing "xdriver=free" to "xdriver=modesetting" on the boot command line. Check with "inxi -G" - that should still show "nouveau" as the active kernel driver but should show "modesetting" as the active X11 driver.

Could you also test the Xfce Live ISO, to see if it behaves the same.
Comment 8 Lewis Smith 2023-03-05 21:19:28 CET
Thank you both for attacking this.
I do not think it is right that using 'inxi' changes the video behaviour; it is only a reporting tool.
Comment 9 Philippe Didier 2023-03-05 21:51:23 CET
Hi Martin 
Hi Lewis

Sorry for lasting to answer (not home today)

to Lewis It's strange but indeed using inxi created a strange video behaviour each time I used it with nouveau :
It allowed to find the second monitor inside Plasma settings (which did not exist before !) but created garbage display after !!!
same for XFCE


to Martin 
I tested Xfce Live out of box :

1st surprise the two monitors are cloned in the beginning and the windows to choose language, accept licence, choose country, choose local time, and choose keyboard are not spreaded on a wide screen using the two monitors side by side (that's different from Plasma Live for which I had to navigate with the cursor from half a window on left monitor and the second half window on the right monitor )

But when XFCE is launched, I get a wide screen spreaded on the two monitors and no way to clone the TV on the primary monitor with the XFCE parameters

I modified GRUB removing noxconf => nothing better


But you found the trick in comment 7 :-) congratulations

If I modify GRUB for Plasma Live and for XFCE Live :
remove noxconf
modify xdriver= from free to modesetting

Everything works perfectly on Plasma and XFCE :
I can clone my monitors and don't have fuzzy police

For XFCE and Plasma inxi -G gives :
nouveau as kernel driver 
and modesetting and v4l as active
Comment 10 Philippe Didier 2023-03-05 21:59:47 CET
NB modifying GRUB is necessary for nouveau 
but for NVidia non-free driver there's nothing to modify it works perfectly out of the box

When the solution has been found (congratulations again to Martin) and when GRUB will have been modified this bug should be closed as resolved


Unfortunately I won't test a real installation of Beta ISO on my computer and see if the problem with nouveau exists too 
Let someone else test a real install on a bare computer 


Thanks again for you wonderful work : except the nouveau driver problem everything else is quite perfect : for a Beta it's unexpected
Comment 11 Lewis Smith 2023-03-06 09:26:07 CET
Aw
Comment 12 Lewis Smith 2023-03-06 09:30:17 CET
Await Martin's response. Is this for assigning to Mageiatools, - is there anything we can do? - or better left as is with an ERRATA note? Noting that in case.

Keywords: (none) => FOR_ERRATA9

Comment 13 Martin Whitaker 2023-03-06 10:09:30 CET
Unfortunately there isn't one single configuration that works for every hardware setup. The current boot command line options were chosen as the best compromise. There were some notes in the Mageia 7 Errata about changing the defaults for the X drivers, but it seems they got removed from the Mageia 8 Errata. I also notice that some other Live-specific details got moved inappropriately.

According to https://bugs.freedesktop.org/show_bug.cgi?id=94844#c3, the modesetting DDX driver is preferred over the nouveau DDX driver for G80 and later Nvidia GPUs. CC'ing tmb for his opinion on whether we should change ldetect-lst accordingly.

CC: (none) => tmb

Comment 14 Lewis Smith 2023-03-06 10:30:08 CET
(In reply to Martin Whitaker from comment #13)
> There were some notes in the Mageia 7 Errata about changing
> the defaults for the X drivers, but it seems they got removed from the
> Mageia 8 Errata. I also notice that some other Live-specific details got
> moved inappropriately.
Just about ERRATA for M9:
Your comment suggests that M8 Errata lacked carried-forward items from M7 which were still valid. And still are for M9 ? Unsure what you mean by "moved inappropriately": removed? Tell me privately.
Comment 15 Philippe Didier 2023-03-06 11:10:46 CET
(In reply to Lewis Smith from comment #14)
> (In reply to Martin Whitaker from comment #13)
> > There were some notes in the Mageia 7 Errata about changing
> > the defaults for the X drivers, but it seems they got removed from the
> > Mageia 8 Errata. I also notice that some other Live-specific details got
> > moved inappropriately.
> Just about ERRATA for M9:
> Your comment suggests that M8 Errata lacked carried-forward items from M7
> which were still valid. And still are for M9 ? Unsure what you mean by
> "moved inappropriately": removed? Tell me privately.

here is the errata from Mageia7 that disappeared for Mageia8

<< Live Images :

Non-working graphics

Some graphics hardware does not work correctly when using the xorg.conf file that gets created by harddrake when booting the Live system. If you have no graphical display at the end of the boot cycle, try adding noxorgconf to the boot options in the initial boot menu (press e to edit the boot options).

Some NVIDIA graphics cards don't work at all with the free video driver (nouveau). In this case, try replacing xdriver=free with xdriver=modesetting in the boot options in the initial boot menu, or alternatively, try using the non-free (proprietary) drivers by selection directly in the boot menu. >>

The solution for the problem with nouveau was here !!!
Morgan Leijström 2023-03-06 16:10:38 CET

CC: (none) => fri
Keywords: (none) => FOR_ERRATA8

Comment 16 Philippe Didier 2023-03-07 09:05:03 CET
I tested again with my old Mageia8 Live ISO (final release)
(I never have done this : always testing NVidia non-free drivers)

The problem is exactly the same with nouveau for Mageia8 and Mageia9
as described in comment 1

in plasma settings monitor 2 doesn't exist

launching inxi -Gxx In a console monitor 2 appears in the result

After that I tried again plasma settings and the second monitor exists if I try to clone from monitor 1 I get garbage in monitor 2

Editing GRUB the same way as for Mageia9 solves the problem for Mageia8 

This errata from Mageia7 shouldn't have disappear for Mageia8 and is needed for Mageia9

unless there is a way to have GRUB conditionally adapted after the detection of the graphic card (does the launcher of the Live ISO use ldetect  or hardrake to adapt GRUB ?)
Comment 17 Morgan Leijström 2023-03-07 16:54:17 CET
Thank you Philippe.

I updated Errata 8 & 9.

I also copied two other sections regarding Live from 7, which AFAIK are still valid.

(For the errata part on Gnome I dont know, do anyone reading this have?)

Keywords: FOR_ERRATA8, FOR_ERRATA9 => IN_ERRATA8, IN_ERRATA9

Comment 18 Morgan Leijström 2023-03-07 18:12:41 CET
(In reply to Morgan Leijström from comment #17)
> (For the errata part on Gnome I dont know, do anyone reading this have?)

Ah. It was in the wrong place in mga7 errata, it is in correct place in mga8 & 9 errata (not specific to Live)
Comment 19 Martin Whitaker 2023-03-07 21:55:52 CET
(In reply to Morgan Leijström from comment #18)
> (In reply to Morgan Leijström from comment #17)
> > (For the errata part on Gnome I dont know, do anyone reading this have?)
> 
> Ah. It was in the wrong place in mga7 errata, it is in correct place in mga8
> & 9 errata (not specific to Live)

No, the "nowayland" option is specific to Live. I've added that back, also adjusted the instructions for non-working graphics, for which there was a change between 7 and 8.
Comment 20 Morgan Leijström 2023-03-07 22:07:16 CET
Thank you Martin

Shouldn't we move the Gnome section about "nowayland"
https://wiki.mageia.org/en/Mageia_9_Errata#GNOME
to up under the Live header then?
Comment 21 Martin Whitaker 2023-03-07 23:41:31 CET
(In reply to Morgan Leijström from comment #20)
> Shouldn't we move the Gnome section about "nowayland"
> https://wiki.mageia.org/en/Mageia_9_Errata#GNOME
> to up under the Live header then?

I did, but sturmvogel has undone my changes.
Comment 22 Morgan Leijström 2023-03-08 06:19:02 CET
OK we need to communicate.  (sorry about keeping hijacking this bug)

So the "nowayland" option is specific to Live.  This is a medicine.

But the described problem with Gnome and Wayland, does it not also appear in a system installed by classic installer?

CC: (none) => sturm-fr

Comment 23 Martin Whitaker 2023-03-09 19:22:48 CET
(In reply to Morgan Leijström from comment #22)
> But the described problem with Gnome and Wayland, does it not also appear in
> a system installed by classic installer?

If it does occur the user can edit /etc/X11/gdm/custom.conf and set WaylandEnable=false. The "nowayland" option on the Live ISOs just does that for you, because it's a pain to have to do it manually every time you boot the Live ISO. This may not be needed any more - Wayland is more mature now - but I felt I might as well keep the option (and document it) just in case.
Comment 24 Morgan Leijström 2023-03-09 21:27:52 CET
Good.

I added that info, while yet cut down text length, all in one place:
https://wiki.mageia.org/en/Mageia_9_Errata#GNOME_and_Wayland

(to be backported to mga8 errata if OK)
Comment 25 Lewis Smith 2023-11-14 15:07:29 CET
As it is documented (thanks always to Morgan), can we close this?
It is (comment 13) not something we can fix universally.
Comment 26 katnatek 2023-11-14 19:40:19 CET
(In reply to Lewis Smith from comment #25)
> As it is documented (thanks always to Morgan), can we close this?
> It is (comment 13) not something we can fix universally.

This kind of bugs remain open to check if it is still valid when new version is available, I see that at less with my weird bugs
Comment 27 Lewis Smith 2023-11-15 21:29:39 CET
OK, but it would be nice to have a special assignee for bugs like this with no feasible fix, which are basically ERRATA with work-around advice.
Leaving with bugsquad for now.

Note You need to log in before you can comment on or make changes to this bug.