Gentoo & ATI HD4650 GPU
log in

Advanced search

Message boards : Unix/Linux : Gentoo & ATI HD4650 GPU

Author Message
Trog Dog
Send message
Joined: 11 Dec 10
Posts: 1
Credit: 11,151,363
RAC: 0
Message 11068 - Posted: 19 Jan 2011, 13:20:02 UTC

I can start boinc_client from a root terminal (or sudo !! user terminal) within gnome and it recognises the gpu - but not using /etc/init.d/boinc - does anyone know how to do this in Gentoo

wynx
Send message
Joined: 11 Nov 10
Posts: 1
Credit: 23,438,233
RAC: 0
Message 11153 - Posted: 26 Jan 2011, 21:36:52 UTC

The problem with the current boinc release (from distro presumably) is that the boinc-client is started too early in the boot process (without X-server started).
Also, the x-server is not even started with the normal etc/init.d/boinc-client.

For that last problem; to be able to use X-server, the /etc/init.d/boinc-client needs to be modded:

Around line 92, look for snippet:
------------
start()
{
log_begin_msg "Starting $DESC: $NAME"
if is_running; then
log_progress_msg "already running"
else
start-stop-daemon --start --quiet --background --pidfile $PIDFILE \
--make-pidfile --user $BOINC_USER --chuid $BOINC_USER \
--chdir $BOINC_DIR --exec $BOINC_CLIENT -- $BOINC_OPTS
fi
log_end_msg 0

if [ "$SCHEDULE" = "1" ]; then
schedule
fi
}
---------
add lines:
---------
start()
{
log_begin_msg "Starting $DESC: $NAME"
if is_running; then
log_progress_msg "already running"
else
sleep 10
xhost local:boinc
start-stop-daemon --start --quiet --background --pidfile $PIDFILE \
--make-pidfile --user $BOINC_USER --chuid $BOINC_USER \
--chdir $BOINC_DIR --exec $BOINC_CLIENT -- $BOINC_OPTS
fi
log_end_msg 0

if [ "$SCHEDULE" = "1" ]; then
schedule
fi
}
---------

You should now be able to start boinc manually by executing /etc/init.d/boinc-client as root (or sudo).
Note that the process can only be started when an xterm is running, so if you want to automate the process you need to script it in a way that it runs after for example a user login (havent tested this myself).

Good luck.


Post to thread

Message boards : Unix/Linux : Gentoo & ATI HD4650 GPU


Main page · Your account · Message boards


Copyright © 2018 Jon Sonntag; All rights reserved.