Questions and Answers :
GPU applications :
Cuda device initialisation failed after sleep/hibernate
Message board moderation
Author | Message |
---|---|
darsie Send message Joined: 8 Nov 01 Posts: 7 Credit: 456,918 RAC: 9 ![]() |
After sleeping my PC I get "Postponed: Cuda device initialisation failed". Rebooting cures it, but I don't want to do that. IIRC there's a "computation error" at first. The card works fine with Kerbal Space Program and the xfce desktop during this condition. debian/Linux 10/buster nvidia GTX 750 Ti core2 quad 3 GHz |
darsie Send message Joined: 8 Nov 01 Posts: 7 Credit: 456,918 RAC: 9 ![]() |
Looks like remnants of old graphics drivers was the issue. I replaced my nvidia quadro fx 1800 with a GTX 750 Ti. To deinstall the old drivers I removed/purged the nvidia-legacy-340xx-driver, IIRC, which also removed a lot of packages it depended on. While doing an unrelated aptitude full-upgrade I noticed some 340xx packages were still there and would get upgraded, so I removed them and now CUDA works fine after sleep/hibernation. |
darsie Send message Joined: 8 Nov 01 Posts: 7 Credit: 456,918 RAC: 9 ![]() |
It's happening again. I also got "No usable GPU found" before. Reboot fixed it, till the next hibernate/sleep or so. |
![]() ![]() ![]() ![]() Send message Joined: 15 May 99 Posts: 3832 Credit: 1,114,826,392 RAC: 3,319 ![]() ![]() |
|
darsie Send message Joined: 8 Nov 01 Posts: 7 Credit: 456,918 RAC: 9 ![]() |
I did now. That avoided the failure. Maybe I can do that in a sleep/hibernation/wakeup script. |
Grant (SSSF) Send message Joined: 19 Aug 99 Posts: 13904 Credit: 208,696,464 RAC: 304 ![]() ![]() |
Sounds like Seti is starting up again, but before the video driver has been revived. Grant Darwin NT |
darsie Send message Joined: 8 Nov 01 Posts: 7 Credit: 456,918 RAC: 9 ![]() |
I created the file /lib/systemd/system-sleep/boinc-client with this content: #!/bin/sh case $1 in pre) service boinc-client stop ;; post) service boinc-client start ;; esac Works so far. See also man systemd-suspend.service. Please reply to this thread when this hack is no longer needed. thx. |
©2025 University of California
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.