2,edit/etc/lirc/hardware.confasbelow:
nano/etc/lirc/hardware.conf
#/etc/lirc/hardware.conf
#
#Argumentswhichwillbeusedwhenlaunchinglircd
LIRCD_ARGS="--uinput"
#Don'tstartlircmdevenifthereseemstobeagoodconfigfile
#START_LIRCMD=false
#Don'tstartirexec,evenifagoodconfigfileseemstoexist.
#START_IREXEC=false
#Trytoloadappropriatekernelmodules
LOAD_MODULES=true
#Run"lircd--driver=help"foralistofsupporteddrivers.
DRIVER="UNCONFIGURED"
#usually/dev/lirc0isthecorrectsettingforsystemsusingudev
DEVICE="/dev/input/event0"
MODULES="sunxi-ir"