# odroid C2, 4K TV picture frame.

**URL:** https://dietpi.com/forum/t/odroid-c2-4k-tv-picture-frame/2144
**Category:** Community Tutorials
**Created:** [5 April 2018 18:51 UTC](https://dietpi.com/forum/t/odroid-c2-4k-tv-picture-frame/2144 "2018-04-05T18:51:29Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![hotPhilly](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/dfb087/32.png) [@hotPhilly](https://dietpi.com/forum/u/hotPhilly)
#### Post date: [5 April 2018 18:51 UTC](https://dietpi.com/forum/t/odroid-c2-4k-tv-picture-frame/2144/1 "2018-04-05T18:51:29Z")

</div>

4K TVs are so cheap now, i just bought a 55 inch TV from walmart for $280 with tax.

has anyone tried DietPi with C2 on a 4K TV, with a PIR motion detector, as a picture frame?  
ideally, the PIR motion detector will turn on TV via HDMI CEC when motion is detected. TV stays on for 10mins. if no motion within 10 mins, turn TV off. if motion is still present, stay on for another 10mins.

there are tons of Raspberry Pi tutorial with Jessie image, but none for DietPi on C2. the linux commands should work right?  
asking for confirmation before i even start n accidentally blow up the C2, TV, or house. thanks!

---

<div class="post-metadata">

### Author: ![hotPhilly](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/dfb087/32.png) [@hotPhilly](https://dietpi.com/forum/u/hotPhilly)
#### Post date: [6 April 2018 12:15 UTC](https://dietpi.com/forum/t/odroid-c2-4k-tv-picture-frame/2144/2 "2018-04-06T12:15:58Z")

</div>

this is the full code i got working for the raspberry pi. it will play whatever is on the USB drive continuously.  
havent tried with the PIR motion sensor yet. just ordered the TV and odroid C2. waiting for arrival.  
same codes should work on C2 right?

sudo apt-get update  
sudo apt-get upgrade  
sudo apt-get install feh

sudo apt-get install xinit xserver-xorg

sudo apt-get install lxde-core

sudo apt-get install lightdm  
  
  
  
sudo mkdir /media/usb

sudo nano /home/pi/.config/lxsession/LXDE/autostart  
insert at end:  
@xset s off  
@xset -dpms  
@xset s noblank  
@feh --quiet --fullscreen --borderless --hide-pointer --randomize --slideshow-delay 30 /media/usb/

---

<div class="post-metadata">

### Author: ![hotPhilly](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/dfb087/32.png) [@hotPhilly](https://dietpi.com/forum/u/hotPhilly)
#### Post date: [10 April 2018 15:52 UTC](https://dietpi.com/forum/t/odroid-c2-4k-tv-picture-frame/2144/3 "2018-04-10T15:52:43Z")

</div>

the Odroid C2 just arrived yesterday.  
i was able to get it to boot into desktop GUI.  
i got feh installed and it opened photos on USB drive fine.

BUT this does not work on the C2 obviously:  
sudo nano /home/pi/.config/lxsession/LXDE/autostart

i set up the custom.sh autostart and filled in these:  
@xset s off  
@xset -dpms  
@xset s noblank  
@feh --quiet --fullscreen --borderless --hide-pointer --randomize --slideshow-delay 30 /media/usb/  
  
  
  
unfortunately NONE of them work.  
so the C2 would just boot into the command prompt.  
please help!

---

<div class="post-metadata">

### Author: ![hotPhilly](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/dfb087/32.png) [@hotPhilly](https://dietpi.com/forum/u/hotPhilly)
#### Post date: [10 April 2018 19:29 UTC](https://dietpi.com/forum/t/odroid-c2-4k-tv-picture-frame/2144/4 "2018-04-10T19:29:19Z")

</div>

i finally figured out FEH only works in the desktop GUI.  
so how do i run this simple feh\_start.sh containing these commands?

```nohighlight
xset s off
xset -dpms
xset s noblank
feh --quiet --fullscreen --borderless --hide-pointer --randomize --slideshow-delay 30 /media/usb/

```

after searching, i found this [https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/](https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/)  
i tried putting my codes directly into the file etc/rc.local  
but that didnt work.

---

<div class="post-metadata">

### Author: ![hotPhilly](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/dfb087/32.png) [@hotPhilly](https://dietpi.com/forum/u/hotPhilly)
#### Post date: [11 April 2018 14:15 UTC](https://dietpi.com/forum/t/odroid-c2-4k-tv-picture-frame/2144/5 "2018-04-11T14:15:25Z")

</div>

well, it was a good try.  
i even read this [http://dietpi.com/phpbb/viewtopic.php?f=11&t=811&start=0](http://dietpi.com/phpbb/viewtopic.php?f=11&t=811&start=0)

when reading the error log file, i see my feh\_start.sh file failed because of:  
xset: unable to open display  
feh error: you have no home, cannot read themes

strange that i can manually sh feh\_start.sh in terminal, or double click in GUI and it opens n starts playing images on the usb flash drive. but sh file refuses to open automatically using all FIVE of these methods. i give up. [https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/](https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/)

will try ubuntu next. weird how nobody is using the C2 as a 55 inch picture frame

---

<div class="post-metadata">

### Author: ![hotPhilly](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/dfb087/32.png) [@hotPhilly](https://dietpi.com/forum/u/hotPhilly)
#### Post date: [14 April 2018 12:43 UTC](https://dietpi.com/forum/t/odroid-c2-4k-tv-picture-frame/2144/6 "2018-04-14T12:43:07Z")

</div>

tried ubuntu and it gave me pretty much same problem.

went back to dietpi clean install.  
chose Mate, and autostart in desktop mode with autologin.  
created my script and made it executable. then add it to the autostart application on the top menu and now it works like a charm!  
hope this helps someone who’s an amateur like myself
