[mythtv-users] New Imon Kernel Driver

Stefan Manteuffel linux at sm-recycling.de
Thu Mar 10 06:08:34 UTC 2011


Am Mittwoch 09 März 2011, 15:50:05 schrieb Jarod Wilson:
> On Mar 9, 2011, at 7:21 AM, Stefan Manteuffel wrote:
> > Hi,
> > 
> > i use Myth since some years with mythbuntu.
> > 
> > In my setup i had used the Lirc imon driver with two Remote Control Code
> > sets ( Logitec One) one is for the Mythfrontend and the other is for
> > switching Lights with fhem and FHT1000.
> > 
> > After upgrade to Ubuntu 10.10 i must use the new iMon Kernel driver from
> > Jarod, it works very well, but i can't use the ir Codes for my Light
> > switch.
> > 
> > The only solution, i found, is to use the old Lirc Module. But at the
> > next Upgrade i must reconfigure the Lirc again new. Is there a way to
> > use the new iMon Kernel driver with more ir codes ?
> 
> I'm not quite sure how you were doing this to begin with[*], but if
> you were able to get more IR codes through with the old lirc driver,
> then its definitely possible to get them handled with the new imon
> driver. You'd probably have to experiment with ir-keytable to get
> additional codes recognized by the imon driver.
> 
> [*] to the best of my knowledge, imon hardware only supports very
> specific IR signals, but maybe your light switch remote just happens
> to use signaling that is imon-compatible.


Hello Jarod,

and thank you for your reply. I will try to modify the ir-keytable. 


Ok i have installed ir-keytables from here ppa:libv4l/ppa

but ir-keytebels -t gives me no response ?

Any hint what to do ?


Here is my OLD configuration that was working.

this is what dmesg says about my iMon:

[   14.133877] imon 2-1.2:1.0: iMON device (15c2:0038, intf0) on usb<2:3> 
initialized
[   14.142101] imon 2-1.2:1.1: iMON device (15c2:0038, intf1) on usb<2:3> 
initialized
[   14.142120] usbcore: registered new interface driver imon
[   20.698614] Modules linked in: nfsd exportfs nfs lockd fscache nfs_acl 
auth_rpcgss snd_hda_codec_nvhdmi sunrpc nvidia(P) lirc_dev 
snd_hda_codec_intelhdmi snd_hda_codec_realtek snd_hda_intel 
snd_hda_codec snd_hwdep snd_pcm snd_seq_midi ir_sony_decoder snd_rawmidi 
ir_jvc_decoder snd_seq_midi_event ir_rc6_decoder ppdev snd_seq ir_rc5_decoder 
ir_nec_decoder rc_imon_pad 
ftdi_sio snd_timer imon snd_seq_device ir_core usbserial parport_pc video 
output psmouse serio_raw snd intel_agp agpgart soundcore snd_page_alloc lp 
parport usbhid hid e1000e

lsusb gives me:

Bus 002 Device 003: ID 15c2:0038 SoundGraph Inc. GD01 MX VFD Display/IR 
Receiver


and this is my old lircd.conf what was working with lirc and the old driver 
from lirc:

------------------------------------------
# brand:                       licht
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name  licht
  bits           16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       4509  4492
  one           599  1648
  zero          599   502
  ptrail        599
  pre_data_bits   16
  pre_data       0xC2CA
  gap          111058
  min_repeat      2
  toggle_bit_mask 0x0
      begin codes
          allesaus                 0xA25D
          heller                   0xFC03
          deckenf                   0x42BD
          winterg                  0x629D
          dunkler                  0xE21D
          wand                     0x827D
          scschrank                0xC23D
          tisch                    0x22DD
          stehlampe                0xA05F
          1                        0x827D
          2                        0x42BD
      end codes

end remote

# brand:             Hauppauge
# model:
# supported devices: WinTV primo; WinTV pci; WinTV radio
#
# This config file will work with both homebrew receivers and
# original Hauppauge TV cards !!!
#

begin remote

  name  Hauppauge
  bits           13
  flags SHIFT_ENC
  eps            30
  aeps          100

  one           950   830
  zero          950   830
  plead         960
  gap          89584
  repeat_bit      2

      begin codes
          TV                       0x000000000000100F
          RADIO                    0x000000000000100C
          FULL_SCREEN              0x000000000000102E
          CH+                      0x0000000000001020
          CH-                      0x0000000000001021
          VOL-                     0x0000000000001011
          VOL+                     0x0000000000001010
          MUTE                     0x000000000000100D
          SOURCE                   0x0000000000001022
          1                        0x0000000000001001
          2                        0x0000000000001002
          3                        0x0000000000001003
          4                        0x0000000000001004
          5                        0x0000000000001005
          6                        0x0000000000001006
          7                        0x0000000000001007
          8                        0x0000000000001008
          9                        0x0000000000001009
          0                        0x0000000000001000
          RESERVED                 0x000000000000101E
          MINIMIZE                 0x0000000000001026
      end codes

end remote
--------------------------------snip-------------------

and my old hardware.conf
_______________________________


#Chosen Remote Control
REMOTE="Soundgraph iMON Knob"
REMOTE_MODULES="lirc_dev lirc_imon"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
#REMOTE_LIRCD_CONF="imon/lircd.conf.imon-knob"
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS=""


_____________________________





I must looking i while to find an ir code that works, but the i maped the key 
to lamps on the Hamony remote and than maped the key to the funktions in the 
fhem with irexc.

Here is a Part from ~/.lirc/licht



begin
prog = irexec
button = dunkler
repeat = 2
config = /usr/local/bin/fhem.pl 7072 "set WZ.Wand dimdown"
end


begin
prog = irexec
button = heller
repeat = 2
config = /usr/local/bin/fhem.pl 7072 "set WZ.Wand dimup"
end


begin
prog = irexec
button = stehlampe
repeat = 3
config = /usr/local/bin/fhem.pl 7072 "set WZ.Stehlampe toggle" &
end

------------------ snip


More information about the mythtv-users mailing list