PixlOne / logiops

An unofficial userspace driver for HID++ Logitech devices
GNU General Public License v3.0
3.31k stars 263 forks source link

Can not reprogram special keys in Wireless Keyboard ERGO K860 #433

Open antonsoroko opened 7 months ago

antonsoroko commented 7 months ago

Tried on several keys. With reprogram - original action is disabled but new action does not work. Also for 0x100 - original action is not disabled.

But on MX Keys keyboard the same keys work (except 0x100 since it does not exist there).

$ sudo logid -v
[DEBUG] Ignoring virtual node on /dev/hidraw5
[DEBUG] Ignoring virtual node on /dev/hidraw4
[INFO] Detected receiver at /dev/hidraw3
[INFO] Device found: Wireless Keyboard ERGO K860 on /dev/hidraw3:1
[DEBUG] /dev/hidraw3:1 remappable buttons:
[DEBUG] CID  | reprog? | fn key? | mouse key? | gesture support?
[DEBUG] 0x0a | YES     |         |            |
[DEBUG] 0x34 |         |         |            |
[DEBUG] 0x6e | YES     | YES     |            |
[DEBUG] 0x6f | YES     |         |            |
[DEBUG] 0xbf | YES     |         |            |
[DEBUG] 0xc7 | YES     | YES     |            |
[DEBUG] 0xc8 | YES     | YES     |            |
[DEBUG] 0xd1 | YES     |         |            |
[DEBUG] 0xd2 | YES     |         |            |
[DEBUG] 0xd3 | YES     |         |            |
[DEBUG] 0xd4 | YES     | YES     |            |
[DEBUG] 0xde |         | YES     |            |
[DEBUG] 0xe0 | YES     | YES     |            |
[DEBUG] 0xe4 | YES     | YES     |            |
[DEBUG] 0xe5 | YES     | YES     |            |
[DEBUG] 0xe6 | YES     | YES     |            |
[DEBUG] 0xe7 | YES     | YES     |            |
[DEBUG] 0xe8 | YES     | YES     |            |
[DEBUG] 0xe9 | YES     | YES     |            |
[DEBUG] 0xea | YES     |         |            |
[DEBUG] 0xeb | YES     |         |            |
[DEBUG] 0xec | YES     |         |            |
[DEBUG] 0x100 | YES     | YES     |            |
[DEBUG] 0x101 | YES     |         |            |

/etc/logid.cfg:

devices: (
{
    name: "Wireless Keyboard ERGO K860";

    buttons: (
        {
            cid: 0xe0;
            action =
            {
                type: "Keypress";
                keys: ["KEY_A"];
            };
        },
        {
            cid: 0x100;
            action =
            {
                type: "Keypress";
                keys: ["KEY_B"];
            };
        },
        {
            cid: 0x6e;
            action =
            {
                type: "Keypress";
                keys: ["KEY_C"];
            };
        },
        {
            cid: 0xd4;
            action =
            {
                type: "Keypress";
                keys: ["KEY_D"];
            };
        }
    );
}
);