Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: [OPGELOST]Ubuntu Server geluidsproblemen  (gelezen 939 keer)

[OPGELOST]Ubuntu Server geluidsproblemen
« Gepost op: 2010/03/17, 18:30:51 »
Ik heb momenteel Ubuntu Server 9.10 op mijn macbook geïnstalleerd staan. Nu wil ik graag expirementeren hoe het is om alles vanaf console te draaien en heb voor mijn muziek de applicatie MOC (music on console player) gevonden en geinstalleerd. Echter krijg ik op geen mogelijkheid geluid uit mijn server. Ik heb de volgende zaken gecontroleerd:

lspic:
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
02:00.0 Network controller: Broadcom Corporation BCM4328 802.11a/b/g/n (rev 03)
03:00.0 Ethernet controller: Marvell Technology Group Ltd. Marvell Yukon 88E8058 PCI-E Gigabit Ethernet Controller (rev 13)
04:03.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 61)

lsmod | grep snd:
snd_hda_codec_realtek   203328  1
snd_hda_intel          26984  2
snd_hda_codec          75708  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               7200  1 snd_hda_codec
snd_pcm_oss            37920  0
snd_mixer_oss          16028  1 snd_pcm_oss
snd_pcm                75488  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy           2656  0
snd_seq_oss            28576  0
snd_seq_midi            6432  0
snd_rawmidi            22208  1 snd_seq_midi
snd_seq_midi_event      6940  2 snd_seq_oss,snd_seq_midi
snd_seq                50224  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              22276  2 snd_pcm,snd_seq
snd_seq_device          6920  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd                    59204  16 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore               7264  1 snd
snd_page_alloc          9252  2 snd_hda_intel,snd_pcm

Verder de volgende pakketten geïnstalleerd:

sudo apt-get install pulseaudio gstreamer0.10-pulseaudio gstreamer0.10-ffmpeg libasound2
sudo apt-get install alsa-base alsa-utils alsa-oss

En gecontroleerd of de kaart toevallig niet gemute stond:

amixer set Master 100% unmute
amixer set PCM 100% unmute

Omdat het na alle stappen nog niet werkt ben ik bang dat ik iets belangrijks over het hoofd zie maar weet niet zo snel wat. Kan iemand mij hier alsjeblieft mee helpen? :)
« Laatst bewerkt op: 2010/03/19, 13:41:57 door Jos Jonkmans »
Voor de mensen

Re: Ubuntu Server geluidsproblemen
« Reactie #1 Gepost op: 2010/03/17, 21:53:51 »
Heb nu ook de amixer config nagelopen:

imple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 58 [91%] [-6.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 13 [20%] [-51.00dB] [off]
  Front Right: Playback 13 [20%] [-51.00dB] [off]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [off]
  Front Right: Playback 64 [100%] [0.00dB] [off]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [off]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [off]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Line Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] [-16.00dB] [on]
  Front Right: Capture 0 [0%] [-16.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] [-16.00dB] [off]
  Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 23 [74%] [0.00dB] [off]
  Front Right: Playback 23 [74%] [0.00dB] [off]
Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '2ch' '4ch' '5ch' '6ch'
  Item0: '2ch'
Simple mixer control 'Enable Headphones',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Enable LFE',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Enable Speaker',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Line'
  Item0: 'Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Mic' 'Line'
  Item0: 'Mic'

Weet niet precies wat hier de waardes van moeten zijn.
Voor de mensen

Re: Ubuntu Server geluidsproblemen
« Reactie #2 Gepost op: 2010/03/18, 20:54:11 »
Oke ik ben er uit, ik heb letterlijk alle pakketten weer verwijderd en ben met een schone lei begonnen. Voor de mensen die geinsteresseerd zijn heb ik ook gelijk deze handleiding erbij geschreven:

Muziek is altijd leuk en in een console based client is het dan ook handig om het te kunnen afspelen. In veel gevallen zal het een uitdaging zijn om het werkend te krijgen. Ik zal je hier een handje bij helpen:
We beginnen met het installeren van de juiste drivers en modules, hiervoor bestaat ALSA.  Om te testen of het al geïnstalleerd staat gebruiken we de volgende command:
aplay -l
Als je geen sounddevices te zien krijgt ga je door met hoofdstuk installatie ALSA, anders ga je naar Installatie Codecs.

Installatie ALSA

Om er zeker van te zijn dat alle oude packages verwijdert zijn gebruiken we dit command:
sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils
vervolgens installeren we alle pakketten met:
sudo apt-get install linux-sound-base alsa-base alsa-utils
Reboot nu je PC en voer weer het volgende command uit:
aplay -l
Als het goed is zie je nu de geluidskaart ertussen staan. Als dit het geval is ga je door met hoofdstuk Installatie Codecs, anders dien je te controleren of je geluidskaart functioneert en of deze toevallig niet op disabled staat in de BIOS. Ook kan het zijn dat nieuwere gleuidskaarten nog niet ondersteund zijn in de ALSA modules. Ga naar de site van de leverancier van de hardware en kijk of zij linux drivers aanbieden. Ook kan zoeken op google veel helpen ;)

Installatie Codecs

Om er zeker van te zijn dat we alle codecs hebben die we nodig hebben voor toekomstige media applicaties installeren we het ubuntu restricted extras pakket. Dit is een uitgebreid pakket vol met codecs, plugins en andere zaken die betrekking hebben tot de ondersteuning van media.
sudo apt-get install ubuntu-restricted-extras


Configuratie

Om ervoor te zorgen dat er ook daadwerkelijk geluid uit je speakers gaat komen dien je de alsamixer te gebruiken. Dit doe je door simpelweg het volgende in de console te type:
alsamixer
Je krijgt een venster te zien waarmee je het volume kan regelen (met de pijltjes), kan navigeren (met tab) en lijnen kunt muten of unmuten (met de M toets). Zorg dat alles naar wens is ingesteld en dan gaan we de console muziek client installeren.

Installatie CMUS

Cmus is een muziek applicatie die erg geschikt is voor het console werk en ten opzichte van sommige andere spelers (bijvoorbeeld MOC) ook gebruik kan maken van netwerk mounts (netwerkshares gemount op de locale computer). We beginnen met de installatie:
sudo apt-get install cmus
Deze starten we op door in de console het volgende te typen:
cmus
Eenmaal in de applicatie aangekomen zie je een leeg scherm voor je met wat lijnen, geen paniek we zijn nog niet eens begonnen. Druk op de toest 5 , nu kom je in het navigatie gedeelte. Browse vervolgens naar de map waar je muziek staat , zet de selectie op het gewenste muziek bestand en druk op enter. Als het goed is gaat die het nu afspelen. Om de applicatie te verlaten druk je op Ctrl-C en typ je vervolgens :quit

Hieronder nog meer commands om goed te kunnen werken met de muziek speler:

       ^C             echo Type :quit<enter> to exit cmus.
       I              echo {}
       b              player-next
       c              player-pause
       x              player-play
       z              player-prev
       v              player-stop
       ^L             refresh
       n              search-next
       N              search-prev
       .              seek +1m
       l, right       seek +5
       ,              seek -1m
       h, left        seek -5
       m              toggle aaa_mode
       C              toggle continue
       M              toggle play_library
       o              toggle play_sorted
       r              toggle repeat
       t              toggle show_remaining_time
       s              toggle shuffle
       1              view tree
       2              view sorted
       3              view playlist
       4              view queue
       5              view browser
       6              view filters
       7              view settings
       ]              vol +0 +1
       [              vol +1 +0
       +, =           vol +10%
       }              vol -0 -1
       {              vol -1 -0
       -              vol -10%

Voor de mensen