faginbagin Posted December 19, 2013 Report Share Posted December 19, 2013 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. Quote Link to comment Share on other sites More sharing options...
faginbagin Posted June 11, 2014 Author Report Share Posted June 11, 2014 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 Quote Link to comment Share on other sites More sharing options...
faginbagin Posted June 11, 2014 Author Report Share Posted June 11, 2014 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 Quote Link to comment Share on other sites More sharing options...
yawor Posted June 25, 2014 Report Share Posted June 25, 2014 I have that too. It seems that every key that has a modifier is skipped when viewing in CLI. It should be rather easy to fix/add that to the tool by dev. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.