Sat, 26 Dec 2009

Ubuntu and Scanning and Video

Keywords: linux ubuntu 8.10 sane

Trying to run xsane from my HP 2133 resulted in the error message

Failed to open device 'v4l:/dev/video0'

As a hack, I presume, to get around this I commented out the line


in /etc/sane.d/v4l.conf

[/unix/2133] permanent link

Fri, 25 Dec 2009

Picasa Hanging

Keywords: picasa hang places linux ubuntu wine

I have Picasa 3.6 running on Ubuntu under Wine. I managed to hit the Places tab and the whole thing hung. The way to fix it is to run

perl -i.bak -pe 's/places/people/' ~/.google/picasa/3.0/user.reg

[/software/picasa] permanent link

Sat, 26 Sep 2009

Splitting albums with cue files

Keywords: split cue flac mp3 linux ubuntu ape mac

In order to split a flac file of an entire album into its constituent parts:

$ sudo aptitude install cuetools shntool flac
$ shnsplit -o flac -t '%a %n %t' -f *.cue *.flac

You can do something similar with other lossless formats.

To do the same with an mp3 file:

$ sudo aptitude install mp3splt
$ mp3split -c *.cue *.mp3

Obviously you'll need to be a little more specific if you have more than one album in a directory.

To split ape files, you'll need to build the ape decoder:

$ sudo aptitude install nasm
$ wget
$ bzcat mac-3.99-u4-b5.tar.bz2 | tar xvf -
$ cd mac-3.99-u4-b5
$ ./configure --prefix=/usr/local
$ make
$ sudo make install

The copy of the source here is a slightly patched version to explicitly cast in four places where gcc was complaining.

[/unix] permanent link

Mon, 09 Mar 2009

Ubuntu and Ati

Keywords: linux ubuntu 8.10 intrepid ibex ATI Technologies Inc RV370 [Radeon X300SE] X300

And yet another of the things that broke when I upgraded Ubuntu to 8.10 was the 3D graphics acceleration. lspci identifies my card as

01:00.0 VGA compatible controller: ATI Technologies Inc RV370 5B60 [Radeon X300 (PCIE)]
01:00.1 Display controller: ATI Technologies Inc RV370 [Radeon X300SE]

The X log file (/var/log/Xorg.0.log) tells me:

(II) fglrx(0): driver needs 1.4.x.y with x.y >= 99.906
(II) fglrx(0): detected
(EE) fglrx(0): atiddxDriScreenInit failed, GPS not been initialized. 
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)             *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *

$ glxinfo
name of display: :0.0
X Error of failed request: BadRequest (invalid request code or no such operation)
  Major opcode of failed request: 159 (GLX)
  Minor opcode of failed request: 19 (X_GLXQueryServerString)
  Serial number of failed request: 10
  Current serial number in output stream: 10

It seems this was finally fixed this year with Catalyst 9.2. In accordance with the instructions I downloaded the installer from AMD and then installed it:

# apt-get remove --purge xserver-xorg-video-radeon fglrx-kernel-source fglrx-modaliases
# sh --buildpkg Ubuntu/8.10
# dpkg -i xorg-driver-fglrx_8.582-0ubuntu1_i386.deb \
          xorg-driver-fglrx-dev_8.582-0ubuntu1_i386.deb \
          fglrx-amdcccle_8.582-0ubuntu1_i386.deb \
          fglrx-modaliases_8.582-0ubuntu1_i386.deb \
          libamdxvba1_8.582-0ubuntu1_i386.deb \

I suppose it's only to be expected that after rebooting X wouldn't start. The X log file told me:

(II) LoadModule: "amdxmm"

(II) Loading /usr/lib/xorg/modules//
(II) Module amdxmm: vendor="X.Org Foundation"
        compiled for, module version = 1.0.0
        ABI class: X.Org Server Extension, version 1.1

0: /usr/X11R6/bin/X(xf86SigHandler+0x79) [0x80c3009]
1: [0xb7fde400]
2: /usr/lib/xorg/modules// [0xb61a4845]
3: /usr/lib/xorg/modules/drivers// [0xb76a3bdc]
4: /usr/lib/xorg/modules/drivers// [0xb7699e94]
5: /usr/X11R6/bin/X(AddScreen+0x19f) [0x807137f]
6: /usr/X11R6/bin/X(InitOutput+0x206) [0x80aa536]
7: /usr/X11R6/bin/X(main+0x279) [0x8071b19]
8: /lib/tls/i686/cmov/ [0xb7bdc685]
9: /usr/X11R6/bin/X [0x8071101]
Saw signal 11.  Server aborting.
(II) Screen 0 shares mem & io resources
(II) Screen 1 shares mem & io resources
(EE) fglrx(0): === [swlDalHelperSetControllerConfigForRemap] === CWDDC ControllerSetConfig failed: 6 - 0

Wonderful. But easily fixed:

# mv /usr/lib/xorg/modules/ /usr/lib/xorg/modules/

Presumably, something's not going to work now, but at least it's better than it was, and 3D acceleraton works. I can even watch video.

For some, possibly unrelated, reason at this point the volume control knob on the keyboard stopped controlling the volume until I set the Default Mixer Track in System/Preferences/Sound to HDA Intel (Alsa mixer).

[/unix] permanent link

Tue, 06 Jan 2009

Amarok and SPDIF output

To get amarok to use the SPDIF output, first use alsamixer and unmute the IEC958 output.

Then in the Configure Engine section of amarok, use the xine engine, the alsa output plugin, and change the alsa device configuration from:

Mono:        default         4 Channels:       plug:surround40:0
Stereo:      default         6 Channels:       plug:surround51:0


Mono:        plug:spdif      4 Channels:       plug:spdif
Stereo:      plug:spdif      6 Channels:       plug:spdif

[/software/amarok] permanent link

Mon, 05 Jan 2009

Getting ssh to work over wireless on HP 2133

Ssh over wireless hangs into and out of the HP 2133. Changing the MTU doesn't help. What does help is running:

iwpriv eth0 set_vlanmode 0

[/unix/2133] permanent link

September 2017
Sun Mon Tue Wed Thu Fri Sat