Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 29,208
» Latest member: Cadair
» Forum threads: 16,121
» Forum posts: 116,581
Full Statistics
|
Latest Threads |
Replacement international...
Forum: General
Last Post: Cadair
4 hours ago
» Replies: 0
» Views: 10
|
Pinecil v2 issue
Forum: General Discussion on Pinecil
Last Post: autumnharris
5 hours ago
» Replies: 0
» Views: 5
|
Calls on ppp
Forum: PinePhone Pro Software
Last Post: chbwzxgk
Yesterday, 06:41 PM
» Replies: 6
» Views: 150
|
bookworm vs trixie discus...
Forum: Mobian on PinePhone
Last Post: anonymous
Yesterday, 03:28 AM
» Replies: 62
» Views: 16,109
|
New pinetab2 - can't char...
Forum: General Discussion on PineTab
Last Post: tmhorne
05-13-2025, 12:42 PM
» Replies: 10
» Views: 1,515
|
Case for the rock64 that ...
Forum: Rock64 Hardware and Accessories
Last Post: tophneal
05-13-2025, 07:32 AM
» Replies: 2
» Views: 1,156
|
SOQuartz64 4GB CM & Waves...
Forum: Quartz64 Hardware and Accessories
Last Post: Nicholas97
05-13-2025, 02:35 AM
» Replies: 3
» Views: 2,175
|
Pinephone + Keyboard for ...
Forum: PinePhone Hardware
Last Post: FONJGS55
05-11-2025, 07:51 AM
» Replies: 8
» Views: 1,639
|
Page turner for PineNote ...
Forum: PineNote Software
Last Post: macmartin
05-09-2025, 09:10 AM
» Replies: 0
» Views: 157
|
How to improve KDE plasma...
Forum: PineTab Software
Last Post: Kevin Kofler
05-08-2025, 05:02 PM
» Replies: 2
» Views: 214
|
|
|
Getting analog audio/sound to work (headphones socket) on debian |
Posted by: pfeerick - 06-01-2016, 03:15 AM - Forum: Debian
- Replies (7)
|
 |
Hi,
I've finally started playing with my Pine64+ board, and have been able to get both ubuntu and debian systems up and running thanks to the great work by longsleep and lenny. I am setting up a headless system which will probably be a lightweight webserver / database server for sensors and a few other bits and pieces... not 100% sure yet. However, in the meantime, since I have it sat on my desk atm, I thought it would be fun to hook it up to some internet radio, and let it do that for a while... but how do I get the audio to work? I don't have anything plugged into the HDMI, so can't use that for audio. And nothing seems to be coming out of the headphones jack, although mplayer seems to be playing fine, bar an error about the output device!!!
I started with the Debian Base (3.10.65 BSP) image, and applied the Debian Base (3.10.65 BSP) rootfs (although I suspect I didn't actually need too! ) from pine64.pro. I then updated uboot and the kernel with the included scripts. I setup my wireless connection, and ditched the eithernet cord. I changed the built-in user, and have SSH working. So everything else seems to be working so far. I noticed there was a mplayer-play script, but didn't even let mplayer run - mplayer stops due to no hardware device (e.g. /usr/local/sbin/mplayer-play.sh http://80.237.154.83:8120), whereas a simple mplayer http://80.237.154.83:8120 at least comes back with errors. Does anyone have any thoughts what I should do... is there something else I need to install or configure, or is this one of those "it doesn't work yet" bits? I came across another thread, but it didn't have any useful information anymore as links seem to have changed... I tried installing the alsa-tools alsa-utils libsound2 etc but that didn't send to help... I haven't tried adding pulseaudio yet.
Thanks in advance,
Pete
Code: Connecting to server 80.237.154.83[80.237.154.83]: 8120...
Name : Radio Landsberg International from Germany: Inter-cultural & multi-lingual
Genre : International
Website: http://www.radiolandsberg.international
Public : yes
Bitrate: 128kbit/s
Cache size set to 320 KiB
Cache fill: 0.00% (0 bytes)
Detected file format: Audio only
Selected audio codec: MPEG 1.0/2.0/2.5 layers I, II, III [mpg123]
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
AO: [pulse] Init failed: Connection refused
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No
file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such
or directory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such f
or directory
[AO_ALSA] alsa-lib: conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such file or directory
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
[JACK] cannot open server
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No
file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such
or directory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such f
or directory
[AO_ALSA] alsa-lib: conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
[AO SDL] Unable to open audio: No available audio device
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 2.2 (02.1) of -0.0 (unknown) 0.7% 35%
ICY Info: StreamTitle='Dick Charlesworth _ His City Gents - That_s When I_ll Come Back To You';StreamUrl
tp://www.radiolandsberg.international';
A: 41.2 (41.2) of -0.0 (unknown) 0.6% 45%
Just some further information...
I added pulseaudio, and it got rid of the error, but didn't seem to be able to configure it (had no idea what I was doing though either!!).
I plugged my computer monitor which has HDMI audio output option, rebooted the pine and tried mplayer again... and it worked, but was clicking. I seemed to remember that that exact issue was the bug report I linked above, so I thought I'd just remove pulseaudio and try without it. Another reboot, and HDMI audio does indeed work, but for the steam I'm using as a test, it only plays the intro file, and then mp3123 gives up... whereas if I play from a SSH terminal with no HDMI audio, it get error messages, but at least it seems to continue onto playing the current track....
|
|
|
We Need a Pine64 School Please! |
Posted by: MashaT22 - 06-01-2016, 01:44 AM - Forum: Getting Started
- Replies (4)
|
 |
Idea time! I don't know whether the Pine64 team will see this, but it seems like there are many people who have purchased Pine64 as their first dev board -- myself included! Just from web browsing, I see that dev boards from various brands can be very different in specs, capabilities, etc. It makes it pretty overwhelming for a new person to try to pick up and learn, especially when Pine64 is so brand new and there are few resources out there for beginners. Much of the Internet talk about Pine64 tends to be at the expert level. So us new folk are pretty much left to our own devices (no pun intended )! If we weren't interested in learning how to use Pine, we wouldn't have gotten it for ourselves. By reading the questions on here on the forum and elsewhere, it's clear that us new-folk need a single resource geared towards adults and kids who have zero experience with dev boards.
That said, I'm wondering if the team and/or any expert souls, might be interested in creating a website that's dedicated to teaching new adults and kids how to use Pine64. I'd love to see modules geared toward getting started, what can potentially be done with Pine64, showing us what the various parts (ie: wires, modules, sensors, adapters, etc.) are meant to do, and then get into teaching us how to accomplish various Pine64 projects (including what materials/parts are needed). Once you get past the basic, you could gear lessons and projects to various interests like coding, making, gaming, etc. and organize them like lesson plans with videos photos, and pictures to guide us through. I
I'm thinking this should be one website dubbed The Pine64 Classroom, The Pine64 Project, Pine64EDU, Pine64 University, etc. I'd love to see the Pine team officially take this on as a project since they've said they are really into education and want to see Pine used in schools, but it'd be neat if someone with extra time on their hands wanted to do something like this unofficially too (or help the team get it done)!
I'm pretty certain there would be interest, not just from individuals like me, but also parents, teachers (from K-12 and university level), curious teens, etc. And with the right educational support for beginners, Pine would likely sell even more boards . . . after all, I haven't seen any such resource made by any of the other major players (ie: RasPi) . . . and even if the major players do have such a thing, that's all the more reason for Pine to create such a resource too!
I hope this can happen and ASAP!! I'd love to hear whether any other newbies would find a Pine64 school of sorts useful! (And btw, courses could theoretically be designed for all skill levels!) Free access would be nice (I bet Pine could even ask companies to help sponsor such an endeavor) so that everyone at any age would have access, but it would be worth it even if I had to pay a small one-time fee. Or maybe it could be free to educators, kids, etc. I'm sure that could all be sorted out. I just really think this is important to getting new people interested in learning to use Pine straight from experts who made it and know how to use it best!
. . . . . thoughts anyone?!
|
|
|
What "Extras" (aka Essentials) To Order |
Posted by: MashaT22 - 06-01-2016, 12:59 AM - Forum: Getting Started
- Replies (1)
|
 |
Hi all!
I'm a noob to dev boards. Never touched one. Never even seen one up close (unless you count through my computer screen). No RasPi's, no nothing. Pine64 is literally going to be my first (cue the "aww" in 3 . . . 2 . . . 1 . . . awwwwww!) I am very curious about tech and learning, so when I saw Pine64's campaign, features, and price point, I decided it was time for me to dive in and see what dev boards are all about. Whether I'll end up using Pine64 for making, gaming, programming, a spare computer and/or a host of other possibilities remains to be seen.
Success often depends on starting off on the right foot. I'm a very, VERY patient person by nature, and I know I'll screw up as I'm experimenting with my Pine, but I'd like things to go well from the moment I get started.
That said, while I'm waiting on my Playbox Rewards to arrive (with the upgraded 2gb Pine64), it occurred to me that I probably won't have everything I need to get started out of the box. Perhaps I'm wrong, but I figure it's best to ask people who know what they're doing. When I open the box, will I have all the necessary cords for and doodads for things like the included LCD touchscreen, wifi/BT card, etc.? I know a power supply is included, but there's no mention of other cords.
I'm also interested in add-ons and their accompanying cords and doodads. I'm not sure if I'm getting in over my head from the start (please speak up if you think I am!). but I've been checking out:
Power - I've been looking at the 8000mAh battery. I assume that would be good for when I don't want to be tethered to a cord, like when using the Playbox setup or making some projects, right? (You can be honest if you don't think this or anything else I'm mentioning is needed . . . again, I'm a noob who is just figuring, lol.)
- One of the RTC battery backups, but I don't know if the AAA battery or coin cell is better.
Accessories
I think I'm mostly good here. I have headphones, etc. However . . .- If I already own a Bluetooth keyboard with mouse touch pad (no dongle) that I use with a Dell tablet, can I use that? Let me know if you need to know the brand of the keyboard/mouse I own. Or must I go with a dongle setup for keyboard and mouse for using with Pine?
Adapters and Cables
I have no clue if I need any of the adapters/cords listed, whether for the basic items I'm getting or the modules I'm thinking about (see below).- I may already have spare HDMI cables around the house, so I would think those would be fine if I need one.
Modules
The modules scare me a bit! I have no clue what some of them do and whether I'd need them . . . and if I get them, then what do I need from the above categories to plug 'em in and make them work? I'm sort of interested in getting:- Adding the 5 mp camera seems like a useful thing. I think it just plugs into the main board, right?
- Push Button is like an off/off switch (unless there are other uses I'm unaware of). That seems like a handy no-brainer.
- Zwave seems neat for home automation, but is that too complicated for a newbie to try?
- What are POT boards and what's the difference between the two types listed?
- What's a USB serial programmer?
- What's the Wifi remote module used for?
Here's another thing I should mention: I'm getting a bunch of stuff from the LattePanda campaign on Kickstarter where I pledged for the Hardware Dev Kit. (I know Pine has Windows in their Pipeline, but I decided that in the unlikely event that I find Pine a bit out of my league to start, then I'll have a more familiar Windows-based dev board.) I don't know any of LP's items (ie: sensors, etc.) will be compatible with Pine64 or are redundant with any of Pine's add-ons. If any experts here know how to determine this, it might help me a great deal. I've included a link to the campaign page above in case you need more specs info, but the reward I'm getting is the $209 Dev Kit (which includes the items in the $149 Enhanced Kit) and essentially comes with:
![[Image: 88519cbe76641c545e9607dd03f4042f_origina...38dc9f2c6a]](https://ksr-ugc.imgix.net/assets/005/014/560/88519cbe76641c545e9607dd03f4042f_original.png?w=680&fit=max&v=1449072687&auto=format&lossless=true&s=d2da91b4c7d87c9be771ac38dc9f2c6a)
Well, thanks SO much if you read to this point! I am really interested in learning to use my Pine for all sorts of things. I don't want to open the box when it arrives and feel like wtf did I get myself into?! Hopefully, all will go well once I'm setup and learn the basics. I appreciate any input on what I need or may be useful to get started! This way I can already put in an order for those items rather than waiting for my Pine to arrive.
Thanks a million!
|
|
|
Dissatisfaction |
Posted by: UnixOutlaw - 05-31-2016, 11:59 PM - Forum: General Discussion on PINE A64(+)
- Replies (20)
|
 |
Generally dissatisfied with EVERYTHING about Pine64. Hardware (bowed "warp" on both 2GB Pine64 boards), software and this forum.
Nothing works...
No Bluetooth working in Linux or Android (i.e. with the "stock" Pine supplied Wifi/BT module-cum-hat).
Only ONE single build of any Operating System for the "stock" LCD Touchpanel (and no root) that Pine sells - and that is Android (which I really have no use for).
Has anyone here read "The Cathedral and the Bazaar"... This forum doesn't fit either model, in fact I'd use the example "The Cathedral, the Bazaar and the Refugee Camp Run-by-some-inept-organization"...
The "documentation" is a hideous tangled chaotic nightmare...
C'mon people - I had no idea that kickstarter pledge rewards were for Alpha testing of pre-beta hardware and Alpha software!
I might just start swearing again till I'm banned - I get no help in here anyway...
|
|
|
Owncloud Experience Anyone? |
Posted by: JCMPine64 - 05-31-2016, 04:45 PM - Forum: General Discussion on PINE A64(+)
- Replies (17)
|
 |
I've been trying to get ownCloud running on my 2Gb Pine64 but it's pretty buggy. Anyone have any luck getting a solid instance of ownCloud running?
Everything seems to install correctly and the server seems stable, but the Windows desktop client crashes on a regular basis when I'm trying to sync 140Gb of music files. Sometimes it just hangs and sometimes it aborts in an ugly fashion. It seems like the desktop client works for others, I can only assume that there's something wrong with my server setup, so I'm hoping someone here has been able to do it successfully and can show the way.
|
|
|
Accessory: IR Remote |
Posted by: tcmsurfer - 05-31-2016, 11:36 AM - Forum: Accessories
- Replies (9)
|
 |
Hi everybody,
after a long waiting time, I finally got my Pine64 in the mail. Sadly I don't have everything to test it. I also ordered a remote due to my wish to use this as a media center. According to this recent thread a 3 pin add-on is to be delivered with the remote, however I don't see one in my package.
(02-22-2016, 10:51 PM)tllim Wrote: The 3pin IR receiver device will include together with IR remote control.
... TL Lim
Anybody who also ordered the accessory and got the IR receiver? Am I the only one?
Best Regards,
Andreas
|
|
|
Receipt printer? |
Posted by: ColorblindMonk - 05-31-2016, 10:47 AM - Forum: Accessories
- No Replies
|
 |
Hey guys, my boss is trying to get a project going, can't say what it is currently, but we would need a cheap computer to get things started. Of course, the Pi came up in the discussion, but he's interested in using the Pine if it will wind up suiting our needs better. What we need along with it is a touch screen panel and a thermal receipt printer. The LCD panel seems to be covered by the shop, but does anybody know if there's any reliable receipt printer that will work with the Pine?
|
|
|
Pushing notifications from home network to cell phone |
Posted by: wahdooyah - 05-30-2016, 08:25 PM - Forum: Pine A64 Projects, Ideas and Tutorials
- No Replies
|
 |
This may be one of those uses that most people wouldn't find too useful, but I thought I'd share the setup since it helped me to solve a problem that had stumped me for awhile.
There are various reasons one might want to push notifications from your home network to your mobile device (notifying of changes in your dynamic IP address, alerts from smart home sensors/smoke alarms/security alarms, etc.), and while there are some easy ways to do this using third-party services, I dislike solutions that rely on third parties too much.
So for this example, I check whether my ISP has changed my home IP address, and if it has, I push a notification to my cell phone in the form of a text file with the new IP address. For the Pine, I'm using the latest Debian image from here, with Tor installed:
Code: sudo apt-get install tor
Then, on my Android phone I have installed SSHelper, which I obtained via the f-droid repositories, but you can also install from the Play Store I believe. I also have installed Orbot, which I recommend getting from the official Guardian Project repository rather than the Play Store, though I believe it is also there.
To set up SSHelper to run as a hidden service, you will need to open the settings dialog in Orbot, and scroll down to the Hidden Service Hosting section, and check the box for Hidden Service Hosting. Click on Hidden Service Ports and pick whatever port you have selected in SSHelper (for this example I'm using the default, 2222). Next, you need to shut down Orbot and restart it so that it will generate your .onion address. Go into the hidden service settings again, click on the .onion hostname, and copy that address. You might want to write it down or save it as a text file since you'll need it later.
Next, on the Pine, attempt to access the Android phone using the .onion hostname:
Code: torsocks ssh -p 2222 123456abcde.onion
Once you've confirmed this works, you need to set up the SSH server to use a keypair instead of password, so on the Pine type these two commands:
Code: ssh-keygen -t dsa -f ~/.ssh/id_dsa -N ''
torsocks ssh-copy-id -i ~/.ssh/id_dsa.pub -p 2222 12345abcdef.onion
Type in the password when it prompts you, then exit once the devices finish the key exchange. Now, on the Android phone, enter the SSHelper settings and check the box Disable password logins.
Next, I wrote a perl script that checks with a public site and creates a text file containing the IP, as well as a log of prior IPs and when they changed:
Code: #!/usr/bin/perl -w
use strict;
my $nip;
my $now = localtime();
my $ipcheck = "http://ipecho.net/plain";
my $result = qx{curl --silent $ipcheck};
if($result =~ m/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/) {
$nip = $1;
}
else { die "regex failed to match an IP: $!"; }
open(LAST, "<lastip") or die "Can't open lastip";
my $lastip = <LAST>;
close(LAST);
unless($lastip eq $nip) {
open(LAST, ">lastip") or die "Can't open lastip";
print LAST $nip;
close(LAST);
print qx{torsocks scp -P 2222 /home/pineuser/lastip 12345abcdef.onion:/sdcard/ipchecker/};
open(LOG, ">>history") or die "Can't open history";
print LOG "$nip\t[$now]\n";
close(LOG);
print qx{torsocks scp -P 2222 /home/pineuser/history 12345abcdef.onion:/sdcard/ipchecker/};
}
else {
open(CHECKED, ">checked") or die "Can't open checked";
print CHECKED $now;
close(CHECKED);
print qx{torsocks scp -P 2222 /home/pineuser/checked 12345abcdef.onion:/sdcard/ipchecker/};
}
Now, all that's left is to create the three files and set the script to run periodically via crontab:
Code: touch lastip history checked
crontab -e
I set the cronjob to run hourly at five past the hour (because why not?), but obviously anything would work:
Code: 5 * * * * /home/pineuser/notifier.pl
Assuming everything went smoothly, you should have three files created in your SSH root directory: checked lets you know how recently it was checked, lastip should be the most recent IP address, and history should list each prior IP address.
As I indicated at the beginning, this particular script is just an example of one use, but once you have the SSH hidden service running, you can push any notifications or files you might want to that folder.
|
|
|
|