Repeated Pulse/Space from Kernel Space

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Repeated Pulse/Space from Kernel Space

James A R Brown

Hi,

I am having trouble having migrated my old configs which were generated between 0.9.0 and 0.9.2a-dev (git), in that now all keypresses are doubled up when i use irw.

Old machine was mythbuntu 14.04LTS and now mythbuntu 16.04LTS with the lirc0.9.0 uninstalled.

Configure options used

./configure --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --libdir=/usr/lib --datarootdir=/usr/share/ --localstatedir=/usr/var --includedir=/usr/include

And 3 presses of remote gets me this

root@mythtvlounge:/etc/lirc# irw /usr/var/run/lirc/lircd
00000000003ff3a7 00 KEY_NEXT beo5
00000000003ff3a7 00 KEY_NEXT beo5
00000000003ff3a7 00 KEY_NEXT beo5
00000000003ff3a7 00 KEY_NEXT beo5
00000000003ff3a7 00 KEY_NEXT beo5
00000000003ff3a7 00 KEY_NEXT beo5

First I checked for doubled up conf files, double entries, just incase I had inadvertently copied extras.

But then looking at mode2, it seems to be the kernel space is repeating data to lircd? Is that possible? Have tried with a couple of remote manufacturers and seems the pulse space pattern does indeed repeat.


Regards

James


hardware.conf

#Chosen Remote Control
REMOTE="Linux input layer (/dev/input/eventX)"
REMOTE_MODULES=""
REMOTE_DRIVER="default"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="lircd.conf"
REMOTE_LIRCD_ARGS=""
DISABLE_KERNEL_SUPPORT="true"

The beo5.conf file.

begin remote

  name  beo5
  driver devinput
  bits           25
  flags RC6
  eps            30
  aeps          100

  header       2726   863
  one           466   434
  zero          466   434
  gap          99250
  toggle_bit_mask 0x0
  rc6_mask    0x100000

      begin codes
          KEY_OK                   0x03FF333            #CNTL_0
          KEY_EXIT                 0x03FF37C
          KEY_PAUSE                0x03FF3DB            #STOP
          KEY_RECORD               0x03FF381            #CNTL_3
          KEY_F4                   0x03FF30A            #CNTL_4
          KEY_F5                   0x03FF334
          KEY_F6                   0x03FF37E
          KEY_F7                   0x03FF37F
          KEY_F8                   0x03FF3BF            #CNTL_8
#          KEY_F9                   0x03FF3FF           #CNTL_9
          KEY_0                    0x03FF3FF
          KEY_1                    0x03FF3FE
          KEY_2                    0x03FF3FD
          KEY_3                    0x03FF3FC
          KEY_4                    0x03FF3FB
          KEY_5                    0x03FF3FA
          KEY_6                    0x03FF3F9
          KEY_7                    0x03FF3F8
          KEY_8                    0x03FF3F7
          KEY_9                    0x03FF3F6
          KEY_UP                   0x03FF38F
          KEY_RIGHT                0x03FF390
          KEY_DOWN                 0x03FF392
          KEY_LEFT                 0x03FF391
          KEY_NEXT                 0x03FF3A7
          KEY_PREVIOUS             0x03FF3A6
          KEY_FASTFORWARD          0x03FF3A4
          KEY_REWIND               0x03FF3A5
          KEY_PLAY                 0x03FF3A3            #PLAY
#          BTN_BACK                 0x03FF37C           #BACK

      end codes

end remote


Mode2 with 1 Press

[hidden email] mode2
Warning: cannot open /etc/lirc/lirc_options.conf
Warning: cannot open /etc/lirc/lirc_options.conf
Using driver default on device /dev/lirc0
Trying device: /dev/lirc0
Using device: /dev/lirc0
Warning: Running as root.
space 99250
pulse 2700
space 900
pulse 450
space 450
pulse 450
space 450
pulse 450
space 900
pulse 500
space 850
pulse 950
space 400
pulse 450
space 450
pulse 450
space 450
pulse 500
space 400
pulse 500
space 400
pulse 450
space 450
pulse 450
space 450
pulse 500
space 400
pulse 950
space 400
pulse 450
space 900
pulse 450
space 450
pulse 450
space 450
pulse 950
space 850
pulse 950
space 400
pulse 450
space 900
pulse 450
space 450
pulse 950
space 16777215
pulse 2700
space 900
pulse 450
space 450
pulse 450
space 450
pulse 450
space 900
pulse 500
space 850
pulse 950
space 400
pulse 450
space 450
pulse 450
space 450
pulse 500
space 400
pulse 500
space 400
pulse 450
space 450
pulse 450
space 450
pulse 500
space 400
pulse 950
space 400
pulse 450
space 900
pulse 450
space 450
pulse 450
space 450
pulse 950
space 850
pulse 950
space 400
pulse 450
space 900
pulse 450
space 450
pulse 950
space 16777215


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Repeated Pulse/Space from Kernel Space

Alec Leamas


On 17/01/17 23:06, James A R Brown wrote:


> But then looking at mode2, it seems to be the kernel space is repeating
> data to lircd? Is that possible? Have tried with a couple of remote
> manufacturers and seems the pulse space pattern does indeed repeat.

Indeed: https://bugzilla.redhat.com/show_bug.cgi?id=1260862

This is worked around in current LIRC for for stretch/zesty. The
lirc upstream [1] has sources which builds on ubuntu, but be aware that
that is a  breaking with new configurations etc.


Cheers!

--alec

[1] https://sourceforge.net/projects/lirc/files/LIRC/0.9.4c/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Loading...