[SOLVED] Devuan Jessie, Aspire One 725, Alsa error messages.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Devuan Jessie, Aspire One 725, Alsa error messages.
I am trying to get Alsa to work on my Acer Aspire One 725 with a new, vanilla install of Devuan Jessie with a minimal i3wm install. The Acer uses a Broadcom BCM43228 card. During the process of trying to get things to work, I have tried a number of things. Firstly to see if I had installed all of the relevant Alsa bits, which I believe that I have done:
$ volti
[alsactrl.py:__init__:41] can't open Master control for card Generic, trying to select first available mixer channel
[alsactrl.py:__init__:49] can't open first available control for card Generic
error: list index out of range
Traceback (most recent call last):
File "/usr/bin/volti", line 53, in <module>
volti = main.VolumeTray()
File "/usr/lib/volti/volti/main.py", line 124, in __init__
self.watchid = gobject.io_add_watch(fd, eventmask, self.update)
TypeError: an integer is required
Then followed:
Code:
$ amixer set Master 90% unmute
amixer: Unable to find simple control 'Master',0
Most of the advice that I can find is for Ubuntu and appears to lack relevance for Devuan. Likewise, there is some Arch wiki info, but I still haven't found a silver bullet to kill this issue. The Aspire One is great for when I am lugging music gear around, as it is small and lightweight, but it is certainly also a pain in this instance.
----
BTW, I forgot to mention that I started this attempt at getting the audio to work by running:
ofc -c 1 is roughly the same as -D hw:1 for alsamixer. With F1 for help and F6 to change cards in mixer.
Thanks for the quick reply. Your last command allowed me to get the master sound up, but I still don't have any sound output. Interestingly, alsamixer reports my card as being a Realtek ALC271X. Cmus gives me the following error:
"Error: opening audio device: No such device"
are you seeing this in your terminal? try alsamixer then F6 and change to your sound card and not default settings.
Only when I run
Code:
$ alsamixer -D hw:1
With F6, only have the choice between two generic cards, 0 or 1. Neither change works. With card 0, I only get a "s/pdif" centered square. Neither card setting works.
With F6, only have the choice between two generic cards, 0 or 1. Neither change works. With card 0, I only get a "s/pdif" centered square. Neither card setting works.
speaker-test -c 2 -l 1 -D hw:0,3
did that give you any sound at all, did you try using headphones or ear buds to see if sound is comming out of that?
have you dug into your system to see what it is registering as your sound card?
Code:
$ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xd4500000 irq 33
1 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xd4420000 irq 34
the actual driver for your actual sound card may not be actually installed even.
Code:
sudo dmesg | grep sound
edit: you posted info while I was writing this. haha
BUT
check your dmesg to see what's going on with your system and card using grep 'sound' or 'Realtek' for key words to pull the information.
# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=Generic,DEV=0
HD-Audio Generic, HDMI 0
HDMI Audio Output
dmix:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Direct sample mixing device
dsnoop:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Direct sample snooping device
hw:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Direct hardware device without any conversions
plughw:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Hardware device with all software conversions
default:CARD=Generic_1
HD-Audio Generic, ALC271X Analog
Default Audio Device
sysdefault:CARD=Generic_1
HD-Audio Generic, ALC271X Analog
Default Audio Device
front:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC271X Analog
Front speakers
surround21:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC271X Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC271X Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC271X Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC271X Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC271X Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC271X Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC271X Analog
Direct sample mixing device
dsnoop:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC271X Analog
Direct sample snooping device
hw:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC271X Analog
Direct hardware device without any conversions
plughw:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC271X Analog
Hardware device with all software conversions
I didn't include all of the sound test results, as they all end the same:
Code:
$ speaker-test -c 6
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory
~$ speaker-test -t sine -f 2600
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Sine wave rate is 2600,0000Hz
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory
I didn't include all of the sound test results, as they all end the same:
Code:
$ speaker-test -c 6
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory
~$ speaker-test -t sine -f 2600
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Sine wave rate is 2600,0000Hz
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory
Looks like you need to start from the start and get alsa hooked up to your card.
that is where I'd start. the bold is you speakers and the other one is for your HDMI plug/slot
Well, I can't claim that I understood, but I ran:
Code:
$ nano ~/.asoundrc
With the following content:
Quote:
pcm.!default {
type hw
card 1
}
I then got the following errors:
Code:
$ speaker-test -t wav -c 6
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Channels count (6) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument
$ speaker-test -t sine -f 2600
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Sine wave rate is 2600,0000Hz
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument
$ speaker-test -c 6
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Channels count (6) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument
Then I tried replacing "type hw" with "type dmix" but then I started getting the following error:
Code:
$ speaker-test -t wav -c 6
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
ALSA lib pcm_direct.c:1699:(snd1_pcm_direct_parse_open_conf) Unknown field card
Playback open error: -22,Invalid argument
$ speaker-test -t sine -f 2600
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Sine wave rate is 2600,0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 4458 to 17832
Period size range from 2229 to 2230
Using max buffer size 17832
Periods = 4
was set period_size = 2229
was set buffer_size = 17832
0 - Front Left
Time per period = 2,643130
0 - Front Left
Time per period = 2,972038
0 - Front Left
Time per period = 2,972033
0 - Front Left
Time per period = 2,972103
0 - Front Left
Time per period = 2,972105
0 - Front Left
Time per period = 2,972630
0 - Front Left
Time per period = 2,971414
0 - Front Left
Time per period = 2,971805
0 - Front Left
Time per period = 2,972284
0 - Front Left
Time per period = 2,971597
0 - Front Left
Time per period = 2,972492
0 - Front Left
^CWrite error: -4,Interrupted system call
xrun_recovery failed: -4,Interrupted system call
Transfer failed: Interrupted system call
However the next test failed:
Code:
speaker-test -t wav -c 6
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 4458 to 17832
Period size range from 2229 to 2230
Using max buffer size 17832
Periods = 4
Unable to set hw params for playback: Invalid argument
Setting of hwparams failed: Invalid argument
None of the other tests work either.
Last edited by globetrotterdk; 02-23-2018 at 05:09 PM.
have you had another distro on that HW yet? just out of curiosity I'd burn a different Live distro to a usb stick and see if they get sound. seeing how that distro is marking what you have as Generic. Like I said you might not even have the dirvers , as i also said they are poorly supported. or you could query their repo for sound drivers and see if you find anything remotely close to your card.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.