Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X server with intel integrated graphic card + nvidia
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Ginta
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 136
Location: Spain

PostPosted: Fri Sep 26, 2014 3:02 pm    Post subject: X server with intel integrated graphic card + nvidia Reply with quote

I am going to buy a laptop which has an intel integrated graphics card, but also have a discrete graphic card nvidia (2GB).

I never dealt with having more than 2 graphic cards, so I don't really know how to proceed when I buy it.

For example, how to configure X to use nvidia only when needed (HD video playback, games...)? Should I install intel drivers *as well* as nvidia drivers? Any specific options?

I am afraid because I don't know if maybe it will only use the intel one and ignore nvidia which would be awful.

Also, is there a way to know which card it is using? To diagnose and to see if it is well configured.

Thanks, as I am a bit lost for first time in a long time with gentoo
_________________
Somebody should use emerge brain on theirselves...
Back to top
View user's profile Send private message
billyboob
n00b
n00b


Joined: 09 Sep 2013
Posts: 4

PostPosted: Sat Sep 27, 2014 10:56 am    Post subject: Reply with quote

Have you bought this laptop? I bought an optimus laptop almost four years ago. Bumblebee handles card switching and disabling well these days. It's in portage. I don't use the HDMI port (nvidia) so I have no idea if that's easily configurable or will even work. If you're buying a laptop you'll want to use intel (as well as nouveau/nvidia) as the discreet card (nvidia) will chew through your battery. From memory bumblebee, X and nvidia/nouveau all seem to work ootb these days.
Back to top
View user's profile Send private message
dweezil-n0xad
Apprentice
Apprentice


Joined: 30 Oct 2006
Posts: 156
Location: Ostend, Belgium

PostPosted: Sat Sep 27, 2014 11:31 am    Post subject: Reply with quote

I also use bumblebee on my laptop with nvidia optimus.

drivers in /etc/portage/make.conf:
Code:
VIDEO_CARDS="nvidia intel i965"


X and HD video playback work fine on the intel card.
Only when I want to run a game I use the nvidia card with the primusrun command.
_________________
i7-4790K | 16GB DDR3 | GTX 970 | 500GB SSD
ASUS N56VV | i7-3630QM | 12GB DDR3 | GT 750M | 256GB SSD
Back to top
View user's profile Send private message
Ginta
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 136
Location: Spain

PostPosted: Sun Sep 28, 2014 2:18 pm    Post subject: Reply with quote

billyboob wrote:
Have you bought this laptop? I bought an optimus laptop almost four years ago. Bumblebee handles card switching and disabling well these days. It's in portage. I don't use the HDMI port (nvidia) so I have no idea if that's easily configurable or will even work. If you're buying a laptop you'll want to use intel (as well as nouveau/nvidia) as the discreet card (nvidia) will chew through your battery. From memory bumblebee, X and nvidia/nouveau all seem to work ootb these days.


I will buy it in the next 2 weeks, but as I never dealt with this two cards issue wanted to ask.

So, if I understood well, bumblebee will handle the 2 cards and will switch it automatically, or should I do the switch manually when I want performance, for example, playing 3D games/video transcoding.

That is the point I don't understand well.

And thanks all for the answers.
_________________
Somebody should use emerge brain on theirselves...
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Mon Sep 29, 2014 11:20 am    Post subject: Reply with quote

The video encoder and decoder in modern Intel chips are supported by libva. There is little need to use NVidia graphics for anything else but 3D and GPU compute.
Back to top
View user's profile Send private message
dweezil-n0xad
Apprentice
Apprentice


Joined: 30 Oct 2006
Posts: 156
Location: Ostend, Belgium

PostPosted: Mon Sep 29, 2014 11:21 am    Post subject: Reply with quote

Bumblebee will not switch automatically.
First you have to start the bumblebee daemon. Then to run a program on the nvidia card you need launch the program with the optirun command.
_________________
i7-4790K | 16GB DDR3 | GTX 970 | 500GB SSD
ASUS N56VV | i7-3630QM | 12GB DDR3 | GT 750M | 256GB SSD
Back to top
View user's profile Send private message
billyboob
n00b
n00b


Joined: 09 Sep 2013
Posts: 4

PostPosted: Mon Sep 29, 2014 11:29 am    Post subject: Reply with quote

AFAIK bumblebee does not handle switching automatically.

If you're playing games from a Steam library you can add command line options to each games property settings in Steam to work around this (so that you will be able to launch them from Steam without having to use a terminal). Or you can just edit the launcher or desktop file you use to launch an application or game.
Back to top
View user's profile Send private message
Ginta
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 136
Location: Spain

PostPosted: Thu Dec 04, 2014 12:07 am    Post subject: Reply with quote

I tested, and it is working now with intel HD card, and I have bumblebee.

However, not all things works good with optirun, for example left4dead2 in steam is missing many textures (when you select game mode, are black squares, for example) and I don't really know what is happenning here.

Any hint?

Thanks for previous hints which guided me in this direction :)
_________________
Somebody should use emerge brain on theirselves...
Back to top
View user's profile Send private message
Ginta
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 136
Location: Spain

PostPosted: Thu Dec 04, 2014 12:09 am    Post subject: Reply with quote

Seems I am getting some panics :(

Code:
Dec  4 01:02:13 Darkness kernel: vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
Dec  4 01:02:13 Darkness kernel: Error: Driver 'nvlink' is already registered, aborting...
Dec  4 01:02:13 Darkness kernel: [drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:01:00.0 on minor 1
Dec  4 01:02:13 Darkness kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  346.16  Fri Nov  7 18:14:40 PST 2014
Dec  4 01:02:13 Darkness kernel: nvidia 0000:01:00.0: irq 30 for MSI/MSI-X
Dec  4 01:02:13 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:02:13 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:02:13 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:02:13 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:02:13 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:02:13 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:02:13 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:02:13 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:02:13 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:02:13 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:02:13 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:02:13 Darkness acpid[1156]: client connected from 28069[0:103]
Dec  4 01:02:13 Darkness acpid[1156]: 1 client rule loaded
Dec  4 01:02:13 Darkness bumblebeed[1259]: [XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
Dec  4 01:02:13 Darkness bumblebeed[1259]: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Dec  4 01:02:13 Darkness bumblebeed[1259]: [XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
Dec  4 01:02:13 Darkness bumblebeed[1259]: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Dec  4 01:04:37 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:04:37 Darkness kernel: ------------[ cut here ]------------
Dec  4 01:04:37 Darkness kernel: WARNING: CPU: 6 PID: 28191 at drivers/base/driver.c:190 driver_unregister+0x4a/0x50()
Dec  4 01:04:37 Darkness kernel: Unexpected driver unregister!
Dec  4 01:04:37 Darkness kernel: Modules linked in: nvidia(PO-) bbswitch(O) ath9k ath9k_common ath9k_hw x86_pkg_temp_thermal ath [last unloaded: nvidia]
Dec  4 01:04:37 Darkness kernel: CPU: 6 PID: 28191 Comm: rmmod Tainted: P        W  O   3.17.4-gentoo #11
Dec  4 01:04:37 Darkness kernel: Hardware name: Micro-Star International Co., Ltd. GT70 2PE/MS-1763, BIOS E1763IMS.10W 05/02/2014
Dec  4 01:04:37 Darkness kernel:  0000000000000000 000000008608847a ffff8802ffebbdc8 ffffffff81b0dd2c
Dec  4 01:04:37 Darkness kernel:  ffff8802ffebbe10 ffff8802ffebbe00 ffffffff8104e1a8 ffffffffa0787de8
Dec  4 01:04:37 Darkness kernel:  ffffffffa0787e68 ffffffffa0787d80 0000000001cf2090 0000000001cf2010
Dec  4 01:04:37 Darkness kernel: Call Trace:
Dec  4 01:04:37 Darkness kernel:  [<ffffffff81b0dd2c>] dump_stack+0x45/0x56
Dec  4 01:04:37 Darkness kernel:  [<ffffffff8104e1a8>] warn_slowpath_common+0x78/0xa0
Dec  4 01:04:37 Darkness kernel:  [<ffffffff8104e227>] warn_slowpath_fmt+0x57/0x70
Dec  4 01:04:37 Darkness kernel:  [<ffffffff810d5020>] ? cpu_stop_should_run+0x50/0x50
Dec  4 01:04:37 Darkness kernel:  [<ffffffff8169257a>] driver_unregister+0x4a/0x50
Dec  4 01:04:37 Darkness kernel:  [<ffffffff8151c34c>] pci_unregister_driver+0x1c/0x90
Dec  4 01:04:37 Darkness kernel:  [<ffffffffa04eb5b0>] nvlink_exit+0x10/0x20 [nvidia]
Dec  4 01:04:37 Darkness kernel:  [<ffffffffa04f2f6b>] nvidia_exit_module+0x2c/0x153 [nvidia]
Dec  4 01:04:37 Darkness kernel:  [<ffffffffa04f309b>] nvidia_frontend_exit_module+0x9/0x31 [nvidia]
Dec  4 01:04:37 Darkness kernel:  [<ffffffff810c15b0>] SyS_delete_module+0x140/0x1f0
Dec  4 01:04:37 Darkness kernel:  [<ffffffff81002cc1>] ? do_notify_resume+0x51/0x70
Dec  4 01:04:37 Darkness kernel:  [<ffffffff81b18a52>] system_call_fastpath+0x16/0x1b
Dec  4 01:04:37 Darkness kernel: ---[ end trace f838d7e7a69e365f ]---
Dec  4 01:04:37 Darkness kernel: [drm] Module unloaded
Dec  4 01:04:37 Darkness kernel: bbswitch: disabling discrete graphics
Dec  4 01:04:37 Darkness kernel: ACPI Warning: \x5c_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
Dec  4 01:04:37 Darkness kernel: pci 0000:01:00.0: Refused to change power state, currently in D0
Dec  4 01:04:36 Darkness bumblebeed[1259]: [XORG] (EE) Server terminated successfully (0). Closing log file.

_________________
Somebody should use emerge brain on theirselves...
Back to top
View user's profile Send private message
oldBadger
n00b
n00b


Joined: 02 Jan 2015
Posts: 5

PostPosted: Fri Jan 02, 2015 3:45 pm    Post subject: Reply with quote

[quote="Ginta"]Seems I am getting some panics :(

Look for its page pls.
:lol:
http://gentoo-en.vfose.ru/wiki/X.Org/nVidia_Optimus
_________________
best regards

oldBadger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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