Ubuntu 11.04, laptop speaker don't work, headphone does

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium, kodachi

Ubuntu 11.04, laptop speaker don't work, headphone does

Postby cocorocara » Wed May 11, 2011 8:02 pm

I am having the same problem as mentioned in this topic:
viewtopic.php?f=3&t=4324

I got rid of Pulseaudio and ALSA completely on my Lenovo T510, Ubuntu 11.04 (natty) and installed OSS4 from source. Everything works fine except for the fact that there is no sound from the main speakers. Already tried the solutions mentioned in the above thread. Here some more information.

OSSMIX:
Code: Select all
Selected mixer 0/High Definition Audio 0x14f15069
Known controls are:
codec1.jack.black.mode1 <pcm1|pcm2> (currently pcm1)
codec1.jack.black.mode2 <pcm1|pcm2|input> (currently pcm1)
codec1.jack.green.mode <pcm1|pcm2> (currently pcm1)
codec1.jack.internal.mode <pcm1|pcm2|input> (currently pcm1)
codec1.jack.int-speaker.mode <pcm1|pcm2> (currently pcm1)
codec1.jack.int-mic [<leftvol>:<rightvol>] (currently 47.9:47.9 dB)
codec1.jack.black.mode3 <pcm3|input> (currently pcm3)
codec1.record.rec1 [<leftvol>:<rightvol>] (currently 65.9:65.9 dB)
codec1.record.rec1.rec1 <select1|select2|int-mic|mix> (currently int-mic)
codec1.record.rec2 [<leftvol>:<rightvol>] (currently 79.9:79.9 dB)
codec1.record.rec2.rec2 <select1|select2|int-mic|mix> (currently select1)
codec1.record.rec3 [<leftvol>:<rightvol>] (currently 69.9:69.9 dB)
codec1.record.rec3.rec3 <select1|select2|int-mic|mix> (currently select1)
codec1.misc.pcm11 [<leftvol>:<rightvol>] (currently 73.9:73.9 dB)
codec1.misc.pcm21 [<leftvol>:<rightvol>] (currently 73.9:73.9 dB)
codec1.misc.beep <monovol> (currently 27.9 dB)
codec1.misc.select11 [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
codec1.misc.select12 <mic1|mic2|internal1|internal2> (currently mic2)
codec1.misc.select21 [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
codec1.misc.select22 <mic1|mic2|internal1|internal2> (currently mic1)
codec1.misc.pcm12 [<leftvol>:<rightvol>] (currently 73.9:73.9 dB)
codec1.misc.pcm22 [<leftvol>:<rightvol>] (currently 73.9:73.9 dB)
codec1.misc.mix <pcm1|pcm2> (currently pcm1)
codec4.jack.int-digout.mode1 <spdifout3|spdifout4> (currently spdifout3)
codec4.jack.int-digout.mute1 ON|OFF (currently OFF)
codec4.jack.int-digout.mode2 <spdifout3|spdifout4> (currently spdifout3)
codec4.jack.int-digout.mute2 ON|OFF (currently OFF)
codec4.jack.int-digout.mode3 <spdifout3|spdifout4> (currently spdifout3)
codec4.jack.int-digout.mute3 ON|OFF (currently OFF)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Stereo)
vmix0-src <Fast|High|OFF> (currently Fast)
vmix0-outvol <monovol> (currently 25.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm11 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm12 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm13 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm14 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)


OSSINFO:
Code: Select all
Version info: OSS 4.2 (b 2004/201105111625) (0x00040100) OSS_HG
Hg revision: changeset: 928:a9a237ddd426, tag: tip, date: Tue Apr 19 09:31:02 2011 +0300, summary: Intel HD Audio Cougar Point added
Platform: Linux/i686 2.6.38-8-generic-pae #42-Ubuntu SMP Mon Apr 11 05:17:09 UTC 2011 (kibou)

Number of audio devices:   11
Number of audio engines:   15
Number of MIDI devices:      0
Number of mixer devices:   1


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=91143 (91143)
    HD Audio controller Intel HD Audio
    Vendor ID    0x80863b56
    Subvendor ID 0x17aa215e
     Codec  0: Unknown (0x14f15069/0x17aa218b)
     Codec  3: Unknown (0x80862804/0x17aa21b5)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio 0x14f1506 (Mixer 0 of device object 1)

Audio devices
HD Audio play pcm1                /dev/oss/oss_hdaudio0/pcm0  (device index 0)
HD Audio play pcm2                /dev/oss/oss_hdaudio0/pcm1  (device index 1)
HD Audio play pcm3                /dev/oss/oss_hdaudio0/pcm2  (device index 2)
HD Audio play spdifout1           /dev/oss/oss_hdaudio0/spdout0  (device index 3)
HD Audio play spdifout2           /dev/oss/oss_hdaudio0/spdout1  (device index 4)
HD Audio play spdifout3           /dev/oss/oss_hdaudio0/spdout2  (device index 5)
HD Audio play spdifout4           /dev/oss/oss_hdaudio0/spdout3  (device index 6)
HD Audio rec rec1                 /dev/oss/oss_hdaudio0/pcmin0  (device index 7)
HD Audio rec rec2                 /dev/oss/oss_hdaudio0/pcmin1  (device index 8)
HD Audio rec rec3                 /dev/oss/oss_hdaudio0/pcmin2  (device index 9)
HD Audio rec pcm3                 /dev/oss/oss_hdaudio0/pcmin3  (device index 10)

Nodes
  /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0


dmseg | grep oss after doing a soundoff - soundon cycle:
Code: Select all
usbcore: deregistering interface driver oss_usb
[ 6064.826849] oss_hdaudio 0000:00:1b.0: PCI INT B disabled
[ 6069.335027] oss_hdaudio 0000:00:1b.0: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[ 6069.339496] oss_hdaudio: HDA codec 0x14f15069 not known yet
[ 6069.399241] oss_hdaudio: HDA codec 0x80862804 not known yet
[ 6069.402296] oss_hdaudio: HDA codec 0x14f15069 not known yet
[ 6069.404194] oss_hdaudio: HDA codec 0x80862804 not known yet
[ 6069.429018] usbcore: registered new interface driver oss_usb


Do you need any more information to debug this? I really don't want to go back to ALSA or Pulse.
cocorocara
New Member
 
Posts: 9
Joined: Wed May 11, 2011 7:50 pm

Re: Ubuntu 11.04, laptop speaker don't work, headphone does

Postby cocorocara » Wed May 11, 2011 8:58 pm

Some more info from lspci -vv:
Code: Select all
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
        Subsystem: Lenovo Device 215e
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin B routed to IRQ 17
        Region 0: Memory at f8520000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: oss_hdaudio


uname -a:
Code: Select all
Linux kibou 2.6.38-8-generic-pae #42-Ubuntu SMP Mon Apr 11 05:17:09 UTC 2011 i686 i686 i386 GNU/Linux
cocorocara
New Member
 
Posts: 9
Joined: Wed May 11, 2011 7:50 pm

Re: Ubuntu 11.04, laptop speaker don't work, headphone does

Postby igorzwx » Wed May 11, 2011 10:39 pm

Step 1: Read this: https://wiki.archlinux.org/index.php/OS ... leshooting

Step 2: Run on terminal:

Code: Select all
$ osstest -lV


and try different mixer settings.

Most probably, you have to change something here:
Code: Select all
codec1.jack.internal.mode <pcm1|pcm2|input> (currently pcm1)
codec1.jack.int-speaker.mode <pcm1|pcm2> (currently pcm1)


Try "input" and so on.
You may also want to test jack-sensing and microphone (internal and external).
USB audio devices are not likely to work with OSS4.

EXAMPLE:
Code: Select all
$ ossrecord -vl - | ossplay -
Recording wav: Speed 48000Hz 16 bits Stereo
- [.......   ] 7.00 secs VU -------++
igorzwx
Moderator
 
Posts: 1005
Joined: Sun Jun 28, 2009 9:31 pm

Re: Ubuntu 11.04, laptop speaker don't work, headphone does

Postby cocorocara » Thu May 12, 2011 3:02 am

Some more info from lspci -vv:
Code: Select all
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
        Subsystem: Lenovo Device 215e
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin B routed to IRQ 17
        Region 0: Memory at f8520000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: oss_hdaudio


uname -a:
Code: Select all
Linux kibou 2.6.38-8-generic-pae #42-Ubuntu SMP Mon Apr 11 05:17:09 UTC 2011 i686 i686 i386 GNU/Linux
cocorocara
New Member
 
Posts: 9
Joined: Wed May 11, 2011 7:50 pm

Re: Ubuntu 11.04, laptop speaker don't work, headphone does

Postby cocorocara » Thu May 12, 2011 7:03 pm

Hi

Sorry for that last post.

Anyway, thank you for your help. I am not sure what I changed but I now have audio from both the speakers and the headphones. Here is the new ossmix:
Code: Select all
Selected mixer 0/High Definition Audio 0x14f15069
Known controls are:
codec1.jack.black.mode1 <pcm1|pcm2> (currently pcm1)
codec1.jack.black.mode2 <pcm1|pcm2|input> (currently pcm1)
codec1.jack.int-speaker.mode <pcm1|pcm2> (currently pcm1)
codec1.jack.int-mic [<leftvol>:<rightvol>] (currently 47.9:47.9 dB)
codec1.jack.black.mode3 <pcm3|input> (currently input)
codec1.record.rec1 [<leftvol>:<rightvol>] (currently 64.9:64.9 dB)
codec1.record.rec1.rec1 <select1|select2|int-mic|mix> (currently mix)
codec1.record.rec2 [<leftvol>:<rightvol>] (currently 64.9:64.9 dB)
codec1.record.rec2.rec2 <select1|select2|int-mic|mix> (currently int-mic)
codec1.record.rec3 [<leftvol>:<rightvol>] (currently 63.9:64.9 dB)
codec1.record.rec3.rec3 <select1|select2|int-mic|mix> (currently select1)
codec1.misc.pcm11 [<leftvol>:<rightvol>] (currently 64.9:64.9 dB)
codec1.misc.pcm21 [<leftvol>:<rightvol>] (currently 68.9:68.9 dB)
codec1.misc.beep <monovol> (currently 23.9 dB)
codec1.misc.select1 [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
codec1.misc.select2 [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
codec1.misc.pcm12 [<leftvol>:<rightvol>] (currently 70.9:70.9 dB)
codec1.misc.pcm22 [<leftvol>:<rightvol>] (currently 67.9:67.9 dB)
codec1.misc.mix <pcm1|pcm2> (currently pcm1)
codec4.jack.int-digout.mode1 <spdifout1|spdifout2> (currently spdifout1)
codec4.jack.int-digout.mute1 ON|OFF (currently OFF)
codec4.jack.int-digout.mode2 <spdifout1|spdifout2> (currently spdifout1)
codec4.jack.int-digout.mute2 ON|OFF (currently OFF)
codec4.jack.int-digout.mode3 <spdifout1|spdifout2> (currently spdifout1)
codec4.jack.int-digout.mute3 ON|OFF (currently OFF)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Stereo)
vmix0-src <Fast|High|OFF> (currently Fast)
vmix0-outvol <monovol> (currently 22.5 dB)
vmix0-invol <monovol> (currently 22.0 dB)
vmix0.pcm9 [<leftvol>:<rightvol>] (currently 23.6:23.6 dB) ("mpegaudioparse2")
vmix0.pcm10 [<leftvol>:<rightvol>] (currently 21.7:21.7 dB)
vmix0.pcm11 [<leftvol>:<rightvol>] (currently 21.7:21.7 dB)
vmix0.pcm12 [<leftvol>:<rightvol>] (currently 22.2:22.2 dB)


As far as I can tell, it is the same at the earlier configuration. Some other steps that I took:

(1) In gstreamer-properties, I changed the input device from "Default" to "HD Audio play pcm 2". And tried the test. It gave me a beep.
(2) Then opened ossxmix and fiddled with it (though it looks exactly the same as earlier), and things started working.
(3) Just to check, reverted the settings in gstreamer-properties to "Default" and voila! things still function.

Some problems still persist though:
(1) The output from laptop speakers is very very low, almost inaudible even at full volume
(2) After playing songs for a few minutes either (a) one of the speakers stops to function, (b) both speakers stop functioning. i.e. there is no sound at all from either one or both speakers. The music continues to play. Then if I jump to the next song, the speakers function again, only to stop once more.

If its any consolation, the same problem occurred with PulseAudio too. All was fine when I was in Ubuntu 10.10.

What could be the problem?
cocorocara
New Member
 
Posts: 9
Joined: Wed May 11, 2011 7:50 pm

Re: Ubuntu 11.04, laptop speaker don't work, headphone does

Postby cocorocara » Fri May 13, 2011 4:06 am

In gconf-editor, after I changed the keys /desktop/gnome/sound/default_mixer_device and /desktop/gnome/sound/default_mixer_tracks to empty, the sound from the speakers has improved somewhat.

Now also got the ossrecord working. In gstreamer-properties, have to set the input device as HD Audio rec rec1 and in the ossxmix set the rec1 to int-mic and first jack (int-mic) mode to input. Could actually record audio to a file!

But Gmail-chat and Skype don't work as yet. No microphone input even after selecting the input as OSS.
cocorocara
New Member
 
Posts: 9
Joined: Wed May 11, 2011 7:50 pm

Re: Ubuntu 11.04, laptop speaker don't work, headphone does

Postby cocorocara » Fri May 13, 2011 4:37 am

AH! just read some other posts and found that Gmail-chat and Skype don't work with OSS4. I was going to stop using Skype anyway after the M$ takeover, so that doesn't matter. But Gmail-chat is something I would really like to use ...
cocorocara
New Member
 
Posts: 9
Joined: Wed May 11, 2011 7:50 pm

Re: Ubuntu 11.04, laptop speaker don't work, headphone does

Postby igorzwx » Fri May 13, 2011 5:14 pm

cocorocara wrote:AH! just read some other posts and found that Gmail-chat and Skype don't work with OSS4.


Perhaps, you misunderstood something. Try this: http://www.4front-tech.com/forum/viewto ... 711#p16711

When I am alone in a forest at night-time and jump from one tree to another, I often think that life is so strange.
George Mikes, How to be an Alien http://en.wikipedia.org/wiki/How_to_be_an_Alien
igorzwx
Moderator
 
Posts: 1005
Joined: Sun Jun 28, 2009 9:31 pm

Re: Ubuntu 11.04, laptop speaker don't work, headphone does

Postby cocorocara » Sat May 14, 2011 2:09 am

As far as I can tell, that was a special version of Skype built with OSS support called skype-oss.
cocorocara
New Member
 
Posts: 9
Joined: Wed May 11, 2011 7:50 pm

Re: Ubuntu 11.04, laptop speaker don't work, headphone does

Postby cocorocara » Sat May 14, 2011 2:22 am

Hi igor ...

Thanks for pointing me in the right direction. A little bit of Googling, gave me this link http://www.mediafire.com/?2ydhmj4yo3i
It is version 2.0.0.72-oss of Skype that allows specifying the audio device directly as /dev/dsp. With this version, Skype works perfectly! Both audio and video.

But the latest version of Skype *does not* work, even though in the audio devices, one can select oss as the input (microphone) device. Such a shame!

Now if only Gmail-chat would work!
cocorocara
New Member
 
Posts: 9
Joined: Wed May 11, 2011 7:50 pm

Re: Ubuntu 11.04, laptop speaker don't work, headphone does

Postby igorzwx » Sat May 14, 2011 3:10 am

cocorocara wrote:Now if only Gmail-chat would work!


It is possible to use GMail voice chat with OSS4 through the help of Yate.
igorzwx
Moderator
 
Posts: 1005
Joined: Sun Jun 28, 2009 9:31 pm

Re: Ubuntu 11.04, laptop speaker don't work, headphone does

Postby cocorocara » Sat May 14, 2011 3:54 am

Hi Igor,

Thanks, will give Yate a try.

Also I noticed that using Audacious gives much better sound that either Rhythmbox or Banshee.

However the strange behaviour of one or both of the speakers stopping abruptly continues. The amazing thing is that sound resumes on jumping to the next song in the playlist.
cocorocara
New Member
 
Posts: 9
Joined: Wed May 11, 2011 7:50 pm

Re: Ubuntu 11.04, laptop speaker don't work, headphone does

Postby igorzwx » Sat May 14, 2011 4:07 am

cocorocara wrote:Also I noticed that using Audacious gives much better sound that either Rhythmbox or Banshee.

However the strange behaviour of one or both of the speakers stopping abruptly continues. The amazing thing is that sound resumes on jumping to the next song in the playlist.


I am using the Ultimate Russian Player (deadbeef) with Petrov's plugin.
DeadBeef has also a standard plugin for OSS4.

If you are concerned with sound quality, you may want to enable "Production quality"
viewtopic.php?f=3&t=3543

DeadBeef can play FLAC/Ape + CUE
For mp3s, you may also try Goggles Music Manager

Code: Select all
$ yaourt gogglesmm
1 community/gogglesmm 0.12.1-1 [installed]
    Music Manager and Player
==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
==> -------------------------------------------------------
==>


There is also UMPlayer

Code: Select all
$ yaourt umplayer
1 aur/umplayer 0.92.4.1-1 (56)
    The multimedia player that fills all your needs.
2 aur/umplayer-svn 158-1 [installed: 160-1] (22)
    UMPlayer is the multimedia player that fills all your needs.
==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
==> -------------------------------------------------------
==>
igorzwx
Moderator
 
Posts: 1005
Joined: Sun Jun 28, 2009 9:31 pm


Return to Linux

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron