12-13-2018, 08:39 AM | #1 |
Connoisseur
Posts: 50
Karma: 4000
Join Date: Mar 2018
Device: PW4 32GB (G000 T607) 5.12.3
|
Playing music over BT on a BT-enabled Kindle
Hey there, am interested if someone got custom music playing through BT, or at least has more info that I was able to dig out.
I'm not aware of any Kindle having audio port (besides being able to use VoiceView USB adapter but that's not exactly BT), so I guess this could be used as a list of devices that have BT - https://audible.custhelp.com/app/ans...dle-devices%3F EDIT: Wrong. Some devices have built-in speakers. Someone had idea just converting the files to an Audible-compatible format and playing those, will try that in a bit - https://www.mobileread.com/forums/sh...d.php?t=310960 Playing music in the first place seems to have been made possible in 2011~ but I don't think it applies today, and I bet it doesn't apply to bluetooth - https://www.mobileread.com/forums/sh....php?p=1482490 To play audio files without root, you need to convert into Audible's .aax format. If that'll actually register and play in the Audible app is another thing. I guess nobody anticipated and/or wanted this use case yet, because absolutely no tool seems to be supporting converting TO .aax right now. There's an open bug issue for ffmpeg to support this https://trac.ffmpeg.org/ticket/7615#ticket To play audio files with root, someone will have to port an existing music player to the Kindle (or roll their own if they're insane). I'll try looking into this but am far from someone who understands porting to dated Linux systems nor someone who understands audio. I've tried a bunch of things but I couldn't get any audio to run in any way through SSH. Last edited by 3QVKwyNT9hR849t7; 12-16-2018 at 07:25 PM. |
12-13-2018, 09:28 AM | #2 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
That is a list of Kindles that supports Audible, not a list of Kindles with Bluetooth. Some of those models have built-in speaker(s) (what I suppose you would call an "audio port"). That is, all models up to and including the original Kindle Touch (perhaps with one or two exceptions). Some of those models depend on an external dongle. Not many, but a few. Other than that, the models with Bluetooth are the Kindle Basic and the top of the model line each year. (The cheapest and most expensive models. Why? Go figure.) |
|
Advert | |
|
12-13-2018, 09:43 AM | #3 | |
Guru
Posts: 827
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
With mplayer installed you should be able to play any supported audio file. You can even use it to play internet audio streams, as that was my major use of it on my K3. I would suggest having kterm installed first so that you can attempt to use mplayer first from a terminal window. That way you can see any error messages and find out if you need additional command line options to specify output via bluetooth. Dave |
|
12-13-2018, 10:33 AM | #4 | |
Connoisseur
Posts: 50
Karma: 4000
Join Date: Mar 2018
Device: PW4 32GB (G000 T607) 5.12.3
|
Quote:
--- I guess I'll try the mplayer build even though the thread is pretty dated then. |
|
12-15-2018, 01:55 PM | #5 | |
Connoisseur
Posts: 50
Karma: 4000
Join Date: Mar 2018
Device: PW4 32GB (G000 T607) 5.12.3
|
Quote:
The only useful thing I was able to glare out is that on reconnecting BT the files in /chroot/dev/shm change... [root@kindle shm]# ls -lah /chroot/dev/shm drwxrwxrwt 2 root root 100 Dec 15 19:44 . drwxrwxr-x 3 root root 1.0K Sep 20 11:36 .. -rw-rw-r-- 1 root root 37.4K Dec 15 19:44 mstream1510_2094 -rw-rw-r-- 1 root root 152.9K Dec 15 19:23 mstream17956_2986 -rw-rw-r-- 1 root root 152.9K Dec 15 19:44 mstream21457_3718 Also looks like Kindle has built-in mplay that seems to be capable of playing .wav, but executing it just gives back a status code 1. This is output from trying to use the mplayer binary: https://haste.rys.pw/raw/otocokiqod Would love some pointers. Last edited by 3QVKwyNT9hR849t7; 12-15-2018 at 02:20 PM. |
|
Advert | |
|
12-15-2018, 05:15 PM | #6 |
Guru
Posts: 827
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Don't know for sure if this applies:
https://ubuntuforums.org/showthread.php?t=2340143 Obvious mplayer needs to know where to send its output. Dave |
12-15-2018, 05:54 PM | #7 | |
Connoisseur
Posts: 50
Karma: 4000
Join Date: Mar 2018
Device: PW4 32GB (G000 T607) 5.12.3
|
Quote:
https://haste.rys.pw/raw/aguxumiheb if I try with oss - [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory mpegpes also fails and while pcm seems to work in terminal, I hear nothing. Last edited by 3QVKwyNT9hR849t7; 12-15-2018 at 05:58 PM. |
|
12-15-2018, 07:18 PM | #8 |
Guru
Posts: 827
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Can you locate the configuration file for the audible player? Do the log files show anything identifying the device it is using? I don't recognize mstream, but looking in my linux /dev/shm directory I see various pulse-* devices, so I assume mstream is the device manager you will need to talk to. Perhaps a web search on mstream will yield fruit.
Dave |
12-16-2018, 09:37 AM | #9 |
Connoisseur
Posts: 50
Karma: 4000
Join Date: Mar 2018
Device: PW4 32GB (G000 T607) 5.12.3
|
Am a bit out of my depth here, not familiar with any of the tools being used. Not sure where else to look for anything audible besides /etc/audisomething
https://i.imgur.com/SHhU2A8.png Also found /etc/audio/volume which has sinks defined for speakers(?) and headphone(not BT?), which might be just a red herring. [root@kindle audio]# cat volume # The number of possible sinks Sinks = 2 # Sink 1 sink = speaker size = 16 1 = 256 1.0 2 = 325 1.0 3 = 332 1.0 4 = 338 1.0 5 = 343 1.0 6 = 347 1.0 7 = 350 1.0 8 = 353 1.0 9 = 356 1.0 10 = 359 1.0 11 = 362 1.0 12 = 365 1.0 13 = 368 1.0 14 = 371 1.0 15 = 374 1.0 16 = 377 1.0 # Sink 2 sink = headphone size = 16 1 = 256 1.0 2 = 319 1.0 3 = 326 1.0 4 = 332 1.0 5 = 337 1.0 6 = 341 1.0 7 = 344 1.0 8 = 347 1.0 9 = 350 1.0 10 = 353 1.0 11 = 356 1.0 12 = 359 1.0 13 = 362 1.0 14 = 365 1.0 15 = 368 1.0 16 = 371 1.0 |
12-16-2018, 10:18 AM | #10 |
Guru
Posts: 827
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
I am also out of my depth as I don't currently use bluetooth audio on linux and don't have a kindle with it. Just did a search on "linux alsa bluetooth audio" and got some interesting results. What do you see in /etc/bluetooth there? Perhaps an audio.conf file?
From this search it appears that pulseaudio is the usual method used for BT audio, but does not look like kindle uses it. Dave |
12-16-2018, 10:26 AM | #11 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
In the past, Amazon's kernel configuration did not contain a complete, general purpose, Bluetooth stack.
They only configured the portion required to support their own products/recommendations. So start by examining the kernel configuration file (usually in /proc). |
12-16-2018, 11:54 AM | #12 | |
Connoisseur
Posts: 50
Karma: 4000
Join Date: Mar 2018
Device: PW4 32GB (G000 T607) 5.12.3
|
Quote:
https://haste.rys.pw/raw/lasecevame also found one more file related to audio, but could also be red herring. https://haste.rys.pw/raw/unuzeloxuj Not sure what exactly to look for in /proc, tried asound but that just has a few files, and one of them is devices which just says "no sound cards"... Some of the bluetooth stuff I checked was uninteresting https://haste.rys.pw/raw/kafocepebi |
|
12-16-2018, 12:03 PM | #13 |
Guru
Posts: 827
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Can you initiate audible playback via SSH? If so, might be interesting to see what shows on the console. This might especially be true if there is a debug or verbose option available.
Dave |
12-16-2018, 12:10 PM | #14 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Some firmware version expose the kernel config settings, others don't, it might relate to the price of rice in china (or crack).
If present on a running system, copy cp -a /proc/config.gz <somewhere> And then examine it like you would any other compressed text file. And of course, crawling /proc/asound might help (this is not a Kindle): Code:
mszick@HP8300:~$ ls -la /proc/asound total 0 dr-xr-xr-x 7 root root 0 Dec 16 11:03 . dr-xr-xr-x 285 root root 0 Nov 30 13:15 .. dr-xr-xr-x 6 root root 0 Dec 16 11:03 card0 dr-xr-xr-x 6 root root 0 Dec 16 11:03 card1 dr-xr-xr-x 3 root root 0 Dec 16 11:03 card2 -r--r--r-- 1 root root 0 Dec 16 11:03 cards -r--r--r-- 1 root root 0 Dec 16 11:03 devices lrwxrwxrwx 1 root root 5 Dec 16 11:03 DG -> card0 lrwxrwxrwx 1 root root 5 Dec 16 11:03 HVR950Q -> card2 -r--r--r-- 1 root root 0 Dec 16 11:03 hwdep -r--r--r-- 1 root root 0 Dec 16 11:03 modules dr-xr-xr-x 2 root root 0 Dec 16 11:03 oss lrwxrwxrwx 1 root root 5 Dec 16 11:03 PCH -> card1 -r--r--r-- 1 root root 0 Dec 16 11:03 pcm dr-xr-xr-x 2 root root 0 Dec 16 11:03 seq -r--r--r-- 1 root root 0 Dec 16 11:03 timers -r--r--r-- 1 root root 0 Dec 16 11:03 version |
12-16-2018, 12:10 PM | #15 |
Connoisseur
Posts: 50
Karma: 4000
Join Date: Mar 2018
Device: PW4 32GB (G000 T607) 5.12.3
|
> Can you initiate audible playback via SSH?
I haven't been able to output any kind of audio via SSH, no clue how I'd go about launching Audible either EDIT: /proc/config.gz - didn't know this is a thing on Linux! https://haste.rys.pw/moyakediqe.shell EDIT2: as I said, i tried looking into asound and found nothing of interest [root@kindle asound]# ls -lah dr-xr-xr-x 2 root root 0 Dec 16 18:17 . dr-xr-xr-x 157 root root 0 Jan 1 1970 .. -r--r--r-- 1 root root 0 Dec 16 18:17 cards -r--r--r-- 1 root root 0 Dec 16 18:17 devices -r--r--r-- 1 root root 0 Dec 16 18:17 pcm -r--r--r-- 1 root root 0 Dec 16 18:17 timers -r--r--r-- 1 root root 0 Dec 16 18:17 version [root@kindle asound]# cat ./* --- no soundcards --- 33: : timer G0: system timer : 10000.000us (10000000 ticks) Advanced Linux Sound Architecture Driver Version k4.1.15-lab126. Last edited by 3QVKwyNT9hR849t7; 12-16-2018 at 12:17 PM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Lending is now enabled | koland | Amazon Kindle | 40 | 01-04-2011 08:29 PM |
Kindle Lending is now enabled | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 12-30-2010 01:41 PM |
playing music on edge | teelu | enTourage Archive | 0 | 04-25-2010 08:26 PM |
Weird screen ghosting bug when playing music | FrancisT | Bookeen | 1 | 03-22-2008 10:39 PM |
How does music playing drain the battery? | MikeF74 | Sony Reader | 13 | 10-16-2007 11:29 AM |