Message boards : Frequently Asked Questions (FAQ) : HOW TO - Add a Boinc Start Delay in Ubuntu
Author | Message |
---|---|
Boinc often starts up before the NVidia drivers load, especially just after you install or upgrade. When this happens Boinc does not see the GPU, and reports Missing GPU against any GPU tasks. You can prevent this by delaying the automatic start-up of Boinc.
| |
ID: 33781 | Rating: 0 | rate: / Reply Quote | |
The reason that works is because daemons that have been assigned lower numbers start before after daemons assigned higher numbers. The max number allowed is 99. The 99 causes Linux to start the boinc-client daemon near the end of the boot sequence but it doesn't guarantee it will start last. If other daemons have been assigned 99 then the boot algorithm might start boinc-client ahead of all the other daemons assigned 99. That's usually not a problem unless someone has done something silly and desperate like delay all services other than X until after X starts by assigning 99 to all of them. In that case boinc-client may very well start immediately after X and before the nvidia drivers load. It's rare but it does happen.
start()
{
log_begin_msg "Starting $DESC: $NAME"
Add the sleep command on a new line following the { like this:
start()
{
sleep 60
log_begin_msg "Starting $DESC: $NAME"
60 causes a 60 second pause, use whatever number of seconds you want to delay. Type ctrl-O followed by <enter> to save the file then ctrl-x to exit nano. No need to reboot at that time. The delay will occur next time you boot and every boot thereafter until you remove the sleep command. ____________ BOINC <<--- credit whores, pedants, alien hunters | |
ID: 33783 | Rating: 0 | rate: / Reply Quote | |
The first method did not work for me and I have not tried the second this method does. I am running Mint 15 which is based on Ubuntu Raring. echo "service boinc-client restart" | at now + 1 minutes So /etc/rc.local looks like: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. echo "service boinc-client restart" | at now + 1 minutes exit 0 Cheers! ____________ | |
ID: 34360 | Rating: 0 | rate: / Reply Quote | |
Message boards : Frequently Asked Questions (FAQ) : HOW TO - Add a Boinc Start Delay in Ubuntu