Skip to content

Instantly share code, notes, and snippets.

@jgosmann
Created December 11, 2023 19:06
Show Gist options
  • Save jgosmann/1b3ebb38d0cf4437aec97200b5c72c83 to your computer and use it in GitHub Desktop.
Save jgosmann/1b3ebb38d0cf4437aec97200b5c72c83 to your computer and use it in GitHub Desktop.
lircd configuration file for the RAV328 remote used by the Yamaha RX-V461 A/V receiver
# RAV328 remote for Yamaha RX-V461 receiver
# Based on codes found in http://hifi-remote.com/forums/dload.php?action=file&file_id=9582
begin remote
name RAV328
bits 32
flags SPACE_ENC|CONST_LENGTH
gap 108000
zero 563 562
one 563 1687
header 9000 4500
ptrail 563
toggle_bit_mask 0x0
begin codes
# STANDARD CODES
KEY_POWER 0x7e817e81
KEY_STANDBY 0x7e81fe01
KEY_CD 0x5ea1a857
KEY_DTV_CBL 0x5ea12ad5
KEY_DVD 0x5ea1837c
KEY_DVR 0x5ea1c837
KEY_MD_CD_R 0x5ea1936c
KEY_TUNER 0x5ea16897
KEY_V_AUX 0x5ea1aa55
KEY_MULTI_CH_INPUT 0x5ea1e11e
KEY_VOLUME_VOL_UP 0x5ea158a7
KEY_VOLUME_VOL_DOWN 0x5ea1d827
KEY_MUTE 0x5ea138c7
KEY_SLEEP 0x5ea1ea15
KEY_SET_MENU 0x5ea121de
KEY_UP 0x5ea1b946
KEY_DOWN 0x5ea139c6
KEY_LEFT 0x5ea1f906
KEY_RIGHT 0x5ea17986
KEY_ENTER 0x5ea17b84
KEY_RETURN 0x5ea155aa
KEY_AUDIO_SEL 0x5ea1c33c
KEY_PROGRAM_UP 0x5ea11ae5
KEY_PROGRAM_DOWN 0x5ea19a65
KEY_LEVEL 0x5ea1619e
KEY_PURE_DIRECT 0x5ea1bb44
KEY_DIRECT_STEREO 0x5ea1bb44
KEY_ENHANCER 0x5ea129d6
KEY_SELECT 0x5ea16996
KEY_CLASSICAL 0x5ea111ee
KEY_ENTERTAIN 0x5ea1916e
KEY_MOVIE 0x5ea151ae
KEY_LIVE_CLUB 0x5ea1916e
KEY_MUSIC 0x5ea111ee
KEY_STEREO 0x5ea1d12e
KEY_SUR_DECODE 0x5ea1b14e
KEY_STRAIGHT 0x5ea16a95
KEY_NIGHT 0x5ea1a956
KEY_TUNER_PRESET_CH_UP 0x5ea108f7
KEY_TUNER_PRESET_CH_DOWN 0x5ea18877
KEY_TUNER_BAND 0x5ea1758a
KEY_TUNER_PRESET_1 0x5ea1a758
KEY_TUNER_PRESET_2 0x5ea16798
KEY_TUNER_PRESET_3 0x5ea1e718
KEY_TUNER_PRESET_4 0x5ea117e8
KEY_TUNER_PRESET_5 0x5ea19768
KEY_TUNER_PRESET_6 0x5ea157a8
KEY_TUNER_PRESET_7 0x5ea1d728
KEY_TUNER_PRESET_8 0x5ea137c8
# I couldn't verify these keys to work.
KEY_SPEAKERS 0x5ea159a6
KEY_TUNER_A_E_CAT_UP 0x5ea148b7
KEY_TUNER_A_E_CAT_DOWN 0x5ea135ca
# KEY_ON_SCREEN_DISPLAY does not seem to work with the RX-V461.
# Wrong code? Not supported? But there should be a working "display" button ...
KEY_ON_SCREEN_DISPLAY 0x5ea143bc
# I think the RX-V461 has no XM input and thus these keys are ignored.
KEY_XM 0x5ea12dd2
KEY_XM_PRESET_CH_UP 0x5ea156a9
KEY_XM_PRESET_CH_DOWN 0x5ea1d629
KEY_XM_A_E_CAT_UP 0x5ea136c9
KEY_XM_A_E_CAT_DOWN 0x5ea17689
KEY_XM_SRCH_MODE 0x5ea1b649
KEY_XM_ENTER_H_R 0x5ea1f609
KEY_XM_TITLE 0x5ea10ef1
KEY_XM_MEMORY 0x5ea18e71
KEY_XM_DISPLAY 0x5ea14eb1
KEY_XM_PRESET_1 0x5ea18679
KEY_XM_PRESET_2 0x5ea146b9
KEY_XM_PRESET_3 0x5ea1c639
KEY_XM_PRESET_4 0x5ea126d9
KEY_XM_PRESET_5 0x5ea1a659
KEY_XM_PRESET_6 0x5ea16699
KEY_XM_PRESET_7 0x5ea1e619
KEY_XM_PRESET_8 0x5ea116e9
KEY_XM_PRESET_9 0x5ea19669
KEY_XM_PRESET_0 0x5ea106f9
KEY_XM_ENT 0x5ea1fd02
# I think Zone 2 is also not supported by the RX-V461?
KEY_ZONE2_POWER 0x7e815da2
KEY_ZONE2_STANDBY 0x7e81dd22
KEY_ZONE2_VOLUME_VOL_UP 0x5ea15ba4
KEY_ZONE2_VOLUME_VOL_DOWN 0x5ea1db24
KEY_ZONE2_MUTE 0x5ea13bc4
KEY_ZONE2_CD 0x5ea18b74
KEY_ZONE2_DTV_CBL 0x5ea19b64
KEY_ZONE2_DVD 0x5ea1b34c
KEY_ZONE2_DVR 0x5ea1eb14
KEY_ZONE2_MD_CD_R 0x5ea1f30c
KEY_ZONE2_PHONO 0x5ea10bf4
KEY_ZONE2_TUNER 0x5ea14bb4
KEY_ZONE2_XM 0x5ea11de2
KEY_ZONE2_V_AUX 0x5ea11be4
KEY_ZONE2_VCR 0x5ea16b94
# EXTENDED CODES
KEY_MAIN_POWER_ON 0x7e817e81
KEY_MAIN_POWER_OFF 0x7e81fe01
KEY_AUDIO_MUTE_ON 0x7e8145ba
KEY_AUDIO_MUTE_OFF 0x7e81c53a
KEY_AUDIO_MUTE_SET_LEVEL 0x7e81fb04
KEY_MULTI_CH_INPUT_ON 0x7e8125da
# KEY_MULTI_CH_INPUT_OFF doesn't seem to have a function.
KEY_MULTI_CH_INPUT_OFF 0x7e81a55a
KEY_SLEEP_OFF 0x7e81cd32
KEY_SLEEP_120 0x7e812dd2
KEY_SLEEP_90 0x7e81ad52
KEY_SLEEP_60 0x7e816d92
KEY_SLEEP_30 0x7e81ed12
KEY_NIGHT_MODE_ON 0x7e81d926
KEY_NIGHT_MODE_OFF 0x7e8139c6
KEY_2CH_DECODER_PLII_MOVIE 0x7e81e619
KEY_2CH_DECODER_PLII_MUSIC 0x7e8116e9
KEY_2CH_DECODER_PLII_GAME 0x7e81e31c
KEY_2CH_DECODER_PROLOGIC 0x7e81936c
KEY_PROGRAM_STRAIGHT 0x7e8107f8
KEY_PROGRAM_HALL 0x7e818778
KEY_PROGRAM_GAME 0x7e814fb0
KEY_PROGRAM_POP_ROCK 0x7e81cf30
KEY_PROGRAM_SPORTS 0x7e811fe0
KEY_PROGRAM_SPACIOUS 0x7e819f60
KEY_PROGRAM_DRAMATIC 0x7e813fc0
KEY_PROGRAM_XCH_STEREO 0x7e81ff00
KEY_PROGRAM_2CH_STEREO 0x7e8103fc
KEY_PROGRAM_NIGHT_MUSIC 0x7e81f30c
KEY_PROGRAM_ENHANCER_2CH 0x7e811be4
KEY_TUNER_FM 0x7e813dc2
KEY_TUNER_AM 0x7e81bd42
KEY_TUNER_AUTO_TUNING_UP 0x7e817d82
KEY_TUNER_AUTO_TUNING_DOWN 0x7e81fd02
KEY_TUNER_PRESET_A 0x5ea107f8
KEY_TUNER_PRESET_B 0x5ea18778
KEY_TUNER_PRESET_C 0x5ea147b8
KEY_TUNER_PRESET_D 0x5ea1c738
KEY_TUNER_PRESET_E 0x5ea127d8
# The following keys do not seem to work with the RX-V641.
KEY_DECODE_MODE_AUTO 0x7e81659a
KEY_DECODE_MODE_DTS 0x7e8115ea
KEY_AUDIO_SELECT_AUTO 0x7e81659a
KEY_AUDIO_SELECT_COAX_OPT 0x7e81956a
KEY_AUDIO_SELECT_ANALOG 0x7e8155aa
KEY_ONSCREEN_OFF 0x7e810df2
KEY_ONSCREEN_FULL 0x7e814db2
KEY_DISPLAY_ON 0x7e810bf4
KEY_DISPLAY_OFF 0x7e818b74
KEY_PROGRAM_EFFECT_ON 0x7e81e41b
# Neural Sur. decoder and XM are not supported by the RX-V461, I think.
KEY_2CH_DECODER_NEURAL_SUR 0x7e8133cc
KEY_XM_ALL_CH_SRCH 0x5ea1ad52
KEY_XM_CATEGORY_SRCH 0x5ea16d92
KEY_XM_PRESET_SRCH 0x5ea1ed12
KEY_XM_PRESET_A 0x5ea15da2
KEY_XM_PRESET_B 0x5ea1dd22
KEY_XM_PRESET_C 0x5ea13dc2
KEY_XM_PRESET_D 0x5ea1bd42
end codes
end remote
# Unfortunately this seem to be the wrong codes for the scene keys.
# At least I couldn't get them to work.
begin remote
name RAV328_SCENE
bits 48
flags SPACE_ENC|CONST_LENGTH
gap 108000
zero 563 562
one 563 1687
header 9000 4500
ptrail 563
toggle_bit_mask 0x0
begin codes
KEY_SCENE1 0x5ea100fffe01
KEY_SCENE2 0x5ea1c03f3ec1
KEY_SCENE3 0x5ea1609f9e61
KEY_SCENE4 0x5ea1906f6e91
end codes
end remote
# iPod key codes, not sure if these are supported by the RX-V461
begin remote
name RAV328_IPOD
bits 48
flags SPACE_ENC|CONST_LENGTH
gap 108000
zero 563 562
one 563 1687
header 9000 4500
ptrail 563
toggle_bit_mask 0x0
begin codes
KEY_UP 0xfe01807f708f
KEY_MENU 0xfe01807ff00f
KEY_MENU_LEFT 0xfe01807f08f7
KEY_ENTER 0xfe01807f8877
KEY_MENU_RIGHT 0xfe01807f48b7
KEY_DOWN 0xfe01807f28d7
KEY_DISPLAY 0xfe01807fa857
KEY_REW 0xfe01807fe817
KEY_FF 0xfe01807f18e7
KEY_PAUSE 0xfe01807f58a7
KEY_SKIP_MINUS 0xfe01807fd827
KEY_SKIP_PLUS 0xfe01807f38c7
KEY_STOP 0xfe01807fb847
KEY_PLAY 0xfe01807f7887
end codes
end remote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment