August 14, 2020, 04:03:23 pm


Have you visited the Allwinner Chipset wiki? -

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - classdroogies


I wrote a tutorial for create basic video kiosk in few year ago and I decided to update this :),879.0.html

I use Armbian with a customized image Ubuntu xenial, with legacy kernel, without desktop packages for minimal fresh installation.

Note video acceleration work only with legacy kernel.

For mainline kernel the development is currently work in progress :

Read the Armbian documentation for build your image.

With this image it's very simple, you must have a few packages :

sudo apt-get install xserver-xorg-core xinit xserver-xorg-video-fbdev xfonts-base libvdpau-sunxi1 nodm mpv

And a fewest configuration :

Add this parameters to /boot/armbianEnv.txt for enable memory reservations


Configure nodm with your user which should be automatically logged in, under /etc/default/nodm file :


Create ~/.xsession to launch mpv

#! /bin/bash
mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all --loop=yes /home/cubie/video/*.mp4

And of course, you must have a video to read :

mkdir ~/video

wget -O ~/video/big_buck_bunny.mp4

Now reboot and  8)
Quote from: GeorgeIoak on December 01, 2013, 06:52:20 pm
But since I've already rebooted I'm not able to issue any sudo commands. Do you happen to know a way in?

I took the SD Card out and on another system issued
sudo visudo -f /media/cubieboard/etc/sudoers

and added
cubie   ALL=(ALL:ALL) ALL

Probably not the safest thing to do but I just wanted to get the system up so I could do some testing.

Have you enable root user ?

You must have this line in sudoers :

%sudo ALL=(ALL) ALL

And with root user :

usermod -G sudo,video,audio cubie
Quote from: GeorgeIoak on December 01, 2013, 04:22:46 pm
I got some time to try this out and I'm not getting it to work. I'm trying this on a CB1 and using the latest Cubian release. What's odd at this point is that when I try to debug what is going on I can no longer issue a sudo command. It comes back and says
Quotecubie is not in the sudoers file
. I can ssh in with cubie/cubie but can't do any sudo commands.


You must add user cubie in sudo group with root user.

I've modified my tutorial....

Quote from: classdroogies on October 12, 2013, 07:00:30 pm

Add your user to the video and audio groups :
sudo usermod -G sudo,video,audio cubie

Hi patwood,

I see this message with mplayer on debian. If I list the outputs videos :
mplayer -vo help

vdpau output doesn't exist, because mplayer is not build with.

mplayer2 support vdpau by default try it.

A tutorial for create a basic video kiosk on CB2 with mplayer, for fun  :)

I use Cubian up to date with the last kernel :

Install and run cubian-update :
sudo apt-get update
sudo apt-get install cubian-update
sudo cubian-update
sudo reboot

Packages installation :
sudo apt-get upgrade
sudo apt-get install xserver-xorg-core xinit xserver-xorg-video-sunximali slim alsa-utils mplayer2 gcc make pkg-config libvdpau1 libvdpau-dev

Add sunxi_cedar_mod in /etc/modules for activate cedar.

Install libvdpau-sunxi library for mplayer :
git clone

cd libvdpau-sunxi
sudo make install

Add environment variable VDPAU_DRIVER=sunxi in /etc/environment.

Add udev rules for change the permission on /dev/disp and /dev/cedar_dev in /lib/udev/rules.d/90-sunxi-disp-permission.rules :
KERNEL=="disp", MODE="0777", GROUP="video"
KERNEL=="cedar_dev", MODE="0777", GROUP="video"

Add your user to the video and audio groups :
sudo usermod -G sudo,video,audio cubie

Login auto with slim :
login_cmd exec /bin/sh - ~/.xinitrc
default_user cubie
auto_login yes

Create video folder :
mkdir ~/video

Download Sintel's trailer for a test :
wget -O ~/video/sintel_trailer-1080p.mp4

Create ~/.xinitrc to launch mplayer :
mplayer -fs -ao alsa:device=hw=1.0 -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau -loop 0 /home/cubie/video/*.mp4

Reboot and  8)
Hi patwood,

I had trying Vdpau's solution on Lubuntu 12.10 SD card image, and i have this error me too.
On this image i hadn't cedar_dev's device and i think mplayer has need to write data to this output with vdpau

But i'm a newby on linux embedded systems, i learn to build my system on my Cubieboard.

Thanks for your time and thanks for your great job on this card !

Sorry for my English  :o

You should install libvdpau-dev library and pkg-config for compile libvdpau-sunxi.

It's works great on Cubieez, Debian 7.1

You also need to change permissions on:

chmod 777 / dev / cedar_dev
chmod 777 / dev / disp

Look at this :