SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-11-18 06:28:59

HELPME
#! Junkie
From: the holley land
Registered: 2013-11-15
Posts: 256
Website

[solved] I can hear clearly now the pain is gone

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Last edited by HELPME (2013-11-18 22:36:01)

Offline

Help fund CrunchBang, donate to the project!

#2 2013-11-18 11:19:36

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: [solved] I can hear clearly now the pain is gone

#!/bin/bash
clear
echo "Your audio device is:"
lspci | grep Audio
echo

echo "Plug in your speakers and headphones, they will be tested."
echo
read -p "Press any key to continue... " -n1 -s
#aplay -l
echo
echo "Restarting ALSA...."
sudo alsactl init
sleep 5s
echo
echo "Opening alsamixer - please adjust the volume levels using
the cursor (arrow) keys. If you see 'M' under the mixer it means 
that the channel is muted. Unmute the channel using the 'm' key. 
When finished press [Esc]"
echo
read -p "Press any key to continue... " -n1 -s
alsamixer
clear
echo "Testing default jack on four channels, twice."
echo
speaker-test -t wav -c 2 -l 2
sudo alsactl store
echo
echo "ALSA driver setup stored and all tests finished."
sleep 3s 
exit 0

Last edited by machinebacon (2013-11-18 11:20:32)

Offline

#3 2013-11-18 12:30:48

HELPME
#! Junkie
From: the holley land
Registered: 2013-11-15
Posts: 256
Website

Re: [solved] I can hear clearly now the pain is gone

$ ./fixsound.sh

Your audio device is:
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02)

Plug in your speakers and headphones, they will be tested.

Press any key to continue... 
Restarting ALSA....
[sudo] password for helpme: 
Found hardware: "HDA-Intel" "Realtek ALC887-VD" "HDA:10ec0887,1458a002,00100302" "0x1458" "0xa002"
Hardware is initialized using a generic method
/usr/share/alsa/init/default:26: control element not found
/usr/share/alsa/init/default:26: control element not found
/usr/share/alsa/init/default:48: control element not found

Opening alsamixer - please adjust the volume levels using
the cursor (arrow) keys. If you see 'M' under the mixer it means 
that the channel is muted. Unmute the channel using the 'm' key. 
When finished press [Esc]

Press any key to continue... 



Testing default jack on four channels, twice.


speaker-test 1.0.25

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 1048576
Period size range from 32 to 349526
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
 1 - Front Right
Time per period = 3.873204
 0 - Front Left
 1 - Front Right
Time per period = 3.536549
alsactl: get_control:250: Cannot read control info '2,0,0,Front Playback Volume,0': Invalid argument

ALSA driver setup stored and all tests finished.

Last edited by HELPME (2013-11-18 12:31:36)

Offline

#4 2013-11-18 12:43:50

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: [solved] I can hear clearly now the pain is gone

Hi again,

try this too:

sudo nano /etc/modprobe.d/alsa-base.conf

add this line if it doesn't exist yet:

options snd-hda-intel model=generic

save (ctrl-o Enter) and exit (ctrl-x Enter)
then reboot and run ./fixsound again or play a sound file of your choice and adjust with alsamixer.

If it still doesn't rock, replace the expression "generic" with "auto" in the file.
And if it still doesn't work, please answer a few questions:
0) have you updated and upgraded the system?
1) have you maybe created an ~/.asoundrc file (if yes, please post it, if no, just ignore)
2) what is the output of

apt-cache policy alsa-utils alsa-base

Last edited by machinebacon (2013-11-18 12:46:37)

Offline

#5 2013-11-18 18:29:54

HELPME
#! Junkie
From: the holley land
Registered: 2013-11-15
Posts: 256
Website

Re: [solved] I can hear clearly now the pain is gone

┌───────────────────────────── AlsaMixer v1.0.25 ──────────────────────────────┐
│ Card: HDA Intel                                      F1:  Help               │
│ Chip: Realtek ID 887                                 F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All             F6:  Select sound card  │
│ Item: Master [dB gain: 0.00, 0.00]                   Esc: Exit               │
│                                                                              │
│                                                                              │
│                                ┌──┐     ┌──┐                                 │
│                                │▒▒│     │▒▒│                                 │
│                                │▒▒│     │▒▒│                                 │
│                                │▒▒│     │▒▒│                                 │
│                                │▒▒│     │▒▒│                                 │
│                                │▒▒│     │▒▒│                                 │
│                                │▒▒│     │▒▒│                                 │
│                                │▒▒│     │▒▒│                                 │
│                                │▒▒│     │▒▒│                                 │
│                                │▒▒│     │▒▒│                                 │
│                                │▒▒│     │▒▒│                                 │
│                                │▒▒│     │▒▒│                                 │
│                                │▒▒│     │▒▒│                                 │
│                                └──┘     └──┘                                 │
│                              100<>100 100<>100                               │
│                             < Master >  PCM                                  │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

Last edited by HELPME (2013-11-18 18:37:59)

Offline

#6 2014-05-28 23:22:27

linuxreign
#! Junkie
From: Panama
Registered: 2011-09-05
Posts: 254

Re: [solved] I can hear clearly now the pain is gone

I had the very same problem and following everything posted here my problem is now solved

Thank you so much

Offline

#7 2014-05-29 08:53:20

josephg
#! CrunchBanger
From: Surrey
Registered: 2011-10-24
Posts: 165
Website

Re: [solved] I can hear clearly now the pain is gone

** delete this **

Last edited by josephg (2014-11-03 20:24:27)


leaner code is cleaner code is more efficient code

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo