Just wanted to say to say thank you thank you thank you.
Without this thread and the op taking the time to do all he has done my mining would have died b4 it had a chance to come alive.
2 rigs up and running with this now and once I have a few more will defo donate
Lol 3 weeks ago I didnt even know what linux really was and now look at me go.
lol Thanks !! Glad your enjoying linuxcoin !!
Anybody found a way to set Powertune via line command instead of AMDOverdriveCtrl for multiple adapters? I found this, but not sure I can run/compile it under Linuxcoin:
@krumplee: how do you use this undocumented function?
Download ADL SDK from
http://developer.amd.com/Downloads/ADL_SDK_3.0.zipIt is enough to copy adl_sdk.h into /usr/include
Save the following code as powercontrol.cpp
#include
#include
#include
using namespace std;
extern "C"
{
int ADL_Main_Control_Create (ADL_MAIN_MALLOC_CALLBACK, int);
int ADL_Adapter_NumberOfAdapters_Get(int *);
int ADL_Overdrive5_PowerControl_Set(int, int);
int ADL_Overdrive5_PowerControl_Get(int, int *, int *);
}
void* __stdcall Alloc ( int iSize )
{
void* lpBuffer = malloc ( iSize );
return lpBuffer;
}
void __stdcall ADL_Main_Memory_Free ( void** lpBuffer )
{
if ( NULL != *lpBuffer )
{
free ( *lpBuffer );
*lpBuffer = NULL;
}
}
int main()
{
int adapters, a=99, b=99;
if(ADL_Main_Control_Create (Alloc, 1) != ADL_OK)
{
cout << "ADL initialization error!" << endl;
return -1;
}
if(ADL_Adapter_NumberOfAdapters_Get(&adapters) != ADL_OK)
{
cout << "Cannot get the number of adapters!" << endl;
return -1;
}
cout << "Found " << adapters << " adapters" << endl;
for(int i=0; i {
if(ADL_Overdrive5_PowerControl_Set(i, 20) != ADL_OK)
{
cout << "Failed to set " << i << " power control" << endl;
return -1;
} else { cout << "Value set for " << i << endl; }
if(ADL_Overdrive5_PowerControl_Get(i, &a, &b) != ADL_OK)
{
cout << "Failed to get " << i << " power control" << endl;
return -1;
}
cout << "result: " << a << "%, b: " << b << endl;
}
return 0;
}
Finally compile:
g++ -DLINUX -o powercontrol powercontrol.cpp -latiadlxx
Should compile ? You should try it out and let us know. If it does you or I could add it to the wiki.
Should there be an associated block chain that distributes linuxcoins via mining?
Depends how you are mining. If your solo you will need to download the blockchain. If your in a pool then no.
Hi,
I want to run my mining script at startup. I'm using Linuxcoin 0.21b persistent on a thumb drive.
I put my script file (miner.sh) in /etc/init.d directory and used update-rc to register it. But nothing happen when linuxcoin finished booting.
I also tried to put the script in to local.rc but no luck.
Please help.
Here is miner.sh:
atitweak -m 300
atitweak -e 960
DISPLAY=0.0 aticonfig --pplib-cmd="set fanspeed 0 75"
DISPLAY=0.1 aticonfig --pplib-cmd="set fanspeed 0 75"
DISPLAY=0.2 aticonfig --pplib-cmd="set fanspeed 0 75"
DISPLAY=0.3 aticonfig --pplib-cmd="set fanspeed 0 75"
/usr/bin/x-terminal-emulator -t "worker0" -e /home/user/Desktop/deepbit0.sh
/usr/bin/x-terminal-emulator -t "worker1" -e /home/user/Desktop/deepbit1.sh
/usr/bin/x-terminal-emulator -t "worker2" -e /home/user/Desktop/deepbit2.sh
/usr/bin/x-terminal-emulator -t "worker3" -e /home/user/Desktop/deepbit3.sh
Each deepbit file has the same content:
If I run the miner.sh file in the root terminal manually, it run perfectly.
Please help me to resolve this problem.
copy and paste the following into a text file and call it mining.desktop
[Desktop Entry]
Name=start-miners
Comment=Simple script to start my miners
Type=Application
Exec=/path/to/youscript.sh
Terminal=false
Move that file into ~/.config/autostart and make your script executable.
mv mining.desktop ~/.config/autostart
chmod 777 /path/to/yourscript.sh
Reboot and your good to go. The reason your scripts not working when added to sysvinit is because your cards haven't been initialized until LXDE has started.
Has anyone else run into these problems with SmartCoin and LinuxCoin together? I tried the SmartCoin forum, but the developed said he'd never seen a problem like this.
I am running LinuxCoin 0.2b from a SSD with /home installed on a different partition. I have difficulties immediately when installing SmartCoin.
When I try to install SmartCoin from either ssh or using a vnc client, I get the below message before being asked for root permissions.
./smartcoin_install.sh: line 39: Log: command not found
SQLite header and source version mismatch
2011-05-19 13:26:54 ed1da510a239ea767a01dc332b667119fa3c908e
2011-06-23 19:49:22 4374b7e83ea0a3fbc3691f9c0c936272862f32f2
SQLite header and source version mismatch
2011-05-19 13:26:54 ed1da510a239ea767a01dc332b667119fa3c908e
2011-06-23 19:49:22 4374b7e83ea0a3fbc3691f9c0c936272862f32f2
SQLite header and source version mismatch
2011-05-19 13:26:54 ed1da510a239ea767a01dc332b667119fa3c908e
2011-06-23 19:49:22 4374b7e83ea0a3fbc3691f9c0c936272862f32f2
Everything is okay with 'updatedb' and installing dependencies. I manually checked that procmail, sqlite3, bc, sysstat, openssh-server are installed and updated.
Then I get this.
Setting up local machine in database...
SQLite header and source version mismatch
2011-05-19 13:26:54 ed1da510a239ea767a01dc332b667119fa3c908e
2011-06-23 19:49:22 4374b7e83ea0a3fbc3691f9c0c936272862f32f2
done.
Then it throws up the same SQlite header and source version mismatch error dozens of times and continues to give the same error when trying to auto-detect the GPUs and miners.
Locating the SDK path automatically works just fine.
If I decline the auto-detect and later manually try to add GPUs and miners manually, I get the following
SQLite header and source version mismatch
2011-05-19 13:26:54 ed1da510a239ea767a01dc332b667119fa3c908e
2011-06-23 19:49:22 4374b7e83ea0a3fbc3691f9c0c936272862f32f2
Please select the machine from the list above that is hosting this miner
I've tried purging sqlite3 and installing again to no avail. I'm stuck and don't know what to do. Any ideas?
Got to say I've never experienced this before. I can confirm the smartcoin is working great in 0.2-final and I'm working with the author to add additional features to smartcoin/linuxcoin. More info to follow.