Симптомы
Если вы получите эти ошибки с помощью optirun playonlinux или optirun -b playonlinux:
[ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ERROR]Could not connect to bumblebee daemon - is it running?
Тогда ваш файл конфеты bumbleblee не будет обновлен.
Симптомы
Вы можете скопировать / пропустить команды тезисов в терминале:
#!/bin/bash
# Get the old nvidia version used by the conf file
oldNvidiaVersion=`cat /etc/bumblebee/bumblebee.conf |grep "KernelDriver=nvidia" | cut -d- -f2`
# Get the current nvidia version
nvidiaVersion=`find /lib/modules/$(uname -r) -name 'nvidia_???.ko*' | cut -d_ -f2 |cut -d. -f1`
echo "nvidiaVersion : $oldNvidiaVersion => $nvidiaVersion"
# Test the update the Bumblebee conf file
# cat /etc/bumblebee/bumblebee.conf | sed "s/$oldNvidiaVersion/$nvidiaVersion/g"
# Update the Bumblebee conf file
echo "Update /etc/bumblebee/bumblebee.conf ..."
sudo sed -i "s/$oldNvidiaVersion/$nvidiaVersion/g" /etc/bumblebee/bumblebee.conf
echo done.
# Restart bumblebeed deamon
sudo systemctl restart bumblebeed.service
Необязательно: если вы часто обновляете свои драйверы nvidia , вы можете сохранить эти команды в файле bumbleble_update_conf.sh, затем chmmod +x bumbleble_update_conf.sh и выполнить его ./bumbleble_update_conf.sh
Теперь optirun playonlinux или optirun -b playonlinux должны работать!