microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.07k stars 797 forks source link

Alsamixer not found, no soundcards found #237

Open Fleker opened 8 years ago

Fleker commented 8 years ago

I'm trying to run Alsamixer in Bash on Windows but it seems like I'm running into an interesting problem with it and soundcards that I can't find the answer to.

First, I installed Alsa Utils apt-get install -y alsa-utils gpasswd -a root audio

Then I try to open it root@localhost:/mnt/c/Users/guest1# alsamixer cannot open mixer: No such file or directory root@localhost:/mnt/c/Users/guest1# aplay -l aplay: device_list:268: no soundcards found...

I can't seem to query the soundcard on my laptop. Has anyone ever run into this problem and could offer some advice?

Fleker commented 8 years ago

I should note that one of the results I was investigating, http://askubuntu.com/questions/294807/ubuntu-12-04-alsamixer-not-found, referred to .asoundrc in my home directory and /etc/asound.conf. I understand the answer is for a slightly older version of Ubuntu, but neither of those files existed before or after reinstalling.

benhillis commented 8 years ago

Currently we do not expose hardware to the Linux subsystem. I would suggest filing a request on our user voice page so we can prioritize this work.

Thanks for trying out WSL!

russalex commented 8 years ago

Marking with the Feature tag to show this as a feature request.

mobluse commented 8 years ago

I was trying to output MIDI-sound over the network from Bash on Ubuntu on Windows to a Raspberry Pi, but it fails: pi@LENOVO5:~$ aseqnet -v aeblapi3.lan ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory snd_seq_open: No such file or directory [This still doesn't work in Build 14342 and Build 14352.]

If this worked then that would be a way to produce sounds for games. One could also have the sound server in Windows.

From one Pi with Lubuntu to another Pi with Raspbian Jessie this works: pi@aeblapi6:~$ aseqnet -v aeblapi3.lan & [1] 29002 sequencer opened: 130:0 ok.. connected

pi@aeblapi6:~$ aseqdump -l Port Client name Port name 0:0 System Timer 0:1 System Announce 14:0 Midi Through Midi Through Port-0 128:0 Net Client Network 129:0 Net Client Network 130:0 Net Client Network pi@aeblapi6:~$ aplaymidi -p130:0 Words_FR_David.mid

EricGT commented 7 years ago

FYI

Also needed for MAME

MAME installs, sudo apt-get install mame, but when starting it errors out with:

ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory

endolith commented 3 years ago

@benhillis

This UserVoice instance is no longer available.

mhelin commented 3 years ago

Please implement the /dev/snd/seq for WSL2 kernel, it also enables the use of RTP-Midi and related MIDI network protocols.

https://fossies.org/linux/alsa-lib/src/seq/seq.c

olawalejuwonm commented 11 months ago

Please is there any plan for supporting this?

7heMech commented 10 months ago

It would be great to have MIDI support.