Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devicetype other than audio #11

Open
nicefile opened this issue May 23, 2023 · 4 comments
Open

devicetype other than audio #11

nicefile opened this issue May 23, 2023 · 4 comments

Comments

@nicefile
Copy link

So I have Yamaha D485 AVR eARC connected to hdmi2 and this works only when magic remote is set on speakers
luna-send -n 1 luna://com.webos.service.irdbmanager/sendIrCommand '{"keyCode":"IR_KEY_POWER","buttonState":"single","connectedInput":"hdmi2","deviceType":"audio"}''

When I dare to set it as hometheather IR signals are not send even If i replace audio to hts
since I've found that value in irdbmanager I assume should be valid

root@LG65C1:~# cat /usr/sbin/irdbmanager |grep append_db.txt
/mnt/lg/cmn_data/irdbmanager/oss_stb_append_db.txt
/mnt/lg/cmn_data/irdbmanager/oss_dvdbd_append_db.txt
/mnt/lg/cmn_data/irdbmanager/oss_hts_append_db.txt
/mnt/lg/cmn_data/irdbmanager/oss_audio_append_db.txt
/mnt/lg/cmn_data/irdbmanager/oss_game_append_db.txt
/mnt/lg/cmn_data/irdbmanager/oss_ott_append_db.txt

IR singals are send ofc when they're triggered from remote menu

any clue ?

@andrewfraley
Copy link
Owner

If your receiver is connected via earc and you're wanting to control its power state, you'll probably have to use HDMI-CEC for that instead. I think is what you want, but would only work if your TV was always on the same input as the receiver: https://github.com/andrewfraley/magic_mapper#send_cec_button

  "...": {
    "function": "send_cec_button",
    "inputs": {
      "code": 18882561
    }
  }

So this would send the HDMI-CEC power command to the current input, but again wouldn't work if you were on a different input than the receiver's input. I'll have to check and see if it's possible to provide the hdmi input number to this function. Personally I just have my receiver set to match its power state with the TV via HDMI-CEC, but I assume you're wanting to be more selective about it?

@nicefile
Copy link
Author

nicefile commented May 23, 2023

Exacly . HDMI-CEC work only if I'm on hdmi2 . I would like to have some more control without grabbing AVR remote or using 3rd party solutions . Family got used to magic remote since first introduced in 2016 OLED

@andrewfraley
Copy link
Owner

andrewfraley commented May 23, 2023

Are you able to use the ... menu to send the power on HDMI-CEC command? My receiver doesn't cause the TV to show any CEC buttons like other devices do, so I can't really test this properly. While on the receiver input, you can try running the following command to see if anything happens (try with the receiver on and see if it turns off). If that works, then you could figure out what the HDMI device ID of the receiver is and replace "remoteControl" with the device ID. I'm not sure how to get the device id yet, but it won't matter if the below doesn't work while on that input.

luna-send -n 1 luna://com.webos.service.eim/cec/sendKeyEvent ' {"key":18882560, "device": "remoteControl", "id": 1676760383405, "type": "keyUp"}'

@nicefile
Copy link
Author

nicefile commented May 24, 2023

[...] menu button dont send hdmi-cec but IR . Covering remote kill transmission . If I set audio i have only Power in [...] menu but in htc i have playback buttons and some more.
I think it's lost cause but able power on/off my Yamaha and turnoff screen by button is good enough improvement for my daily usage. Actually buttons for play/pause in video player and stream apps was main reason for button remap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants