Audio playback issue on old Thinkpad

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Audio playback issue on old Thinkpad

multiplex'd
Hello all,

I have an IBM T22 Thinkpad running OpenBSD 6.1. Recently, I've been trying
to play audio on the system but I've run into some trouble.

I'm using mplayer from packages, but when I try to play an audio file the
playback is extremely slow and of very poor quality (changing the format of
the audio file used does not change this behaviour). However, if I start
disk-heavy activity at the same time, such as running 'ncdu' (from packages)
or 'find /' then suddenly playback is normal and as expected until mplayer
spontaneously catches signal 13 (SIGPIPE according to
/usr/include/sys/signal.h).

I suspected that this may be due to the disk being very slow so I tried
copying the audio file to an mfs mountpoint and playing from there, however
this did not cause any difference in behaviour.

I also tried changing the sample rate and frequency both in mplayer and with
audioctl, but this also failed to solve the issue.

Does anyone have any advice on how to resolve this issue? The hardware is 15
years old and it would be nice to get some more use out of it.

Thanks,
multiplex'd

Reply | Threaded
Open this post in threaded view
|

Re: Audio playback issue on old Thinkpad

Alexandre Ratchov-2
On Wed, May 17, 2017 at 02:27:38PM +0100, multiplex'd wrote:

> Hello all,
>
> I have an IBM T22 Thinkpad running OpenBSD 6.1. Recently, I've been trying
> to play audio on the system but I've run into some trouble.
>
> I'm using mplayer from packages, but when I try to play an audio file the
> playback is extremely slow and of very poor quality (changing the format of
> the audio file used does not change this behaviour). However, if I start
> disk-heavy activity at the same time, such as running 'ncdu' (from packages)
> or 'find /' then suddenly playback is normal and as expected until mplayer
> spontaneously catches signal 13 (SIGPIPE according to
> /usr/include/sys/signal.h).

could you provide the output of dmesg ?

Reply | Threaded
Open this post in threaded view
|

Re: Audio playback issue on old Thinkpad

multiplex'd
On Wed, May 17, 2017 at 05:25:14PM +0200, Alexandre Ratchov wrote:

> On Wed, May 17, 2017 at 02:27:38PM +0100, multiplex'd wrote:
> > Hello all,
> >
> > I have an IBM T22 Thinkpad running OpenBSD 6.1. Recently, I've been trying
> > to play audio on the system but I've run into some trouble.
> >
> > I'm using mplayer from packages, but when I try to play an audio file the
> > playback is extremely slow and of very poor quality (changing the format of
> > the audio file used does not change this behaviour). However, if I start
> > disk-heavy activity at the same time, such as running 'ncdu' (from packages)
> > or 'find /' then suddenly playback is normal and as expected until mplayer
> > spontaneously catches signal 13 (SIGPIPE according to
> > /usr/include/sys/signal.h).
>
> could you provide the output of dmesg ?

dmesg attached below.

OpenBSD 6.1 (GENERIC) #2: Sat May  6 09:37:02 CEST 2017
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 320 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR,SSE,PERF
real mem  = 536231936 (511MB)
avail mem = 513253376 (489MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 04/27/04, BIOS32 rev. 0 @ 0xfd820, SMBIOS rev. 2.3 @ 0x1fff0000 (46 entries)
bios0: vendor IBM version "16ET32WW (1.12 )" date 04/27/2004
bios0: IBM 26474CG
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP BOOT
acpi0: wakeup devices LID_(S3) SLPB(S3) PCI0(S4) USB_(S1) UART(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiec0 at acpi0
acpipwrres0 at acpi0: PSER, resource for UART
acpipwrres1 at acpi0: PSIO, resource for FDC_, UART, LPT_, ECP_, FIR_
acpitz0 at acpi0: critical temperature is 97 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"PNP0303" at acpi0 not configured
"IBM3780" at acpi0 not configured
"PNP0501" at acpi0 not configured
"PNP0400" at acpi0 not configured
"IBM0071" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "ThinkPad Battery" type LION oem "IBM Corporation "
acpibat1 at acpi0: BAT1 model "ThinkPad Battery" type LION oem "IBM Corporation "
acpiac0 at acpi0: AC unit offline
"IBM0068" at acpi0 not configured
acpidock0 at acpi0: DOCK not docked (0)
acpivideo0 at acpi0: VID_
bios0: ROM list: 0xc0000/0xc000 0xcc000/0x1800 0xdc000/0x4000! 0xe0000/0x10000
cpu0 at mainbus0: (uniprocessor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xf8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "S3 Savage/IX-MV" rev 0x13
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
cbb0 at pci0 dev 2 function 0 "TI PCI1450 CardBus" rev 0x03: irq 11
cbb1 at pci0 dev 2 function 1 "TI PCI1450 CardBus" rev 0x03: irq 11
fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x0c, i82550: irq 11, address 00:03:47:b9:1f:6b
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
"AT&T/Lucent LTMODEM" rev 0x01 at pci0 dev 3 function 1 not configured
clcs0 at pci0 dev 5 function 0 "Cirrus Logic CS4280/46xx CrystalClear" rev 0x01: irq 11
ac97: codec id 0x43525914 (Cirrus Logic CS4297A rev 4)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02: SpeedStep
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <IC25N030ATCS04-0>
wd0: 16-sector PIO, LBA, 28615MB, 58605120 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x03: SMI
iic0 at piixpm0
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 5 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
isa0 at piixpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt2 at isa0 port 0x3bc/4: polled
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
wdc2 at pcmcia0 function 0 "Kingston, ULTIMATE CF CARD, " port 0xa000/16
wd1 at wdc2 channel 0 drive 0: <ULTIMATE CF CARD>
wd1: 1-sector PIO, LBA48, 30495MB, 62455680 sectors
wd1(wdc2:0:0): using BIOS timings
root on wd0a (f82c9e15a81fc065.a) swap on wd0b dump on wd0b
clcs0: firmware loaded
audio0 at clcs0
wsdisplay0: screen 6 added (80x25, vt100 emulation)
sd0 at scsibus2 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd0: 30490MB, 512 bytes/sector, 62445008 sectors

Reply | Threaded
Open this post in threaded view
|

Re: Audio playback issue on old Thinkpad

turcu septimiu
Hi,I remember having a similar issue some time back, on a similar machine.What did it for me was to go into BIOS and change some power saving options.
Septi


On Wednesday, May 17, 2017, 6:50:21 PM GMT+1, multiplex'd <[hidden email]> wrote:On Wed, May 17, 2017 at 05:25:14PM +0200, Alexandre Ratchov wrote:

> On Wed, May 17, 2017 at 02:27:38PM +0100, multiplex'd wrote:
> > Hello all,
> >
> > I have an IBM T22 Thinkpad running OpenBSD 6.1. Recently, I've been trying
> > to play audio on the system but I've run into some trouble.
> >
> > I'm using mplayer from packages, but when I try to play an audio file the
> > playback is extremely slow and of very poor quality (changing the format of
> > the audio file used does not change this behaviour). However, if I start
> > disk-heavy activity at the same time, such as running 'ncdu' (from packages)
> > or 'find /' then suddenly playback is normal and as expected until mplayer
> > spontaneously catches signal 13 (SIGPIPE according to
> > /usr/include/sys/signal.h).
>
> could you provide the output of dmesg ?

dmesg attached below.

OpenBSD 6.1 (GENERIC) #2: Sat May  6 09:37:02 CEST 2017
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 320 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR,SSE,PERF
real mem  = 536231936 (511MB)
avail mem = 513253376 (489MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 04/27/04, BIOS32 rev. 0 @ 0xfd820, SMBIOS rev. 2.3 @ 0x1fff0000 (46 entries)
bios0: vendor IBM version "16ET32WW (1.12 )" date 04/27/2004
bios0: IBM 26474CG
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP BOOT
acpi0: wakeup devices LID_(S3) SLPB(S3) PCI0(S4) USB_(S1) UART(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiec0 at acpi0
acpipwrres0 at acpi0: PSER, resource for UART
acpipwrres1 at acpi0: PSIO, resource for FDC_, UART, LPT_, ECP_, FIR_
acpitz0 at acpi0: critical temperature is 97 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"PNP0303" at acpi0 not configured
"IBM3780" at acpi0 not configured
"PNP0501" at acpi0 not configured
"PNP0400" at acpi0 not configured
"IBM0071" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "ThinkPad Battery" type LION oem "IBM Corporation "
acpibat1 at acpi0: BAT1 model "ThinkPad Battery" type LION oem "IBM Corporation "
acpiac0 at acpi0: AC unit offline
"IBM0068" at acpi0 not configured
acpidock0 at acpi0: DOCK not docked (0)
acpivideo0 at acpi0: VID_
bios0: ROM list: 0xc0000/0xc000 0xcc000/0x1800 0xdc000/0x4000! 0xe0000/0x10000
cpu0 at mainbus0: (uniprocessor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xf8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "S3 Savage/IX-MV" rev 0x13
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
cbb0 at pci0 dev 2 function 0 "TI PCI1450 CardBus" rev 0x03: irq 11
cbb1 at pci0 dev 2 function 1 "TI PCI1450 CardBus" rev 0x03: irq 11
fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x0c, i82550: irq 11, address 00:03:47:b9:1f:6b
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
"AT&T/Lucent LTMODEM" rev 0x01 at pci0 dev 3 function 1 not configured
clcs0 at pci0 dev 5 function 0 "Cirrus Logic CS4280/46xx CrystalClear" rev 0x01: irq 11
ac97: codec id 0x43525914 (Cirrus Logic CS4297A rev 4)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02: SpeedStep
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <IC25N030ATCS04-0>
wd0: 16-sector PIO, LBA, 28615MB, 58605120 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x03: SMI
iic0 at piixpm0
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 5 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
isa0 at piixpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt2 at isa0 port 0x3bc/4: polled
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
wdc2 at pcmcia0 function 0 "Kingston, ULTIMATE CF CARD, " port 0xa000/16
wd1 at wdc2 channel 0 drive 0: <ULTIMATE CF CARD>
wd1: 1-sector PIO, LBA48, 30495MB, 62455680 sectors
wd1(wdc2:0:0): using BIOS timings
root on wd0a (f82c9e15a81fc065.a) swap on wd0b dump on wd0b
clcs0: firmware loaded
audio0 at clcs0
wsdisplay0: screen 6 added (80x25, vt100 emulation)
sd0 at scsibus2 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd0: 30490MB, 512 bytes/sector, 62445008 sectors

Reply | Threaded
Open this post in threaded view
|

Re: Audio playback issue on old Thinkpad

Alexandre Ratchov-2
In reply to this post by multiplex'd
On Wed, May 17, 2017 at 06:50:29PM +0100, multiplex'd wrote:

> On Wed, May 17, 2017 at 05:25:14PM +0200, Alexandre Ratchov wrote:
> > On Wed, May 17, 2017 at 02:27:38PM +0100, multiplex'd wrote:
> > > Hello all,
> > >
> > > I have an IBM T22 Thinkpad running OpenBSD 6.1. Recently, I've been trying
> > > to play audio on the system but I've run into some trouble.
> > >
> > > I'm using mplayer from packages, but when I try to play an audio file the
> > > playback is extremely slow and of very poor quality (changing the format of
> > > the audio file used does not change this behaviour). However, if I start
> > > disk-heavy activity at the same time, such as running 'ncdu' (from packages)
> > > or 'find /' then suddenly playback is normal and as expected until mplayer
> > > spontaneously catches signal 13 (SIGPIPE according to
> > > /usr/include/sys/signal.h).
> >
> > could you provide the output of dmesg ?
>
> dmesg attached below.

> cbb0 at pci0 dev 2 function 0 "TI PCI1450 CardBus" rev 0x03: irq 11
> cbb1 at pci0 dev 2 function 1 "TI PCI1450 CardBus" rev 0x03: irq 11
> fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x0c, i82550: irq 11, address 00:03:47:b9:1f:6b
> clcs0 at pci0 dev 5 function 0 "Cirrus Logic CS4280/46xx CrystalClear" rev 0x01: irq 11
> uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0xb0
> pcmcia0 at cardslot0
> wdc2 at pcmcia0 function 0 "Kingston, ULTIMATE CF CARD, " port 0xa000/16
> wd1 at wdc2 channel 0 drive 0: <ULTIMATE CF CARD>
> wd1: 1-sector PIO, LBA48, 30495MB, 62455680 sectors
> wd1(wdc2:0:0): using BIOS timings

There are 5 devices that share the same interrupt (2 cardbus, 1
nic, 1 audio, 1 usb), not optimal, but sharing interrupts is
supposed to work.

The fact that disk activity "fixes" playback suggests something is
disturbing audio interrupts.  According to your dmesg, you've a
hard-disk connected to the cardbus device.

Could you confirm that audio works if cardbus is disabled?  this
would give hints about in which driver to look for the bug.