Posts by flydt

    This would be good because it loads the config, but according to the log you didn't press any button on your remote.
    Now I don't see the most important thing, because if there was a problem with the config, there should be a line like this:

    Code
    kernel: remote: Wrong custom code is 0xHEXACODE

    So I need a pastekodi that also shows the event that occurs when the buttons are pressed.
    Sorry, but without this information I can't do much.

    Hi dtech

    today I try my 4 remote control by remote.conf, and get root cause why some remote no event in log

    the left 2 remote can work by the method, but the right remote cannot work and have no event in kodi.log

    while as all of them are functional, and I also test all of then in LE 12 with meson-ir

    and I found that, the workd 2 with NEC protocol, and non-functional 2 with RC-6 protocol

    it may caused because amremote or eventlircd not configured with all protocol support by default

    to shared this experience

    thank you

    From a coding/development perspective this is a workaround not a fix, but it's interesting. Thanks for sharing.

    I have a suspicion the trigger for invalid-key is about signal strength and things on the 'radio' side of WiFi, with the problem being related to how retries are handled. As we know reverting to wpa_supplicant also consistently eliminates the issue; the crack things fall down is probably in iwd, although "it takes two to tango" so interactions between iwd/connman that need examining.

    The challenge is/remains: finding people with the code diagnostics skills to triage the issue, who can also replicate the issue.

    I found it not signal strength, because I use following command can connect success


    LibreELEC:~ # iwctl station wlan0 connect Tenda3303
    Type the network passphrase for Tenda3303 psk.
    Passphrase: ***********
    LibreELEC:~ # echo $?
    0
    LibreELEC:~ #

    LibreELEC:~ # ip addr
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
    valid_lft forever preferred_lft forever
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP8000> mtu 1500 qdisc mq qlen 1000
    link/ether 38:fa:ca:77:7b:9b brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.135/24 brd 192.168.0.255 scope global eth0
    valid_lft forever preferred_lft forever
    3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq qlen 1000
    link/ether 38:1d:d9:0e:14:a3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.102/24 brd 192.168.0.255 scope global wlan0
    valid_lft forever preferred_lft forever
    LibreELEC:~ #

    But, if use passphrase in command, it will failed:

    LibreELEC:~ # iwctl station wlan0 disconnect
    LibreELEC:~ # iwctl station wlan0 connect Tenda3303 --passphrase='13348877244'
    Operation failed
    LibreELEC:~ #

    that is to say, passphrase parameter may have bug ?

    ref doc:

    ippon
    January 6, 2017 at 8:08 PM

    copy https://github.com/CoreELEC/remot…ent/remote.conf to /storage/.config

    comment content of:

    between key_begin and key_end

    between repeat_key_begin and repeat_key_end

    run remotecfg .config/remote.conf

    press OK button in remote

    LibreELEC:~ # dmesg
    [ 538.296106@0] remote: Wrong custom code is 0xfd029f00
    [ 543.716170@0] remote: Wrong custom code is 0xfd029f00
    LibreELEC:~ #

    vi remote.conf,set factory_code

    factory_code = 0xfd029f00

    run command:

    LibreELEC:~ # remotecfg .config/remote.conf
    curpara:factory_code fd029f00
    curpara:work_mode 00000000
    curpara:repeat_enable 00000001
    curpara:repeat_delay 00000082
    curpara:repeat_peroid 00000078
    curpara:release_delay 00000014
    curpara:debug_enable 00000001
    repeat_delay = 130
    repeat_peroid = 120
    work_mode = 0
    repeat_enable = 0x1
    factory_code = 64770
    release_delay = 0x14
    debug_enable = 0x1
    LibreELEC:~ #

    press POWER button in remote and get log message:

    LibreELEC:~ # dmesg
    [ 2138.422743@2] remote: cur_mode = 0
    [ 2138.422761@2] remote: set_remote_mode[78]
    [ 2164.000795@0] remote: Wrong custom code is 0xa8579f00
    [ 2165.311417@0] remote: Wrong custom code is 0xa8579f00
    [ 2165.836795@0] remote: Wrong custom code is 0xa8579f00
    [ 2166.101722@0] remote: Wrong custom code is 0xa8579f00
    LibreELEC:~ #

    try to edit remote.conf with
    # 0x57 116 ;POWER

    LibreELEC:~ # remotecfg .config/remote.conf
    curpara:factory_code fd029f00
    curpara:work_mode 00000000
    curpara:repeat_enable 00000001
    curpara:repeat_delay 00000082
    curpara:repeat_peroid 00000078
    curpara:release_delay 00000014
    curpara:debug_enable 00000001
    KEYMAP_LEVEL: ircode = 0x57, keycode = 116
    repeat_delay = 130
    repeat_peroid = 120
    work_mode = 0
    repeat_enable = 0x1
    factory_code = 64770
    release_delay = 0x14
    debug_enable = 0x1
    LibreELEC:~ #

    also tried:

    # 0xa8 116 ;POWER

    but, none of can poweroff box

    and never got following:

    remote: scancode is 0x0043,invalid key is 0x0000.

    only get message as:

    remote: Wrong custom code is 0xa8579f00

    don't know, how to do

    my box's Skyworth Q+ remote dammaged, so I use third party remote, it can be used in LE12 with meson-ir format config file

    have no idea

    here I post meson-ir format remote config file which can work in LE12 and coreelec

    # table minix, type: NEC
    0x9f57 KEY_POWER

    0x9f43 KEY_UP
    0x9f06 KEY_LEFT
    0x9f0e KEY_RIGHT
    0x9f0a KEY_DOWN

    0x9f47 KEY_HOME
    0x9f16 KEY_CONTEXT_MENU
    0x9f02 KEY_ENTER
    0x9f4f KEY_ESC

    0x9f5d KEY_VOLUMEDOWN
    0x9fff KEY_VOLUMEUP

    0x9f8a KEY_MUTE