Compile lcdproc hd44780 driver on Raspberry Pi running Debian Stretch

In order to get my 20×4 LCD display with cheap IIC/I2C/TWI/SPI Serial Interface Board running on Raspberry Pi I had to use patched file downloaded from NeighborGeek. You can check it out here

This worked fine on my RPi3 running Debian Jessie, but recently I have upgraded to Stretch and found out that his driver now is having issues. After running for longer period of time the screen would be full of garbage characters.

I thought I could repeat the steps, download source, patch the source, compile and use again file instead of the one provided by distribution.

First thing I did was to download latest source from GitHub:

cd lcdproc-master

Now I tried to apply the hd44780-i2c.c patch but it failed. Then I checked the hd44780-i2c.c file in the source I found out that patch is no longer needed just proper configuration in LCDd.conf.

In order to compile the latest driver from GitHub following steps are needed:

./configure --disable-libusb --disable-libusb-1-0 --enable-drivers=hd44780 --disable-libftdi

After you have compiled the driver, go to directory:

 cd /usr/lib/arm-linux-gnueabihf/lcdproc/

and backup existing file just in case something goes wrong:


Then copy the newly compiled driver in proper place:

cp /usr/local/src/lcdproc-master/server/drivers/ .

Edit LCDd.conf and add the following after hd44780 part:


You can download my newly compiled driver and LCDd.conf from this link  hd44780_debian_stretch.

I hope this has saved you some time and got your 20×4 LCD working with Debian Stretch.

Install PHP 7.1 on Debian Jessie ARM 64bit architecture

I wanted to test PHP7 on my Debian Jessie install, but latest offered package in the repositories was 5.6.30+dfsg-0+deb8u1.

In order to install PHP 7.1 which was the latest at the time of this article, you need to add following repository by running following commands:

apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg
echo "deb $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
apt-get update

Continue reading “Install PHP 7.1 on Debian Jessie ARM 64bit architecture”

Switch axis in pifba retropie emulator configuration

I recently replaced original icade joystick made by Zippy with the one from Sanwa. In order to fit the new joystick properly in the icade I needed to rotate the base 90 degrees.

This means vertical axis is now horizontal one and vice versa. It’s easy to re-configure this in EmulationStation and all changes will be properly propagated to retroarch configuration files.

Where it fails short is some other emulator configuration files that need to be fixed manually. This was the chase with Final Burn Alpha (pifba) that I use for games like Metal Slug. Continue reading “Switch axis in pifba retropie emulator configuration”

Server side solution to stop redirect from http to https in Chrome

If you have configured your main web site domain to use SSL for example https://your.domain and https://www.your.domain and you have other sub-domains that you access without SSL you could face an issue where Chrome browser insists to use HTTPS on your sub-domains as well. This can cause problems accessing your sub-domain if it is not using SSL.

Even if you manually type http://subdomain.your.domain it will automatically redirect you to https://subdomain.your.domain Continue reading “Server side solution to stop redirect from http to https in Chrome”