I am getting errors on V.18
I am SSH ONLY. No monitor. No Guake. No Gnome.
First error is after 1bash tries to stop TeamViewer -
Mon Jul 17 14:26:28 EDT 2017
Action: Removing ...
systemctl stop teamviewerd.service
Failed to stop teamviewerd.service: Unit teamviewerd.service not loaded.
fail
kill '/opt/teamviewer/tv_bin/script/teamviewer' - root (/home/m1/.local/share/teamviewer12 / /home/m1/.local/share/teamviewer12)
Failed to execute operation: No such file or directory
try again, full path...
Failed to execute operation: Invalid argument
Second error is when Maxximus007_AUTO_TEMPERATURE_CONTROL launches -
LAUNCHING: Maxximus007_AUTO_TEMPERATURE_CONTROL
process in Guake Tab
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
ERROR: The control display is undefined; please run `nvidia-settings --help`
for usage information.
I have to assume Temp Control has failed and is not working.
Can you consider launching temp control and watchdog NOT in Guake if "REMOTE" is chosen but in screens instead? I will try to change bash myself to make this happen.
Thanks
I will make a conditional execution for the teamviewer block and add the appropriate export cmd in the auto temp block to resolve those errors.
To get auto temp working ( almost positive this is the problem ) add this line:
I can make each open in a screen when remote is selected.
If you replace the:
if [ $Maxximus007_AUTO_TEMPERATURE_CONTROL == "YES" ]
block with:
if [ $Maxximus007_AUTO_TEMPERATURE_CONTROL == "YES" ]
then
cd /home/m1
rm /home/m1/p0
rm /home/m1/p1
rm /home/m1/p2
rm /home/m1/p3
rm /home/m1/p4
rm /home/m1/p5
rm /home/m1/p6
rm /home/m1/p7
rm /home/m1/p8
rm /home/m1/p9
rm /home/m1/p10
rm /home/m1/p11
rm /home/m1/p12
rm /home/m1/p13
rm /home/m1/t0
rm /home/m1/t1
rm /home/m1/t2
rm /home/m1/t3
rm /home/m1/t4
rm /home/m1/t5
rm /home/m1/t6
rm /home/m1/t7
rm /home/m1/t8
rm /home/m1/t9
rm /home/m1/t10
rm /home/m1/t11
rm /home/m1/t12
rm /home/m1/t13
rm /home/m1/fa
rm /home/m1/pa
rm /home/m1/td
rm /home/m1/rpl
sleep 2
echo $INDIVIDUAL_POWERLIMIT_0 > '/home/m1/p0'
echo $INDIVIDUAL_POWERLIMIT_1 > '/home/m1/p1'
echo $INDIVIDUAL_POWERLIMIT_2 > '/home/m1/p2'
echo $INDIVIDUAL_POWERLIMIT_3 > '/home/m1/p3'
echo $INDIVIDUAL_POWERLIMIT_4 > '/home/m1/p4'
echo $INDIVIDUAL_POWERLIMIT_5 > '/home/m1/p5'
echo $INDIVIDUAL_POWERLIMIT_6 > '/home/m1/p6'
echo $INDIVIDUAL_POWERLIMIT_7 > '/home/m1/p7'
echo $INDIVIDUAL_POWERLIMIT_8 > '/home/m1/p8'
echo $INDIVIDUAL_POWERLIMIT_9 > '/home/m1/p9'
echo $INDIVIDUAL_POWERLIMIT_10 > '/home/m1/p10'
echo $INDIVIDUAL_POWERLIMIT_11 > '/home/m1/p11'
echo $INDIVIDUAL_POWERLIMIT_12 > '/home/m1/p12'
echo $INDIVIDUAL_POWERLIMIT_13 > '/home/m1/p13'
echo $TARGET_TEMP_0 > '/home/m1/t0'
echo $TARGET_TEMP_1 > '/home/m1/t1'
echo $TARGET_TEMP_2 > '/home/m1/t2'
echo $TARGET_TEMP_3 > '/home/m1/t3'
echo $TARGET_TEMP_4 > '/home/m1/t4'
echo $TARGET_TEMP_5 > '/home/m1/t5'
echo $TARGET_TEMP_6 > '/home/m1/t6'
echo $TARGET_TEMP_7 > '/home/m1/t7'
echo $TARGET_TEMP_8 > '/home/m1/t8'
echo $TARGET_TEMP_9 > '/home/m1/t9'
echo $TARGET_TEMP_10 > '/home/m1/t10'
echo $TARGET_TEMP_11 > '/home/m1/t11'
echo $TARGET_TEMP_12 > '/home/m1/t12'
echo $TARGET_TEMP_13 > '/home/m1/t13'
echo $__FAN_ADJUST > '/home/m1/fa'
echo $POWER_ADJUST > '/home/m1/pa'
echo $ALLOWED_TEMP_DIFF > '/home/m1/td'
echo $RESTORE_POWER_LIMIT > '/home/m1/rpl'
echo ""
echo "LAUNCHING: Maxximus007_AUTO_TEMPERATURE_CONTROL "
HCD='/home/m1/Maxximus007_AUTO_TEMPERATURE_CONTROL'
running=$(ps -ef | awk '$NF~"Maxximus007_AUTO_TEMPERATURE_CONTROL" {print $2}')
if [ "$running" == "" ]
then
EXPORT DISPLAY=:0
if [ $LOCALorREMOTE == "LOCAL" ]
then
guake -n $HCD -r Maxximus007_AUTO_TEMPERATURE_CONTROL -e "bash /home/m1/Maxximus007_AUTO_TEMPERATURE_CONTROL"
echo ""
echo "process in guake terminal (f12)"
echo ""
fi
if [ $LOCALorREMOTE == "REMOTE" ]
then
screen -dmS autotemp $HCD
echo ""
echo "process in screen autotemp; attach with: screen -r autotemp"
echo ""
fi
running=""
fi
fi
it should implement this change (but I haven't tested it)
Ok I added export DISPLAY=:0 to fist line of bash and now the script goes further.
But still I am getting the error I have posted below and no additional screens are starting.
Also I just discovered that the switch IAmNotAJeep_and_Maxximus007_WATCHDOG="YES" doesn't do anything! There is no code to go with the switch.
I will try to edit bash and stick it in there. I must be the only person using SSH lol. Why am I the only one finding all these issues?
Also we need discuss the new way to launch the miner using SSH and 2unix and 1bash. The way it's set up now is you use Putty or whatever and SSH to server. Then WITHOUT using a screen you execute " bash '/home/m1/2unix' ". Then what happens is the terminal displays some stuff and just stops when the bash launches the miner. So now you are left with a terminal screen that is just stopped and a miner screen you can't get to. The only way to get to it is terminate the terminal, re-log in and screen -r OR CTRL-c the current terminal screen and then screen -r. I am a Linux noob but seems to me there should be a better way. version 17 was simpler IMO. Open terminal, create a screen and execute bash. I think your doing it this way to automate a screen and miner in the case of a power up or reboot.
So in summary -
A: Watchdog not launching as code is missing
B: Errors on launch trying to execute something it can't find (BTW miner still launches and works in spite of error)
C: No idea if temp control working because I still can't get it to execute it's own screen
D: Funky startup procedure for SSH users
I love your work and really appreciate it. These are not criticisms, just notes to try to help...
dos2unix: converting file /home/m1/1bash to Unix format ...
workername: nv136
rig IP: 10.0.0.136
03:00.0 VGA compatible controller: NVIDIA Corporation Device 1c02 (rev a1)
04:00.0 VGA compatible controller: NVIDIA Corporation Device 1b81 (rev a1)
22:00.0 VGA compatible controller: NVIDIA Corporation Device 1c02 (rev a1)
23:00.0 VGA compatible controller: NVIDIA Corporation Device 1c02 (rev a1)
Tue Jul 18 09:47:50 2017
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.47 Driver Version: 384.47 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 106... Off | 00000000:03:00.0 On | N/A |
| 79% 58C P8 12W / 125W | 94MiB / 3012MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 1070 Off | 00000000:04:00.0 Off | N/A |
| 54% 61C P8 10W / 125W | 10MiB / 8114MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 2 GeForce GTX 106... Off | 00000000:22:00.0 Off | N/A |
| 56% 57C P8 13W / 125W | 2MiB / 3013MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 3 GeForce GTX 106... Off | 00000000:23:00.0 Off | N/A |
| 57% 59C P8 14W / 125W | 2MiB / 3013MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1293 G /usr/lib/xorg/Xorg 69MiB |
| 0 1925 G compiz 21MiB |
| 1 1293 G /usr/lib/xorg/Xorg 7MiB |
+-----------------------------------------------------------------------------+
ENVIRONMENTAL VARIBLES SET
Tue Jul 18 09:47:50 EDT 2017
Action: Removing ...
systemctl stop teamviewerd.service
Failed to stop teamviewerd.service: Unit teamviewerd.service not loaded.
fail
kill '/opt/teamviewer/tv_bin/script/teamviewer' - root (/home/m1/.local/share/teamviewer12 / /home/m1/.local/share/teamviewer12)
Failed to execute operation: No such file or directory
try again, full path...
Failed to execute operation: Invalid argument
LAUNCHING: Maxximus007_AUTO_TEMPERATURE_CONTROL
Attribute 'GPUGraphicsClockOffset' (m1-desktop:0[gpu:0]) assigned value 100.
Attribute 'GPUMemoryTransferRateOffset' (m1-desktop:0[gpu:0]) assigned value
1000.
Attribute 'GPUGraphicsClockOffset' (m1-desktop:0[gpu:1]) assigned value 100.
Attribute 'GPUMemoryTransferRateOffset' (m1-desktop:0[gpu:1]) assigned value
1000.
Attribute 'GPUPowerMizerMode' (m1-desktop:0[gpu:0]) assigned value 2.
Attribute 'GPUPowerMizerMode' (m1-desktop:0[gpu:1]) assigned value 2.
Attribute 'GPUPowerMizerMode' (m1-desktop:0[gpu:2]) assigned value 2.
Attribute 'GPUPowerMizerMode' (m1-desktop:0[gpu:3]) assigned value 2.
These warnings I have too, but they don't stop the script. What probably doesn't work over ssh is the guake starts. At least you can't see them over ssh. Will try later, have just set up a new rig (but currently with monitor) with V18. I personally change these all to different screens, way easier over ssh.
But the scripts are there thats for sure, pls check again in your home directory. And I think they run as well, in your home directory you'll find the following files: 3_autotemplog and 4_restartlog.
type tail 3_autotemplog to see the last messages.
If you're using ssh, and want to move around, install mc (sudo apt install mc), it is like Norton Commander a looong time ago, but helpful here.