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
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)
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.


Screenshot:-

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