Antergos / Cnchi

A modern, flexible online system installer for Antergos Linux
GNU General Public License v3.0
291 stars 101 forks source link

Do not install proprietary NVIDIA drivers on Optimus #596

Open NanoSector opened 8 years ago

NanoSector commented 8 years ago

Do not offer to install NVIDIA proprietary drivers when Optimus is detected. This to avoid issues with unbootable systems.

We've received numerous reports on IRC that a reinstall was needed (or otherwise major fixes) if this option was selected, so I'd say this is quite urgent.

karasu commented 8 years ago

I do not know if this is doable. How do we now that an user has an Optimus setup?

NanoSector commented 8 years ago

xrandr --listproviders should list two providers. That's one way to detect.

lspci lists multiple devices - but this is not reliable as you can still have intel graphics and nvidia graphics both enabled in a desktop system.

karasu commented 8 years ago

If you have two nvidias installed (like a sli configuration or something like that), it would show up as two providers too?

NanoSector commented 8 years ago

Yes, however it would show up as the same driver. With PRIME (nouveau) you could watch for intel and nouveau drivers both existing. I'm not sure how reliable this is, though.

This is MHWD's file: https://github.com/manjaro/mhwd-db/blob/master/pci/graphic_drivers/hybrid-intel-nvidia-bumblebee/MHWDCONFIG

karasu commented 8 years ago

That file will be very helpful, thanks!

Mikaela commented 8 years ago

Someone again encountered this at IRC and had tried to reinstall Antergos three times before coming to ask for help and hearing this :crying_cat_face:

NanoSector commented 8 years ago

Are we even being listened to? Calling for help in IRC seems to have no effect at all, reporting critical issues affects nothing as they're just left to rot...

Please fix ASAP as these things shouldn't happen or remove the functionality if you can't think of a fix.

karasu commented 8 years ago

Yes, of course we check all issues. I'll remove that option until we have the time to fix it. Thanks.

NanoSector commented 8 years ago

Bump More cases of this are happening on IRC.

karasu commented 8 years ago

That's odd. If Intel and Nvidia are detected, nvidia feature should not be shown. Sadly, we have no hardware to test this on.

NanoSector commented 8 years ago

I'll fire the latest ISO up later today to test this

Op 23 jul. 2016 19:35 schreef "karasu" notifications@github.com:

That's odd. If Intel and Nvidia are detected, nvidia feature should not be shown. Sadly, we have no hardware to test this on.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Antergos/Cnchi/issues/596#issuecomment-234730372, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOJfPaUf0Vv74vxlDlao4l8-WgHV0_Sks5qYlDEgaJpZM4IjLmN .

NanoSector commented 8 years ago

Nope I didn't get it this time... Maybe something wrong in the setup of said user

Op za 23 jul. 2016 21:13 schreef Rick Kerkhof rick.2889@gmail.com:

I'll fire the latest ISO up later today to test this

Op 23 jul. 2016 19:35 schreef "karasu" notifications@github.com:

That's odd. If Intel and Nvidia are detected, nvidia feature should not be

shown. Sadly, we have no hardware to test this on.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Antergos/Cnchi/issues/596#issuecomment-234730372, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOJfPaUf0Vv74vxlDlao4l8-WgHV0_Sks5qYlDEgaJpZM4IjLmN .

NanoSector commented 8 years ago

Okay it's back now, the proprietary graphics option shows in Cnchi 0.14.140 on my Optimus laptop.

enlighter commented 8 years ago

I have an Optimus Setup on my brand new laptop and I installed Antergos with Proprietary driver option. Now the installed system fails to load lightdm and gets stuck there.

Here's my Xorg.0.log: http://pastebin.com/J5ULd1q4

Is there a way to fix the installation and how? I really donot want to reinstall as I have already setup my UEFI multiboot using Windows 10, antergos and ubuntu 16.04

lots0logs commented 8 years ago

@enlighter I cant see your log b/c its private. Could you post a paste2 link instead? Also will probably need to see your systemd journal log.

enlighter commented 8 years ago

@lots0logs Sorry! Here's my re-pasted Xorg.0.log: https://paste2.org/M3HD4ts0

Well also since I cannot get to even the user login CLI,I am unable to run journalctl. Is there a way to read the Binary journal log file of the Archlinux system from my Ubuntu system?

NanoSector commented 8 years ago

You need to swap out the nvidia-libgl package with mesa-libgl and install bumblebee, it'll find the nvidia-libgl libraries by itself. The Intel Mesa driver doesn't work with Nvidia-libgl.

Op di 27 sep. 2016 15:10 schreef Sushovan Mandal notifications@github.com:

Sorry! Here's my re-pasted Xorg.0.log: https://paste2.org/M3HD4ts0

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Antergos/Cnchi/issues/596#issuecomment-249860047, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOJfNhJXgWuizIpRL6G3iRzQbwugiQuks5quRXRgaJpZM4IjLmN .

enlighter commented 8 years ago

@Yoshi2889 Thanks for the suggestion, installing bumblebee worked, but only after removing the xorg config created by nvidia-xconfig command. Now it works with full Optimus.

NanoSector commented 8 years ago

Yeah even nowadays there should be no reason to generate a config file, Xorg will automatically detect stuff.

Op wo 28 sep. 2016 13:38 schreef Sushovan Mandal notifications@github.com:

@Yoshi2889 https://github.com/Yoshi2889 Thanks for the suggestion, installing bumblebee worked, but only after removing the xorg config created by nvidia-xconfig command. Now it works with full Optimus.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/Antergos/Cnchi/issues/596#issuecomment-250142878, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOJfFWVgfJ7SHhBmgJDP5ymptBHt-H3ks5qulGngaJpZM4IjLmN .

NanoSector commented 7 years ago

I just had a quick chat with the people in #nouveau:

[20:44:00] <NanoSector> what is the most reliable way to detect if a system is Optimus or not?
[20:44:42] <NanoSector> I thought of checking whether both Intel and NVIDIA are present, but that'd mean desktops with the integraded GPU enabled would also pass
[21:14:00] <airlied> NanoSector: why do you care about optimus specificlly?
[21:28:31] <NanoSector> airlied: asking for the Antergos installer, it needs a way to detect if a laptop has Optimus and then allow the installation of bumblebee
[21:29:15] <airlied> you'd have to probe the ACPI tables
[21:31:27] <karolherbst> NanoSector: bumblebeeisn (logged in 25 minutes 36 seconds ago)
[21:31:38] <karolherbst> 'nt limited to optimus
[21:31:45] <karolherbst> only bbswitch is mainly
[21:33:09] <karolherbst> NanoSector: wouldn't it make sense to install bumblebee whenever there are two GPUs installed?
[21:39:18] <NanoSector> karolherbst: you mean also on desktop systems?
[21:43:54] <karolherbst> yeah
[21:43:56] <karolherbst> why not?
[21:44:08] <karolherbst> imagine somebody with intel main and nvidia dedicated, but without a display
[21:44:30] <karolherbst> on nvidia
[21:44:51] <karolherbst> NanoSector: or better: if the script detects multiple GPUs, promp for something or so
[21:45:12] <karolherbst> let the user decide in this case
[21:45:30] <NanoSector> we'll default to Nouveau but we show an option to install nvidia proprietary drivers
[21:46:19] <NanoSector> I suppose we can modify it to also install bumblebee
karasu commented 7 years ago

I have to copy some of the nvidia-installer script code to cnchi... now I understand better how nouveau, nvidia and bumblebee works.... I hope I'll be able to fix this soon.

enlighter commented 7 years ago

Just wanted to let know, that the manual for Nvidia Optimus from https://antergos.com/wiki/hardware/graphics/bumblebee-for-nvidia-optimus/ worked perfectly for me. I have a core i3 and Geforce 930M laptop and the power saving patch was not required as the official archlinux repos contain bumblebee patch 15 (bumblebee 3.2.1-15)