1.36 HID keyboard custom actions no longer work (1 Viewer)

rsbrux

Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,215
    176
    Home Country
    Switzerland Switzerland
    I have used custom actions in the "Mapping" section of "HID" since moving to a FLIRC as a remote receiver a couple of years ago. In MP 1.36, the programmed keys are not effective, also not with a regular keyboard connected via USB or legacy keyboard connector. The keys are shortcuts to replace functions normally provided by RC6 remotes, such as RecordedTV, TVGuide, etc. (see 42 Keyboard Shortcuts for controlling Windows Media Center - Simple Help). I have attached configuration and log files.

    P.S. The behavior seems skin-independent. I have the same results with 3 different skins.

    P.P.S. Although the new mappings were recorded in hid.full.user.xml, they do not appear in the mapping editor when I reinvoke it in the MP config editor.
     

    Attachments

    • MediaPortalLogs.zip
      20.9 KB
    • MediaPortal.xml
      45.3 KB
    • hid.full.user.xml
      47.9 KB
    Last edited:

    Pablik

    Retired Team Member
  • Premium Supporter
  • August 19, 2010
    837
    1,331
    Home Country
    Czech Republic Czech Republic
    On the HID page, there is a checkbox: 'Extended logging'. Try to check it to see hid events in the log.

    P.P.S. Although the new mappings were recorded in hid.full.user.xml, they do not appear in the mapping editor when I reinvoke it in the MP config editor.
    Where did you put the xml file? Standart location is 'C:\Users\All Users\Team MediaPortal\MediaPortal\InputDeviceMappings'.
     

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,215
    176
    Home Country
    Switzerland Switzerland
    On the HID page, there is a checkbox: 'Extended logging'. Try to check it to see hid events in the log.
    New logs with HID extended logging (and debug level) attached. I pressed half a dozen of the keys that were added to hid.full.user.xml
    Where did you put the xml file? Standart location is 'C:\Users\All Users\Team MediaPortal\MediaPortal\InputDeviceMappings'.
    That's where it is, but I didn't put it there; MP config did.
     

    Attachments

    • MPlog.zip
      25.1 KB

    Pablik

    Retired Team Member
  • Premium Supporter
  • August 19, 2010
    837
    1,331
    Home Country
    Czech Republic Czech Republic
    New logs with HID extended logging (and debug level) attached. I pressed half a dozen of the keys that were added to hid.full.user.xml
    I don't see any HID event logs in the file.
    I did a test on Win(7,10,11) with profile 'full' + 'HID Keyboard' checked and I'm getting HID keyb events in all OS logs.

    That's where it is, but I didn't put it there; MP config did.
    If I put your xml file into InputDeviceMappings folder, then I can see it in my list.
    BTW, how did you create your xml profile file? I'm not aware of any way how to create a custom file.
     

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,215
    176
    Home Country
    Switzerland Switzerland
    I don't see any HID event logs in the file.
    I did a test on Win(7,10,11) with profile 'full' + 'HID Keyboard' checked and I'm getting HID keyb events in all OS logs.


    If I put your xml file into InputDeviceMappings folder, then I can see it in my list.
    BTW, how did you create your xml profile file? I'm not aware of any way how to create a custom file.
    It looks like the extended logging setting didn't "take". I reenabled it and have attached new logs.
    I started out by adding some keys through the MP config mapping dialog in order to find out where they were being stored. Then I found a copy from an older installation where I had all of the keys I needed mapped and working and compared the files. The keys I had entered through the MP config UI matched the entries in the old file, so I just merged the missing entries from the old file into the current file.
    I'm not sure whether the attached logfiles contain any of the new keystrokes (Ctl-G, Ctl-O, Ctl-T, etc.), but you should at least see HID events.
     

    Attachments

    • MPlogs.zip
      105.7 KB

    Pablik

    Retired Team Member
  • Premium Supporter
  • August 19, 2010
    837
    1,331
    Home Country
    Czech Republic Czech Republic
    It looks like the extended logging setting didn't "take". I reenabled it and have attached new logs.
    I started out by adding some keys through the MP config mapping dialog in order to find out where they were being stored. Then I found a copy from an older installation where I had all of the keys I needed mapped and working and compared the files. The keys I had entered through the MP config UI matched the entries in the old file, so I just merged the missing entries from the old file into the current file.
    I'm not sure whether the attached logfiles contain any of the new keystrokes (Ctl-G, Ctl-O, Ctl-T, etc.), but you should at least see HID events.
    No HID events in the log. If I take your xml profile with extended logging enebled, I can see in the log:
    Code:
    [2025-02-12 10:50:51,933] [Log    ] [MPMain   ] [INFO ] - 
    HID Event, DOWN, Keyboard, Virtual Key: LControlKey
    [2025-02-12 10:50:51,933] [Log    ] [MPMain   ] [INFO ] - HID: try mapping virtual code 0x00A2
    [2025-02-12 10:50:52,160] [Log    ] [MPMain   ] [INFO ] - 
    HID Event, DOWN, Keyboard, Virtual Key: G
    [2025-02-12 10:50:52,160] [Log    ] [MPMain   ] [INFO ] - HID: try mapping virtual code 0x0047
    [2025-02-12 10:50:52,160] [Log    ] [MPMain   ] [INFO ] - Action: * / -1 / WINDOW / 600
    [2025-02-12 10:50:52,260] [Log    ] [MPMain   ] [INFO ] - 
    HID Event, UP, Keyboard, Virtual Key: G
    [2025-02-12 10:50:52,390] [Log    ] [MPMain   ] [INFO ] - 
    HID Event, UP, Keyboard, Virtual Key: LControlKey

    So, your profile file works (tested Ctrl+G). Please, post your MediaPortal.xml file again.
     

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,215
    176
    Home Country
    Switzerland Switzerland
    MediaPortal.xml attached along with hid.full.user1.xml, which mysteriously appeared in InputDeviceMappings after fooling around some more with the Mappings dialog.
    It seems to be the result of my "Reset" attempt, even though the timestamp is much later, because it no longer has any of my added ctl-hotkeys. How MP knows which XML file to use for HID mappings is a mystery to me, since I find no reference in MediaPortal.xml. If my added keys are working in your setup, perhaps you could add them to the default hid.full.xml in MP 1.37. I don't think they conflict with any other key mappings and they would be useful for anyone who is using a controller that appears to Windows as an HID keyboard.
     

    Attachments

    • MediaPortal.xml
      45.7 KB
    • hid.full.user1.xml
      47 KB

    Pablik

    Retired Team Member
  • Premium Supporter
  • August 19, 2010
    837
    1,331
    Home Country
    Czech Republic Czech Republic
    How MP knows which XML file to use for HID mappings is a mystery to me, since I find no reference in MediaPortal.xml. If my added
    In your MP xml:
    <entry name="HidProfile">full</entry>

    That means, MP uses 'hid.full.xml' file and not 'hid.full.user1.xml'.
     

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,215
    176
    Home Country
    Switzerland Switzerland
    'hid.full.xml' is in 'InputDeviceMappings' under 'defaults', whereas 'hid.full.user*.xml' are in 'InputDeviceMappings' directly under 'MediaPortal'. What do you have for "HidProfile" in MediaPortal.xml for the configuration where you have my 'hid.full.user.xml' working?
     

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,215
    176
    Home Country
    Switzerland Switzerland
    I added ctl-g for TVguide back in the "mappings" dialog, which resulted in "hid.full.user2.xml" in "InputDeviceMappings". In "MediaPortal.xml", "HidProfile" is still just "full".
     

    Attachments

    • hid.full.user2.xml
      47.1 KB
    • MediaPortal.xml
      45.7 KB

    Users who are viewing this thread

    Top Bottom