[mythtv-users] imon lcd device

Hika van den Hoven hikavdh at gmail.com
Wed Feb 17 08:43:21 UTC 2016


Hoi Marius,

Wednesday, February 17, 2016, 8:41:41 AM, you 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--
>  

I do not know this device. Is it as the name suggests a device with
two way, blaster like, communication? Because if so, that part is not
supported by the new kernel based event system. It will just support
it as a standard remote, without the extras. It very probably will
conflict.
You might have to go the way of disabling it in the kernel and go for
an old style lirc set-up. Or be happy with what it does.

Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list