Author Topic: No audio under Kali 2019.1  (Read 4716 times)

Geeber

  • Newbie
  • *
  • Posts: 22
    • View Profile
No audio under Kali 2019.1
« on: April 21, 2019, 06:50:20 am »
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.

TheKit

  • Newbie
  • *
  • Posts: 28
    • View Profile
No audio under Kali 2019.1
« Reply #1 on: April 23, 2019, 11:39:37 am »
Quote from: Geeber
(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.

Geeber

  • Newbie
  • *
  • Posts: 22
    • View Profile
No audio under Kali 2019.1
« Reply #2 on: April 23, 2019, 05:41:07 pm »
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.

Geeber

  • Newbie
  • *
  • Posts: 22
    • View Profile
No audio under Kali 2019.1
« Reply #3 on: April 24, 2019, 06:45:05 pm »
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.

Geeber

  • Newbie
  • *
  • Posts: 22
    • View Profile
No audio under Kali 2019.1
« Reply #4 on: April 25, 2019, 03:33:56 am »
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.

Geeber

  • Newbie
  • *
  • Posts: 22
    • View Profile
No audio under Kali 2019.1
« Reply #5 on: April 25, 2019, 04:56:50 am »
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

Geeber

  • Newbie
  • *
  • Posts: 22
    • View Profile
No audio under Kali 2019.1
« Reply #6 on: April 25, 2019, 04:58:10 am »
I have also commented out the buster repo for now.

Geeber

  • Newbie
  • *
  • Posts: 22
    • View Profile
No audio under Kali 2019.1
« Reply #7 on: May 06, 2019, 05:10:06 am »
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.

Geeber

  • Newbie
  • *
  • Posts: 22
    • View Profile
No audio under Kali 2019.1
« Reply #8 on: May 06, 2019, 05:11:08 am »
Afterwards I would comment out the repo again obviously.