OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> No audio under Kali 2019.1, Audio not working...
Geeber
post Apr 21 2019, 02:50 AM
Post #1





Group: Members
Posts: 18
Joined: 12-April 19
From: UK
Member No.: 846,013



Greetings

I have enjoyed using Kali for the Gemini PDA, however audio does not work at all.
I am assuming audio under Debian works since I haven't heard any complaints about it.
I can confirm that audio works when using Android.

I can tell you some possibly useful information about this.

(My audio is not muted in pavucontrol just in case anyone thought I hadn't checked.)

1. Another user has confirmed that under Kali their audio does not work.
2. Audio does play but will not move from the first null output. Even when changed to droid sink primary.
3 My Hostname as well as sinks, sources and so on show up in pasystray when right clicked.
4. When attempting to load module-droid-card through pactl the error "connection failed, connection terminated" appears. (My pulseaudio now closes when this happens due to my messing around with it, but beforehand it used to just give an error.)
5. If attempting to load ALSA mixer a permission denied error is given even when all users are in the audio group and even as root user.
6. Occasionally when an Application that produces sound is launched from terminal. You can see a few errors when attempting to connect to AlSA mixer such as connection refused permission denied.
7. I did actually manage to get audio working correctly but the process was long, awkward and after reboot it stopped working again.

Here is how I got audio to work briefly.
This process is highly not recommended as editing dependencies in the dpkg status file could seriously mess up your software and generally you aren't supposed to edit this file.

I added the gemian think globally repo to my Kali install. Then proceeded to uninstall the Kali version of pulseaudio and installed the version from the gemian repo. to do this required downgrading or ignoring libpulse0 which mean I had to go into my /var/lib/dpkg/status file. (made a backup beforehand.) and deleted every dependency on libpulse0.
(I restored them afterwards by searching through the file and adding the deleted dependency from my backup.) Then I installed the gemian version of I think libpulse0 along with pulseaudio and pulseaudio-module-droid.

Now if I put my ear right up to the speakers when the PDA was shutting down I could hear static coming from the speakers. No luck with audio working sadly. Pulseaudio didn't show any sinks or sources.

So finally I decided to uninstall the gemian pulse audio and reinstall Kali pulseaudio. While also restoring all of the libpulse0 dependencies back to their orignal state. After I launched an application that supported sound and like magic audio was working. I don't even know if the right sounds were being played but it was definitely playing sounds.

Then after a reboot audio was gone forever and was back to not working at all.

After some googling I do have a guess that the version of pulseaudio from the gemian repo creates some necessary snd device files. But its configuration didn't work and after reinstalling the version from Kali, the correct snd files were found and therefore the audio worked correctly. I know these are created on system boot. So when a reboot was done. It would explain why there was no audio as I do think that the configuration of pulseaudio on kali seems to be correct.

I lack the experience or know-how to fix a problem of this complexity. Apologies for the long post.

Hope someone can provide some help or at the very least this can be documented as a problem.
Go to the top of the page
 
+Quote Post
TheKit
post Apr 23 2019, 07:39 AM
Post #2





Group: Members
Posts: 27
Joined: 19-February 18
Member No.: 818,021



QUOTE(Geeber @ Apr 21 2019, 02:50 PM) *
(I restored them afterwards by searching through the file and adding the deleted dependency from my backup.) Then I installed the gemian version of I think libpulse0 along with pulseaudio and pulseaudio-module-droid.

Now if I put my ear right up to the speakers when the PDA was shutting down I could hear static coming from the speakers. No luck with audio working sadly. Pulseaudio didn't show any sinks or sources.

So finally I decided to uninstall the gemian pulse audio and reinstall Kali pulseaudio. While also restoring all of the libpulse0 dependencies back to their orignal state. After I launched an application that supported sound and like magic audio was working. I don't even know if the right sounds were being played but it was definitely playing sounds.

Gemian PulseAudio version is modified to include https://github.com/mer-hybris/pulseaudio-modules-droid, which uses Android HAL for audio device configuration/sound playing (which in turns talks to ALSA). I suppose Kali maintainers didn't package it or it got outdated. It didn't work with PulseAudio 12 in buster before, but upstream update in pulseaudio-modules-droid fixed this.
Go to the top of the page
 
+Quote Post
Geeber
post Apr 23 2019, 01:41 PM
Post #3





Group: Members
Posts: 18
Joined: 12-April 19
From: UK
Member No.: 846,013



I see.
I understand the Kali repo (which contains the Kali-gem versions of both pulseaudio and pulseaudio-modules-droid) and kernel are maintained by re4son. After reading I attempted to see if I could build pulseaudio-modules-droid from source so far it has failed. It is asking for libpulse and pulsecore. It also asked me to add in a bunch of tab characters in one of the makefiles. I have given up for now.

It might be possible to ask re4son if he could help recompile the latest from source or something.

I am sure he is plenty busy however.

I read this link which explains it a little.
https://github.com/gemian/gemini-keyboard-a...ki/DebianBuster

Audio isn't essential to my use of this device, in fact I would probably continue using it just fine without.

But its nicer to have than to not have.

Thank you for your reply, at least it will probably be fixed at some point.
Go to the top of the page
 
+Quote Post
Geeber
post Apr 24 2019, 02:45 PM
Post #4





Group: Members
Posts: 18
Joined: 12-April 19
From: UK
Member No.: 846,013



Fixed it simply changing the gemian think globally repo from stretch to buster and then installing the pulseaudio from that repo fixed it. Silly I didn't think to do this beforehand. But I was not aware that it actually had a buster version.

For anyone else who wants to fix this add this to your /etc/apt/sources.list
deb http://gemian.thinkglobally.org/buster/ buster main

Then run sudo apt-get -t buster pulseaudio pulseaudio-module-droid

(If you have debian buster repo on your kali for whatever reason make sure you are getting the right versions of pulseaudio and pulseaudio-module-droid)

Happy to finally have audio under Kali.
Go to the top of the page
 
+Quote Post
Geeber
post Apr 24 2019, 11:33 PM
Post #5





Group: Members
Posts: 18
Joined: 12-April 19
From: UK
Member No.: 846,013



After doing an apt full-upgrade my whole screen has turned sideways and the mouse orientation is wrong.

So I would say this is not reccomended.

Will try to see if I can fix.
Go to the top of the page
 
+Quote Post
Geeber
post Apr 25 2019, 12:56 AM
Post #6





Group: Members
Posts: 18
Joined: 12-April 19
From: UK
Member No.: 846,013



Got it.
ran sudo dpkg --purge xserver-xorg-video-hwcomposer
then reinstalled kali-gem version
sudo apt-get install -t kali-gem xserver-xorg-video-hwcomposer
Go to the top of the page
 
+Quote Post
Geeber
post Apr 25 2019, 12:58 AM
Post #7





Group: Members
Posts: 18
Joined: 12-April 19
From: UK
Member No.: 846,013



I have also commented out the buster repo for now.
Go to the top of the page
 
+Quote Post
Geeber
post May 6 2019, 01:10 AM
Post #8





Group: Members
Posts: 18
Joined: 12-April 19
From: UK
Member No.: 846,013



Hopefully the last time I need to post about this.

The pulseaudio from the buster repo will also install libubuntu-application-api3 and ubuntu-application-api3-test. When starting pulseaudio it will complain that there is no sensor detected and will halt the thread. To fix this I simply installed ubuntu-application-api3-examples from the buster repo and it should stop complaining.
Go to the top of the page
 
+Quote Post
Geeber
post May 6 2019, 01:11 AM
Post #9





Group: Members
Posts: 18
Joined: 12-April 19
From: UK
Member No.: 846,013



Afterwards I would comment out the repo again obviously.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th September 2019 - 11:02 PM