Note, that this recipe is not updated long time and could be outdated!
Got it.

Fixing Recordmydesktop on Ubuntu

Recordmydesktop is broken in Ubuntu 8.04 Hardy Heron due to library changes.
When recordmydesktop is started from command line it shows different errors.

Video related problem:

"This issue is fixed starting from Ubuntu 8.10 (Intrepid Ibex)!

...
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [[0xb79db767]]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [[0xb79db8b1]]
#2 /usr/lib/libX11.so.6 [[0xb7e34421]]
#3 /usr/lib/libX11.so.6(XNextEvent+0x74) [[0xb7e1c734]]
#4 recordmydesktop [[0x8051776]]
#5 /lib/tls/i686/cmov/libpthread.so.0 [[0xb7cfa4fb]]
#6 /lib/tls/i686/cmov/libc.so.6(clone+0x5e) [[0xb7ab3e5e]]
...

After while it cannot be finished with Ctrl+C (which alias to kill -s INT PID.)

Audio/sound related problem:

...
Broken pipe: Underrun occurred.
Broken pipe: Underrun occurred.
Broken pipe: Underrun occurred.
...

This problem disappears, if sound is not recorded using no-sound switch.

Video error workaround

Workaround to solve this is downgrading libx11-6 package.
Do following steps:

  1. As root user first check package update status, command should return following:

    # dpkg --get-selections | grep libx11-6
    libx11-6                                        install
  2. configure apt, to hold package version:

    # echo "libx11-6 hold" | dpkg --set-selections
  3. Can check again:

    # dpkg --get-selections | grep libx11-6
    libx11-6                                        hold
  4. Download previous package version from http://packages.ubuntu.com/hardy/libs/libx11-6 choose i386 OR amd64
  5. Install previous version:

    # dpkg -i libx11-6_1.1.1-1ubuntu4_i386.deb

    or

    # dpkg -i libx11-6_1.1.1-1ubuntu4_amd64.deb

    according to the OS version.

  6. Check that apt is working correctly:

    # apt-get update
    ...
    # apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages have been kept back:
      libx11-6
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Sound error workaround

  1. Check, that Intel sound card is used. Following command should return  like this:

    # lsmod|grep snd_hda_intel
    snd_hda_intel         440408  5
    snd_pcm                92168  3 snd_hda_intel,snd_pcm_oss
    snd_page_alloc         13200  2 snd_hda_intel,snd_pcm
    snd_hwdep              12552  1 snd_hda_intel
    snd                    70856  20 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
  2. Open file /etc/modprobe.d/alsa-base.conf and add following line:

    options snd-hda-intel position_fix=1

    what worked for desktop with ASUS motherboard and Dell Studio 17 laptop, or

    options snd-hda-intel index=0 probe_mask=3 position_fix=3 model=laptop

    what worked on HP Compaq 6510b laptop. See more options in links.

  3. Reboot computer, to be sure libraries are loaded, and check.

  

Created by Valdis Vītoliņš on 2013-09-08 14:20
Last modified by Valdis Vītoliņš on 2021-04-13 14:30
 
Xwiki Powered
Creative Commons Attribution 3.0 Unported License