Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
An Intel-only solution on an NVIDIA Optimus Laptop
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
us3rnotfound
n00b
n00b


Joined: 20 May 2020
Posts: 12

PostPosted: Wed May 20, 2020 6:33 pm    Post subject: An Intel-only solution on an NVIDIA Optimus Laptop Reply with quote

I have a laptop with Optimus and without an option in BIOS dealing with hybrid graphics settings. However I only selected the Intel 915 component in the kernel config device drivers. lspci-k shows there’s no kernel driver for the NVIDIA discrete graphics. Is this good enough? Can I assume I’m only using Intel in my X environment? How can I confirm that %100?
Back to top
View user's profile Send private message
us3rnotfound
n00b
n00b


Joined: 20 May 2020
Posts: 12

PostPosted: Wed May 20, 2020 9:54 pm    Post subject: Reply with quote

Alright here's the deal: I want the lowest power being used at all times (don't care about dedicated graphics).

Searching for active GPUs I get the following:

Code:
prompt# lspci -v | grep "VGA"

00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 650M] (rev a1) (prog-if 00 [VGA controller])


This basically shows that the system is outputting video on BOTH, because [VGA controller] is appended to both modules.

I gleaned this info from this post:
https://unix.stackexchange.com/questions/16407/how-to-check-which-gpu-is-active-in-linux

and this post:
https://askubuntu.com/questions/68028/how-do-i-check-if-ubuntu-is-using-my-nvidia-graphics-card

I want to do this solution of killing NVIDIA at boot up via acpi-call module from teh Arch wiki article here:
https://wiki.archlinux.org/index.php/Hybrid_graphics#Using_acpi_call

However that's a no-go because emerge -s acpi-call shows that this app is MASKED. Not good.

Therefore my best bet is to follow this Gentoo article, and always using the Intel GPU, wouldn't you say?:
https://wiki.gentoo.org/wiki/NVIDIA/Optimus
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2126
Location: Frankfurt, Germany

PostPosted: Wed May 20, 2020 10:00 pm    Post subject: Reply with quote

I use sys-power/bbswitch to turn off the NVIDIA chip: https://github.com/Bumblebee-Project/bbswitch

Works perfectly fine. My wattmeter shows that power consumption goes down by 4 W as soon as I run
Code:
echo 'OFF' > /proc/acpi/bbswitch
Back to top
View user's profile Send private message
us3rnotfound
n00b
n00b


Joined: 20 May 2020
Posts: 12

PostPosted: Wed May 20, 2020 10:30 pm    Post subject: Reply with quote

mike155 wrote:
I use sys-power/bbswitch to turn off the NVIDIA chip: https://github.com/Bumblebee-Project/bbswitch

Works perfectly fine. My wattmeter shows that power consumption goes down by 4 W as soon as I run
Code:
echo 'OFF' > /proc/acpi/bbswitch


Cool, did you even install an nvidia driver? Or can you just run bbswitch?
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2126
Location: Frankfurt, Germany

PostPosted: Wed May 20, 2020 11:41 pm    Post subject: Reply with quote

bbswitch works without an NVIDIA driver. There's no need to install an NVIDIA driver.

The only thing to remember is: whenever you install a new kernel, you must re-install bbswitch.
Back to top
View user's profile Send private message
us3rnotfound
n00b
n00b


Joined: 20 May 2020
Posts: 12

PostPosted: Thu May 21, 2020 12:46 am    Post subject: Reply with quote

mike155 wrote:
bbswitch works without an NVIDIA driver. There's no need to install an NVIDIA driver.

The only thing to remember is: whenever you install a new kernel, you must re-install bbswitch.


Thanks I did it. Made a .conf file in /etc/modules-load.d/ to made systemd modprobe bbswitch, then creates a unit file to disable nvidia chip on boot up, ensuring it loads after systemd-modules-load.
Back to top
View user's profile Send private message
coderanger
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2018
Posts: 105
Location: Ukraine

PostPosted: Thu May 21, 2020 5:45 am    Post subject: Reply with quote

If you want completely disable nvidia card,
check lspci and put the correct device id here
Code:
echo 1 > /sys/bus/pci/devices/0000\:02\:00.0/remove
Then check with powertop that power usage decreased (4-5W) and the card disappeared from the list of devices. In this way the card is not accessible for the OS until next reboot.
If this works for you then bbswitch is not needed.
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