# installing lirc on odroid xu4 - cloudshell

**URL:** <https://dietpi.com/forum/t/installing-lirc-on-odroid-xu4-cloudshell/515>\
**Category:** Community Tutorials\
**Created:** [21 August 2016 17:54 UTC](https://dietpi.com/forum/t/installing-lirc-on-odroid-xu4-cloudshell/515 "2016-08-21T17:54:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![delaerp](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/c4cdca/32.png) [@delaerp](https://dietpi.com/forum/u/delaerp)\
**Post date:** [21 August 2016 17:54 UTC](https://dietpi.com/forum/t/installing-lirc-on-odroid-xu4-cloudshell/515/1 "2016-08-21T17:54:30Z")

</div>

I managed to get the odroid c1 remote working on my XU4 cloudshell box :  
**1. install lirc as mentioned on the odroid wiki :**

```nohighlight
wget https://raw.githubusercontent.com/mdrjr/cloudshell_ir/master/install_ir.sh
chmod +x install_ir.sh
sudo ./install_ir.sh

```

**2. edit the config files in /etc/lirc :**

- hardware.conf

```nohighlight
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev 
DEVICE="/dev/lirc0"
MODULES="gpioplug_ir_recv gpio_ir_recv"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""

```

the DRIVER, DEVICE and MODULES need to be altered.

- lircmd.conf

```nohighlight
#UNCONFIGURED
#
# To find out how to get a proper configuration file please read:
# 
#	/usr/share/doc/lirc/README.Debian

begin
	prog = irexec
	button = KEY_POWER
	config = poweroff
end

begin
	prog = irexec
	button = KEY_HOME
	config = reboot
end

```

You can add other remote buttons if you wish.  
**3. auto start the lirc service**  
In /DietPi/dietpi/dietpi-services add **“lirc”** to the aSERVICE\_NAME list near the top of the script.  
add to the bottom of ~/.bashrc the following line :

```nohighlight
irexec -d /etc/lirc/lircmd.conf

```

**4. Reboot and the remote should be working**

I don’t know if the changes to the dietpi-services will survive an update. If not can someone find an other solution.

---

<div class="post-metadata">

**Author:** ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)\
**Post date:** [21 August 2016 17:59 UTC](https://dietpi.com/forum/t/installing-lirc-on-odroid-xu4-cloudshell/515/2 "2016-08-21T17:59:13Z")

</div>

@delaerp

Legend! Excellent guide and many thanks for sharing. Post got a sticky, 🙂

---

<div class="post-metadata">

**Author:** ![delaerp](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/c4cdca/32.png) [@delaerp](https://dietpi.com/forum/u/delaerp)\
**Post date:** [26 August 2016 08:01 UTC](https://dietpi.com/forum/t/installing-lirc-on-odroid-xu4-cloudshell/515/3 "2016-08-26T08:01:14Z")

</div>

adding the line to dietpi-services is not necessary.

---

<div class="post-metadata">

**Author:** ![rz3dvp](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/43a26b/32.png) [@rz3dvp](https://dietpi.com/forum/u/rz3dvp)\
**Post date:** [25 October 2016 08:50 UTC](https://dietpi.com/forum/t/installing-lirc-on-odroid-xu4-cloudshell/515/4 "2016-10-25T08:50:54Z")

</div>

Thank you for good tutorial @delaerp!  
I have some little questions about Odroid XU4 - cloudshell, - it can start (“power on”) from IR remote control?

---

<div class="post-metadata">

**Author:** ![johnvick](https://dietpi.com/forum/user_avatar/dietpi.com/johnvick/32/16_2.png) [@johnvick](https://dietpi.com/forum/u/johnvick)\
**Post date:** [25 October 2016 22:05 UTC](https://dietpi.com/forum/t/installing-lirc-on-odroid-xu4-cloudshell/515/5 "2016-10-25T22:05:26Z")

</div>

> [@rz3dvp](#):
>
> Thank you for good tutorial @delaerp!  
> I have some little questions about Odroid XU4 - cloudshell, - it can start (“power on”) from IR remote control?

I’d be interested to know this as well - I have an Odroid C2 (running Libreelec) that can be powered on and off with a Logitech Harmony remote programmed as an Odroid remote. Would be good if this worked with the XU4 also.

---

<div class="post-metadata">

**Author:** ![delaerp](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/c4cdca/32.png) [@delaerp](https://dietpi.com/forum/u/delaerp)\
**Post date:** [26 October 2016 07:24 UTC](https://dietpi.com/forum/t/installing-lirc-on-odroid-xu4-cloudshell/515/6 "2016-10-26T07:24:27Z")

</div>

I don’t run a Xserver on XU4 with cloudshell, so I use a shell to with lirc to pass the commands.

---

<div class="post-metadata">

**Author:** ![rz3dvp](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/43a26b/32.png) [@rz3dvp](https://dietpi.com/forum/u/rz3dvp)\
**Post date:** [26 October 2016 10:42 UTC](https://dietpi.com/forum/t/installing-lirc-on-odroid-xu4-cloudshell/515/7 "2016-10-26T10:42:54Z")

</div>

Unfortunate, XU4 can’t start from IR and it’s strange for me, - this feature is must have for XU4&CloudShell than for C2, where it’s enabled… ☹

---

<div class="post-metadata">

**Author:** ![delaerp](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/c4cdca/32.png) [@delaerp](https://dietpi.com/forum/u/delaerp)\
**Post date:** [16 November 2016 23:05 UTC](https://dietpi.com/forum/t/installing-lirc-on-odroid-xu4-cloudshell/515/8 "2016-11-16T23:05:44Z")

</div>

After upgrade to 137 I had to reinstall lirc
