odroid C2, 4K TV picture frame.

Guides and tutorials for various stuff. Posted by DietPi users.
Post Reply
hotPhilly
Posts: 10
Joined: Thu Apr 05, 2018 7:34 pm

odroid C2, 4K TV picture frame.

Post by hotPhilly »

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!

hotPhilly
Posts: 10
Joined: Thu Apr 05, 2018 7:34 pm

Re: odroid C2, 4K TV picture frame.

Post by hotPhilly »

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/

hotPhilly
Posts: 10
Joined: Thu Apr 05, 2018 7:34 pm

Re: odroid C2, 4K TV picture frame.

Post by hotPhilly »

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!

hotPhilly
Posts: 10
Joined: Thu Apr 05, 2018 7:34 pm

Re: odroid C2, 4K TV picture frame.

Post by hotPhilly »

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

Code: Select all

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/ ... t-startup/
i tried putting my codes directly into the file etc/rc.local
but that didnt work.

hotPhilly
Posts: 10
Joined: Thu Apr 05, 2018 7:34 pm

Re: odroid C2, 4K TV picture frame.

Post by hotPhilly »

well, it was a good try.
i even read this http://dietpi.com/phpbb/viewtopic.php?f ... 11&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/ ... t-startup/

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

hotPhilly
Posts: 10
Joined: Thu Apr 05, 2018 7:34 pm

Re: odroid C2, 4K TV picture frame.

Post by hotPhilly »

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

Post Reply