I’m trying to connect an i2c LCD to my raspberry pi with OSMC. I followed all the steps of this page [OSMC Forums][1], excepting the first one: changing the kernel.
But LCDd doesn’t work, it says that there is an error reading the LCDd.conf file.
My LCD is a HD44780 size 16x2, and the i2c chip uses i2c address 0x27.
Here’s the LCDd.conf file:
## This file was written by cme command.
## You can run 'cme edit <application>' to modify this file.
## Run 'cme list' to get the list of applications available on your system
## You may also modify the content of this file with your favorite editor.
[server]
Driver=hd44780
DriverPath=/usr/lib//lcdproc/
NextScreenKey=Right
PrevScreenKey=Left
ReportToSyslog=yes
ToggleRotateKey=Enter
[hd44780]
Backlight=yes
ConnectionType=i2c
DelayBus=false
DelayMult=1
Device=/dev/i2c-1
Keypad=no
OutputPort=no
Port=0x27
Size=16x2
Speed=0
[menu]
DownKey=Down
EnterKey=Enter
MenuKey=Escape
UpKey=Up
Also, while intalling the packages i2c-tools and lcdproc, dpkg gave some errors:
osmc@osmc:~$ sudo apt-get install i2c-tools lcdproc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libalgorithm-diff-perl libcarp-assert-more-perl libcarp-assert-perl
libclass-data-inheritable-perl libclone-perl libconfig-model-lcdproc-perl
libconfig-model-perl libdevel-stacktrace-perl libexception-class-perl
libfile-homedir-perl libfile-which-perl libhash-merge-perl libjson-perl
liblist-moreutils-perl liblog-log4perl-perl libmouse-perl
libmousex-nativetraits-perl libmousex-strictconstructor-perl
libparse-recdescent-perl libpath-tiny-perl libpod-pom-perl libtext-diff-perl
libyaml-perl
Suggested packages:
libi2c-dev python-smbus libconfig-model-dpkg-perl
libconfig-model-openssh-perl libterm-readline-perl-perl
libterm-readline-gnu-perl libdbd-csv-perl libxml-dom-perl libyaml-shell-perl
Recommended packages:
read-edid lcdproc-extra-drivers libalgorithm-diff-xs-perl
libconfig-model-tkui-perl bash-completion libfuse-perl libjson-xs-perl
liblog-dispatch-perl libipc-shareable-perl libclass-method-modifiers-perl
libunicode-utf8-perl libyaml-libyaml-perl libyaml-syck-perl
The following NEW packages will be installed:
i2c-tools lcdproc libalgorithm-diff-perl libcarp-assert-more-perl
libcarp-assert-perl libclass-data-inheritable-perl libclone-perl
libconfig-model-lcdproc-perl libconfig-model-perl libdevel-stacktrace-perl
libexception-class-perl libfile-homedir-perl libfile-which-perl
libhash-merge-perl libjson-perl liblist-moreutils-perl liblog-log4perl-perl
libmouse-perl libmousex-nativetraits-perl libmousex-strictconstructor-perl
libparse-recdescent-perl libpath-tiny-perl libpod-pom-perl libtext-diff-perl
libyaml-perl
0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2328 kB of archives.
After this operation, 6535 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package libalgorithm-diff-perl.
(Reading database ... 23695 files and directories currently installed.)
Preparing to unpack .../libalgorithm-diff-perl_1.19.02-3_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.02-3) ...
Selecting previously unselected package libcarp-assert-perl.
Preparing to unpack .../libcarp-assert-perl_0.21-1_all.deb ...
Unpacking libcarp-assert-perl (0.21-1) ...
Selecting previously unselected package libcarp-assert-more-perl.
Preparing to unpack .../libcarp-assert-more-perl_1.14-1_all.deb ...
Unpacking libcarp-assert-more-perl (1.14-1) ...
Selecting previously unselected package libclass-data-inheritable-perl.
Preparing to unpack .../libclass-data-inheritable-perl_0.08-2_all.deb ...
Unpacking libclass-data-inheritable-perl (0.08-2) ...
Selecting previously unselected package libclone-perl.
Preparing to unpack .../libclone-perl_0.37-1+b1_armhf.deb ...
Unpacking libclone-perl (0.37-1+b1) ...
Selecting previously unselected package libdevel-stacktrace-perl.
Preparing to unpack .../libdevel-stacktrace-perl_1.3400-1_all.deb ...
Unpacking libdevel-stacktrace-perl (1.3400-1) ...
Selecting previously unselected package libexception-class-perl.
Preparing to unpack .../libexception-class-perl_1.38-1_all.deb ...
Unpacking libexception-class-perl (1.38-1) ...
Selecting previously unselected package libfile-which-perl.
Preparing to unpack .../libfile-which-perl_1.09-1_all.deb ...
Unpacking libfile-which-perl (1.09-1) ...
Selecting previously unselected package libfile-homedir-perl.
Preparing to unpack .../libfile-homedir-perl_1.00-1_all.deb ...
Unpacking libfile-homedir-perl (1.00-1) ...
Selecting previously unselected package libhash-merge-perl.
Preparing to unpack .../libhash-merge-perl_0.200-1_all.deb ...
Unpacking libhash-merge-perl (0.200-1) ...
Selecting previously unselected package libjson-perl.
Preparing to unpack .../libjson-perl_2.61-1_all.deb ...
Unpacking libjson-perl (2.61-1) ...
Selecting previously unselected package liblist-moreutils-perl.
Preparing to unpack .../liblist-moreutils-perl_0.33-2+b1_armhf.deb ...
Unpacking liblist-moreutils-perl (0.33-2+b1) ...
Selecting previously unselected package liblog-log4perl-perl.
Preparing to unpack .../liblog-log4perl-perl_1.44-1_all.deb ...
Unpacking liblog-log4perl-perl (1.44-1) ...
Selecting previously unselected package libmouse-perl.
Preparing to unpack .../libmouse-perl_2.3.0-1+b1_armhf.deb ...
Unpacking libmouse-perl (2.3.0-1+b1) ...
Selecting previously unselected package libmousex-nativetraits-perl.
Preparing to unpack .../libmousex-nativetraits-perl_1.09-2_all.deb ...
Unpacking libmousex-nativetraits-perl (1.09-2) ...
Selecting previously unselected package libmousex-strictconstructor-perl.
Preparing to unpack .../libmousex-strictconstructor-perl_0.02-1_all.deb ...
Unpacking libmousex-strictconstructor-perl (0.02-1) ...
Selecting previously unselected package libparse-recdescent-perl.
Preparing to unpack .../libparse-recdescent-perl_1.967009+dfsg-1_all.deb ...
Unpacking libparse-recdescent-perl (1.967009+dfsg-1) ...
Selecting previously unselected package libpath-tiny-perl.
Preparing to unpack .../libpath-tiny-perl_0.058-1_all.deb ...
Unpacking libpath-tiny-perl (0.058-1) ...
Selecting previously unselected package libpod-pom-perl.
Preparing to unpack .../libpod-pom-perl_0.29-1_all.deb ...
Unpacking libpod-pom-perl (0.29-1) ...
Selecting previously unselected package libtext-diff-perl.
Preparing to unpack .../libtext-diff-perl_1.41-1_all.deb ...
Unpacking libtext-diff-perl (1.41-1) ...
Selecting previously unselected package libyaml-perl.
Preparing to unpack .../libyaml-perl_1.13-1_all.deb ...
Unpacking libyaml-perl (1.13-1) ...
Selecting previously unselected package libconfig-model-perl.
Preparing to unpack .../libconfig-model-perl_2.061-1_all.deb ...
Unpacking libconfig-model-perl (2.061-1) ...
Selecting previously unselected package libconfig-model-lcdproc-perl.
Preparing to unpack .../libconfig-model-lcdproc-perl_2.042-3_all.deb ...
Unpacking libconfig-model-lcdproc-perl (2.042-3) ...
Selecting previously unselected package i2c-tools.
Preparing to unpack .../i2c-tools_3.1.1-1_armhf.deb ...
Unpacking i2c-tools (3.1.1-1) ...
Selecting previously unselected package lcdproc.
Preparing to unpack .../lcdproc_0.5.7-2_armhf.deb ...
Unpacking lcdproc (0.5.7-2) ...
Setting up libalgorithm-diff-perl (1.19.02-3) ...
Setting up libcarp-assert-perl (0.21-1) ...
Setting up libcarp-assert-more-perl (1.14-1) ...
Setting up libclass-data-inheritable-perl (0.08-2) ...
Setting up libclone-perl (0.37-1+b1) ...
Setting up libdevel-stacktrace-perl (1.3400-1) ...
Setting up libexception-class-perl (1.38-1) ...
Setting up libfile-which-perl (1.09-1) ...
Setting up libfile-homedir-perl (1.00-1) ...
Setting up libhash-merge-perl (0.200-1) ...
Setting up libjson-perl (2.61-1) ...
Setting up liblist-moreutils-perl (0.33-2+b1) ...
Setting up liblog-log4perl-perl (1.44-1) ...
Setting up libmouse-perl (2.3.0-1+b1) ...
Setting up libmousex-nativetraits-perl (1.09-2) ...
Setting up libmousex-strictconstructor-perl (0.02-1) ...
Setting up libparse-recdescent-perl (1.967009+dfsg-1) ...
Setting up libpath-tiny-perl (0.058-1) ...
Setting up libpod-pom-perl (0.29-1) ...
Setting up libtext-diff-perl (1.41-1) ...
Setting up libyaml-perl (1.13-1) ...
Setting up libconfig-model-perl (2.061-1) ...
Setting up libconfig-model-lcdproc-perl (2.042-3) ...
Setting up i2c-tools (3.1.1-1) ...
/run/udev or .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation.
Setting up lcdproc (0.5.7-2) ...
Fixing lcdproc configuration...
Warning in 'server DriverPath' value '/usr/lib//lcdproc/': missing DriverPath dir (code is: ' defined $_ ? -d : 1')
Can't exec "/usr/bin/dpkg-architecture": No such file or directory at (eval 73) line 1, <GEN0> line 58.
cannot run dpkg-architecture at (eval 73) line 2, <GEN0> line 58.
Use of uninitialized value $triplet in scalar chomp at (eval 73) line 3, <GEN0> line 58.
Use of uninitialized value $triplet in concatenation (.) or string at (eval 73) line 4, <GEN0> line 58.
Can't exec "/usr/bin/dpkg-architecture": No such file or directory at (eval 75) line 1, <GEN0> line 58.
cannot run dpkg-architecture at (eval 75) line 2, <GEN0> line 58.
Use of uninitialized value $triplet in scalar chomp at (eval 75) line 3, <GEN0> line 58.
Use of uninitialized value $triplet in concatenation (.) or string at (eval 75) line 4, <GEN0> line 58.
Can't exec "/usr/bin/dpkg-architecture": No such file or directory at (eval 129) line 1.
cannot run dpkg-architecture at (eval 129) line 2.
Use of uninitialized value $triplet in scalar chomp at (eval 129) line 3.
Use of uninitialized value $triplet in concatenation (.) or string at (eval 129) line 4.
Can't exec "/usr/bin/dpkg-architecture": No such file or directory at (eval 131) line 1.
cannot run dpkg-architecture at (eval 131) line 2.
Use of uninitialized value $triplet in scalar chomp at (eval 131) line 3.
Use of uninitialized value $triplet in concatenation (.) or string at (eval 131) line 4.
Can't exec "/usr/bin/dpkg-architecture": No such file or directory at (eval 134) line 1.
cannot run dpkg-architecture at (eval 134) line 2.
Use of uninitialized value $triplet in scalar chomp at (eval 134) line 3.
Use of uninitialized value $triplet in concatenation (.) or string at (eval 134) line 4.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
osmc@osmc:~$**strong text**
So, I don’t know where’s the problem and I don’t know how to solve it.
Did anyone get an HD44780 LCD display working through i2c in OSMC?
And if it’s possible, what am I doing wrong?
[1]: OSMC Forums