<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 2/16/2016 11:41 PM, Marius Schrecker
      wrote:<br>
    </div>
    <blockquote cite="mid:13a0-56c42400-23-66774700@86390280"
      type="cite">Hello Hika and Nick,<br>
      <br>
      <br>
        
      <blockquote type="cite"
cite="CAOQWjw1WGenjOxDVJ4SMErTLHYh3GsZAu79-fb-C1DRJhifK5w@mail.gmail.com"><br>
        <br>
        Could you detail the problems you experienced using the non-LIRC
        imon<br>
        module? Do you have any /dev/lcd* device nodes? Is LCDd.conf
        using the<br>
        correct one?<br>
        <br>
        If the imon module is not already loaded, perhaps you could
        modprobe<br>
        it and see what happens (dmesg, etc).<br>
        <br>
        Cheers,<br>
        Nick</blockquote>
      <br>
      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.<br>
      <br>
      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.<br>
      <br>
      If I leave the system to do its own thing, the screen is picked up
      and the imon driver loads.<br>
      <br>
       I changed the configuration in the LCDd.conf file to:<br>
      <br>
      <em>​## This file was written by cme command.<br>
        ## You can run 'cme edit lcdproc' to modify this file.<br>
        ## You may also modify the content of this file with your
        favorite editor.<br>
        <br>
        <br>
        [server]<br>
        Driver=imon<br>
        DriverPath=/usr/lib/x86_64-linux-gnu/lcdproc/<br>
        GoodBye="Goodbye!"<br>
        Hello="Welcome to"<br>
        Hello="mythbox!"<br>
        NextScreenKey=Right<br>
        PrevScreenKey=Left<br>
        ReportToSyslog=yes<br>
        ToggleRotateKey=Enter<br>
        User=nobody<br>
        <br>
        [imon]<br>
        Device=/dev/lcd-imon<br>
        Size=16x2<br>
        <br>
        [menu]<br>
        DownKey=Down<br>
        EnterKey=Enter<br>
        MenuKey=Escape<br>
        UpKey=Up</em><br>
      <br>
      <br>
      Then:<br>
      <br>
      stopped LCDd:<br>
      <em>sudo systemctl stop LCDd.service</em><br>
      <br>
      unloaded lirc_imon and lirc_dev<br>
      <br>
      Loaded imon<br>
       and started LCDd<br>
      <br>
      <em># systemctl status LCDd.service<br>
        ● LCDd.service - LSB: LCD daemon<br>
           Loaded: loaded (/etc/init.d/LCDd)<br>
           Active: active (running) since ti. 2016-02-16 20:07:48 CET;
        11h ago<br>
             Docs: man:systemd-sysv-generator(8)<br>
          Process: 607 ExecStart=/etc/init.d/LCDd start (code=exited,
        status=0/SUCCESS)<br>
           CGroup: /system.slice/LCDd.service<br>
                   └─617 /usr/sbin/LCDd -s 1 -f -c /etc/LCDd.conf</em><br>
      <br>
      <em>feb. 16 20:07:48 mythbox systemd[1]: Starting LSB: LCD
        daemon...<br>
        feb. 16 20:07:48 mythbox LCDd[607]: Starting LCDd: LCDd.<br>
        feb. 16 20:07:48 mythbox systemd[1]: Started LSB: LCD daemon.</em><br>
      <br>
      The modules and service create the following devices under /dev/<br>
      <br>
      /dev/lcd-imon -> /dev/lcd2<br>
      <br>
      I also tried to see which files the service was using:<br>
      <br>
      <em># lsof | grep LCDd<br>
        lsof: WARNING: can't stat() fuse.gvfsd-fuse file system
        /run/user/1000/gvfs<br>
              Output information may be incomplete.<br>
        LCDd       617                nobody  cwd       DIR            
           8,1     4096          2 /<br>
        LCDd       617                nobody  rtd       DIR            
           8,1     4096          2 /<br>
        LCDd       617                nobody  txt       REG            
           8,1   135600    3422852 /usr/sbin/LCDd<br>
        LCDd       617                nobody  mem       REG            
           8,1    51736    4985327
        /lib/x86_64-linux-gnu/libnss_files-2.21.so<br>
        LCDd       617                nobody  mem       REG            
           8,1    47616    4985337
        /lib/x86_64-linux-gnu/libnss_nis-2.21.so<br>
        LCDd       617                nobody  mem       REG            
           8,1    97224    4985321 /lib/x86_64-linux-gnu/libnsl-2.21.so<br>
        LCDd       617                nobody  mem       REG            
           8,1    35688    4985323
        /lib/x86_64-linux-gnu/libnss_compat-2.21.so<br>
        LCDd       617                nobody  mem       REG            
           8,1    16688    3422840
        /usr/lib/x86_64-linux-gnu/lcdproc/imon.so<br>
        LCDd       617                nobody  mem       REG            
           8,1  1869392    4985238 /lib/x86_64-linux-gnu/libc-2.21.so<br>
        LCDd       617                nobody  mem       REG            
           8,1    14592    4985257 /lib/x86_64-linux-gnu/libdl-2.21.so<br>
        LCDd       617                nobody  mem       REG            
           8,1   142080    4985374
        /lib/x86_64-linux-gnu/libpthread-2.21.so<br>
        LCDd       617                nobody  mem       REG            
           8,1   154376    4985210 /lib/x86_64-linux-gnu/ld-2.21.so<br>
        LCDd       617                nobody    0u      CHR            
           1,3      0t0          6 /dev/null<br>
        LCDd       617                nobody    1u      CHR            
           1,3      0t0          6 /dev/null<br>
        LCDd       617                nobody    2u      CHR            
           1,3      0t0          6 /dev/null<br>
        LCDd       617                nobody    3u     IPv4            
         13127      0t0        TCP localhost:13666 (LISTEN)<br>
        LCDd       617                nobody    4w      CHR            
         180,2      0t0        364 /dev/lcd2<br>
        LCDd       617                nobody    5u     IPv4            
         19446      0t0        TCP localhost:13666->localhost:50810
        (ESTABLISHED)</em><br>
      <br>
      <br>
      So far so good. BUT:<br>
      <br>
      $ dmesg | grep imon<br>
      [38397.186932] imon:lcd_write: invalid payload size: 32 (expected
      8)<br>
      [38397.311847] imon:lcd_write: invalid payload size: 32 (expected
      8)<br>
      [38397.436991] imon:lcd_write: invalid payload size: 32 (expected
      8)<br>
      [38397.562131] imon:lcd_write: invalid payload size: 32 (expected
      8)<br>
      [38397.687275] imon:lcd_write: invalid payload size: 32 (expected
      8)<br>
      [38401.816955] imon:lcd_write: invalid payload size: 32 (expected
      8)<br>
      [38401.942093] imon:lcd_write: invalid payload size: 32 (expected
      8)<br>
      [38402.067231] imon:lcd_write: invalid payload size: 32 (expected
      8)<br>
      [38402.192684] imon:lcd_write: invalid payload size: 32 (expected
      8)<br>
      <br>
       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>
      <br>
      BR.<br>
      <br>
      --Marius--<br>
       
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
</pre>
    </blockquote>
    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).<br>
    <br>
    I upgraded over a year ago into a new case, so I am <b>not </b>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:<br>
    <br>
    +/**<br>
    + * Driver for SoundGraph iMON OEM (and others) LCD Module<br>
    + *<br>
    + * In order to be able to use it, you have to install the
    lirc_imonlcd<br>
    + * kernel module for LIRC (<a class="moz-txt-link-freetext" href="http://www.lirc.org">http://www.lirc.org</a>) -- until that
    module is<br>
    + * available in the main LIRC branch, you can get a patch for it
    from<br>
    + * the same place you got this patch.<br>
    <br>
    In the /usr/local/etc/LCDd.conf file I used:<br>
    Driver=imonlcd<br>
    ServerScreen=no<br>
    DriverPath=/usr/local/lib/lcdproc/<br>
    ## IMON LCD driver added by JAF 2Jun09 ##<br>
    [imonlcd]<br>
    Device=/dev/lcd0<br>
    Contrast=200<br>
    <br>
    This used the usr/local/lib/lcdproc/imonlcd.so driver that I built
    from the patched source.<br>
    From the old log files, it looks like it was using lirc_imon too to
    send display messages to the LCD device.<br>
    <br>
    From an old dmesg output, the boot messages were:<br>
    [   41.844967] lirc_dev: IR Remote Control driver registered, major
    61<br>
    [   41.891181] Driver for Soundgraph iMON MultiMedia IR/Display,
    v0.5<br>
    [   41.891185] Venky Raju <a class="moz-txt-link-rfc2396E" href="mailto:dev@venky.ws"><dev@venky.ws></a><br>
    [   41.891198] imon_probe: found iMON device<br>
    [   41.891200] lirc_dev: lirc_register_driver: sample_rate: 0<br>
    [   41.891255] imon_probe: Registered iMON driver(minor:0)<br>
    [   41.891280] imon_probe: iMON device on usb<2:2> initialized<br>
    [   41.891284] imon_probe: found iMON device<br>
    [   41.891286] lirc_dev: lirc_register_driver: sample_rate: 0<br>
    [   41.891305] imon_probe: Registered iMON driver(minor:1)<br>
    [   41.891323] imon_probe: iMON device on usb<2:2> initialized<br>
    [   41.891332] usbcore: registered new interface driver lirc_imon<br>
    <br>
    Jay<br>
  </body>
</html>