LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Slackware Sound on Portege R200 (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/slackware-sound-on-portege-r200-4175436195/)

MaNiFeX 11-08-2012 12:32 AM

Slackware Sound on Portege R200
 
Hi All,

Long time linux user, first time posting. At work, a coworker couldn't get this little laptop working, so I threw Slackware 14 on it just for fun. Lo and behold, I really like this little Toshiba Portege R200. The only problem I am having is that I can't get sound to work out through the speakers. I've seen others with this issue online, but from what I can tell, I've exhausted my options. So here we go:

Problem: Sound plays just fine through the headphones, but will not play through the internal speaker.
Hardware: Stock Toshiba Portege R200
Software: Slackware 14
Window Manager: KDE

The sound module is loaded into the kernel correctly from what I can tell. alsamixer displays the soundcard as:

Card: Intel ICH6
Module: Analog Devices AD1981B

I've read some people having problem with the headphone autosense, but I have the same performance on either setting. As well, it doesn't matter what my privilege level is, if I'm logged in as my normal user or root, the problem is the same.

Thanks for your help!

MaNiFeX

markush 11-10-2012 05:33 PM

Hello MaNiFeX, welcome to LQ,

could you please check which modules there are loaded with "snd" in their name, there should be more than one.
Code:

lsmod | grep snd
Which kernel did you install?

What does alsamixer show?

Markus

MaNiFeX 11-13-2012 01:35 PM

Hi Markus,

Thanks for helping me out! I installed the default Slackware kernel (the biggy.) The following is the output from lsmod:
Quote:

snd_seq_dummy 1119 0
snd_seq_oss 24956 0
snd_seq_midi_event 4568 1 snd_seq_oss
snd_seq 41599 5 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy
snd_seq_device 4276 3 snd_seq,snd_seq_oss,snd_seq_dummy
snd_pcm_oss 33254 0
snd_mixer_oss 12984 1 snd_pcm_oss
snd_intel8x0 22636 2
snd_ac97_codec 89635 1 snd_intel8x0
snd_pcm 59013 3 snd_ac97_codec,snd_intel8x0,snd_pcm_oss
snd_page_alloc 5925 2 snd_pcm,snd_intel8x0
snd_timer 14798 2 snd_pcm,snd_seq
snd 43657 13 snd_timer,snd_pcm,snd_ac97_codec,snd_intel8x0,snd_mixer_oss,snd_pcm_oss,snd_seq_device,snd_seq,snd_s eq_oss
soundcore 4570 1 snd
ac97_bus 834 1 snd_ac97_codec
Alsamixer shows the following:
Card: Intel ICH6
Chip: Analog Devices AD1981B

The mixer levels are at 70% and the Master, Master Main, Headphone and PCM are all unmuted. If I mute the headphones, or turn on Jack Sense, nothing comes out of the built in speakers.

The headphones still work like a charm.

Thanks in advance,

Matthew

MaNiFeX 11-13-2012 01:37 PM

PS - the kernel version is 3.2.29-smp.

markush 11-13-2012 04:27 PM

mh, there's some other point. What happens when you plug the headphones off the computer? And what does alsamixer show?

Markus

MaNiFeX 11-13-2012 05:00 PM

Hi Markus,

If the headphones are unplugged, no sound is made at all... That's the crux of my issue. All the sound works just fine through the headphone jack, but when a headphone is unplugged, there is no sound routed to the built-in speakers.

The modules that are installed look correct, right?

When using alsamixer, the normal bars come up. By default, Jack Sense is off. It doesn't seem to matter if it is on or off. Is there something I should be looking for?

Here's some of the previous work I've looked at to try and get this to work:

http://glozer.net/dynabook/dynabook.html

http://www.linlap.com/toshiba_portege_r200

http://zir0faive.free.fr/portege.php (en francais)


Thanks for your help,

Matthew

markush 11-13-2012 05:01 PM

Yes, the modules look ok. I daubt that there's something wrong with the setup. It could also be a hardware-issue.

Markus

MaNiFeX 11-13-2012 05:06 PM

Hi Markus,

I'm pretty sure this is not a hardware issue. When it was running Windows, the speaker worked...

I saw in some of the articles listed above, that some people have tried a force-reload to get the sound to work. Also some say that the jack sense needs to be turned off. What do you think of the following?

Quote:

Audio

The AC97 audio chipset works well with ALSA. However after ALSA is configured via alsaconf, "Line Jack Sense" and "Headphone Jack Sense" must be turned off or the internal speaker will not work. This can be accomplished via alsamixer.

The following Sound related kernel modules are needed for audio support:

Sound card support
Advanced Linux Sound Architecture
Sequencer support
Sequencer dummy client
OSS Mixer API
OSS PCM (digital audio) API
OSS Sequencer API
RTC Timer support
Dummy (/dev/null) soundcard
Virtual MIDI soundcard
MOTU MidiTimePiece AV multiport MIDI
UART16550 serial MIDI driver
Generic MPU-401 UART driver
Intel/SiS/nVidia/AMD/ALi AC97 Controller
Thanks,

Matthew

markush 11-13-2012 05:21 PM

Well, do you have the OSS modules loaded? maybe you try to load them manually with modprobe (as root of course).

Markus

MaNiFeX 11-13-2012 05:25 PM

Hi Markus,

OK. I'll give that a try and let you know how it goes. Thanks for the help.

Matthew

markush 11-13-2012 05:30 PM

Don't forget, when alsamixer is running, to press F2 in order to get more information! Check if there are other settings available in alsamixer which you don't see at first sight!

Markus

MaNiFeX 11-13-2012 06:17 PM

I haven't loaded the OSS modules yet, but pressing F2 in alsamixer gives me a lot more information. I see plenty of capture/playback devices, but am not sure what to do with that information.

Thanks,

Matthew

rokytnji 11-13-2012 10:48 PM

Quote:

808624c5 Yes Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller snd-intel8x0 kernel-version 2.6.25-
http://kmuto.jp/debian/hcl/Toshiba/Portege+M200

driver used is snd-intel8x0. Yes, means it works in sound.

which you show

Quote:

snd_intel8x0 22636 2
So probably a setting is turned off like speakers in alsamixer (F5 gives me all settings in Alsamixer, I guess F2 is for Slackware).

might want to post

Code:

cat /var/lib/alsa/asound.state
also to beef up the thread maybe.

MaNiFeX 11-14-2012 11:27 AM

Thanks rokytnji,

Just to clarify what I see in alsamixer: F5 gives me all my output and input devices on the screen with sliders, mute, etc. F2 gives me a list of files with a variety of what looks to be hardware addresses, flags, or settings.

I left my machine at home today, so I'll have to post the output of asound.state when I get off of work. I've been using slackware since 1998 and have usually had no problem with the sound, so I guess I get to use this as a learning opportunity!

PLease remember, I just installed Slackware 14 on this puppy, so it's running kernel version 3.2.29-smp. I don't know if this affects the sound modules or not.

Thanks,

Matthew

markush 11-14-2012 11:43 AM

Referring to your post #8 in this thread, I cannot find
Code:

MOTU MidiTimePiece AV multiport MIDI
in the kernel. But I don't know what this is, the other modules you've listed are available in the stock-Slackware-14-kernel

Markus

MaNiFeX 11-15-2012 03:42 AM

Hey Rokytnji,

Here's the output of asound.state, hopefully you can glean something from it! I appreciate the input/help!
Quote:

slackbox:~$ cat /var/lib/alsa/asound.state
state.ICH6 {
control.1 {
iface MIXER
name 'Master Playback Switch'
value.0 true
value.1 true
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.2 {
iface MIXER
name 'Master Playback Volume'
value.0 23
value.1 23
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
dbmin -4650
dbmax 0
dbvalue.0 -1200
dbvalue.1 -1200
}
}
control.3 {
iface MIXER
name 'Headphone Playback Switch'
value.0 true
value.1 true
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.4 {
iface MIXER
name 'Headphone Playback Volume'
value.0 23
value.1 23
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
dbmin -4650
dbmax 0
dbvalue.0 -1200
dbvalue.1 -1200
}
}
control.5 {
iface MIXER
name 'Master Mono Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.6 {
iface MIXER
name 'Master Mono Playback Volume'
value 23
comment {
access 'read write'
type INTEGER
count 1
range '0 - 31'
dbmin -4650
dbmax 0
dbvalue.0 -1200
}
}
control.7 {
iface MIXER
name 'Phone Playback Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.8 {
iface MIXER
name 'Phone Playback Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 31'
dbmin -3450
dbmax 1200
dbvalue.0 -3450
}
}
control.9 {
iface MIXER
name 'Mic Playback Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.10 {
iface MIXER
name 'Mic Playback Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 31'
dbmin -3450
dbmax 1200
dbvalue.0 -3450
}
}
control.11 {
iface MIXER
name 'Mic Boost (+20dB)'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.12 {
iface MIXER
name 'Line Playback Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.13 {
iface MIXER
name 'Line Playback Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
dbmin -3450
dbmax 1200
dbvalue.0 -3450
dbvalue.1 -3450
}
}
control.14 {
iface MIXER
name 'CD Playback Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.15 {
iface MIXER
name 'CD Playback Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
dbmin -3450
dbmax 1200
dbvalue.0 -3450
dbvalue.1 -3450
}
}
control.16 {
iface MIXER
name 'Aux Playback Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.17 {
iface MIXER
name 'Aux Playback Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
dbmin -3450
dbmax 1200
dbvalue.0 -3450
dbvalue.1 -3450
}
}
control.18 {
iface MIXER
name 'PCM Playback Switch'
value.0 true
value.1 true
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.19 {
iface MIXER
name 'PCM Playback Volume'
value.0 23
value.1 23
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
dbmin -3450
dbmax 1200
dbvalue.0 0
dbvalue.1 0
}
}
control.20 {
iface MIXER
name 'Capture Source'
value.0 Mic
value.1 Mic
comment {
access 'read write'
type ENUMERATED
count 2
item.0 Mic
item.1 CD
item.2 Video
item.3 Aux
item.4 Line
item.5 Mix
item.6 'Mix Mono'
item.7 Phone
}
}
control.21 {
iface MIXER
name 'Capture Switch'
value.0 true
value.1 true
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.22 {
iface MIXER
name 'Capture Volume'
value.0 8
value.1 8
comment {
access 'read write'
type INTEGER
count 2
range '0 - 15'
dbmin 0
dbmax 2250
dbvalue.0 1200
dbvalue.1 1200
}
}
control.23 {
iface MIXER
name 'Mono Output Select'
value Mix
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Mix
item.1 Mic
}
}
control.24 {
iface MIXER
name 'Mic Select'
value Mic1
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Mic1
item.1 Mic2
}
}
control.25 {
iface MIXER
name 'Stereo Mic'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.26 {
iface MIXER
name 'Headphone Jack Sense'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.27 {
iface MIXER
name 'Line Jack Sense'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.28 {
iface MIXER
name 'External Amplifier'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
}

business_kid 11-16-2012 05:30 AM

Just looking at the asound state, it's illuminating to do a 'find in page' for the word false.

Value = false turns things off. maybe set some of them to 'true' or a numerical value (e.g. 2), save the file, and run
Code:

alsactl restore
and see if it helps.


All times are GMT -5. The time now is 09:33 AM.