Bumblebee-Project / Bumblebee

Bumblebee daemon and client rewritten in C
http://www.bumblebee-project.org/
GNU General Public License v3.0
1.29k stars 142 forks source link

Bumblebee freezes system on boot (Debian) #1036

Open dalechyn opened 5 years ago

dalechyn commented 5 years ago

Hi. I am using ParrotOS (a Debian derivative), and me and other users are having the issue with nvidia-driver 418.88 on 5.2.20 kernel. The workaround around this bug is putting a delay between starting bumblebeed service right after starting of desktop-manager service. It literally looks like this: # systemctl edit bumblebeed.service

[Unit]
After=display-manager.service
BindsTo=display-manager.service

[Service]
Type=idle
ExecStartPre=/bin/sleep 5

Steps to reproduce: you need to have 5.2.20 kernel, install nvidia-driver 418.88 and bumblebee 3.2.1-20.

PalinuroSec commented 5 years ago

this patch to bumblebee seems to solve the issue, but it is a dirty hack and some help from upstream would be useful to better understand the cause of the bug and develop a better solution

https://github.com/ParrotSec/bumblebee/blob/master/debian/patches/fix-dm-race-condition.patch https://nest.parrotsec.org/debian-packages/bumblebee/blob/master/debian/patches/fix-dm-race-condition.patch

vincent-rg commented 5 years ago

Solved the freeze issue on boot for me (Debian 10 / Kernel 4.19.0.6). Laptop: MSI GS60-6QE (GTX970M / Intel HD Graphics 530). Still have an issue with nvidia driver unable to unload.

yurii-github commented 5 years ago

h0tw4t3r, your workaround worked for me

Linux laptop 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64 GNU/Linux
bumblebeed (Bumblebee) 3.2.1

vincent-rg, you probably have file at /etc/X11/xorg.conf which contains line like "Driver "nvidia"" or something

pablodz commented 4 years ago

Nice, I was looking for this for 3 months.

ranjithshegde commented 4 years ago

I will test it today on my Arch. Any exceptions? I ask because the only way to recover the system in case this does not work is to chroot into my system with a live USB, which i dont fancy carrying around everywhere.

An alternate solution I am using is to enable bumblebeed from startx - xinit or xsession and setting alias to reboot and shutdown by adding bumblebeed disable

EDIT: Works like a charm! Thanks a lot. I will specify this method on other open issues for the same problem!

asctime commented 8 months ago

This is is still an issue in Bookworm. Three years later.

Everything works fine when run manually (systemctl, dm start etc) but we are still choking on a boot sequence.

Thanks for the fix, works as advertised.