LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-11-2014, 06:17 AM   #1
koval
LQ Newbie
 
Registered: Jan 2014
Posts: 8

Rep: Reputation: Disabled
Question 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?

Last edited by koval; 01-11-2014 at 06:28 AM.
 
Old 01-11-2014, 06:26 AM   #2
koval
LQ Newbie
 
Registered: Jan 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
I have ALSA and PulseAudio on the server.
 
Old 01-15-2014, 06:23 PM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
Old 01-16-2014, 11:39 AM   #4
koval
LQ Newbie
 
Registered: Jan 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-16-2014, 05:40 PM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
Old 01-21-2014, 02:40 PM   #6
koval
LQ Newbie
 
Registered: Jan 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-21-2014, 06:13 PM   #7
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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?
 
Old 01-21-2014, 06:14 PM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
so back on theme, alsamixer for outputs should show no MM (for mute)
 
1 members found this post helpful.
Old 01-21-2014, 06:38 PM   #9
koval
LQ Newbie
 
Registered: Jan 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-16-2014, 02:23 PM   #10
koval
LQ Newbie
 
Registered: Jan 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No sound on Ubuntu Server 12.04 AleLinuxBSD Ubuntu 2 06-07-2012 03:33 AM
Sound not functioning on Ubuntu Server 11.04 (w/ ALSA) on SoundBlaster Audigy 2 ZS Haneef Mubarak Ubuntu 6 10-23-2011 03:36 PM
[SOLVED] Ubuntu server - need to setup startup and shutdown sound Stressik Linux - Server 1 04-02-2010 01:18 PM
No sound in VM with Ubuntu Server host gimpy530 Linux - General 5 08-13-2009 12:59 PM
How do I find and configure a sound driver for Ubuntu server (no desktop) lumix Linux - Hardware 1 04-28-2008 07:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration