So I have been fiddling around with my new LibreELEC install, and Googling some more. I am not familiar with LIRC or Linux device management at all. What I think I have found out is, that my PS3 BT Remote is handled from udev -> eventlircd daemon -> LIRC. I have found out that by default key repeat is off in LIRC settings.
I have read LIRC documentation and believe that key repeat could be activated in LIRC settings, specifically ~/.config/lircrc.
begin
prog = ...
remote = ...
button = ...
[button = ...] (optional, for key sequences)
repeat = ...
delay = ...
ignore_first_events = ...
config = ...
[config = ...] (optional, for toggle button behaviour)
mode = ...
flags = ...
end
Display More
"repeat
tells the program what shall happen if a key is repeated. A value of zero tells the program to ignore repeated keys. Any other positive value 'n' tells the program to pass the config string every 'n'-th time to the according application, when a key is repeated. The default for repeat is zero.
delay
tells the program to ignore the specified number of key repeats before using the "repeat" configuration directive above. This is used to prevent double triggers of events when using a fast repeat rate. A value of zero, which also is the default, will disable the delay function. If "repeat" value is zero but "delay" is set, there will be a single event generated after the delay period expires (with another one before delay period starts)."
Does anyone know if this is possible? And where should lircrc file be copied for it to work?
I have tried to:
nano /storage/.config/lircrc
begin
prog = kodi
remote = BD Remote Control
button = KEY_UP
repeat = 1
delay = 5
end
begin
prog = kodi
remote = BD Remote Control
button = KEY_DOWN
repeat = 1
delay = 5
end
begin
prog = kodi
remote = BD Remote Control
button = KEY_LEFT
repeat = 1
delay = 5
end
begin
prog = kodi
remote = BD Remote Control
button = RIGHT
repeat = 1
delay = 5
end
Display More
And here is information that I have gathered from my LibreELEC install.
udevadm monitor -p
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[1437.723947] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11 (bluetooth)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11
DEVTYPE=link
SEQNUM=2313
SUBSYSTEM=bluetooth
UDEV [1437.725140] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11 (bluetooth)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11
DEVTYPE=link
SEQNUM=2313
SUBSYSTEM=bluetooth
SYSTEMD_ALIAS=/sys/subsystem/bluetooth/devices/hci0:11
SYSTEMD_WANTS=bluetooth.target
TAGS=:systemd:
USEC_INITIALIZED=1437724929
KERNEL[1437.762958] add /module/hidp (module)
ACTION=add
DEVPATH=/module/hidp
SEQNUM=2314
SUBSYSTEM=module
KERNEL[1437.763368] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006 (hid)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006
HID_ID=0005:0000054C:00000306
HID_NAME=BD Remote Control
HID_PHYS=5c:f3:70:77:e3:dc
HID_UNIQ=00:21:4f:b0:b0:e2
MODALIAS=hid:b0005g0000v0000054Cp00000306
SEQNUM=2315
SUBSYSTEM=hid
KERNEL[1437.764128] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006/input/input19 (input)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006/input/input19
EV=100013
KEY=7000001083c100 8c00ea00000000 6bc0000000000001 8000 1102c0000801 80168000000000 10000ffe
MODALIAS=input:b0005v054Cp0306e0100-e0,1,4,14,k77,80,8B,9E,9F,A1,A8,AC,CF,100,136,137,138,139,13B,13D,13E,161,163,165,166,167,172,173,177,188,18E,18F,190,191,197,19C,1B4,1B5,1B6,ram4,lsfw
MSC=10
NAME="BD Remote Control"
PHYS="5c:f3:70:77:e3:dc"
PRODUCT=5/54c/306/100
PROP=0
SEQNUM=2316
SUBSYSTEM=input
UNIQ="00:21:4f:b0:b0:e2"
UDEV [1437.764221] add /module/hidp (module)
ACTION=add
DEVPATH=/module/hidp
SEQNUM=2314
SUBSYSTEM=module
USEC_INITIALIZED=1437763635
KERNEL[1437.764287] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006/input/input19/event18 (input)
ACTION=add
DEVNAME=/dev/input/event18
DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006/input/input19/event18
MAJOR=13
MINOR=82
SEQNUM=2317
SUBSYSTEM=input
KERNEL[1437.764350] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006/hidraw/hidraw5 (hidraw)
ACTION=add
DEVNAME=/dev/hidraw5
DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006/hidraw/hidraw5
MAJOR=245
MINOR=5
SEQNUM=2318
SUBSYSTEM=hidraw
UDEV [1437.764748] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006 (hid)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006
DRIVER=sony
HID_ID=0005:0000054C:00000306
HID_NAME=BD Remote Control
HID_PHYS=5c:f3:70:77:e3:dc
HID_UNIQ=00:21:4f:b0:b0:e2
MODALIAS=hid:b0005g0000v0000054Cp00000306
SEQNUM=2315
SUBSYSTEM=hid
USEC_INITIALIZED=1437764601
UDEV [1437.766294] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006/input/input19 (input)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006/input/input19
EV=100013
ID_BUS=bluetooth
ID_FOR_SEAT=input-pci-0000_00_1d_0-usb-0_1_5_4_1_0
ID_INPUT=1
ID_INPUT_KEY=1
ID_PATH=pci-0000:00:1d.0-usb-0:1.5.4:1.0
ID_PATH_TAG=pci-0000_00_1d_0-usb-0_1_5_4_1_0
KEY=7000001083c100 8c00ea00000000 6bc0000000000001 8000 1102c0000801 80168000000000 10000ffe
MODALIAS=input:b0005v054Cp0306e0100-e0,1,4,14,k77,80,8B,9E,9F,A1,A8,AC,CF,100,136,137,138,139,13B,13D,13E,161,163,165,166,167,172,173,177,188,18E,18F,190,191,197,19C,1B4,1B5,1B6,ram4,lsfw
MSC=10
NAME="BD Remote Control"
PHYS="5c:f3:70:77:e3:dc"
PRODUCT=5/54c/306/100
PROP=0
SEQNUM=2316
SUBSYSTEM=input
TAGS=:seat:
UNIQ="00:21:4f:b0:b0:e2"
USEC_INITIALIZED=1437766116
UDEV [1437.766418] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006/hidraw/hidraw5 (hidraw)
ACTION=add
DEVNAME=/dev/hidraw5
DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006/hidraw/hidraw5
MAJOR=245
MINOR=5
SEQNUM=2318
SUBSYSTEM=hidraw
USEC_INITIALIZED=1437766159
UDEV [1437.863348] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006/input/input19/event18 (input)
ACTION=add
DEVNAME=/dev/input/event18
DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.4/2-1.5.4:1.0/bluetooth/hci0/hci0:11/0005:054C:0306.0006/input/input19/event18
ID_BUS=usb
ID_INPUT=1
ID_INPUT_KEY=1
ID_MODEL=BCM20702A0
ID_MODEL_ENC=BCM20702A0
ID_MODEL_ID=17cb
ID_REVISION=0112
ID_SERIAL=Broadcom_Corp_BCM20702A0_5CF37077E3DC
ID_SERIAL_SHORT=5CF37077E3DC
ID_TYPE=generic
ID_USB_DRIVER=btusb
ID_USB_INTERFACES=:ff0101:ffffff:fe0101:
ID_USB_INTERFACE_NUM=00
ID_VENDOR=Broadcom_Corp
ID_VENDOR_ENC=Broadcom\x20Corp
ID_VENDOR_ID=0b05
MAJOR=13
MINOR=82
SEQNUM=2317
SUBSYSTEM=input
USEC_INITIALIZED=1437804361
XKBLAYOUT=fi,us
XKBMODEL=pc105
XKBOPTIONS=grp:alt_shift_toggle
XKBVARIANT=,
eventlircd_enable=true
eventlircd_evmap=ps3remote.evmap
Display More
nano /etc/eventlircd.d/ps3remote.evmap
# PS3 Bluetooth remote
KEY_EJECTCD = KEY_EJECT # Eject
KEY_AUDIO = KEY_LANGUAGE # Audio
KEY_ANGLE = KEY_ZOOM # Angle
KEY_CLEAR = KEY_DELETE # Clear
KEY_CONTEXT_MENU = KEY_EPG # Pop UP/MENU
KEY_ESC = KEY_EXIT # Return
KEY_BACK = KEY_EXIT # Back
KEY_OPTION = KEY_OPTION # Options
KEY_SCREEN = KEY_SCREEN # View
BTN_0 = KEY_EXIT # X
BTN_TL = KEY_VOLUMEUP # L1 -> Volume Upn
BTN_TL2 = KEY_VOLUMEDOWN # L2 -> Volume down
BTN_THUMBL = KEY_MUTE # L3 -> Mute
KEY_HOMEPAGE = KEY_MEDIA # PS3 Menu
KEY_SELECT = KEY_RECORD # Select
BTN_START = KEY_ENTER # Start
BTN_TR = KEY_CHANNELUP # R1 -> Channel Up
BTN_TR2 = KEY_CHANNELDOWN # R2 -> Channel down
BTN_THUMBR = KEY_PREVIOUS # R3 -> Previous Channel
KEY_FORWARD = KEY_FASTFORWARD # Forward
Display More