Jump to content
Flirc Forums

"flirc_util record_api 1 p" doesn't generate Ctrl+P


Recommended Posts

I would like to program one of my remote's keys to generate Ctrl+P, which I believe should be possible using flirc_util's record_api command with arg1 = 1 for Left Control and arg2 = p. But when I type this command, I get the message:

 

hit a key on the remote to be paired with 1 0
 

 

(Note the 0, not P)

If I then press a remote key and then test the result using xev, I find that the key only generates Ctrl_L up/down events. No P.

 

This is with version 1.0.6 on Mythbuntu 13.10 saucy. I have been able to record over 60 keys using "flirc_util record char", including pageup/down, return, space, etc. I just can't get Ctrl+P.

 

I also noticed that "flirc_util settings" doesn't show the ctrl key in the list of recorded keys, although the count of recorded keys increases after I record that key.

Link to post
Share on other sites
  • 5 months later...

I finally figured it out.

I was using the ascii key, p, for the second argument to flirc_util record_api.

I should have been using the IEEE HID code, 0x13 = 19 (base 10), which I got from this post:

which lead me to the HID codes here:

http://www.freebsddiary.org/APC/usb_hid_usages

 

So to set a key to generate Ctrl-P, the correct command is:

flirc_util record_api 1 19
Link to post
Share on other sites

OK so the above command works and my flirc generates Ctrl+P when I press the appropriate key on the remote, but here's what's weird. The key doesn't show up when I type "flirc_util settings", but an index (in this case, 3) is skipped. Here's the output:

flirc_util version v1.2.6 [v1.2.6]
  Firmware: v2.6

Settings:
  sleep detection:  Disabled
  noise canceler:   Disabled
  inter-key delay:  4
  state:            0
  builtin profiles: Enable

Memory Info:
  keys recorded:  10
  keys remaining: 159
  memory used:    6%

Recorded Keys:
Index  hash        key
-----  ---------   ---
    0  1F4078A3    >
    1  5F190E7C    <
    2  DF5224B7    *
    4  148C61EE    next_track
    5  DF895EFB    next_track
    6  D467F8DB    prev_track
    7  1FCEF6C8    prev_track
    8  404078A3    play/pause
    9  DF3B78A3    stop
Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...