The officially official Devuan Forum!

You are not logged in.

#1 2018-02-24 10:28:13

devuan_dk_fan
Member
Registered: 2018-01-10
Posts: 90  

(Solved)Realtek ALC271X sound card, Alsa & vanilla Devuan Jessie i3wm.

Having practiced my Devuan Jessie i3wm minimal install on a number of computers, I decided to do a reinstall on my Acer Aspire One 725 netbook. Having done some more reading, as with the systemd issue, I have decided that for me KISS not only means no systemd, but also that Alsa is an elegant audio solution. Unfortunately, my netbook doesn't agree with me:

$ cat /proc/asound/cards
 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0244000 irq 44
 1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0240000 irq 45
$ lspci -knn
(...)
00:01.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler HDMI Audio [1002:1314]
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: snd_hda_intel
(...)
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller [1022:780d] (rev 01)
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: snd_hda_intel
$ sudo dmesg | grep sound
[    3.745709] sound hdaudioC1D0: autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    3.745729] sound hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.745737] sound hdaudioC1D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    3.745744] sound hdaudioC1D0:    mono: mono_out=0x0
[    3.745749] sound hdaudioC1D0:    inputs:
[    3.745758] sound hdaudioC1D0:      Internal Mic=0x1b
[    3.745765] sound hdaudioC1D0:      Mic=0x19
[    3.756016] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.1/sound/card0/input13
[    3.803088] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:14.2/sound/card1/hdaudioC1D0/input14
[    3.873099] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:14.2/sound/card1/input15
[    3.873412] input: HD-Audio Generic Headphone as /devices/pci0000:00/0000:00:14.2/sound/card1/input16
[   24.747054] Modules linked in: bnep nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc parport_pc ppdev lp parport ecb btusb bluetooth 6lowpan_iphc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev media joydev acer_wmi sparse_keymap snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic kvm wl(PO) pcspkr psmouse snd_hda_intel radeon k10temp snd_hda_controller ohci_pci ttm snd_hda_codec drm_kms_helper ohci_hcd ehci_pci snd_hwdep xhci_hcd ehci_hcd snd_pcm i2c_piix4 cfg80211 drm i2c_algo_bit r8169 sg rfkill snd_timer i2c_core mii snd soundcore usbcore shpchp usb_common wmi video battery ac button acpi_cpufreq processor ext4 crc16 mbcache jbd2 sd_mod crc_t10dif crct10dif_generic crct10dif_common ahci libahci evdev serio_raw libata scsi_mod thermal thermal_sys
[   24.758192] Modules linked in: bnep nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc parport_pc ppdev lp parport ecb btusb bluetooth 6lowpan_iphc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev media joydev acer_wmi sparse_keymap snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic kvm wl(PO) pcspkr psmouse snd_hda_intel radeon k10temp snd_hda_controller ohci_pci ttm snd_hda_codec drm_kms_helper ohci_hcd ehci_pci snd_hwdep xhci_hcd ehci_hcd snd_pcm i2c_piix4 cfg80211 drm i2c_algo_bit r8169 sg rfkill snd_timer i2c_core mii snd soundcore usbcore shpchp usb_common wmi video battery ac button acpi_cpufreq processor ext4 crc16 mbcache jbd2 sd_mod crc_t10dif crct10dif_generic crct10dif_common ahci libahci evdev serio_raw libata scsi_mod thermal thermal_sys
[   34.787863] Modules linked in: bnep nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc parport_pc ppdev lp parport ecb btusb bluetooth 6lowpan_iphc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev media joydev acer_wmi sparse_keymap snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic kvm wl(PO) pcspkr psmouse snd_hda_intel radeon k10temp snd_hda_controller ohci_pci ttm snd_hda_codec drm_kms_helper ohci_hcd ehci_pci snd_hwdep xhci_hcd ehci_hcd snd_pcm i2c_piix4 cfg80211 drm i2c_algo_bit r8169 sg rfkill snd_timer i2c_core mii snd soundcore usbcore shpchp usb_common wmi video battery ac button acpi_cpufreq processor ext4 crc16 mbcache jbd2 sd_mod crc_t10dif crct10dif_generic crct10dif_common ahci libahci evdev serio_raw libata scsi_mod thermal thermal_sys

Unfortunately, the only advice I have gotten so far has been very audio specific (create and edit a ~/.asoundrc file) - complete audio newb, or entertaining me with statements about that Devuan is too narrow a distro, and that I should switch to PulseAudio. I want to learn, and I don't mind editing text files to get where I need, but I also need to be able to understand what is going on. Here are my two basic questions:
1) Do I need a special driver for the sound card? I understand that it normally comes automatically via kernel updates, and as I have installed a targeted kernel, where the sound functioned fine under PulseAudio, I would suspect not.
2) If I need to edit a ~/.asoundrc file, what do I need to edit it to? I am just trying to get my speakers to work, but of course HDMI video/audio output would be nice as well.

Last edited by devuan_dk_fan (2018-02-24 22:17:02)


Military justice is to justice what military music is to music. - Groucho Marx
I’ve had a perfectly wonderful evening, but this wasn’t it. - Groucho Marx

Offline

#2 2018-02-24 18:05:12

Geoff 42
Member
Registered: 2016-12-15
Posts: 461  

Re: (Solved)Realtek ALC271X sound card, Alsa & vanilla Devuan Jessie i3wm.

I had some fun with sound some time ago. The problem was with 2 outputs sharing the module snd-hda-intel. It found HDMI first, which became the default.
The solution I found was to disable HDMI with

# Disable the HDMI card which shows up first, but enable PCH
options snd-hda-intel enable=0,1

in /etc/modprobe.d/alsa-base.conf

http://forums.debian.net/viewtopic.php?t=110572#p525601

Geoff

Offline

#3 2018-02-24 19:01:12

devuan_dk_fan
Member
Registered: 2018-01-10
Posts: 90  

Re: (Solved)Realtek ALC271X sound card, Alsa & vanilla Devuan Jessie i3wm.

Geoff 42 wrote:

I had some fun with sound some time ago. The problem was with 2 outputs sharing the module snd-hda-intel. It found HDMI first, which became the default.
The solution I found was to disable HDMI with

# Disable the HDMI card which shows up first, but enable PCH
options snd-hda-intel enable=0,1

in /etc/modprobe.d/alsa-base.conf

http://forums.debian.net/viewtopic.php?t=110572#p525601

Wow, that was a huge step forward! Thank you. Now I can run sound tests successfully:

$ 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 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
 0 - Front Left
Time per period = 2,835515
 0 - Front Left

$ 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
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
 0 - Front Left
 1 - Front Right
 2 - Unused
 3 - Unused
 4 - Unused
 5 - Unused

Unfortunately, I also get the following error in cmus:
"Error: opening audio device: No such device"


Military justice is to justice what military music is to music. - Groucho Marx
I’ve had a perfectly wonderful evening, but this wasn’t it. - Groucho Marx

Offline

#4 2018-02-24 22:16:03

devuan_dk_fan
Member
Registered: 2018-01-10
Posts: 90  

Re: (Solved)Realtek ALC271X sound card, Alsa & vanilla Devuan Jessie i3wm.

Cmus is now sorted. I needed to pass the following option in cmus:

:set output_plugin=alsa

Military justice is to justice what military music is to music. - Groucho Marx
I’ve had a perfectly wonderful evening, but this wasn’t it. - Groucho Marx

Offline

Board footer