[mythtv-users] imon lcd device

Jay Foster jayf0ster at roadrunner.com
Wed Feb 17 15:38:40 UTC 2016


On 2/16/2016 11:41 PM, Marius Schrecker wrote:
> Hello Hika and Nick,
>
>
>>
>>
>> Could you detail the problems you experienced using the non-LIRC imon
>> module? Do you have any /dev/lcd* device nodes? Is LCDd.conf using the
>> correct one?
>>
>> If the imon module is not already loaded, perhaps you could modprobe
>> it and see what happens (dmesg, etc).
>>
>> Cheers,
>> Nick
>
> As Hika spointed out, it is a /dev/input/eventx device and that is 
> indeed how I pick up the "keystrokes" and have done since (at least) 
> 2012.  This time I wanted to get rid of lirc completely and am happy 
> that the kesytrokes are being picked up more reliably by the new 
> system than the old, which always had problems around some of the codes.
>
> The trouble is with the LCD itself. All the documentation I have found 
> suggests that the right driver for this is lirc_imon and most of what 
> google throws up is over 5 years old and points at the lirc_imon approach.
>
> If I leave the system to do its own thing, the screen is picked up and 
> the imon driver loads.
>
>  I changed the configuration in the LCDd.conf file to:
>
> /​## This file was written by cme command.
> ## You can run 'cme edit lcdproc' to modify this file.
> ## You may also modify the content of this file with your favorite editor.
>
>
> [server]
> Driver=imon
> DriverPath=/usr/lib/x86_64-linux-gnu/lcdproc/
> GoodBye="Goodbye!"
> Hello="Welcome to"
> Hello="mythbox!"
> NextScreenKey=Right
> PrevScreenKey=Left
> ReportToSyslog=yes
> ToggleRotateKey=Enter
> User=nobody
>
> [imon]
> Device=/dev/lcd-imon
> Size=16x2
>
> [menu]
> DownKey=Down
> EnterKey=Enter
> MenuKey=Escape
> UpKey=Up/
>
>
> Then:
>
> stopped LCDd:
> /sudo systemctl stop LCDd.service/
>
> unloaded lirc_imon and lirc_dev
>
> Loaded imon
>  and started LCDd
>
> /# systemctl status LCDd.service
> ● LCDd.service - LSB: LCD daemon
>    Loaded: loaded (/etc/init.d/LCDd)
>    Active: active (running) since ti. 2016-02-16 20:07:48 CET; 11h ago
>      Docs: man:systemd-sysv-generator(8)
>   Process: 607 ExecStart=/etc/init.d/LCDd start (code=exited, 
> status=0/SUCCESS)
>    CGroup: /system.slice/LCDd.service
>            └─617 /usr/sbin/LCDd -s 1 -f -c /etc/LCDd.conf/
>
> /feb. 16 20:07:48 mythbox systemd[1]: Starting LSB: LCD daemon...
> feb. 16 20:07:48 mythbox LCDd[607]: Starting LCDd: LCDd.
> feb. 16 20:07:48 mythbox systemd[1]: Started LSB: LCD daemon./
>
> The modules and service create the following devices under /dev/
>
> /dev/lcd-imon -> /dev/lcd2
>
> I also tried to see which files the service was using:
>
> /# lsof | grep LCDd
> lsof: WARNING: can't stat() fuse.gvfsd-fuse file system 
> /run/user/1000/gvfs
>       Output information may be incomplete.
> LCDd       617                nobody  cwd       DIR    8,1     4096   
>        2 /
> LCDd       617                nobody  rtd       DIR    8,1     4096   
>        2 /
> LCDd       617                nobody  txt       REG    8,1   135600   
>  3422852 /usr/sbin/LCDd
> LCDd       617                nobody  mem       REG    8,1    51736   
>  4985327 /lib/x86_64-linux-gnu/libnss_files-2.21.so
> LCDd       617                nobody  mem       REG    8,1    47616   
>  4985337 /lib/x86_64-linux-gnu/libnss_nis-2.21.so
> LCDd       617                nobody  mem       REG    8,1    97224   
>  4985321 /lib/x86_64-linux-gnu/libnsl-2.21.so
> LCDd       617                nobody  mem       REG    8,1    35688   
>  4985323 /lib/x86_64-linux-gnu/libnss_compat-2.21.so
> LCDd       617                nobody  mem       REG    8,1    16688   
>  3422840 /usr/lib/x86_64-linux-gnu/lcdproc/imon.so
> LCDd       617                nobody  mem       REG    8,1  1869392   
>  4985238 /lib/x86_64-linux-gnu/libc-2.21.so
> LCDd       617                nobody  mem       REG    8,1    14592   
>  4985257 /lib/x86_64-linux-gnu/libdl-2.21.so
> LCDd       617                nobody  mem       REG    8,1   142080   
>  4985374 /lib/x86_64-linux-gnu/libpthread-2.21.so
> LCDd       617                nobody  mem       REG    8,1   154376   
>  4985210 /lib/x86_64-linux-gnu/ld-2.21.so
> LCDd       617                nobody    0u      CHR    1,3      0t0   
>        6 /dev/null
> LCDd       617                nobody    1u      CHR    1,3      0t0   
>        6 /dev/null
> LCDd       617                nobody    2u      CHR    1,3      0t0   
>        6 /dev/null
> LCDd       617                nobody    3u     IPv4  13127      0t0   
>      TCP localhost:13666 (LISTEN)
> LCDd       617                nobody    4w      CHR  180,2      0t0   
>      364 /dev/lcd2
> LCDd       617                nobody    5u     IPv4  19446      0t0   
>      TCP localhost:13666->localhost:50810 (ESTABLISHED)/
>
>
> So far so good. BUT:
>
> $ dmesg | grep imon
> [38397.186932] imon:lcd_write: invalid payload size: 32 (expected 8)
> [38397.311847] imon:lcd_write: invalid payload size: 32 (expected 8)
> [38397.436991] imon:lcd_write: invalid payload size: 32 (expected 8)
> [38397.562131] imon:lcd_write: invalid payload size: 32 (expected 8)
> [38397.687275] imon:lcd_write: invalid payload size: 32 (expected 8)
> [38401.816955] imon:lcd_write: invalid payload size: 32 (expected 8)
> [38401.942093] imon:lcd_write: invalid payload size: 32 (expected 8)
> [38402.067231] imon:lcd_write: invalid payload size: 32 (expected 8)
> [38402.192684] imon:lcd_write: invalid payload size: 32 (expected 8)
>
>  and The lcd is still completely blank, with no indication that 
> anything is happening when starting or stopping the service or loading 
> the module.  The mythfrontend has LCD turned on, but nothing shows up 
> when I navigate the menus.
>
> BR.
>
> --Marius--
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
Years ago, I used the soundgraph LCD display (ID 15c2:0038 SoundGraph 
Inc) in the Silverstone case with mythbuntu.  This was the 0.21-fixes 
MythTV release, mythbuntu 8.10 I think.  I only used the LCD display, 
not the IR input (could never get that to work).

I upgraded over a year ago into a new case, so I am *not *using it with 
mythbuntu 14.04.  I recall needing to patch and build LCDd 
(lcdproc-0.5.2) myself in order to get it to work.  This may no longer 
be the case, though, but I do not know.  From the patch that I used:

+/**
+ * Driver for SoundGraph iMON OEM (and others) LCD Module
+ *
+ * In order to be able to use it, you have to install the lirc_imonlcd
+ * kernel module for LIRC (http://www.lirc.org) -- until that module is
+ * available in the main LIRC branch, you can get a patch for it from
+ * the same place you got this patch.

In the /usr/local/etc/LCDd.conf file I used:
Driver=imonlcd
ServerScreen=no
DriverPath=/usr/local/lib/lcdproc/
## IMON LCD driver added by JAF 2Jun09 ##
[imonlcd]
Device=/dev/lcd0
Contrast=200

This used the usr/local/lib/lcdproc/imonlcd.so driver that I built from 
the patched source.
 From the old log files, it looks like it was using lirc_imon too to 
send display messages to the LCD device.

 From an old dmesg output, the boot messages were:
[   41.844967] lirc_dev: IR Remote Control driver registered, major 61
[   41.891181] Driver for Soundgraph iMON MultiMedia IR/Display, v0.5
[   41.891185] Venky Raju <dev at venky.ws>
[   41.891198] imon_probe: found iMON device
[   41.891200] lirc_dev: lirc_register_driver: sample_rate: 0
[   41.891255] imon_probe: Registered iMON driver(minor:0)
[   41.891280] imon_probe: iMON device on usb<2:2> initialized
[   41.891284] imon_probe: found iMON device
[   41.891286] lirc_dev: lirc_register_driver: sample_rate: 0
[   41.891305] imon_probe: Registered iMON driver(minor:1)
[   41.891323] imon_probe: iMON device on usb<2:2> initialized
[   41.891332] usbcore: registered new interface driver lirc_imon

Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160217/c040b951/attachment.html>


More information about the mythtv-users mailing list