Skip to content

Instantly share code, notes, and snippets.

@francis2110
Created January 22, 2015 10:01
Show Gist options
  • Save francis2110/8f69843dd57ae07dce80 to your computer and use it in GitHub Desktop.
Save francis2110/8f69843dd57ae07dce80 to your computer and use it in GitHub Desktop.
Lg infrared codes for making your own remote
on-off->20DF10EF
energy->20DFA956
av. mode->20DF0CF3
input->20DFD02F
tv/rad->20DF0FF0
1->20DF8877
2->20DF48B7
3->20DFC837
4->20DF28D7
5->20DFA857
6->20DF6897
7->20DFE817
8->20DF18E7
9->20DF9867
0->20DF08F7
list->20DFCA35
quick view->20DF58A7
vol +->20DF40BF
vol- ->20DFC03F
prog. +->20DF00FF
prog. - ->20DF807F
guide->20DFD52A
home->20DFC23D
fav->20DF7887
ratio->20DF9E61
mute->20DF906F
arrow up->20DF02FD
arrow down->20DF827D
arrow right->20DF609F
arrow left->20DFE01F
ok button->20DF22DD
back->20DF14EB
info->20DF55AA
exit->20DFDA25
red button->20DF4EB1
green button->20DF8E71
yellow button->20DFC639
blue button ->20DF8679
text->20DF04FB
t.opot->20DF847B
subtitle->20DF9C63
stop->20DF8D72
play->20DF0DF2
pause->20DF5DA2
rew->20DFF10E
forward->20DF718E
ad->20DF8976
@hugoofab
Copy link

Thanks, both of you, mine has an additional 3D button: 20DF3BC4. I wish they had distinct codes for on, off and all the input types. If there are, maybe I can find them.

Hi. I don't know if we had found distinct codes for on and off. I was looking for that too. and I've bought a tiqiaa IR usb adapter and tested all possible codes and found this:

Just OFF
binary: 00100000.11011111.10100011.01011100
hex: 20DF A35C
command: echo -n "+8976 -4432 +576 -544 +576 -544 +576 -1664 +576 -544 +576 -544 +576 -544 +576 -544 +576 -544 +576 -1664 +576 -1664 +576 -544 +576 -1664 +576 -1664 +576 -1664 +576 -1664 +576 -1664 +576 -1664 +576 -544 +576 -1664 +576 -544 +576 -544 +576 -544 +576 -1664 +576 -1664 +576 -544 +576 -1664 +576 -544 +576 -1664 +576 -1664 +576 -1664 +576 -544 +576 -544 +576 -41008 +8992 -2224 +576" | ./tiqiaa_usb_ir.py -s -

just ON
binary: 00100000.11011111.10110011.01001100
hex: 20DF B34C
echo -n "+8976 -4432 +576 -544 +576 -544 +576 -1664 +576 -544 +576 -544 +576 -544 +576 -544 +576 -544 +576 -1664 +576 -1664 +576 -544 +576 -1664 +576 -1664 +576 -1664 +576 -1664 +576 -1664 +576 -1664 +576 -544 +576 -1664 +576 -1664 +576 -544 +576 -544 +576 -1664 +576 -1664 +576 -544 +576 -1664 +576 -544 +576 -544 +576 -1664 +576 -1664 +576 -544 +576 -544 +576 -41008 +8992 -2224 +576" | ./tiqiaa_usb_ir.py -s -

I had follow this:
https://pawitp.medium.com/analyzing-remote-control-code-with-tiqiaa-zazaremote-adaptor-2ca17bed89fe

and used this lib:
https://gitlab.com/normanr/tiqiaa-usb-ir-py

@C0rn3j
Copy link

C0rn3j commented Jun 28, 2025

I don't know if we had found distinct codes for on and off

Yes.

https://gitlab.com/-/snippets/1690600

Your ON seems to differ though.

@hugoofab
Copy link

I don't know if we had found distinct codes for on and off

Yes.

https://gitlab.com/-/snippets/1690600

Your ON seems to differ though.

You're right! I found the code 20DF B34C sending all codes to my TV starting from 00000000 aiming to reach 11111111 until get the code I wanted. So it works fine but it sounds like the official code is 20DF 23DC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment