Started the deveoping of code with the Arduion Mega 1280, for easy access to IO. When I was done, I moved on to use Arduino Pro Mini ATmega328P clones from China.

The norwegian telling of time is a bit different from english. instead of “half past one”, we say “half two”. And “twenty past two” becomes “ten to half three”. So my code is pretty much useless for the rest of the world, unless you redo the logics.

Since I had spent so many hours trying on trying to fix this issue, I came to the conclusion that the easy fix was to just reinstall Ubuntu 16.04 with new driver install. And after the install, I would prevent the kernel from updating with this command:

I have build my own little cinema room with a 109″ projector screen. Through the years I have used prettu much every media player there is. There is allways some limitations on control, display and movie handling. The latest years I have used Kodi media player, formerly known as XBMC, on a Raspberry. First on a RPi 1, this could only play 720p smoothly, then on a RPi2 that played 1080p smooth, but not including DTS sound. At last we got RPi that plays 1080p with any sound perfectly.

But still I’ve had some glitches playing movies over the network, even with 100MBit networks speed. So I though there was some buffering problems. Found the settings for buffering, and killed my MicroSD card in a week…

I have a bunch of small SSD laying around, and some I have put in a USB cover. The SSD would handle all the buffering writes much better. And maybe it would be faster.

Here is the step by step guide that worked for me.

Download XBIAN Kodi, there are others, but this one have worked best for me.

<cache> – When set to 0 the cache will be written to disk instead of RAM<buffermode> – 1) Buffer all filesystems (including local)<readfactor> – This factor determines the max readrate in terms of readfactor * avg bitrate of a video file.

Starting up Xbian Kodi with this setup from SSD, and I can play 40GB Bluray rips *cough* I mean backups, over network with no problem. The menus are also much faster.

I bough an old desktop, since one of my other test desktops died. Of course I wanted to set it up for XMR mining. I spend countless hour trying to install some OS one it, but they all failed. Googled my ass off. Tested the memory – all red… Why didn´t I start with that. Anyway, this setup worked.

Since Ubuntu Server comes with no GUI, I used my Macbook with SSH, so I could copy+paste stuff. At Mac Terminal

1

ssh karstein@192.168.0.206

Accept crypt key and enter password. (Change IP and username).

Of all the tutorials I tried, the one from AMD got me the furthest. All the reboots are important. Updating the system.

For some reason wget did not work for me on this file, so I downloaded the file to my Macbook and copied to Ubunty with scp. From Mac Terminal, in download folder:

1

scp amdgpu-pro-17.30-465504.tar.xzkarstein@192.168.0.206:~/Downloads

Back to Ubuntu.

1

2

3

4

5

6

cd~/Downloads

sudo apt-get install xz-utils

tar-Jxvfamdgpu-pro-17.30-465504.tar.xz

cd amdgpu-pro-17.30-465504

./amdgpu-pro-install–y

sudo reboot

Check if you are member of the video group.

1

groups

If you are not in the group, add with this command (karstein = your username)

1

sudo usermod-a-Gvideo karstein

Log off and on again to make the change.

The AMDGPU-Pro driver package incorporates the ROCm component that can be optionally installed for running Compute/OpenCL applications. Not entirely sure if I need it for mining, but this step made stuff work.

1

sudo apt install-yrocm-amdgpu-pro

Install the opencl headers.

1

sudo apt-get install opencl-headers

Now for the XMR-STAK-AMD compile. Normally it works with just cmake, but I got so many errors – and again hours of googling. Cmake needs all the parameters. It is possible to make symlinks for the libraries, but for me that didn’t work.

There are lots of other settings to set, but these are the ones that makes it work. Intensity can probably go up to 7-800, but then the GPU got unstable and crashed. Some sites can use pool_password as identifier for your computers.

Completely uninstall anything in the Ubuntu repositories with nvidia-* A purge will completely uninstall programs and configuration.

1

sudo apt-get--purge remove nvidia-*

No need to create an xorg.conf file. If you have one, remove it (assuming you have a fresh OS install).

1

sudo rm/etc/X11/xorg.conf

Create theblacklist-nouveau.conf file

1

sudo nano/etc/modprobe.d/blacklist-nouveau.conf

Add these two lines:

1

2

blacklist nouveau

options nouveau modeset=0

Then do:

1

sudo update-initramfs-u

Reboot computer. Nothing should have changed in loading up menu. You should be taken to the login screen. Once there type: Ctrl + Alt + F1, and login to your user. Keep the next commands handy in another machine since now you are in tty.

In tty:

1

2

cd~/Downloads/nvidia_installers;

sudo service lightdm stop

The top line is a necessary step for installing the driver. Then do

1

2

sudo./NVIDIA-Linux-x86_64-340.104<strong>--no-opengl-files

</strong>

Direct quote from Abhijeet Kislay, and this is what makes the differense from ALL other tutorials and forum posts I have seen!

I cannot stress how important is the opengl flag in the above command. If you miss that, either you will get stuck in “login loop” or your computer would boot with a black screen at all times.

If you get a problem with the driver saying X is running, do this, and try again:

Completely uninstall anything in the Ubuntu repositories with nvidia-* A purge will completely uninstall programs and configuration.

1

sudo apt-get--purge remove nvidia-*

No need to create an xorg.conf file. If you have one, remove it (assuming you have a fresh OS install).

1

sudo rm/etc/X11/xorg.conf

Create theblacklist-nouveau.conf file

1

sudo nano/etc/modprobe.d/blacklist-nouveau.conf

Add these two lines:

1

2

blacklist nouveau

options nouveau modeset=0

Then do:

1

sudo update-initramfs-u

Reboot computer. Nothing should have changed in loading up menu. You should be taken to the login screen. Once there type: Ctrl + Alt + F1, and login to your user. Keep the next commands handy in another machine since now you are in tty.

In tty:

1

2

cd~/Downloads/nvidia_installers;

sudo service lightdm stop

The top line is a necessary step for installing the driver. Then do

1

2

sudo./NVIDIA-Linux-x86_64-340.104<strong>--no-opengl-files

</strong>

Direct quote from Abhijeet Kislay, and this is what makes the differense from ALL other tutorials and forum posts I have seen!

I cannot stress how important is the opengl flag in the above command. If you miss that, either you will get stuck in “login loop” or your computer would boot with a black screen at all times.

If you get a problem with the driver saying X is running, do this, and try again: