Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using nouveau with GTX1060 (Optimus with Intel 530)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Lustmored
Apprentice
Apprentice


Joined: 28 May 2010
Posts: 206
Location: Poland

PostPosted: Fri Aug 04, 2017 1:08 pm    Post subject: Using nouveau with GTX1060 (Optimus with Intel 530) Reply with quote

I've been trying to make things work for weeks now, with no clue about what goes wrong, so maybe someone here will be able to give me a hand.

Currently I have working 4.11.* kernel with nvidia drivers. It has some downsides, but it works.

Now I'd love to make 4.12.* work with nouveau+intel. Unfortunately with current attempt I got black screen right after GRUB. During my many kernel rebuilds sometimes I got few lines of kernel messages, sometimes some crash, but never got to working console. I'm not talking about running X here, I think I'll be able to handle that one when my system will boot and my laptop display will show me... Anything at all.

I have no idea what can be useful and where to look right now - each and every tutorial I could find failed as I've already done everything listed there in the first place.

Please help :)

Some info:
lspci -vvv
Kernel 4.12.2 .config fil

In my BIOS I have a choice between "DISCRETE" and "MsHybrid" (no other options). I am running MsHybrid, but switching to DISCRETE doesn't help.

I have edid file extracted and appended to GRUB via "drm_kms_helper=edid/display.bin"

I have a feeling that there is something really odd with connection to my LCD, but have no idea how to verify that. In fact I don't even know how to check dmesg of those failed boot attempts.

Any help would be greatly appreciate.

[EDIT]

Out of curiosity I've tried genkernel default options to boot 4.12.4. In the result I got something displayed on my laptop screen, but at some point it freezes (usually after "Setting local time (...)", but once at the NetworkManager stage).

When I have other display attached on boot - the other monitor works just fine and shows linux console that I can freely use. But laptop screen is frozen. When I try to run X from that state, laptop monitor gets black, but that's not the point.

Here are dmesg from those two trials:
dmesg without other display on boot
dmesg with other display on boot
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1374
Location: Montréal

PostPosted: Sat Aug 05, 2017 2:26 am    Post subject: Reply with quote

Hello,

I think you have to much drivers available that can conflicts in your kernel configuration for your Intel + Nvidia cards. As I see in dmesg, the Efifb framebuffer start to drive the Nvidia card and than it is replaced by the Nouveau framebuffer. In the lspci output I see that i915 drive the Intel video card and the nvidia proprietaries drive the Nvidia card.

If you want to go with Nouveau, you must check if it can be a usabIe frambebuffer in Efi mode, what I don't know. The same apply to I915. If yes, you should remove the Efifb framebuffer and keep only Nouveau with I915 in the kernel image with the appropriate firmware files in the kernel image or at least in an initramfs. It's important that all is available when those drivers do their first probe.

You should remove completely the proprietary Nvidia drivers with all their orphan dependancies and reinstall the Mesa packages. It's known that the proprietary Nvidia drivers replace librairies use by Mesa and Nouveau. So after this, you should have only Nouveau and I915 driving your 2 video cards on the kernel Linux side. As a consequence, Nouveau and Nvidia drivers cannot be in conflicts, what if often read is possible.

I think that if you want to keep the proprietary Nvidia drivers you must remove Nouveau completely and go with Efifb instead. Stuff who do not matter and/or have a chance to conflict must get out of the way.

I am ignorant about Nvidia in Efi mode but my Intel video card work well in this mode with i915 in my laptop. I am ignorant too about Optimus system I only have an Nvidia video card in Bios mode who work well with Nouveau in my tower. So I don't know if Nouveau can work with an Optimus system. Maybe too much question marks for me to be really helpful.
_________________
Paul
Back to top
View user's profile Send private message
Lustmored
Apprentice
Apprentice


Joined: 28 May 2010
Posts: 206
Location: Poland

PostPosted: Tue Aug 08, 2017 9:11 am    Post subject: Reply with quote

Logicien wrote:
Hello,

I think you have to much drivers available that can conflicts in your kernel configuration for your Intel + Nvidia cards. As I see in dmesg, the Efifb framebuffer start to drive the Nvidia card and than it is replaced by the Nouveau framebuffer. In the lspci output I see that i915 drive the Intel video card and the nvidia proprietaries drive the Nvidia card.

If you want to go with Nouveau, you must check if it can be a usabIe frambebuffer in Efi mode, what I don't know. The same apply to I915. If yes, you should remove the Efifb framebuffer and keep only Nouveau with I915 in the kernel image with the appropriate firmware files in the kernel image or at least in an initramfs. It's important that all is available when those drivers do their first probe.

You should remove completely the proprietary Nvidia drivers with all their orphan dependancies and reinstall the Mesa packages. It's known that the proprietary Nvidia drivers replace librairies use by Mesa and Nouveau. So after this, you should have only Nouveau and I915 driving your 2 video cards on the kernel Linux side. As a consequence, Nouveau and Nvidia drivers cannot be in conflicts, what if often read is possible.

I think that if you want to keep the proprietary Nvidia drivers you must remove Nouveau completely and go with Efifb instead. Stuff who do not matter and/or have a chance to conflict must get out of the way.

I am ignorant about Nvidia in Efi mode but my Intel video card work well in this mode with i915 in my laptop. I am ignorant too about Optimus system I only have an Nvidia video card in Bios mode who work well with Nouveau in my tower. So I don't know if Nouveau can work with an Optimus system. Maybe too much question marks for me to be really helpful.


Well disabling efifb changed nothing. I was able to run full Plasma desktop though after removing nvidia. It worked like crap on nouveau, but it worked for a bit.

But my main problem persists: upon booting my LCD panel freezes. It "wakes up" for X, but I need this damn console to work for cases when there is no external monitor and something happens :(

On a side: is there any simple way to force X to start using modeset (intel) as default card? I believe it'd be much more stable than nouveau.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum