All posts by johan

Code for the project presentation

Code for the project presentation:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>

#define TEXTER 4

char texten[TEXTER][255] = {
"Wake up, Matrix...",
"They are coming...",
"Follow the room edges...",
"Knock knock Matrix..."

int main(void){
int i,j = 0;
for(i=0;i < TEXTER;i++)
j = 0;
while(texten[i][j] != 0)
printf("%c", texten[i][j]);


OpenBSD gone, FreeBSD is my new laptop OS

I left the OpenBSD as a laptop project and installed FreeBSD instead.

The main thing that made me install FreeBSD instead of keep using OpenBSD is that i couldn’t use Matlab (this is used in my education) and Mplabx (which I use for programming PIC ciruits).

I installed virtualbox and installed ubuntu, and from there i installed both Mplabx and matlab with success.

If bhyve will come to OpenBSD, perhaps i can use USB passthrough and install a Linux machine from there and use X forwarding.

OpenBSD as a laptop

Im trying to get OpenBSD running as a laptop but there are some problems that i came across. The first one is OpenBSD x64 cannot run linux compability mode which makes it alot harder to use MatLab. Im thinking of running in under QEMU but i think that it will have worse performance though.

To compile projects with Arduino works good, its console based but i dont care about that. I will check if there is any possibility to use geany as an IDE for arduino.

I also want to be able to program microcontrollers, specificly the microchip controllers. I have bought an PICKIT3 and im trying to make it work under OpenBSD now. I noticed that QEMU does not support USB passthrough, that makes it alot harder to make it work though.


Lets see where it goes!

OpenBSD apmd patch and thinkpad x201 patch

I have sucessfully merged those two patches to work with openbsd 5.5 current. Thanks to jcs who made the original patch for the x201 laptop. and thanks for the patch from jjjesss who made that apmd patch.

Original links is here:

My customized patches can be found here:

Blomvattnar produkt.

Jag har skapat en blomvattnarprodukt (blomvattnarindikator) som notifierar användaren när det är dags att vattna blomman i sitt hem. Det är tänkt att det ska vara en enkel och billig design så att man kan ha en blomvattnarindikator för varje blomma som behöver vattnas.


Kretsschema läggs upp inom kort.

PIC16F1823 är microprocessorn som används för projektet.