z0rc / debumblebee

DEPRECATED. Don't use it anymore — Optimus graphics support for Debian through VirtualGL
http://suwako.nomanga.net/
GNU General Public License v3.0
26 stars 2 forks source link

Using optirun after suspend #35

Closed ghost closed 13 years ago

ghost commented 13 years ago

Hey.

I'm using optirun on Debian Wheezy on my Asus U36SD, powersave enabled. When the laptop wakes up from suspend I get this error message when I try to run optirun:

FATAL: Error inserting nvidia (/lib/modules/3.0.0-1-amd64/updates/dkms/nvidia.ko): No such device Enabling nVidia card failed. Error: debumblebee service was not able to start. Actually this means that launch of X server for nVidia card failed for some reason. You may check the log at /var/log/Xorg.8.log ERROR: Module nvidia does not exist in /proc/modules Disabling nVidia card succeded.

ghost commented 13 years ago

Stoping the service when suspending, and starting it again when it wakes up seems to solve it. This can be done automatically by creating file in /etc/pm/sleep.d, called for example 20_debumblebee, pasting this in it:

http://pastebin.com/0xsy3ELT

And running "chmod +x /etc/pm/sleep.d/20_debumblebee".

z0rc commented 13 years ago

Are you using power save feature?

ghost commented 13 years ago

Yes.