This is related to getting my Imon LCD working (on a new Antec Fusion Black Remote enclosure ... LCD is model 15c2:0038).
I had a little success with the following command at the telnet prompt:
cp /etc/lcdproc.d/LCDd.conf.d/LCDd.conf /etc/LCDd.conf
/bin/sed -i s%@MM_LCDPROC_DRIVER@%imonlcd% /etc/LCDd.conf
/bin/sed -i s%@MM_LCDPROC_DEVICE@%/dev/lcd1% /etc/LCDd.conf
/usr/sbin/LCDd -c /etc/LCDd.conf
They worked from the command prompt, although I have not seen what the LCD displayed yet.
(Of course, what I am doing is replicating what the minimyth scripts should be doing, but for some reason did not).
I have set:
MM_LCDPROC_DEVICE='/dev/lcd1'
MM_LCDPROC_DRIVER='imonlcd'
MM_LCDPROC_FETCH_LCDD_CONF='no'
Anyway, in anticipation I tried to integrate them in the minimyth.pm script:
Code: Select all
#!/usr/bin/perl
package init::minimyth;
use strict;
use warnings;
require MiniMyth;
sub start
{
my $self = shift;
my $minimyth = shift;
(snip unrelated lines)
system(qq(/bin/echo 1 > /sys/module/lirc_imon/parameters/islcd));
system(qq(cp /etc/lcdproc.d/LCDd.conf.d/LCDd.conf /etc/LCDd.conf ));
system(qq(/bin/sed -i s%@MM_LCDPROC_DRIVER@%imonlcd% /etc/LCDd.conf ));
system(qq(/bin/sed -i s%@MM_LCDPROC_DEVICE@%/dev/lcd1% /etc/LCDd.conf ));
system(qq(/usr/sbin/LCDd -c /etc/LCDd.conf ));
return 1;
}
Perhaps we should work out why the minimyth scripts are not doing the expected? I will have to enable minimyth logging and see, when I get control back. Meanwhile, it would be nice to know what made the perl script foul up?
Thanks,
Simon.