Hi again!
I posted a question in the Nvidia developer forums and was made aware of
this
<http://sourceforge.net/p/darktable/mailman/darktable-users/thread/CANz0AchwpTTZB0mRtFiyY-uj-XcNnwNk3HyQ9ugb_wL3DdejBA%40mail.gmail.com/#msg32641742>
thread
on the Darktable list, which I had not found before. It suggested
installing the nvidia-modprobe package, which among other things makes
shure the nvidia-uvm module is loaded. So I started from scratch with a
fresh install of Mint 17, added xorg-edgers ppa and installed the
Nvidia-340-driver with Driver Manager, then

---

sudo apt-get install nvidia-settings nvidia-opencl-icd-340 nvidia-340-uvm
nvidia-libopencl1-340 nvidia-prime

sudo apt-get install nvidia-cuda-toolkit
---

And then I installed nvidia-modprobe, downloaded from
http://packages.ubuntu.com/utopic/nvidia-modprobe.

After a reboot this actually worked. But I am not completely happy with the
Nvidia-Prime way of doing things, having to switch card in Nvidia-Settings
and then rebooting (logging off and on didn't work). I would prefer to use
Bumblebee, so I tried to install it again, with nvidia-modprobe. This is
what I did:

-------------------

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update

sudo apt-get install bumblebee bumblebee-nvidia primus nvidia-340
nvidia-340-uvm nvidia-lib

opencl1-340

sudo apt-get install nvidia-cuda-toolkit

Checked that /etc/bumblebee/bumblebee.conf was correct:

Driver=nvidia

KernelDriver=nvidia-340 PMMethod=auto # colon-separated path to the nvidia
libraries LibraryPath=/usr/lib/nvidia-340:/usr/lib32/nvidia-340 #
comma-separated path of the directory containing nvidia_drv.so and the #
default Xorg modules path
 XorgModulePath=/usr/lib/nvidia-340/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

Installed nvidia-modprobe again
Reinstalled bbswitch-dkms according to this tip
<http://www.themukt.com/2014/06/13/howto-install-nvidia-331-bumblebee-optimus-cards-ubuntu/>
.
Rebooted.
------------------

After all that I ran "optirun darktable -d opencl", and I got back the
"could not get platforms: -1001" error! And "lsmod | grep nvidia" while
darktable is running shows that only the nvidia module is loaded, and not
nvidia-uvm.


So I wonder: Have I missed something here? Or isn't it possible to use
nvidia-modprobe with Bumblebee?

Hans Petter

http://hpbirkeland.com

2014-10-30 16:07 GMT+01:00 Hans Petter Birkeland <[email protected]>:

> Pascal,
> thank you for your input. There are no options in my BIOS for disabling
> graphics, so I can't do that. As for HDMI, I don't use an external monitor
> for editing. I don't yet know if my use of HDMI will be affected, it's a
> minor concern anyway. Right now I only hope that someone with specific
> knowledge of the phrase '[opencl_init] could not get platforms: -1001' will
> comment. Meanwhile I continue my research.
>
> Hans Petter
>
> http://hpbirkeland.com
>
> 2014-10-30 15:45 GMT+01:00 Pascal Obry <[email protected]>:
>
>> Le jeudi 30 octobre 2014 à 15:07 +0100, Hans Petter Birkeland a écrit :
>> > Michael,
>> > I don't understand what you mean. One can not use Bumblebee without a
>> > driver. When installing Bumblebee and Bumblebee-nvidia, the Nvidia 304
>> > driver is installed by default. This driver has no support for my GTX
>> > 850M card, so I have to use 337 or newer.
>>
>> I come late into the discussion and I did not read the whole thread...
>> sorry if this has already been said.
>>
>> I've tried Bumblebee some time ago and was able to make it working with
>> my Debian box. But the HDMI was not working properly, so no external
>> screen for my photo editing. I'm using a big external screen when
>> editing my pictures, so it was not an option.
>>
>> I decided to disable the Intel card directly from the BIOS and using
>> only the NVDIA proprietary driver. With such configuration you do not
>> need Bumblebee at all. If your BIOS make this possible you should
>> consider using this option.
>>
>> This dual card thing is to save power... Well maybe, without using this
>> power saving mode my notebook still run for 3h on the battery.
>> I've recently tried to use nvidia-prime (equivalent to Bumblebee but
>> only available on Ubuntu) on a Ubuntu box of a friend. I must say that
>> the configuration was painful and even if the HDMI output displays
>> something I've never been able to setup the primary vs secondary screen
>> properly. That is, the external screen was forced to be the primary
>> one... All this to say that this Optimus support is not quite ready for
>> standard used on GNU/Linux.
>>
>>      A. Just wanted to share my experiences.
>>
>> Regards,
>>
>> --
>>   Pascal Obry /  Magny Les Hameaux (78)
>>
>>   The best way to travel is by means of imagination
>>
>>   http://v2p.fr.eu.org
>>   http://www.obry.net
>>
>>   gpg --keyserver keys.gnupg.net --recv-key F949BD3B
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Darktable-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/darktable-users
>>
>
>
------------------------------------------------------------------------------
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to