One more question about the response of Jivelite/LMS on pressing button
KEY_POWER on my RF/USB remote control. The response on pressing this
button is not as I expected.
I made following observation:
In file InputToActionMap.lua, keys["q"] and [KEY_POWER] are both mapped
on action "power":
charActionMappings.press
["q"] = "power",
keyActionMappings.press
[KEY_POWER] = "power",
Yet the reaction of LMS on pressing q and pressing KEY_POWER appears to
be different:
- pressing q *toggles power* (pressing q first time => power off,
pressing q again => power on)
- pressing KEY_POWER gives *power off* (pressing KEY_POWER first time
=> power off, pressing KEY_POWER again => player stays off).
To power the player on after pressing KEY_POWER I need to press a
different key, for example a numerical key or the KEY_HOMEPAGE
button.
My preference would be that pressing KEY_POWER toggles power.
*Question to Raplhy*: Can it be explained why pressing the POWER button
results in a different action than pressing q?
For completeness the full output of evtest on pressing KEY_POWER after
selecting event2 is given below:
Code:
--------------------
sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: FREEWAY TECHNOLOGY RFIC-MOUSE Keyboard
/dev/input/event1: FREEWAY TECHNOLOGY RFIC-MOUSE Consumer Control
/dev/input/event2: FREEWAY TECHNOLOGY RFIC-MOUSE System Control
/dev/input/event3: FREEWAY TECHNOLOGY RFIC-MOUSE
/dev/input/event4: FREEWAY TECHNOLOGY RFIC-MOUSE
Select the device event number [0-4]: 2
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x25a7 product 0x2402 version 0x101
Input device name: "FREEWAY TECHNOLOGY RFIC-MOUSE System Control"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 116 (KEY_POWER)
Event code 139 (KEY_MENU)
Event code 142 (KEY_SLEEP)
Event code 143 (KEY_WAKEUP)
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)
Event: time 1597609964.535842, type 4 (EV_MSC), code 4 (MSC_SCAN), value 10081
Event: time 1597609964.535842, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1597609964.535842, -------------- SYN_REPORT ------------
Event: time 1597609964.686864, type 4 (EV_MSC), code 4 (MSC_SCAN), value 10081
Event: time 1597609964.686864, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1597609964.686864, -------------- SYN_REPORT ------------
--------------------
Thanks in advance for your reply, and I hope that I am not asking too
much of your time.
| LMS 7.9.3 | Squeezebox Boom | RPi0W + pCP 6.1.0 + HiFiBerry DAC+ Zero
|
------------------------------------------------------------------------
CJS's Profile: http://forums.slimdevices.com/member.php?userid=68700
View this thread: http://forums.slimdevices.com/showthread.php?t=112709
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix