Getting Started | Visit the WIKI | IRC Logs | Forum Rules/Policy

Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,415
» Latest member: susushan
» Forum threads: 2,659
» Forum posts: 24,164

Full Statistics

Latest Threads
Android 6.0 Tablet and TV...
Forum: Android
Last Post: Ophir
36 minutes ago
» Replies: 176
» Views: 22,104
Sample GPIO codes highlig...
Forum: Pi2, Euler and Exp GPIO Ports
Last Post: MarkHaysHarris777
11 hours ago
» Replies: 1
» Views: 359
Gentoo Linux test image
Forum: Linux
Last Post: xalius
Yesterday, 06:05 AM
» Replies: 18
» Views: 2,193
LCD touchscreen
Forum: Hardware, Accessories and POT
Last Post: maya.b
Yesterday, 04:55 AM
» Replies: 2
» Views: 77
Pine64 cannot boot
Forum: Linux
Last Post: jamiechang917
Yesterday, 03:30 AM
» Replies: 4
» Views: 80
EMMC cards in Pine64 stor...
Forum: General Discussion on PINE A64(+)
Last Post: tllim
Yesterday, 01:28 AM
» Replies: 5
» Views: 299
PINE A64(+) and PINEBOOK ...
Forum: General Discussion on PINEBOOK
Last Post: pineadmin
03-23-2017, 11:32 PM
» Replies: 0
» Views: 71
Android 6.0.1 Image (LCD ...
Forum: Android
Last Post: tllim
03-23-2017, 11:08 PM
» Replies: 9
» Views: 977
Turn your Pine64 into a m...
Forum: Ubuntu
Last Post: tllim
03-23-2017, 10:50 PM
» Replies: 2
» Views: 200
Forum: Newbie and Startup
Last Post: tllim
03-23-2017, 10:16 PM
» Replies: 19
» Views: 1,267

  PINE A64(+) and PINEBOOK related topic
Posted by: pineadmin - 03-23-2017, 11:32 PM - Forum: General Discussion on PINEBOOK - No Replies

For PINE A64(+) and PINEBOOK related topic, please post it under PINE A64(+) forum and use the +PINEBOOK thread subject prefix to indicate that the thread/topic is also related to PINEBOOK.

Print this item

  LCD touchscreen
Posted by: stephen fleming - 03-23-2017, 03:26 PM - Forum: Hardware, Accessories and POT - Replies (2)

Is it possible to use the LCD touchscreen with the SOPINE board using Linux? The reason why I ask, is that I was looking at a recent thread:
Jessica Spongekipper posted

/boot/uEnv.txt looking like:    

   optargs=enforcing=0 cma=384M no_console_suspend

   # Uncomment to enable LCD screen
When i opened the same file running the version of Ubuntu for the SOPINE, this is what I saw:
console=tty0 console=ttyS0,115200n8 no_console_suspend
The line to enable the LCD was not there. Is it located in another file?

Print this item

Question Pine64 cannot boot
Posted by: jamiechang917 - 03-23-2017, 08:30 AM - Forum: Linux - Replies (4)

My Pine64+(2GB) cannot boot with any linux image,but it can boot with android image,I use 5V2.5A power supply unit and 30 cm usb cable.

Print this item

  PINE A64(+) and SOPINE related topic
Posted by: pineadmin - 03-22-2017, 10:28 AM - Forum: General Discussion on SOPINE - No Replies

For PINE A64(+) and SOPINE related topic, please post it under PINE A64(+) forum and use the +SOPINE thread subject prefix to indicate that the thread/topic is also related to SOPINE.

Print this item

  Turn your Pine64 into a music server with mpd
Posted by: JulianM - 03-22-2017, 06:47 AM - Forum: Ubuntu - Replies (2)

Hi together!

This topic is structured into a few categories.
• Prepare your Pine64
• Installing und setup MPD
• Fix sound problems with alsamixer
• Installing und setup Samba
• Control your MPD via IR remote control
• My own setup

» Prepare your Pine64

What do you need?
- Pine64 board.
- Speakers via audiojack.
- Install the latest Ubuntu image by longsleep.

What you'll get?
- A music server which can be controlled via Windows, Linux and Android.

First of all:
Download the latest Ubuntu image by longsleep.
Overview of all Ubuntu images powered by longsleep

I downloaded the following image:

After you have downloaded and burned the image on your micro sdcard you need to apply some pre requirements.

If you just downloaded the Ubuntu image you have to resize the partitions of your microsd card.
Just enter this command:

Next step: Update the software of Pine64.
apt-get update
apt-get upgrade

Ok, all pre requirements are given now.

» Installing und setup MPD

Let's install mpd!
apt-get install mpc mpd
mpc (Music Player Command, client) is a command line program to manage mpd (Music Player Daemon, server).

Fix permissions of mpd directories:
chmod 770 /var/lib/mpd/music/ /var/lib/mpd/playlists/
chown -R mpd:audio /var/lib/mpd/music/ /var/lib/mpd/playlists/

Apply my config for mpd:
cat <<EOF >/etc/mpd.conf
music_directory      "/var/lib/mpd/music"
playlist_directory   "/var/lib/mpd/playlists"
db_file              "/var/lib/mpd/tag_cache"
log_file             "/var/log/mpd/mpd.log"
pid_file             "/run/mpd/pid"
state_file           "/var/lib/mpd/state"
sticker_file         "/var/lib/mpd/sticker.sql"
user                 "mpd"
port                 "6600"
log_level            "verbose"
restore_paused       "yes"
auto_update          "yes"
auto_update_depth    "3"
filesystem_charset   "UTF-8"
id3v1_encoding       "UTF-8"

input {
    plugin          "curl"

audio_output {
    type            "alsa"
    name            "My ALSA Device"
    mixer_type      "software"
The configuration of mpd is done.

Now activate audio output via 3.5 audiojack!
But please note:
The 3.5 audiojack will be the default device for all audio output with these configs!
cat <<EOF >/etc/modules-load.d/pine64-audiojack.conf
cat <<EOF >/etc/asound.conf
pcm.!default {
       type plug slave {
               pcm "hw:1,0"

ctl.!default {
       type hw
       card 1

Reboot your Pine64 to apply changes of sound cards.

Just copy all your music files into the following directory:
I'll explain how to copy files from your Windows machine easily to your mpd server at the end of this post!

Take note that ownerships are correct!
If not, apply them.
chown -R mpd:audio /var/lib/mpd/music/

Update the music database of mpd with mpc.
mpc update

Alright, you're done!

Feel free to manage your mpd server with different mpd clients!
These are my favourites:
• Linux & Windows: Gnome Music Player Client
• Android: MPD ControlDroid MPD Client

» Fix sound problems with alsamixer

Normally there should be no problems with sound if you are using the latest Ubuntu image by longsleep.
So, you are advised to check the following settings in alsamixer.
Unmute "Headphone" with toogling "m"
Set "ADCL Mux" to "DMIC".
Set "ADCR Mux" to "DMIC".
Set "AIF1 DAC timeslot 0 volume" to 85.
Set "AIF1IN0L Mux" to "AIF1_DA0L".
Set "AIFIN0R Mux" to "AIF1_DA0R".
Unmute "DACL Mixer ADCL" with toogling "m"
Unmute "DACL Mixer AIF1DA0L" with toogling "m"
Unmute "DARC Micer ADCR" with toogling "m"
Unmute "DACR Mixer AIFDA0R" with toogling "m"
Set "digital volume" to "0".
Set "headphone volume" to "75".

» Installing und setup Samba

How to copy your files from your Windows machine to your Pine64 - Use SFTP or... Let's install Samba!

apt-get install samba-common samba

Create a Samba user to manage your files:
smbpasswd -a mpd
Just set a password for mpd user.

Apply my config to login via Samba with mpd user:
cat <<EOF >/etc/samba/smb.conf
workgroup = WORKGROUP
server string = Samba Server %v
security = user
dns proxy = no

path = /var/lib/mpd
valid users = mpd
force user = mpd
force group = audio
create mask = 0660
directory mask = 0770
browsable = yes
writable = yes

Restart Samba.
/etc/init.d/samba restart
Now you are able to copy your music very easily from Windows to your Pine64.

Just add a "Network ressource" on Windows with the following path:
Username: mpd
Password: You have choosen it with "smbpasswd -a mpd"

[Image: mpdbsufd.png]

» Control your MPD via IR remote control

Control your MPD server with the official IR remote control by Pine64!

You need to install "keybinder", to re-mapping the keys of your IR remote control to execute commands.
apt-get install unzip gcc make
cd ~
mkdir keybinder
cd keybinder
cd keybinder-master/
make install
cd ~
rm -r ~/keybinder

Use "evtest" to determine the event input of IR receiver:
apt-get install evtest
Choose the event number with "sunxi_ir_recv".
The event number depends of the plugged in usb devices!!!

root@pine64:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:      sunxi-keyboard
/dev/input/event1:      axp81x-supplyer
/dev/input/event2:      sunxi-ths
/dev/input/event3:      audiocodec sunxi Audio Jack
/dev/input/event4:      sunxi_ir_recv
/dev/input/event5:      MCE IR Keyboard/Mouse (sunxi-rc-recv)

Now press a few buttons on your IR remote control.
You should see some entries like...
Testing ... (interrupt to exit)
Event: time 1490184760.781095, type 4 (EV_MSC), code 4 (MSC_SCAN), value 40400d
Event: time 1490184760.781095, type 1 (EV_KEY), code 13 (KEY_EQUAL), value 1
Event: time 1490184760.781095, -------------- SYN_REPORT ------------
Event: time 1490184761.023186, type 1 (EV_KEY), code 13 (KEY_EQUAL), value 0
Event: time 1490184761.023186, -------------- SYN_REPORT ------------
Event: time 1490184761.793386, type 4 (EV_MSC), code 4 (MSC_SCAN), value 404010
Event: time 1490184761.793386, type 1 (EV_KEY), code 16 (KEY_Q), value 1
Event: time 1490184761.793386, -------------- SYN_REPORT ------------
Event: time 1490184762.043188, type 1 (EV_KEY), code 16 (KEY_Q), value 0
Event: time 1490184762.043188, -------------- SYN_REPORT ------------
Event: time 1490184762.734733, type 4 (EV_MSC), code 4 (MSC_SCAN), value 404011
Event: time 1490184762.734733, type 1 (EV_KEY), code 17 (KEY_W), value 1
Event: time 1490184762.734733, -------------- SYN_REPORT ------------
Event: time 1490184762.983185, type 1 (EV_KEY), code 17 (KEY_W), value 0
Event: time 1490184762.983185, -------------- SYN_REPORT ------------
Event: time 1490184763.508206, type 4 (EV_MSC), code 4 (MSC_SCAN), value 40400e
Event: time 1490184763.508206, type 1 (EV_KEY), code 14 (KEY_BACKSPACE), value 1
Event: time 1490184763.508206, -------------- SYN_REPORT ------------
Event: time 1490184763.753183, type 1 (EV_KEY), code 14 (KEY_BACKSPACE), value 0
Event: time 1490184763.753183, -------------- SYN_REPORT ------------
Event: time 1490184764.026059, type 4 (EV_MSC), code 4 (MSC_SCAN), value 40400b
Event: time 1490184764.026059, type 1 (EV_KEY), code 11 (KEY_0), value 1
Event: time 1490184764.026059, -------------- SYN_REPORT ------------
Event: time 1490184764.273206, type 1 (EV_KEY), code 11 (KEY_0), value 0
Event: time 1490184764.273206, -------------- SYN_REPORT ------------

Now we can work with keybinder
keybinder /dev/input/eventX
X depends on the event number of your IR receiver!!!
You got the number by evtest.

Feel free to apply my config or create your own.
cat <<EOF >/etc/keybinder.conf
24,mpc volume +10   # Set the volume +10
23,mpc volume -10   # Reduce the volume -10
16,mpc prev         # Play previous track
17,mpc next         # Play next track
13,mpc toggle       # Play/Pause playback
69,mpc random       # De-/Activate random playback
77,shutdown -h now  # Shutdown the Pine64

[Image: ir_remote_controlwkus1.png]

Start keybinder automatically on boot.
(crontab -l ; echo "@reboot /usr/bin/screen -dmS keybinder /usr/local/bin/keybinder /dev/input/eventX")| crontab -
X depends on the event number of your IR receiver!!!

» My own setup

[Image: img_20170312_101912a4uj7.jpg] [Image: img_20170311_1211430aubd.jpg]  [Image: img_20170311_164216hwux7.jpg] [Image: img_20170311_212653b3uyo.jpg] [Image: img_20170311_212802wauce.jpg]
[Image: img_20170311_192506etu6v.jpg] [Image: img_20170312_1337249cu2d.jpg]

Have fun with it Smile

Best regards

Print this item

  MicroSD, Which one should I buy?
Posted by: ronaldolcc - 03-20-2017, 04:34 PM - Forum: General Discussion on PINE A64(+) - Replies (1)

Will I feel difference between Samsung Evo Plus and Samsung Pro?
And Pro Plus?

[Image: samsung%20microsdhc%20evo%20plus%20card%...arison.png]

Evo Plus 64gb or Pro 32gb?

Print this item

  Forum Restructuring
Posted by: pineadmin - 03-20-2017, 09:33 AM - Forum: News - No Replies

We will restructure this forum within this 1 to 2 weeks time after we had finalized the new forums structure with the moderators. Example of changes discussed are:
- Software and Hardware/Accessories main forums will be merged under a new main forum named "PINE A64(+)".
- All OS related forums will be moved into a new forum called "Software and OS".
- A new main SOPINE forum will be created.
- Some unpopular sub-forums' threads will be moved into their parent forum.

Existing Threads under the old forums will be moved to their new forums accordingly.

Print this item

  use uvc as primary camera
Posted by: mathiraj - 03-19-2017, 08:27 PM - Forum: Android - Replies (11)

I'm using Android 6.1 image with pine64 board. I have UVC webcam and don't have the pine64 camera.

I installed open camera app from play store and the app could use the webcam as the secondary camera.

But other apps like hangout, skype, etc., don't detect this camera. It appears that they look for the primary camera and then report that the camera is missing.

Is there a way to setup the UVC webcam as the primary camera so that the android apps use it?

Print this item

  Create a WiFi hotspot on Debian 8
Posted by: JulianM - 03-19-2017, 04:36 PM - Forum: Wifi/BT Module - No Replies

Hello together!

I tried something to create a WiFi hotspot with officially WiFi/bluetooth module by pine64 via ethernet and this is my solution.
Feel free to discuss about this topic Smile

Note: The WiFi hotspot is using the internet connection via ethernet. I wasn't able to bridge the internet connection from wlan0 to wlan1!
Note 2: I haven't installed NetworkManager on my system. NetworkManager can be responsible for problems with these instructions.

Install hostapd (create a hotspot), dnsmasq (dhcp server) and iptables-persistent (firewall settings)

apt-get install hostapd dnsmasq iptables-persistent

Change the config of hostapd

Change the config of dnsmasq
Restart dnsmasq to apply the new config
/etc/init.d/dnsmasq restart

Activate forwarding of IPv4
Just uncomment the following line:
Apply it without reboot with the following command:
sysctl -w net.ipv4.ip_forward=1

Setup the network configuration
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
        pre-up iptables-restore < /etc/network/iptables.rules

iface wlan1 inet manual

auto wlan0
iface wlan0 inet static
And restart the network:
/etc/init.d/networking restart

Apply iptables rules
iptables -A FORWARD -o eth0 -i wlan0 -s -m conntrack --ctstate NEW -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE 

Save the iptables rules
iptables-save > /etc/network/iptables.rules

Create the WiFi hotspot
hostapd /etc/hostapd/hostapd.conf

You're done!

Best regards

Print this item

  USB HUB 214b:7000 Not recognized
Posted by: victagayun - 03-18-2017, 07:30 PM - Forum: Accessories - No Replies


Any device I plug in this USB is not recognized, Any help?

victor@pine64:~$ lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 002 Device 004: ID 17ef:6032 Lenovo
Bus 002 Device 006: ID 214b:7000  
Bus 002 Device 003: ID 214b:7000  
Bus 002 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Print this item