LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   no sound in slackware 14.1 on new i7 laptop with haswell hdmi (http://www.linuxquestions.org/questions/slackware-14/no-sound-in-slackware-14-1-on-new-i7-laptop-with-haswell-hdmi-4175502899/)

chytraeus 04-24-2014 07:09 PM

no sound in slackware 14.1 on new i7 laptop with haswell hdmi
 
I saw this similar thread http://www.linuxquestions.org/questi...-a-4175497740/ but I am unable to resolve this issue on my own.

My son just bought this laptop from system76 and I have set it up per his wishes to dual boot slackware and windows 7. Everything but the sound is working in slackware.

Code:

root@seth:/etc# lspci
00:00.0 Host bridge: Intel Corporation Haswell DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Haswell PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation Haswell Integrated Graphics Controller (rev 06)                               
00:03.0 Audio device: Intel Corporation Haswell HD Audio Controller (rev 06)                                                       
00:14.0 USB controller: Intel Corporation Lynx Point USB xHCI Host Controller (rev 05)                                             
00:16.0 Communication controller: Intel Corporation Lynx Point MEI Controller #1 (rev 04)                                           
00:1a.0 USB controller: Intel Corporation Lynx Point USB Enhanced Host Controller #2 (rev 05)                                       
00:1b.0 Audio device: Intel Corporation Lynx Point High Definition Audio Controller (rev 05)                                       
00:1c.0 PCI bridge: Intel Corporation Lynx Point PCI Express Root Port #1 (rev d5)                                                 
00:1c.2 PCI bridge: Intel Corporation Lynx Point PCI Express Root Port #3 (rev d5)                                                 
00:1c.3 PCI bridge: Intel Corporation Lynx Point PCI Express Root Port #4 (rev d5)                                                 
00:1d.0 USB controller: Intel Corporation Lynx Point USB Enhanced Host Controller #1 (rev 05)                                       
00:1f.0 ISA bridge: Intel Corporation Lynx Point LPC Controller (rev 05)                                                           
00:1f.2 SATA controller: Intel Corporation Lynx Point 6-port SATA Controller 1 [AHCI mode] (rev 05)                                 
00:1f.3 SMBus: Intel Corporation Lynx Point SMBus Controller (rev 05)                                                               
03:00.0 Network controller: Intel Corporation Intel(R) Dual Band Wireless-AC 7260 (rev 73)                                         
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5289 (rev 01)                                               
04:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 0a)

Code:

bash-4.2$ aplay -l                                                                                                                 
**** List of PLAYBACK Hardware Devices ****                                                                                         
card 0: MID [HDA Intel MID], device 3: HDMI 0 [HDMI 0]                                                                             
  Subdevices: 1/1                                                                                                                   
  Subdevice #0: subdevice #0                                                                                                       
card 0: MID [HDA Intel MID], device 7: HDMI 1 [HDMI 1]                                                                             
  Subdevices: 1/1                                                                                                                   
  Subdevice #0: subdevice #0                                                                                                       
card 0: MID [HDA Intel MID], device 8: HDMI 2 [HDMI 2]                                                                             
  Subdevices: 1/1                                                                                                                   
  Subdevice #0: subdevice #0                                                                                                       
card 1: PCH [HDA Intel PCH], device 0: VT1802 Analog [VT1802 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 2: VT1802 Alt Analog [VT1802 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

In KDE, if I right-click KMix in the system tray, click "Select Master Channel" and then select "Current Mixer --> HDA Intel PCH" and then run the following I hear sound.

Code:

aplay -D plughw:1,0 /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

At a loss how to troubleshoot this.

allend 04-24-2014 11:26 PM

You want to set card 1 device 0 as the default sound device.
http://docs.slackware.com/howtos:har...s_on_slackware

linuxtinker 04-24-2014 11:33 PM

once you get the sound in kde using the mixer try opening a terminal and at the cli use the "alsactl store" command.
If that dosn't work check out http://docs.slackware.com/howtos:har...s_on_slackware

chytraeus 04-25-2014 05:19 PM

Quote:

Originally Posted by allend (Post 5158782)
You want to set card 1 device 0 as the default sound device.
http://docs.slackware.com/howtos:har...s_on_slackware

That worked earlier today. I have the following in /etc/asound.conf
Code:

pcm.!default {
        type hw
        card 1
        device 0
  }
  ctl.!default {
        type hw
        card 1
        device 0
  }

I was able to hear sound from youtube in firefox. Now it stopped working.

alsamixer no longer opens for me either.

Code:

bash-4.2$ alsamixer
cannot open mixer: Invalid argument


allend 04-25-2014 10:03 PM

Please post the output of 'cat /proc/asound/card*/id' as it should show the id's being used for the devices.

It may be preferable to create a /etc/modprobe.d/snd-hda-intel.conf containing something like the below to configure the devices.
Code:

alias char-major-116 snd
alias snd-card-0 snd-hda-intel
alias snd-card-1 snd-hda-intel

options snd cards_limit=2

options snd-hda-intel id=PCH index=0
options snd-hda-intel id=MID index=1

The id's shown in blue may need to edited.

chytraeus 04-28-2014 12:44 AM

Quote:

Originally Posted by allend (Post 5159364)
Please post the output of 'cat /proc/asound/card*/id' as it should show the id's being used for the devices.

It may be preferable to create a /etc/modprobe.d/snd-hda-intel.conf containing something like the below to configure the devices.
Code:

alias char-major-116 snd
alias snd-card-0 snd-hda-intel
alias snd-card-1 snd-hda-intel

options snd cards_limit=2

options snd-hda-intel id=PCH index=0
options snd-hda-intel id=MID index=1

The id's shown in blue may need to edited.

can't get the laptop back from him now to test this. he is obsessed with civilization v and some paradox games.

julian516 04-28-2014 05:10 PM

I arrived at this same situation with an S-76 laptop just a few days ago. Go over to Installation and check "Slackware64-14.1 ALSA Configuration?" In the last post there I try to outline what I did that solved my problem. I am running Xfce but I do not think that is relevant to this issue. I think allend is on to it. The essential step is to have Alsa recognize and work with the proper card.

chytraeus 04-28-2014 06:18 PM

Quote:

Originally Posted by julian516 (Post 5160838)
I arrived at this same situation with an S-76 laptop just a few days ago. Go over to Installation and check "Slackware64-14.1 ALSA Configuration?" In the last post there I try to outline what I did that solved my problem. I am running Xfce but I do not think that is relevant to this issue. I think allend is on to it. The essential step is to have Alsa recognize and work with the proper card.

Thanks. I'll see if I can wrench the laptop away from him long enough to try your setup when he comes home from college on the weekend. Also, I wasn't quite correct that sound isn't working at all in firefox anymore. I setup two users on his computer. Sound in firefox works for the first user account I setup but not for the second user.


All times are GMT -5. The time now is 06:32 AM.