[Solved] HP Laptop Unable to Switch to Nvidia Optimus Card

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Post Reply
cttan
Shogun
Shogun
Posts: 332
Joined: 26 Jan 2011, 16:15
Distribution: Porteus 3.2 64bit KDE
Location: Malaysia

[Solved] HP Laptop Unable to Switch to Nvidia Optimus Card

Post#1 by cttan » 19 May 2015, 02:28

Hi,

I have created nvidia modules following script from [b]http://docs.slackware.com/howtos:har ... ptimus[/b]

Automatic build script:-
curl https://raw.githubusercontent.com/ryanp ... razybee.sh | sh
The script has excluded libvdpau as it is standard package in latest Slackware. But Porteus 3.1 Final having version 0.8.
The latest libvdpau must be used. Download from http://people.freedesktop.org/~aplattne ... 1.1.tar.gz and build using Slackbuild script.

The modules created:-
0059-xf86-video-nouveau-blacklist-noarch-1.xzm
https://copy.com/bNfzGqHPsZzXZQBr

0060-libbsd-0.7.0-x86_64-1_bbsb.xzm
https://copy.com/IMLkPllSYd2tWXP7

0061-bbswitch-0.8_3.17.4-porteus-x86_64-1_bbsb.xzm
https://copy.com/92HqkWwIjNTdYpup

0062-bumblebee-3.2.1-x86_64-1_bbsb.xzm
https://copy.com/efMqYuIc8eBMakhq

0063-primus-0.1.7-x86_64-1_bbsb.xzm
https://copy.com/yX8P79PhZ9lXdqhH

0064-nvidia-kernel-346.72_3.17.4_porteus-x86_64-1_bbsb.xzm
https://copy.com/SGnZICvKGTysa6cq

0065-libvdpau-1.1-x86_64-1_bbsb.xzm
https://copy.com/S7s2ktA630X7Nj4O

0066-nvidia-bumblebee-346.72-x86_64-1_bbsb.xzm
https://copy.com/7EybmySu36V2xL3V

You will need to add the bumblebee group and assign the user. For my laptop, I need to apply a patch to /usr/sbin/bumblebeed
Run the below script:-

Code: Select all

#!/bin/bash
groupadd bumblebee
usermod -G bumblebee -a root
cp /usr/sbin/bumblebeed{,.orig}
sed -i 's/PCI:%02x:%02x:%o/PCI:%02d:%02d:%d/' /usr/sbin/bumblebeed
chmod 755 /etc/rc.d/rc.bumblebeed
/etc/rc.d/rc.bumblebeed start
sleep 1
optirun -vvvvvvvv glxheads
exit
FYI I'm on Porteus 64bit KDE running copytoram mode without saving changes.
My hardware is HP Pavilion 15-n238tx F7Q90PA.

Code: Select all

# lspci | grep 3D
0a:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev ff)
The main problem that has bugged me since last year August 2014 is Optirun not working and displaying an empty error message.
If you start the process via /usr/sbin/bumblebeed, you will see more error message like Invalid isolated device specification
The root cause of the problem is HP design the laptop with nvidia card using high device bus ID. Hence for the time being the patch is require.
cp /usr/sbin/bumblebeed{,.orig}
sed -i 's/PCI:%02x:%02x:%o/PCI:%02d:%02d:%d/' /usr/sbin/bumblebeed


Finally it is working. :Yahoo!: :Yahoo!:

Screenshot:-
Image

References:-
1. http://docs.slackware.com/howtos:hardwa ... ia_optimus
2. https://github.com/Bumblebee-Project/Bu ... issues/573

Post Reply