GPU detection issue on Linux Mint startup

Variable
Variable
Joined: 6 Oct 13
Posts: 31
Credit: 374525014
RAC: 969803
Topic 212126

So I'm trying Mint 18 as an alternative to Ubuntu for one of my machines.  Drivers, etc are all installed and Boinc will run my Radeon cards fine if I start up the boinc-client manually, however if I reboot, Boinc (loaded automatically at startup) does not recognize them.  It seems like Boinc might be just starting before the drivers or opencl libraries, etc are loaded?

I found this thread on the subject over at gpugrid: https://www.gpugrid.net/forum_thread.php?id=3533#33781

They describe a couple of different methods of trying to delay Boinc startup, but I have tried both and it hasn't fixed the issue.  Are there any other ways to do this, or other thoughts on what could be wrong?  I want the machine to be able to run itself if it restarts spontaneously for some reason.

mikey
mikey
Joined: 22 Jan 05
Posts: 3771
Credit: 357428399
RAC: 99728

Variable wrote:So I'm trying

Variable wrote:

So I'm trying Mint 18 as an alternative to Ubuntu for one of my machines.  Drivers, etc are all installed and Boinc will run my Radeon cards fine if I start up the boinc-client manually, however if I reboot, Boinc (loaded automatically at startup) does not recognize them.  It seems like Boinc might be just starting before the drivers or opencl libraries, etc are loaded?

I found this thread on the subject over at gpugrid: https://www.gpugrid.net/forum_thread.php?id=3533#33781

They describe a couple of different methods of trying to delay Boinc startup, but I have tried both and it hasn't fixed the issue.  Are there any other ways to do this, or other thoughts on what could be wrong?  I want the machine to be able to run itself if it restarts spontaneously for some reason.

You need to delay the startup of Boinc for like 60 seconds after the pc loads, that way all the drivers etc are loaded before Boinc starts up. I think there is something when you put it in the startup group for a time delay, I'm not a Linux guy but have been playing with it on and off.

Variable
Variable
Joined: 6 Oct 13
Posts: 31
Credit: 374525014
RAC: 969803

I'd love to delay the

I'd love to delay the startup. The real question is how, specifically?  I tried the "sleep XX" command in the boinc-client script, as described in that thread I linked, and it appears to have no effect.

Variable
Variable
Joined: 6 Oct 13
Posts: 31
Credit: 374525014
RAC: 969803

Well, I haven't been able to

Well, I haven't been able to actually change startup order, but I figured out how to hack my way around the problem. I created a custom script which restarts the boinc client, called by Mint's "startup applications" manager with a startup delay of 10 seconds.  Once the client is restarted with this delay it recognizes the GPU's just fine.  I had to disable the sudo password for my username to get this to work automatically. Before anyone lectures me on the security risks, let me say that I do not care. :)

mikey
mikey
Joined: 22 Jan 05
Posts: 3771
Credit: 357428399
RAC: 99728

Variable wrote:Well, I

Variable wrote:
Well, I haven't been able to actually change startup order, but I figured out how to hack my way around the problem. I created a custom script which restarts the boinc client, called by Mint's "startup applications" manager with a startup delay of 10 seconds.  Once the client is restarted with this delay it recognizes the GPU's just fine.  I had to disable the sudo password for my username to get this to work automatically. Before anyone lectures me on the security risks, let me say that I do not care. :)

I did the 'God mode' sudo password on my Linux pc's too, way too much command line stuff to get to things I need too otherwise. Now if I clicked to do something and it asked me for the password that would be fine, but it just says 'no you can't do that'.

mmonnin
mmonnin
Joined: 29 May 16
Posts: 157
Credit: 207746259
RAC: 545507

I also ran into this on my

I also ran into this on my Linux PC with Mint 17. I always had to restart the client after it booted when there was a GPU installed. It drove me crazy as all other indications shows there is a driver installed like clinfo, etc but BOINC never saw it.

AgentB
AgentB
Joined: 17 Mar 12
Posts: 914
Credit: 512466694
RAC: 2584

The much loved (well by me

The much loved (well by me anyway) boinc startup scripts were sidelined in the move to systemd, so making changes to them means they no longer have any effect during startup on debian based systems (which install boinc from their repo) running systemd (Mint 18, Ubuntu 16.04 etc)

The simplest thing to add a delay would be to add a

ExecStartPre=/bin/sleep 10

to the [Service] section using

sudo systemctl edit --full boinc-client.service

The old scripts should at least be commented about their new - non-function under systemd.

The correct way to stop and start boinc-client service is with systemctl commands.

Good luck.

mmonnin
mmonnin
Joined: 29 May 16
Posts: 157
Credit: 207746259
RAC: 545507

I've always used the commands

I've always used the commands given here to restart the client:

https://boinc.berkeley.edu/wiki/Stop_or_start_BOINC_daemon_after_boot

 

/etc/init.d/boinc-client restart

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.