[SOLVED] Nvidia driver - Can't switch between Nvidia and Intel chip

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
Zugglux
Level 1
Level 1
Posts: 17
Joined: Fri Dec 29, 2017 3:20 pm

[SOLVED] Nvidia driver - Can't switch between Nvidia and Intel chip

Post by Zugglux » Fri Jan 05, 2018 9:18 am

Hello,

I have installed LM 18.3 Cinnamon. Then I installed the prioritary Nvidia driver (nvidia-384) using the driver manager. I am obliged to do so, otherwise the laptop doesn't turn off (but that is another problem I guess) ...
But now, it seems to only use the graphic card, and not the integrated Intel GPU. Therefore, my battery doesn't last very long ! Hopefully, there is a setting for that. I used the Nvidia Prime settings, and choosed to use the integrated Intel chip instead of my Nvidia graphic card.
Now the problem is : it simply doesn't start. Well, the laptop turns on, I choose LM in the Grub (as usual), the LM logo shows up and then : black screen. I can't do anything but turning it off brutally ...

I have read several post about Cinnamon and Nvidia issues but, I haven't found anyone with the same kind of problem ...
I thought maybe the problem come from Cinnamon or Lightdm. So I tried to install LM KDE to see if there is a similar issue. And there is one.
I did the exactly same changes. After choosing the Intel chip in the Nvidia Prime parameters, I loged out (or reboot) BUT I get a message (that didn't appear with Cinnamon) : ksmserver-logout-greeter crashed. I can't log out or turn off the laptop, except if I tell to use the Nvidia graphic card again.

I guess the problem is pretty much the same with Cinnamon except I have no error message and once it is turned on, it can't run the "login software" anymore.

Any idea how to solve the problem ?

Best regards
Last edited by Zugglux on Sun Jan 07, 2018 7:04 am, edited 1 time in total.

User avatar
ClixTrix
Level 5
Level 5
Posts: 717
Joined: Wed Dec 09, 2015 11:40 am
Location: Columbus, Ohio, USA

Re: Nvidia driver - Can't switch between Nvidia and Intel chip

Post by ClixTrix » Fri Jan 05, 2018 10:05 am

I'm guessing your laptop operates with Optimus, which uses proprietary sofware and drivers for Windows. The equivalent open source package for Linux is Bumblebee. Bumblebee is available in the Software Manager for install.

For more help and for I and others to better assist, please run the following command from terminal and post back the results.

Code: Select all

inxi -Fxz
Linux Mint 18.3 x64 Cinnamon Kernel 4.15.0-24-generic
Gigabyte GA-AB350M-D3H (F20) / Ryzen 5 1600 / Micron Ballistix Sport DDR4 2400 2x8GB / XFX HD5450-1GB
NVMe-SSD Samsung EVO 960 250GB / SATA-HDD WD1600BEKT 160GB / SATA-SSD Toshiba OCZ VX500 512GB

Zugglux
Level 1
Level 1
Posts: 17
Joined: Fri Dec 29, 2017 3:20 pm

Re: Nvidia driver - Can't switch between Nvidia and Intel chip

Post by Zugglux » Fri Jan 05, 2018 10:40 am

Thank you for your response. I have installed Bumblebee but it doesn't seems to change anything ... Here is the output :

Code: Select all

System:    Host: LCRTS-XPS15 Kernel: 4.10.0-42-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.3 Sylvia
Machine:   System: Dell (portable) product: XPS 15 9560
           Mobo: Dell model: 05FFDN v: A00
           Bios: Dell v: 1.6.2 date: 11/12/2017
CPU:       Quad core Intel Core i7-7700HQ (-HT-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 22464
           clock speeds: max: 3800 MHz 1: 3475 MHz 2: 3800 MHz 3: 3487 MHz
           4: 3420 MHz 5: 3502 MHz 6: 3478 MHz 7: 3799 MHz 8: 3781 MHz
Graphics:  Card-1: Intel Device 591b bus-ID: 00:02.0
           Card-2: NVIDIA Device 1c8d bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 driver: nvidia
           Resolution: 1920x1080@59.93hz
           GLX Renderer: GeForce GTX 1050/PCIe/SSE2
           GLX Version: 4.5.0 NVIDIA 384.90 Direct Rendering: Yes
Audio:     Card Intel Device a171 driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k4.10.0-42-generic
Network:   Card-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
           driver: ath10k_pci bus-ID: 02:00.0
           IF: wlp2s0 state: up mac: <filter>
           Card-2: Atheros usb-ID: 001-002
           IF: null-if-id state: N/A speed: N/A duplex: N/A mac: N/A
Drives:    HDD Total Size: 15.8GB (Used Error!)
           ID-1: /dev/nvme0n1 model: N/A size: 512.1GB
           ID-2: USB /dev/sda model: Patriot_Memory size: 15.8GB
Partition: ID-1: / size: 164G used: 6.8G (5%) fs: ext4 dev: /dev/nvme0n1p7
           ID-2: swap-1 size: 16.00GB used: 0.00GB (0%) fs: swap dev: /dev/nvme0n1p6
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 61.0C mobo: N/A gpu: 0.0:49C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 265 Uptime: 0 min Memory: 968.8/15897.0MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35

User avatar
ClixTrix
Level 5
Level 5
Posts: 717
Joined: Wed Dec 09, 2015 11:40 am
Location: Columbus, Ohio, USA

Re: Nvidia driver - Can't switch between Nvidia and Intel chip

Post by ClixTrix » Fri Jan 05, 2018 12:30 pm

You might trying reverting back to the nouveau open source driver from the proprietary nVidia driver for a test.
Linux Mint 18.3 x64 Cinnamon Kernel 4.15.0-24-generic
Gigabyte GA-AB350M-D3H (F20) / Ryzen 5 1600 / Micron Ballistix Sport DDR4 2400 2x8GB / XFX HD5450-1GB
NVMe-SSD Samsung EVO 960 250GB / SATA-HDD WD1600BEKT 160GB / SATA-SSD Toshiba OCZ VX500 512GB

Zugglux
Level 1
Level 1
Posts: 17
Joined: Fri Dec 29, 2017 3:20 pm

Re: Nvidia driver - Can't switch between Nvidia and Intel chip

Post by Zugglux » Fri Jan 05, 2018 1:42 pm

Well, I set the nouveau open source driver and when I reboot, it is stuck on the LM logo...

User avatar
ClixTrix
Level 5
Level 5
Posts: 717
Joined: Wed Dec 09, 2015 11:40 am
Location: Columbus, Ohio, USA

Re: Nvidia driver - Can't switch between Nvidia and Intel chip

Post by ClixTrix » Fri Jan 05, 2018 2:09 pm

Zugglux wrote:Well, I set the nouveau open source driver and when I reboot, it is stuck on the LM logo...
Not good. If you hit the [ESC] key at that point, are there any messages.....or is the system frozen?

I was hoping nouveau might be an option. Did Driver Manager present any options for nVidia drivers other than the recommended?

It's possible you'll have better luck with the older Mint 17.3. Older kernel and drivers are potentially more suited to the Optimus era (2010-13).
Linux Mint 18.3 x64 Cinnamon Kernel 4.15.0-24-generic
Gigabyte GA-AB350M-D3H (F20) / Ryzen 5 1600 / Micron Ballistix Sport DDR4 2400 2x8GB / XFX HD5450-1GB
NVMe-SSD Samsung EVO 960 250GB / SATA-HDD WD1600BEKT 160GB / SATA-SSD Toshiba OCZ VX500 512GB

Zugglux
Level 1
Level 1
Posts: 17
Joined: Fri Dec 29, 2017 3:20 pm

Re: Nvidia driver - Can't switch between Nvidia and Intel chip

Post by Zugglux » Fri Jan 05, 2018 2:23 pm

No, it is frozen ... No, Driver Manager only recommend the nvidia-384 driver by default. I will try to install an older version then. I will tell you if it works.

User avatar
ClixTrix
Level 5
Level 5
Posts: 717
Joined: Wed Dec 09, 2015 11:40 am
Location: Columbus, Ohio, USA

Re: Nvidia driver - Can't switch between Nvidia and Intel chip

Post by ClixTrix » Fri Jan 05, 2018 4:14 pm

There is some discussion at Ubuntu on getting Bumblebee working with either nvidia or nouveau on ubuntu 16.04 (base for Mint 18.3). nVidia-367 got my attention.

https://askubuntu.com/questions/749557/ ... -for-16-04

Edit: Did primus install with bumblebee. If not install primus.
Linux Mint 18.3 x64 Cinnamon Kernel 4.15.0-24-generic
Gigabyte GA-AB350M-D3H (F20) / Ryzen 5 1600 / Micron Ballistix Sport DDR4 2400 2x8GB / XFX HD5450-1GB
NVMe-SSD Samsung EVO 960 250GB / SATA-HDD WD1600BEKT 160GB / SATA-SSD Toshiba OCZ VX500 512GB

Zugglux
Level 1
Level 1
Posts: 17
Joined: Fri Dec 29, 2017 3:20 pm

Re: Nvidia driver - Can't switch between Nvidia and Intel chip

Post by Zugglux » Sun Jan 07, 2018 7:03 am

Yes, I have tried with Primus installed, but the problem was the same ...
I have tried with LM 17.3 but I had several problem ... Impossible to install wireless driver. Anyway, after installing the nvidia recommended driver, it was frozen. So I gave up. But I I have tried with LM 18.1. Now it seems to be good. I have no problem. I can choose the open-source or nvidia driver, both seems to be working fine. If the nvidia-384 driver is installed, I can easily switch between Intel or Nvidia card without having a black screen or any issue. Honestly I don't know why ... If somebody knows where this come from, I would be interested :)
Thank's for your help :)

User avatar
ClixTrix
Level 5
Level 5
Posts: 717
Joined: Wed Dec 09, 2015 11:40 am
Location: Columbus, Ohio, USA

Re: Nvidia driver - Can't switch between Nvidia and Intel chip

Post by ClixTrix » Sun Jan 07, 2018 8:04 am

Zugglux wrote:But I I have tried with LM 18.1. Now it seems to be good. I have no problem. I can choose the open-source or nvidia driver, both seems to be working fine. If the nvidia-384 driver is installed, I can easily switch between Intel or Nvidia card without having a black screen or any issue. Honestly I don't know why ... If somebody knows where this come from, I would be interested :)
Thank's for your help :)
That's great. So, 18.1 with Kernel 4.4 works. Hmmmm....if you do decide to upgrade to Mint 18.3, you might need to use/retain that old Kernel. Mint 18.3 uses the 4.10 Kernel on install, but you can boot to the older Kernel from the Grub menu and uninstall 4.10 from Update Manager.
Linux Mint 18.3 x64 Cinnamon Kernel 4.15.0-24-generic
Gigabyte GA-AB350M-D3H (F20) / Ryzen 5 1600 / Micron Ballistix Sport DDR4 2400 2x8GB / XFX HD5450-1GB
NVMe-SSD Samsung EVO 960 250GB / SATA-HDD WD1600BEKT 160GB / SATA-SSD Toshiba OCZ VX500 512GB

2nal2
Level 1
Level 1
Posts: 1
Joined: Thu Jan 11, 2018 6:04 am

Re: [SOLVED] Nvidia driver - Can't switch between Nvidia and Intel chip

Post by 2nal2 » Thu Jan 11, 2018 6:11 am

Hello, i have the same problem in this version (LM 18.3) when i'm trying to swith to intel graphics, i did get the same problem with linux mint 17.3 , after that i intalled LM 18.1 and works perfectly, it's a shame that the problem come back in 18.3

lpsandaruwan
Level 1
Level 1
Posts: 3
Joined: Thu May 11, 2017 3:56 am

Re: [SOLVED] Nvidia driver - Can't switch between Nvidia and Intel chip

Post by lpsandaruwan » Fri Jan 12, 2018 3:48 am

I am using MSI GS63VR 7RF and I have the same problem with Graphic drivers in Linux Mint 18.3. Currently using 18.3 with nouveau, OS only works when I add modeprobe.blacklist=nouveau to the grub entry. I am not sure that older kernels will suit since I'm on a Kaby Lake CPU. I tried installing LM 18.1, 18.2 and updating the kernel to a newer version but the graphics switching issue won't go away. Once I installed Nvidia proprietary from driver manager and switched back to Intel profile using prime applet system hangs on bootup. Even the keys are not working. :-( Have anyone figured out a way to fix this?

lpsandaruwan
Level 1
Level 1
Posts: 3
Joined: Thu May 11, 2017 3:56 am

Re: [SOLVED] Nvidia driver - Can't switch between Nvidia and Intel chip

Post by lpsandaruwan » Fri Jan 19, 2018 12:54 am

Got it solved and working thanks to ArchLinux page https://wiki.archlinux.org/index.php/MS ... .2FOptimus
Just added

Code: Select all

acpi_osi=! acpi_osi="Windows 2009"
to the line

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT
in file

Code: Select all

/etc/default/grub
and updated the grub config.

Code: Select all

sudo update-grub
After rebooting switching to Intel VGA worked like a charm. Hope this will help.

ChaSeq
Level 1
Level 1
Posts: 2
Joined: Wed Jan 31, 2018 5:27 am

Re: [SOLVED] Nvidia driver - Can't switch between Nvidia and Intel chip

Post by ChaSeq » Sat Jun 02, 2018 10:20 am

Thanks heaps Ipsandaruwan! That works really well when I enter it manually in the grub at startup, but (excuse my almost certainly noob mistake) when I enter it in the file you indicated and run:

Code: Select all

 sudo update-grub 
I get the following error:

Code: Select all

 /usr/sbin/grub-mkconfig: 11: /etc/default/grub: 2009: not found 
Here's what I entered:

Code: Select all

 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=! acpi_osi="windows 2009"" 
Thanks to anyone who can help!

User avatar
Moem
Level 16
Level 16
Posts: 6064
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: [SOLVED] Nvidia driver - Can't switch between Nvidia and Intel chip

Post by Moem » Sat Jun 02, 2018 10:24 am

ChaSeq wrote:
Sat Jun 02, 2018 10:20 am
Thanks to anyone who can help!
I recommend that you start a new topic. Many people do not open old topics that are marked as solved.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

User avatar
karlchen
Level 18
Level 18
Posts: 8928
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: [SOLVED] Nvidia driver - Can't switch between Nvidia and Intel chip

Post by karlchen » Sat Jun 02, 2018 10:33 am

Hello, ChaSeq.

The whole expression right of the = character should be enclosed in a single pair of double quotes.
But there is a pair of inner double-quotes inside the double quoted string.
This very likely confuses the parser of the command grub-mkconfig.

You might try masking the inner doulbe quotes with backslahes and try it this way:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=! acpi_osi=\"Windows 2009\"" 

Code: Select all

sudo update-grub
Not sure that what would work on the commandline will work for update-grub as well.

Regards,
Karl
Image
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

ChaSeq
Level 1
Level 1
Posts: 2
Joined: Wed Jan 31, 2018 5:27 am

Re: [SOLVED] Nvidia driver - Can't switch between Nvidia and Intel chip

Post by ChaSeq » Sat Jun 02, 2018 10:49 am

Hi Karl,

Thanks for the speedy response!

I actually tried the obvious thing first and used single quotes around windows 2009, which worked.

So for anyone else with the same issue the following should work:

Code: Select all

 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=! acpi_osi='windows 2009'" 

User avatar
karlchen
Level 18
Level 18
Posts: 8928
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: [SOLVED] Nvidia driver - Can't switch between Nvidia and Intel chip

Post by karlchen » Sat Jun 02, 2018 10:51 am

Hi, ChaSeq.
Perfect! :D And thank you very much for posting your solution here as well. So it it is a pair of inner single quotes inside the pair of outer double quotes.
Cheers,
Karl
Image
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

derco0n
Level 1
Level 1
Posts: 2
Joined: Sat Jun 23, 2018 2:39 am

Re: [SOLVED] Nvidia driver - Can't switch between Nvidia and Intel chip

Post by derco0n » Sat Jun 23, 2018 2:51 am

just replying:

the solution of "Ipsabdaruwab" with the corrected line posted by "ChaSeq" worked for me on a Dell AW 17R4 (Intel(R) Core(TM) i7-6700HQ/ nVIDIA GTX 1060 with Kernel 4.13.0-45-generic and nVIDIA-Driver 384.130).

Can anyone please explain what exactly the parameters
acpi_osi=! acpi_osi='windows 2009'
are doing....

thank you in advance

Post Reply

Return to “Hardware Support”