LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   No sound on Ubuntu server 12.04 (https://www.linuxquestions.org/questions/ubuntu-63/no-sound-on-ubuntu-server-12-04-a-4175490921/)

koval 01-11-2014 06:17 AM

No sound on Ubuntu server 12.04
 
Code:

roman@ubuntuserver:~$ uname -a
Linux ubuntuserver 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Code:

roman@ubuntuserver:~$ cat /proc/asound/cards
 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xff740000 irq 16
 1 [HDMI          ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xff744000 irq 43

Code:

roman@ubuntuserver:~$ sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
Home directory /home/roman not ours.
card 0: Generic [HD-Audio Generic], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I installed mpg123 program. There is no sound after started mpg123 in my headphone.

Code:

roman@ubuntuserver:~$ mpg123 file.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.12.1; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes

Playing MPEG stream 1 of 1: file.mp3 ...
Title:  O Fortuna                      Artist: Carl Orff
Comment: Fortuna Imperatrix Mundi        Album:  Carmina Burana
Year:    1973                            Genre:  Classic
MPEG 1.0 layer III, 192 kbit/s, 44100 Hz stereo
Note: Illegal Audio-MPEG-Header 0x4c595249 at offset 3999951.
Note: Trying to resync...
Note: Hit end of (available) data during resync.

[2:46] Decoding of file.mp3 finished.

Here is my ALSAMIXER http://i.piccy.info/i9/23804f2383330...r_internal.jpg

How can I fix problem?

koval 01-11-2014 06:26 AM

I have ALSA and PulseAudio on the server.

aus9 01-15-2014 06:23 PM

Hi

you don't mention which sound card you "want" as default sound device

leaping ahead, if you want hdmi then use pavucontrol to select that device in your config (extreme RH tab)

good luck

2) if on the other hand you want analog

in alsamixer, its difficult to see but me thinks you have muted Master control

press m to unmute and retest sound

3) I don't use ubuntu but you seem to not have set up your fonts as showing in that alsamixer image

koval 01-16-2014 11:39 AM

Hi!
I want to use analog device.

Quote:

2) if on the other hand you want analog

in alsamixer, its difficult to see but me thinks you have muted Master control

press m to unmute and retest sound
I tried it. Didn't help. Will try one more time.

Quote:

3) I don't use ubuntu but you seem to not have set up your fonts as showing in that alsamixer image
What do you mean? Alsamixer is pseudo graphic.

aus9 01-16-2014 05:40 PM

check out my signature doc.....alsamixer does not have sliders encased in X

buts thats not the main issue here, when you get a chance post the output to

Code:

dpkg -l | grep font
mine is debian so names will change but will give you an idea

Code:

not the OP

dpkg -l | grep font
ii  console-data                            2:1.12-3                      all          keymaps, fonts, charset maps, fallback tables for console-tools
ii  console-setup                          1.104                          all          console font and keymap setup program
ii  fontconfig                              2.11.0-2                      i386        generic font configuration library - support binaries
ii  fontconfig-config                      2.11.0-2                      all          generic font configuration library - configuration
ii  fonts-dejavu-core                      2.33+svn2514-3                all          Vera font family derivate with additional characters
ii  fonts-dejavu-extra                      2.33+svn2514-3                all          Vera font family derivate with additional characters (extra variants)
ii  fonts-freefont-ttf                      20120503-1                    all          Freefont Serif, Sans and Mono Truetype fonts
ii  fonts-liberation                        1.07.3-3                      all          Fonts with the same metrics as Times, Arial and Courier
ii  fonts-vlgothic                          20130607-1                    all          Japanese TrueType font from Vine Linux
ii  gsfonts                                1:8.11+urwcyr1.0.7~pre44-4.2  all          Fonts for the Ghostscript interpreter(s)
ii  kbd                                    1.15.5-1                      i386        Linux console font and keytable utilities
ii  libfontconfig1:i386                    2.11.0-2                      i386        generic font configuration library - runtime
ii  libfontembed1:i386                      1.0.43-1                      i386        OpenPrinting CUPS Filters - Font Embed Shared library
ii  libfontenc1:i386                        1:1.1.2-1                      i386        X11 font encoding library
ii  libfreetype6:i386                      2.5.2-1                        i386        FreeType 2 font engine, shared library files
ii  libt1-5                                5.1.2-3.6                      i386        Type 1 font rasterizer library - runtime
ii  libxfont1:i386                          1:1.4.6-1                      i386        X11 font rasterisation library
ii  libxft2:i386                            2.3.1-1                        i386        FreeType-based font drawing library for X
ii  ttf-bitstream-vera                      1.10-8                        all          The Bitstream Vera family of free TrueType fonts
ii  x11-xfs-utils                          7.7+1                          i386        X font server utilities
ii  xfonts-100dpi                          1:1.0.3                        all          100 dpi fonts for X
ii  xfonts-100dpi-transcoded                1:1.0.3                        all          100 dpi fonts for X (transcoded from ISO 10646-1)
ii  xfonts-75dpi                            1:1.0.3                        all          75 dpi fonts for X
ii  xfonts-75dpi-transcoded                1:1.0.3                        all          75 dpi fonts for X (transcoded from ISO 10646-1)
ii  xfonts-base                            1:1.0.3                        all          standard fonts for X
ii  xfonts-encodings                        1:1.0.4-1                      all          Encodings for X.Org fonts
ii  xfonts-utils                            1:7.7+1                        i386        X Window System font utility programs


koval 01-21-2014 02:40 PM

Here
Quote:

:~$ dpkg -l | grep font
ii console-setup 1.70ubuntu5 console font and keymap setup program
ii fontconfig 2.8.0-3ubuntu9.1 generic font configuration library - support binaries
ii fontconfig-config 2.8.0-3ubuntu9.1 generic font configuration library - configuration
ii fonts-ubuntu-font-family-console 0.80-0ubuntu2 Ubuntu Font Family Linux console fonts, sans-serif monospace
ii gsfonts 1:8.11+urwcyr1.0.7~pre44-4.2ubuntu1 Fonts for the Ghostscript interpreter(s)
ii kbd 1.15.2-3ubuntu4 Linux console font and keytable utilities
ii libfont-afm-perl 1.20-1 Font::AFM - Interface to Adobe Font Metrics files
ii libfontconfig1 2.8.0-3ubuntu9.1 generic font configuration library - runtime
ii libfontenc1 1:1.1.0-1 X11 font encoding library
ii libfreetype6 2.4.8-1ubuntu2.1 FreeType 2 font engine, shared library files
ii libt1-5 5.1.2-3.4ubuntu1 Type 1 font rasterizer library - runtime
ii libxft2 2.2.0-3ubuntu2 FreeType-based font drawing library for X
ii ttf-dejavu-core 2.33-2ubuntu1 Vera font family derivate with additional characters
ii ttf-dejavu-extra 2.33-2ubuntu1 Vera font family derivate with additional characters

aus9 01-21-2014 06:13 PM

Hi

based on this thread, I think you might like to install the xfonts-base

http://blog.coolaj86.com/articles/ho...on-ubuntu.html

you may need more of xfonts but remember this is only going to be a secondary issue

have you solved the first issue yet?

aus9 01-21-2014 06:14 PM

so back on theme, alsamixer for outputs should show no MM (for mute)

koval 01-21-2014 06:38 PM

I am far from physical server. And couldn't check sound right now.
When I will have possibility to do it I will reply about results.

koval 02-16-2014 02:23 PM

Today I have access to my server. And aus9 was right. The problem was in muted master channel in alsamixer.
The first issue resolved.
Now I am trying to record sound with REC utility from SoX.

Quote:

roman@ubuntuserver:~$ rec -V5 test.wav
rec: SoX v14.3.2
time: Dec 27 2011 21:41:34
issue: Ubuntu
uname: Linux ubuntuserver 3.8.0-35-generic #50~precise1-Ubuntu SMP Wed Dec 4 17: 25:51 UTC 2013 x86_64
gcc: 4.6.2
arch: 1288 48 88 L OMP

Input File : 'default' (alsa)
Channels : 2
Sample Rate : 48000
Precision : 16-bit
Sample Encoding: 16-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no

rec DBUG wav: Writing Wave file: Microsoft PCM format, 2 channels, 48000 samp/se c
rec DBUG wav: 192000 byte/sec, 4 block align, 16 bits/samp

Output File : 'test.wav'
Channels : 2
Sample Rate : 48000
Precision : 16-bit
Sample Encoding: 16-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no
Comment : 'Processed by SoX'

rec INFO sox: effects chain: input 48000Hz 2 channels 16 bits (multi)
rec INFO sox: effects chain: output 48000Hz 2 channels 16 bits (multi)
In:0.00% 00:00:26.79 [00:00:00.00] Out:1.28M [ | ] Clip:0 ^C
Aborted.
rec DBUG wav: Finished writing Wave file, 5128192 data bytes 1282048 samples
As you can see there are no sound in the file :(

When I am speaking in the mic I can hear myself from headphones.
Also I put some music through line input, and I hear this music.
But no music and sound found in the file.

Any ideas?

p.s. I will have access to the server during this week.


All times are GMT -5. The time now is 03:33 PM.