Bug 25181 - Live isos fails for Nvidia choice on some hybrid graphics laptops
Summary: Live isos fails for Nvidia choice on some hybrid graphics laptops
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Release (media or process) (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High normal
Target Milestone: ---
Assignee: ISO building group
QA Contact:
URL:
Whiteboard:
Keywords: IN_ERRATA7
Depends on:
Blocks:
 
Reported: 2019-07-26 00:23 CEST by Morgan Leijström
Modified: 2020-10-05 22:12 CEST (History)
3 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
Compressed journal Live 7.1 Plasma selecting free (23.86 KB, application/x-xz)
2019-07-26 00:23 CEST, Morgan Leijström
Details
Compressed journal Live 7.1 Plasma selecting Nvidia (31.48 KB, application/x-xz)
2019-07-26 00:31 CEST, Morgan Leijström
Details
Compressed journal Live 7.1 xfce selecting Nvidia (31.83 KB, application/x-xz)
2019-07-26 00:31 CEST, Morgan Leijström
Details
Compressed journal Live 7.1 xfce selecting free: desktop but no good (28.24 KB, application/x-xz)
2019-07-26 00:34 CEST, Morgan Leijström
Details
Output from lspci -v (11.96 KB, text/plain)
2019-07-26 00:35 CEST, Morgan Leijström
Details
Journal from booting of Live Plasma with added "noxorgconf". (31.39 KB, application/x-xz)
2019-07-27 03:40 CEST, Morgan Leijström
Details
Full journal from boot having selected Nvidia (23.02 KB, application/x-xz)
2020-10-05 01:38 CEST, Morgan Leijström
Details

Description Morgan Leijström 2019-07-26 00:23:58 CEST
Created attachment 11213 [details]
Compressed journal Live 7.1 Plasma selecting free

Description of problem:
At least on our Acer Aspire A7, live 7.1 isos fail showing desktop.
Using the boot menu i can select free (noveau) or nvidia driver.
But the only working solution is to force using Intel GPU.

Machine, from journal:
DMI: Acer Aspire A717-71G/Charizard_KLS, BIOS V1.13 12/26/2017

(side note: I gave up configuring hybrid graphics when I installed mga6 on this machine and Intel is fast enough for our use. And i have no intent for some time to update it to mga7)


Workaround:
Edit the boot command line and change xdriver=free to xdriver=intel. 

- It would be great if there were a ready made selectable mode for Intel.


Solution?
Best of course would be if hybrid graphics would work perfectly.
- But I doubt it ever will...
So i suggest that the Live system should prefer Intel GPU over nvidia CPU on hybrid hardware in the default selection menu, but also have entries for forcing Nvidia, mouveau, Intel.


Version:
7.1 64 bit live isos Plasma and xfce tried, I suppose Gnome performs similarly.

How reproducible:
Steps to Reproduce:
1. Boot a live system (I used USB sticks)
2. Select free or nonfree driver
3. a) for Plasma, either choice of graphics: screen turn full black after showing bubbling cauldron a few seconds. Klicking power button two seconds makes it do a controlled shut down.
   b) for xfce: as above with nvidia driver, with the free driver the desktop and windows actually works except windows "decorations" (close buttons etc...)  is not present. 

I dumped the logs by booting the stick on another laptop.
Persistence is great !! :)
Comment 1 Morgan Leijström 2019-07-26 00:27:04 CEST
This may be a turn off for users trying Mageia = High Prio.

This is for release media, and common is to set Cauldron on such, but it would be great if it went into 7.2 if we make such.

Version: 6 => Cauldron
Priority: Normal => High

Comment 2 Morgan Leijström 2019-07-26 00:31:11 CEST
Created attachment 11214 [details]
Compressed journal Live 7.1 Plasma selecting Nvidia
Comment 3 Morgan Leijström 2019-07-26 00:31:55 CEST
Created attachment 11215 [details]
Compressed journal Live 7.1 xfce selecting Nvidia
Comment 4 Morgan Leijström 2019-07-26 00:34:21 CEST
Created attachment 11216 [details]
Compressed journal Live 7.1 xfce selecting free: desktop but no good
Comment 5 Morgan Leijström 2019-07-26 00:35:15 CEST
Created attachment 11217 [details]
Output from lspci -v
Marja Van Waes 2019-07-26 08:47:44 CEST

Assignee: bugsquad => isobuild
CC: (none) => marja11

Comment 6 Martin Whitaker 2019-07-26 11:04:45 CEST
Does leaving xdriver=free and adding the option noxorgconf behave any differently?

CC: (none) => mageia

Comment 7 Morgan Leijström 2019-07-27 03:40:48 CEST
Created attachment 11219 [details]
Journal from booting of Live Plasma with added "noxorgconf".

Using Live xfce, adding noxorgconf it works :)


For Live Plasma the visual difference is that now the splash never goes away.
The journal contain:
jul 27 04:21:06 localhost korgac[2898]: org.kde.knotifications: env says KDE is running but SNI unavailable -- check KDE_FULL_SESSION and XDG_CURRENT_DESKTOP
jul 27 04:21:08 localhost kernel: ------------[ cut here ]------------
jul 27 04:21:08 localhost kernel: nouveau 0000:01:00.0: timeout
...
jul 27 04:21:08 localhost kernel: [TTM] Buffer eviction failed
jul 27 04:21:23 localhost kernel: nouveau 0000:01:00.0: DRM: failed to idle channel 1 [DRM]
jul 27 04:21:23 localhost kernel: BUG: unable to handle kernel paging request at ffffaf057cbe8100
jul 27 04:21:23 localhost kernel: #PF error: [WRITE]
jul 27 04:21:23 localhost kernel: PGD 276540067 P4D 276540067 PUD 0 
jul 27 04:21:23 localhost kernel: Oops: 0002 [#1] SMP PTI
jul 27 04:21:23 localhost kernel: CPU: 3 PID: 45 Comm: kworker/3:1 Tainted: G        W         5.1.14-desktop-1.mga7 #1
jul 27 04:21:23 localhost kernel: Hardware name: Acer Aspire A717-71G/Charizard_KLS, BIOS V1.13 12/26/2017
jul 27 04:21:23 localhost kernel: Workqueue: pm pm_runtime_work
jul 27 04:21:23 localhost kernel: RIP: 0010:evo_wait+0x5a/0x130 [nouveau]

Attaching full journal (retrieved by booting that stick on another laptop)
Comment 8 Morgan Leijström 2019-07-27 03:44:16 CEST
BTW, to be sure it was nothing left in persistence affecting the boot, i rewrote the USB sticks used in comment 7 fresh, and it is the first boot they did.
Comment 9 Morgan Leijström 2019-07-27 14:15:42 CEST
Workarounds added to end of https://wiki.mageia.org/en/Mageia_7_Errata#Non-working_graphics , with a link to this bug.

To be updated when we know more.

Keywords: (none) => IN_ERRATA7

Morgan Leijström 2019-07-28 21:59:12 CEST

Summary: Live isos fails on (some/most?) hybrid graphics laptops => Live isos fails on some hybrid graphics laptops - workaround: force Intel

Comment 10 Aurelien Oudelet 2020-09-19 18:08:57 CEST
Hi,
This is High priority bug for a good reason.

Making Mageia even better than ever is best direction.
In order to do right thing, this bug should be examined and fixed as soon as possible.

Packagers, please make the status to Assigned when you are working on this.
Feel free to reassign the bug if bad-triaged. Also, if bug is old, please close it.

On October 1st 2020, we will drop priority to normal.
Comment 11 Martin Whitaker 2020-09-20 00:01:40 CEST
noxorgconf is now the default for the Mageia 8 Live ISOs, so this bug should be fixed. Morgan, can you confirm that?
Comment 12 Morgan Leijström 2020-09-20 10:54:20 CEST
Is it implemented in the now rather old 8b1 isos, or next versions?
Comment 13 Martin Whitaker 2020-09-20 10:58:32 CEST
It's implemented on both alpha1 and beta1.
Comment 14 Morgan Leijström 2020-10-03 16:47:15 CEST
Using 8beta1 64 bit plasma booted on USBstick
Testing boot options:

  o live free: OK  - maybe enough to call this bug solved.
 
  o live + Nvidia fail, see below.

  o memory test works

  o Install not tested


Choosing Live + Nvidia, it shows the bobbling cauildron, then back to showing the textscreen that was visible before it.
Trying to get to console, but no Ctrl-AltFsomenting works.
More exactly i think it is not operating the GPU that is displaying...

Tried quitting using Ctrl-backspacebackspace and Ctrl-DeleteDelete repetitively, did not work. Shortly pressing power button make it shut down afters some blinking on the LED on USB stick, so it was not hung.


Are we satisfied with that it works choosing nonfree only, or should we try more solving Nvidia?

It does not seem to store logs in the persistent partition?
Comment 15 Martin Whitaker 2020-10-03 22:05:56 CEST
We'd need the logs to investigate why the proprietary driver fails. They should be stored in the persistent partition. Are you checking it from the live system or by plugging the USB stick into another system and browsing the persistent partition?
Comment 16 Morgan Leijström 2020-10-04 11:30:29 CEST
I failed both methods;
Bug 27356 - Live 8b1 Persistance is not working

Summary: Live isos fails on some hybrid graphics laptops - workaround: force Intel => Live isos fails for Nvidia choice on some hybrid graphics laptops

Comment 17 Morgan Leijström 2020-10-05 01:38:32 CEST
Created attachment 11909 [details]
Full journal from boot having selected Nvidia

Obsoleting all old logs; now we are working on mga8

Same laptop as ever in this bug.
Here booted on a USB stick created using isodumper, and manually finishing formatting and naming of the persistent partition as it is currently broken.

When at boot selecting to use Nvidia, this system never get to desktop, only black screen, and only power button works; short press and it shuts down cleanly.

I then took the log after having booted using the non-Nvidia option.

Looking in the log it is the DM that is segfaulting and get relaunched repetitively. (search "segfault") The iso used here is 8b1 xfce 64 bit.

For a Plasma Live iso it is similar, but it is SDDM that experience the problem and systemd retries again and again.  I did not try Gnome.

Attachment 11215 is obsolete: 0 => 1
Attachment 11213 is obsolete: 0 => 1
Attachment 11214 is obsolete: 0 => 1
Attachment 11216 is obsolete: 0 => 1
Attachment 11219 is obsolete: 0 => 1

Comment 18 Martin Whitaker 2020-10-05 19:02:51 CEST
Investigating this, to use hybrid graphics, you must have the i915 (Intel GPU) kernel driver loaded, but the nokmsboot option prevents that driver loading.

From https://wiki.mageia.org/en/Mageia_7_Release_Notes#Optimus_laptops:

"In all three cases, when configuring the graphics drivers, one must only configure the Intel card (at least in most Optimus configurations), as it is typically the only one physically connected to a monitor."

so it looks like attempting to force use of the NVIDIA proprietary drivers when booting the Live system is the wrong thing to do. You could experiment with the options described on the afore-mentioned Wiki page to see if you can get the NVIDIA GPU working after boot. I've not tried with my Optimus laptop, because turning the NVIDIA GPU on makes it overheat :-(

I think we can say that the original bug is fixed. Improved support for hybrid graphics is already a feature request (https://wiki.mageia.org/en/Feature:Hybrid_Graphics) but needs people to work on it.

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 19 Morgan Leijström 2020-10-05 22:12:05 CEST
Yes.

We (my wifes laptop) have no own interest or need to use the Nvidia GPU, and i have already earlier given up on it in the installed system...

But i can test a future live iso.  I have put a note and reference to this bug at the wiki link you gave.

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