Revision 3 as of 2010-08-30 21:52:48

Clear message

Troubleshooting Skype

Much of what follows applies to older versions of Skype and older versions of Ubuntu.

If you are having audio problems, first check to make sure that sound is working on your system and that your microphone and speaker volume levels are high enough. First test your mic and sound by using the application Sound Recorder. If the mic works, and you cannot hear yourself using the Skype Test Call feature, do the following.

First, Skype tends to mess up the mixer settings. So disable the automatic configuration of the mixer controls in Skype: right-click with your mouse on the Skype icon in the system tray - Options - Sound Devices - remove the tick at: Allow Skype to automatically adjust my mixer levels. Click Apply. Then close Skype (right-click with your mouse on the Skype icon - Quit).

Then use Synaptic Package Manager to install pavucontrol (Pulse Audio Volume Controller). Use that application to set up your input device. Most built-in mics are mono. The default setting on the Input Control is to lock the R&L channel together. By reading the mono mic as stereo, PulseAudio cancels the input. Click on the middle button on the upper right of the control panel to unlock the R&L channel. Move either the left or right channel to 10 leaving the other channel about 90. You should now see the VU meter sensing sound. Now start Skype again. The test call should register your voice now.

Does the above fail? Next try configuring pulseaudio according to the pulseaudio website. If that does not work, then try changing the Skype audio device, and finally, if all else fails, modify your ESD configuration.

Message: "Problem with ..."

On Ubuntu 8.10 (Intrepid Ibex). Out of Skype, the sound work fine. But playing and recording however using skype, you get the error. ”Problem with Audio Capture” or “Problem with Audio Playback”.

On skype, go to the options menu and look under the sub-menu "sound devices". Switch "Sound out" and "Ringing" to "pulse". In "Sound in", test all the options until you can hear your voice when making a test call.

In alternative, you can uninstall pulseaudio and switch it with esound. To do so, run the following commands :

killall pulseaudio
sudo aptitude remove pulseaudio
sudo aptitude install esound
sudo aptitude remove /etc/X11/Xsession.d/70pulseaudio

Source : http://blog.rajatpandit.com/2008/11/15/skype-audio-playback-and-capture-problem-on-ubuntu-810/

Audio Problems

Selecting Microphone (input device)

Most netbooks/laptops have two input devices, one built into the casing and another one for plugging in an external microphone. In Ubuntu 10.04 (Lucid Lynx) and Skype 2.0+ you might have problems selecting the right input device. The following instructions should solve this issue:

1. Install pavucontrol, a program with with you can select audio devices

Click here to install the pavucontrol package

Synaptic

  • Go to ApplicationsAdd/Remove...

  • Set Show: to All available applications

  • Search for pavucontrol and install it.

Or open the Terminal, and execute the following command:

  • sudo apt-get install pavucontrol

2. Start Skype and initiate a test call (you can use echo123 Skype testing service).

3. Start pavucontrol while the test call is running: Press Alt-F2 and type pavucontrol, hit return

4. In pavucontrol there is a tab called Recording where you can select the input device for the application Skype

Note: Skype has to be running and Skype needs to use (i.e. make a call) Pulseaudio while you change settings with pavucontrol.

Another way of selecting USB microphone

  1. Remove pulseaudio and intall esound:

Open the Terminal, and execute the following command:

  • sudo aptitude purge pulseaudio && sudo aptitude install esound
  1. Relog-in to make new audio device to work.
  2. In sound mixer choose sound card USB and make channel selected Microphone to max and checked with red button to enable it.
  3. In Skype Options->Sound Devices select Microphone->USB device (they may be more so try which is correct with step 5)

  4. Make test call to skypename echo123 and follow instructions. If step 4 is selected correct your USB Mic is set up and works.

Volume Levels

  1. Test that output is working with the Sound Preferences dialog. Choose System->Preferences->Sound.

  2. Test that microphone input is working with the Sound Recorder application. Choose Applications->Sound & Video->Sound Recorder.

  3. Ensure that your audio output and microphone input channels are not muted by choosing Applications->Sound & Video->Volume Control.

Skype Audio Device

If your audio levels are properly configured and you can hear audio in Skype but your contacts cannot hear your input, you may need to change Skype's input device. From the Skype menu, choose Tools->Options and select Hand/Headsets in the dialog that opens. Experiment with different Calls selections, if they are available.

ESD Configuration

Note: for Ubuntu 5.10 (Breezy Badger) only. This is the already the default configuration in Ubuntu 6.06 (Dapper Drake). A problem with the GNOME ESD (Enlightened Sound Daemon) server may cause issues with Skype for some users. If Skype is unable to make or receive calls and continuously crashes, then a small change to the ESD configuration may help. Run:

gksudo gedit /etc/esound/esd.conf

and change the line:

auto_spawn=0

to:

auto_spawn=1

Log out and back in to restart ESD, and test Skype again as above. It is likely that this solution will only work if Skype is the only application using audio. You will not be able to play music while using Skype, and you will not be able to use Skype while playing music.

For more setup information, see the Skype website article Skype Sound and Audio Set-Up - PC Running Linux.

ALSA Configuration

Recent versions of Skype (2.0.0.72) can use ALSA directly without any issues, allowing Skype to share the sound device with other applications, and without the need for sound servers such as PulseAudio or ESD. If you use Kubuntu (which does not need PulseAudio), you should find that Skype works perfectly without configuration.

Older Skype Linux releases (e.g. 1.2.0.18) use OSS sound, which means it allows only one application to access sound device. On some systems, OSS is not even used by default, which means you won't be able to select the OSS sound device (/dev/dsp) at all, because it does not exist. Worse off, it has a bug that makes Skype unusable after a call. Sometimes a few calls can be made, before it happens, but later only solution is to restart Skype. Technically it seems that Skype "forgets" to close the sound device before trying to open it again and therefore locks up. This seems to happen when you are the first to hang up and not when the other party hangs up first, so a workaround is to just wait at the end of a call and let the other party finish first.

To avoid these issues, you can use ALSA instead of ESD. First, follow the guidelines found in http://www.ubuntuforums.org/showthread.php?t=32063. Then follow up with http://juljas.net/linux/skype/. Good luck!

Note that the above forum post howto is for Ubuntu 5.04 (Hoary Hedgehog) and Ubuntu 5.10 (Breezy Badger). This should, according to mdz's post, not be an issue in Ubuntu 6.06 (Dapper Drake).

Another possible solution for software mixing

If none of the other options works, try this one (it's working on a HP Pavilion dv1000). Taken from http://forum.skype.com/viewtopic.php?t=48195

Create or add the following to your .asoundrc file:

gedit ~.asoundrc

Add the following text to it

pcm.skype {
   type asym
   playback.pcm "skypeout"
   capture.pcm "skypein"
}

pcm.skypein {
   # Convert from 8-bit unsigned mono (default format set by aoss when
   # /dev/dsp is opened) to 16-bit signed stereo (expected by dsnoop)
   #
   # We can't just use a "plug" plugin because although the open will
   # succeed, the buffer sizes will be wrong and we'll hear no sound at
   # all.
   type route
   slave {
      pcm "skypedsnoop"
      format S16_LE
   }
   ttable {
      0 {0 0.5}
      1 {0 0.5}
   }
}

pcm.skypeout {
   # Just pass this on to the system dmix
   type plug
   slave {
      pcm "dmix"
   }
}

pcm.skypedsnoop {
   type dsnoop
   ipc_key 1133
   slave {
      # "Magic" buffer values to get skype audio to work
      # If these are not set, opening /dev/dsp succeeds but no sound
      # will be heard. According to the alsa developers this is due
      # to skype abusing the OSS API.
      pcm "hw:0,0"
      period_size 256
      periods 16
      buffer_size 16384
   }
   bindings {
      0 0
   }
}

Create a skype launcher (in this example is going to be at your home directory).

gedit ~/skype.sh

add the following text

#/usr/bin/sh

ALSA_OSS_PCM_DEVICE="skype" aoss /usr/bin/skype --disable-dbus

Give skype.sh execution rights by browsing with Nautilus over there, right click on the file, go to Properties, go to Permissions tab, and select "Execute" for the user.

Double click on the file and you should be done.

Video Problems

For troubleshooting video issues on Skype, the following wiki pages may be helpful:

* Skype and webcams

* General page on webcams

Port use

Skype uses port 80 by default, and thus, may block some other applications that use the same port such as Apache. The solution is to change the port in one of the applications. Usually, port 81 is free and works fine. To change the port number in Skype go to menu Tools > Options, then click on the Advanced tab, then in the 'port' box, change to your preference.

Invalid Pointer

Some very few users have experienced the inability to normally start Skype 1.3 under Dapper, receiving the following error:

*** glibc detected *** free(): invalid pointer: 0x08aab8a0 ***

The pointer's address might vary on install or version, the only common factor exhibited by all people receiving the error is that all of them use SCIM to be able to input in one of various Asian languages (some users exhibit this while using scim for Chinese, others when using it to input in Japanese so the language itself seems not to be important, only the presence of scim is). A few of these same persons report success in running a statically compiled version of the Skype 1.3 client. Others have shown success in changing the XIM input preferences during Skype launch by launching Skype (from either the command line or Gnome's/Kde's menu) with this command:

XMODIFIERS=@im=none QT_IM_MODULE=xim skype

This will hinder (read, remove) your ability to use scim to type in a foreign language inside Skype itself, but it will also most probably permit you to run Skype normally.

If you use SCIM as your default input method, and you are unable to run Skype you could try these solutions and see if they solve the problem.

System hangs for a short while (few seconds)

Skype apparently creates FIFO threads when initiating a chat with someone. Users members of the admin group (typically the user who has installed Ubuntu) are likely to find this really annoying as the created threads do not relinquish the CPU easily. The first option (maybe the easiest) is to remove yourself from the admin group. You may otherwise intercept calls to pthread_create() with a preloaded (LD_PRELOAD) DSO:

#define _GNU_SOURCE 1
#include <dlfcn.h>
#include <pthread.h>
#include <stdio.h>
#include <string.h>

int (* orig_pthread_create) (pthread_t *thread,
       const pthread_attr_t *attr,
       void *(*start_routine)(void*), void *arg) = NULL;

static void change_sched_policy (pthread_attr_t *attr) {

   int policy;

   if (attr == NULL) return;
   pthread_attr_getschedpolicy (attr, &policy);
   if (policy == SCHED_FIFO) {
      printf ("### SCHED_FIFO policy changed to SCHED_RR\n");
      pthread_attr_setschedpolicy (attr, SCHED_RR);
   }
}

int pthread_create(pthread_t *thread,
       const pthread_attr_t *attr,
       void *(*start_routine)(void*), void *arg) {

   pthread_attr_t new_attr;

   if (orig_pthread_create == NULL) {
      orig_pthread_create = dlsym (RTLD_NEXT, "pthread_create");
   }

   change_sched_policy (attr);

   return orig_pthread_create (
      thread, attr, start_routine, arg
   );

}

Compile the above source code with gcc -shared -o libskype.so skype.c and launch Skype as follow:

export LD_LIBRARY_PATH=path_to/libskype.so:/usr/lib/libqt-mt.so.3
/usr/bin/skype

My work colleagues and I have tested this on Ubuntu Edgy Eft and we haven't seen, so far, any side effects.

Skype fails to start

Skype has a conflict when the Nessus scanner is installed. When opening Skype from the command line the following error occurs:

skype: symbol lookup error: /usr/lib/libQtNetwork.so.4: undefined symbol: _ZN14QObjectPrivate15checkWindowRoleEv

The solution is to edit /etc/ld.so.conf and comment out the line /opt/nessus/lib and then run sudo ldconfig.

sudo nano /etc/ld.so.conf

Put a # infront of the line /opt/nessus/lib. Save and exit.

include /etc/ld.so.conf.d/*.conf

#/opt/nessus/lib

Run

sudo ldconfig

Now Skype should open.

Skype resets DSL modem

This has been reported to happen by people using Siemens Speedstream 4200 modem. Disabling UPnP in the modem seems to solve the problem (as posted in http://forum.skype.com/index.php?showtopic=113444).

Display configuration

  • Because Skype is a Qt application, Skype's typeface will appear very large on GNOME desktops. You can use either the kcontrol or the qt3-qtconfig package to configure the appearance of Skype and other KDE/QT applications. Of these two, the QT Configurator (qt3-qtconfig) has far fewer dependencies than kcontrol and may therefore be more convenient for people who mostly use non-KDE software. See also QtGnome for how to make Skype (and other Qt applications) look more like Gnome.

  • A quick fix, without installing any configuration packages at all, is to make a file qtrc in your $HOME/.qt directory, and put these two lines in it:

    •   [General]
        font=Bitstream Vera Sans Mono,9,-1,5,50,0,0,0,0,0
  • You can start QT Configurator with the "qtconfig" command. On the "Fonts" tab, choosing Font Family Sans Serif and Point Size 10 will give something that resembles Ubuntu's GNOME desktop.

  • If you install the kcontrol package, you may run it by entering kcontrol into the Applications/Run Application... prompt. Expand the Appearance & Themes menu and select Fonts. Press Adjust All Fonts and select Size. Lower this value to your preference (size 10 or 11 is usually satisfactory). Press OK and Apply and exit the KDE Control Center.

640x480 Video Hack

640x480 video is not officially a Linux feature but it seems to work with the following modification.

Once Skype is working correctly for you, close it down completely and edit this file

<YOUR HOME DIRECTORY>/.Skype/<SKYPE_USERNAME>/config.xml

and add

inside this section

  • <Video>

    </Video>

After that you should see outbound 640x480 video (it may take a minute or two to "warm up" it seems to gradually increase quality until it hits the limit).

Dual Core processor, etc (see Skype Windows high quality video hardware requirements) recommended.


CategorySoftware CategoryAudio