Hibernate doesn't work on my T43

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Hibernate doesn't work on my T43

André Stöbe
Hey,

I'm testing the new hibernate support on my ThinkPad T43 running current.
Many thanks to the developers for implementing this feature.

Unfortunately there's nothing happening at all when I issue the
ZZZ command. I see no increased disk activity and the laptop keeps
running and running for hours.

$ sudo ZZZ
Password:
Hibernating system...
$

I have enough swap space available:

$ swapctl -l
Device      512-blocks     Used    Avail Capacity  Priority
/dev/wd0b      4203360        0  4203360     0%    0

And my hardware is supported:

$ dmesg
OpenBSD 5.2 (GENERIC) #1: Fri Jul 20 19:05:31 CEST 2012
    root@laptop:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.86GHz ("GenuineIntel" 686-class)
1.87 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,NXE,EST,TM2
real mem  = 1072033792 (1022MB)
avail mem = 1043660800 (995MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/07/05, BIOS32 rev. 0 @ 0xfd760,
SMBIOS rev. 2.33 @ 0xe0010 (64 entries)
bios0: vendor IBM version "1YET59WW (1.24 )" date 11/07/2005
bios0: IBM 2668AG2
apm0 at bios0: Power Management spec V1.2
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd6f0/0x910
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdeb0/256 (14 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #5 is the last bus
bios0: ROM list: 0xc0000/0x10000 0xdc000/0x4000! 0xe0000/0x10000
cpu0 at mainbus0: (uniprocessor)
cpu0: Enhanced SpeedStep 1863 MHz: speeds: 1867, 1600, 1333, 1067, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
io address conflict 0x5800/0x8
io address conflict 0x5808/0x4
io address conflict 0x5810/0x8
io address conflict 0x580c/0x4
pchb0 at pci0 dev 0 function 0 "Intel 82915GM Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82915GM PCIE" rev 0x03: irq 11
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility M300 M22" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: irq 11
drm0 at radeondrm0
ppb1 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03: irq 11
pci2 at ppb1 bus 2
bge0 at pci2 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1
(0x4101): irq 11, address 00:10:c6:e2:b7:92
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb2 at pci0 dev 28 function 2 "Intel 82801FB PCIE" rev 0x03: irq 11
pci3 at ppb2 bus 3
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: irq 11
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: irq 11
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: irq 11
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: irq 11
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
pci4 at ppb3 bus 4
cbb0 at pci4 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0x8d: irq 11
iwi0 at pci4 dev 2 function 0 "Intel PRO/Wireless 2200BG" rev 0x05: irq
11, address 00:16:6f:04:c2:e6
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 5 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: irq 11,
ICH6 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
"Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM
disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <HTS541060G9AT00>
wd0: 16-sector PIO, LBA, 57231MB, 117210240 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVD-ROM GDR8083N, 0K04> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 11
iic0 at ichiic0
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics touchpad, firmware 5.9
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt2 at isa0 port 0x3bc/4: polled
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (98d0b835e59425c9.a) swap on wd0b dump on wd0b
iwi0: timeout waiting for master

Is there anything I can do to troubleshoot this further?

Thanks
Andre

Reply | Threaded
Open this post in threaded view
|

Re: Hibernate doesn't work on my T43

Alexander Polakov-2
* "André S." <[hidden email]> [120721 10:20]:
> Hey,
>
> I'm testing the new hibernate support on my ThinkPad T43 running current.
> Many thanks to the developers for implementing this feature.

New hibernate support is ACPI-based, and you're running in APM mode.
From dmesg:

 apm0 at bios0: Power Management spec V1.2
 acpi at bios0 function 0x0 not configured

Try disabling apm with boot -c or config(8).
 
--
Alexander Polakov | plhk.ru

Reply | Threaded
Open this post in threaded view
|

Re: Hibernate doesn't work on my T43

André Stöbe
Hey,

Alexander Polakov wrote:
> New hibernate support is ACPI-based

Ah, I didn't know that.

> Try disabling apm with boot -c or config(8).

The laptop now goes immediately into sleep after issuing ZZZ, but
doesn't wake up anymore.

Regards
Andre

Reply | Threaded
Open this post in threaded view
|

Re: Hibernate doesn't work on my T43

Alexander Polakov
* "André S." <[hidden email]> [120721 19:08]:

> Hey,
>
> Alexander Polakov wrote:
> > New hibernate support is ACPI-based
>
> Ah, I didn't know that.
>
> > Try disabling apm with boot -c or config(8).
>
> The laptop now goes immediately into sleep after issuing ZZZ, but
> doesn't wake up anymore.

dmesg with apm disabled can be useful.

Reply | Threaded
Open this post in threaded view
|

Re: Hibernate doesn't work on my T43

André Stöbe
Alexander Polakov wrote:
> dmesg with apm disabled can be useful.

Of course:

$ dmesg
OpenBSD 5.2 (GENERIC) #1: Fri Jul 20 19:05:31 CEST 2012
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.86GHz ("GenuineIntel" 686-class)
1.87 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,NXE,EST,TM2
real mem  = 1072033792 (1022MB)
avail mem = 1043660800 (995MB)
User Kernel Config
UKC> disable apm
351 apm0 disabled
UKC> quit
Continuing...
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/07/05, BIOS32 rev. 0 @ 0xfd760,
SMBIOS rev. 2.33 @ 0xe0010 (64 entries)
bios0: vendor IBM version "1YET59WW (1.24 )" date 11/07/2005
bios0: IBM 2668AG2
apm at bios0 function 0x15 not configured
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG BOOT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) EXP0(S4) EXP1(S4)
EXP2(S4) EXP3(S4) PCI1(S4) DOCK(S4) USB0(S3) USB1(S3) USB3(S3) USB7(S3)
AC9M(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 133MHz
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus -1 (EXP1)
acpiprt4 at acpi0: bus 3 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus 4 (PCI1)
acpicpu0 at acpi0: C3, C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "IBM-92P1090" serial  3657 type LION oem
"Panasonic"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit offline
acpithinkpad0 at acpi0
acpidock0 at acpi0: DOCK not docked (0)
bios0: ROM list: 0xc0000/0x10000 0xdc000/0x4000! 0xe0000/0x10000
cpu0: Enhanced SpeedStep 1863 MHz: speeds: 1866, 1600, 1333, 1066, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915GM Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82915GM PCIE" rev 0x03: apic 1 int 16
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility M300 M22" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 1 int 16
drm0 at radeondrm0
ppb1 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03: apic 1 int 20
pci2 at ppb1 bus 2
bge0 at pci2 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1
(0x4101): apic 1 int 16, address 00:10:c6:e2:b7:92
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb2 at pci0 dev 28 function 2 "Intel 82801FB PCIE" rev 0x03: apic 1 int 22
pci3 at ppb2 bus 3
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: apic 1 int 16
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: apic 1 int 17
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: apic 1 int 19
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: apic 1 int 19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
pci4 at ppb3 bus 4
cbb0 at pci4 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0x8d: apic 1 int 16
iwi0 at pci4 dev 2 function 0 "Intel PRO/Wireless 2200BG" rev 0x05: apic
1 int 21, address 00:16:6f:04:c2:e6
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 5 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: apic 1
int 22, ICH6 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
"Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM
disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <HTS541060G9AT00>
wd0: 16-sector PIO, LBA, 57231MB, 117210240 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVD-ROM GDR8083N, 0K04> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: apic 1
int 23
iic0 at ichiic0
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics touchpad, firmware 5.9
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt2 at isa0 port 0x3bc/4: polled
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (98d0b835e59425c9.a) swap on wd0b dump on wd0b

Reply | Threaded
Open this post in threaded view
|

Re: Hibernate doesn't work on my T43

Alexey Suslikov
André S. <andrestoebe <at> gmail.com> writes:

> bios0: vendor IBM version "1YET59WW (1.24 )" date 11/07/2005
> bios0: IBM 2668AG2

You should try with newer BIOS.

http://support.lenovo.com/en_US/research/hints-or-tips/detail.page?&LegacyDocID=MIGR-60131

> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG BOOT
> acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) EXP0(S4) EXP1(S4)
> EXP2(S4) EXP3(S4) PCI1(S4) DOCK(S4) USB0(S3) USB1(S3) USB3(S3) USB7(S3)
> AC9M(S4)

Another idea - cardbus isn't hibernating/resuming properly. People
on the list wouldn't like such an advice, but try to boot with ccb
disabled, ZZZ and resume.

Regards,
Alexey

Reply | Threaded
Open this post in threaded view
|

Re: Hibernate doesn't work on my T43

André Stöbe
Alexey E. Suslikov wrote:
> You should try with newer BIOS.

Done, as well as the ECP.

Booting now with apm disabled causes OpenBSD to hang on "starting
network". The cursor is still blinking, but after 15 minutes it's still
stuck there.

> Another idea - cardbus isn't hibernating/resuming properly. People
> on the list wouldn't like such an advice, but try to boot with ccb
> disabled, ZZZ and resume.

You meant cbb, right?

This causes the system not to hang on boot at least, but it still
doesn't wake after ZZZ.

Attached is a dmesg with updated BIOS+ECP and disabled apm+cbb.

Regards
Andre

$ dmesg
OpenBSD 5.2 (GENERIC) #1: Fri Jul 20 19:05:31 CEST 2012
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.86GHz ("GenuineIntel" 686-class)
1.87 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,NXE,EST,TM2
real mem  = 1072033792 (1022MB)
avail mem = 1043660800 (995MB)
User Kernel Config
UKC> disable ab\^H \^Hpm
351 apm0 disabled
UKC> disable cbb
156 cbb* disabled
UKC> exit
Continuing...
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/21/06, BIOS32 rev. 0 @ 0xfd760,
SMBIOS rev. 2.33 @ 0xe0010 (64 entries)
bios0: vendor IBM version "1YET65WW (1.29 )" date 08/21/2006
bios0: IBM 2668AG2
apm at bios0 function 0x15 not configured
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG BOOT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) EXP0(S4) EXP1(S4)
EXP2(S4) EXP3(S4) PCI1(S4) DOCK(S4) USB0(S3) USB1(S3) USB3(S3) USB7(S3)
AC9M(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 133MHz
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus -1 (EXP1)
acpiprt4 at acpi0: bus 3 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus 11 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "IBM-92P1090" serial  3657 type LION oem
"Panasonic"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: DOCK not docked (0)
bios0: ROM list: 0xc0000/0x10000 0xd0000/0x1600 0xd1800/0x1000
0xdc000/0x4000! 0xe0000/0x10000
cpu0: Enhanced SpeedStep 1863 MHz: speeds: 1866, 1600, 1333, 1066, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915GM Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82915GM PCIE" rev 0x03: apic 1 int 16
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility M300 M22" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 1 int 16
drm0 at radeondrm0
ppb1 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03: apic 1 int 20
pci2 at ppb1 bus 2
bge0 at pci2 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1
(0x4101): apic 1 int 16, address 00:10:c6:e2:b7:92
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb2 at pci0 dev 28 function 2 "Intel 82801FB PCIE" rev 0x03: apic 1 int 22
pci3 at ppb2 bus 3
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: apic 1 int 16
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: apic 1 int 17
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: apic 1 int 19
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: apic 1 int 19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
pci4 at ppb3 bus 11
"Ricoh 5C476 CardBus" rev 0x8d at pci4 dev 0 function 0 not configured
iwi0 at pci4 dev 2 function 0 "Intel PRO/Wireless 2200BG" rev 0x05: apic
1 int 21, address 00:16:6f:04:c2:e6
auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: apic 1
int 22, ICH6 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
"Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM
disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <HTS541060G9AT00>
wd0: 16-sector PIO, LBA, 57231MB, 117210240 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVD-ROM GDR8083N, 0K04> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: apic 1
int 23
iic0 at ichiic0
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics touchpad, firmware 5.9
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt2 at isa0 port 0x3bc/4: polled
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (98d0b835e59425c9.a) swap on wd0b dump on wd0b

Reply | Threaded
Open this post in threaded view
|

Re: Hibernate doesn't work on my T43

Alexey Suslikov
André S. <andrestoebe <at> gmail.com> writes:
> Alexey E. Suslikov wrote:
> > You should try with newer BIOS.
>
> Done, as well as the ECP.
>
> Booting now with apm disabled causes OpenBSD to hang on "starting
> network". The cursor is still blinking, but after 15 minutes it's still
> stuck there.

Can you double check this? Maybe not related to hibernation issue...

>
> > Another idea - cardbus isn't hibernating/resuming properly. People
> > on the list wouldn't like such an advice, but try to boot with ccb
> > disabled, ZZZ and resume.
>
> You meant cbb, right?
>
> This causes the system not to hang on boot at least, but it still
> doesn't wake after ZZZ.

Can you disable cardbus entirely from BIOS?

Additionally, searching archives gave me this
http://article.gmane.org/gmane.os.openbsd.misc/177219/

and this one
http://article.gmane.org/gmane.os.openbsd.misc/120610

Googled, there are indications of UHCI and ISA devices
not recovering from ACPI suspend/hibernate on Thinkpads.

No sure, but there is a possibility what APM is the only
choice on such machines.

Regards,
Alexey

Reply | Threaded
Open this post in threaded view
|

minimal radio streamer on Alix LX800 gateway?

Peter Laufenberg
In reply to this post by Alexey Suslikov
I want to set up a minimal mp3 Internet radio streamer directly on my Alix Geode 500 MHz gateway. The idea is to grab the data closest to my PPPoE ADSL modem so it doesn't travel through the rest of the LAN and pollute logs, assuming the decoder daemon is secure and not too demanding on the Alix.

This Alix has no on-board audio but I have unused external audio interfaces from my bygone DJ days, some clearly overkill but none with built-in mp3 decoder:

 USB 1.0 tiny Roland UA-1A 2-in/2-out, 16bit @ 48 kHz (2001)
 USB 2.0 Roland UA-101 10-in/10-out, optical in/out, 24-bit @ 192 kHz (2005)
 USB 2.0 M-Audio FastTrack Pro 4-in/4-out, coax in/out, 16-bit @ 96 kHz

For play/stop & next controls I'd use a small USB gamepad-type or MIDI controller, not via TCP messages, so it doesn't complicate pf rules. I cycle between 3 hardcoded stations using 128kbps CBR so that's the only codec I need.

Questions:

- stupid/dangerous idea?
- what's the most nimble stream+mp3 solution?
- are there AMD Geode-specific instructions it can be recompiled with?

thx,

-- p

Reply | Threaded
Open this post in threaded view
|

Re: minimal radio streamer on Alix LX800 gateway?

Jan Stary
On Jul 23 11:00:19, Peter Laufenberg wrote:
> I want to set up a minimal mp3 Internet radio streamer directly on my Alix Geode 500 MHz gateway. The idea is to grab the data closest to my PPPoE ADSL modem so it doesn't travel through the rest of the LAN and pollute logs, assuming the decoder daemon is secure and not too demanding on the Alix.

Why exactly do you need to be playing the mp3 stream on your gateway?
Why cannot you run this on an inside machine?

> This Alix has no on-board audio but I have unused external audio interfaces from my bygone DJ days, some clearly overkill but none with built-in mp3 decoder:

You should send a full dmesg.

>  USB 1.0 tiny Roland UA-1A 2-in/2-out, 16bit @ 48 kHz (2001)
>  USB 2.0 Roland UA-101 10-in/10-out, optical in/out, 24-bit @ 192 kHz (2005)
>  USB 2.0 M-Audio FastTrack Pro 4-in/4-out, coax in/out, 16-bit @ 96 kHz

I use the FastTrack without problems.

> For play/stop & next controls I'd use a small USB gamepad-type or MIDI controller, not via TCP messages, so it doesn't complicate pf rules. I cycle between 3 hardcoded stations using 128kbps CBR so that's the only codec I need.

I use 'play' from audio/sox. It supports internet mp3 streams
as simply as in 'play http://some.radio.org:1234/stream.mp3'.

I have written me a simple shell wrapper around this
to be able to use a predefined list of radio stations;
tweak to your needs:

http://stare.cz/OpenBSD/radio
http://stare.cz/OpenBSD/dot.radiorc

I don;t think you need any start/stop midi controlling - just
kill the proccess playing this and start another playing that.


> - stupid/dangerous idea?

no

> - what's the most nimble stream+mp3 solution?

I use audio/sox, but that also supports many other formats beside mp3,
so you might find something lighter that supports just mp3.
(Then plug it into the radio tool instead of 'play')

> - are there AMD Geode-specific instructions it can be recompiled with?

You are not gonna gain anything by looking for those.

        Jan

Reply | Threaded
Open this post in threaded view
|

Re: minimal radio streamer on Alix LX800 gateway?

Wojciech Puchar-5
In reply to this post by Peter Laufenberg
> I want to set up a minimal mp3 Internet radio streamer directly on my Alix Geode 500 MHz gateway. The idea is to grab the data closest to my PPPoE ADSL modem so it doesn't travel through the rest of the LAN and pollute logs, assuming the decoder daemon is secure and not too demanding on the Alix.
133MHz 486 is enough to decode MP3 - this is what i had some years ago as
my home machine, depending on MP3 needed 60-90% CPU using mpg123

Reply | Threaded
Open this post in threaded view
|

Re: minimal radio streamer on Alix LX800 gateway?

Christian Weisgerber
In reply to this post by Peter Laufenberg
Peter Laufenberg <[hidden email]> wrote:

> I want to set up a minimal mp3 Internet radio streamer directly on my
> PPPoE ADSL modem so it doesn't travel through the rest of the LAN and
> pollute logs,

I don't understand that rationale.

> This Alix has no on-board audio but I have unused external audio
> interfaces from my bygone DJ days, some clearly overkill but none with
> built-in mp3 decoder:
>
>  USB 1.0 tiny Roland UA-1A 2-in/2-out, 16bit @ 48 kHz (2001)
>  USB 2.0 Roland UA-101 10-in/10-out, optical in/out, 24-bit @ 192 kHz (2005)
>  USB 2.0 M-Audio FastTrack Pro 4-in/4-out, coax in/out, 16-bit @ 96 kHz

Just what I was going to say, use any uaudio(4) device.

> For play/stop & next controls I'd use a small USB gamepad-type or MIDI
> controller,

That looks like the most difficult part, because offhand I have no
idea how to interface those input devices with a tty.

> I cycle between 3 hardcoded stations using 128kbps CBR so that's the only
> codec I need.
>
> - what's the most nimble stream+mp3 solution?

mpg123 is probably the fastest one, although all of them will be
fast enough.  With sndiod disabled, mpg123 playing a 128 kbps stream
takes about 6% CPU on a Geode 500 MHz.  Double that if you need or
want to run sndiod.  Playing 192 or 256 kbps streams makes barely
any difference.

> - are there AMD Geode-specific instructions it can be recompiled with?

mpg123 actually comes with hand-crafted optimizations for a variety
of x86 instruction set extensions.  It automatically picks an
appropriate one at run time.  On the Geode, it defaults to the
3DNowExt decoder.  But really, the Geode is already too fast for
this to matter much.

--
Christian "naddy" Weisgerber                          [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: minimal radio streamer on Alix LX800 gateway?

Peter Laufenberg
>Peter Laufenberg <[hidden email]> wrote:
>
>> I want to set up a minimal mp3 Internet radio streamer directly on my
>> PPPoE ADSL modem so it doesn't travel through the rest of the LAN and
>> pollute logs,
>
>I don't understand that rationale.

For Internet radio to feel as if I was listening to FM radio -- no/little impact on my LAN, works even if all my computers are off (except the Geode & modem), can be on all the time. I don't need or want visual feedback, fancy equalizers or mouse, just 2 accessible *physical* buttons. Picture a car mechanic with a crappy FM receiver if you will. The decoded audio signal plugs into the rest of my audio gear which is not PC-based.

>> For play/stop & next controls I'd use a small USB gamepad-type or MIDI
>> controller,
>
>That looks like the most difficult part, because offhand I have no
>idea how to interface those input devices with a tty.

The point is not to need tty or network client/server messaging. I query a USB device directly, never leaves the Geode. I've done more complex stuff before, www.hackerdjs.com, and have lots of gear just lying around, forget about that part it's a distraction.

>> I cycle between 3 hardcoded stations using 128kbps CBR so that's the only
>> codec I need.
>>
>> - what's the most nimble stream+mp3 solution?
>
>mpg123 is probably the fastest one, although all of them will be
>fast enough.  With sndiod disabled, mpg123 playing a 128 kbps stream
>takes about 6% CPU on a Geode 500 MHz.  Double that if you need or
>want to run sndiod.  Playing 192 or 256 kbps streams makes barely
>any difference.

Ok I saw mpg321 picked up that project and depends on madlib like a ton of other players. Sourceforge shows the most recent "mad" update in 2004 which I assume means it's solid.

>> - are there AMD Geode-specific instructions it can be recompiled with?
>
>mpg123 actually comes with hand-crafted optimizations for a variety
>of x86 instruction set extensions.  It automatically picks an
>appropriate one at run time.  On the Geode, it defaults to the
>3DNowExt decoder.  But really, the Geode is already too fast for
>this to matter much.

Ok thx.

-- p

Reply | Threaded
Open this post in threaded view
|

Re: Hibernate doesn't work on my T43

Mike Larkin
In reply to this post by André Stöbe
On Sun, Jul 22, 2012 at 02:03:09PM +0200, "Andr?? S." wrote:

> Alexey E. Suslikov wrote:
> > You should try with newer BIOS.
>
> Done, as well as the ECP.
>
> Booting now with apm disabled causes OpenBSD to hang on "starting
> network". The cursor is still blinking, but after 15 minutes it's still
> stuck there.
>
> > Another idea - cardbus isn't hibernating/resuming properly. People
> > on the list wouldn't like such an advice, but try to boot with ccb
> > disabled, ZZZ and resume.
>
> You meant cbb, right?
>
> This causes the system not to hang on boot at least, but it still
> doesn't wake after ZZZ.
>
> Attached is a dmesg with updated BIOS+ECP and disabled apm+cbb.
>
> Regards
> Andre

<cut dmesg>

My t43p hibernates and resumes fine with the following changes:

1. Disable apm
2. change pci_dopm=1  to 0 in dev/acpi/acpi.c

I did notice that the unpack (on resume) of the hibernated image is quite
slow on this machine, about 2 minutes. The W500 Thinkpad has a similar
problem ... still investigating why this happens on some machines (and
not others). But it does work.

-ml

Reply | Threaded
Open this post in threaded view
|

Re: minimal radio streamer on Alix LX800 gateway?

Peter Laufenberg
In reply to this post by Jan Stary
>On Jul 23 11:00:19, Peter Laufenberg wrote:
>> I want to set up a minimal mp3 Internet radio streamer directly on my Alix Geode 500 MHz gateway. The idea is to grab the data closest to my PPPoE ADSL modem so it doesn't travel through the rest of the LAN and pollute logs, assuming the decoder daemon is secure and not too demanding on the Alix.
>
>Why exactly do you need to be playing the mp3 stream on your gateway?

I don't need to, I want to, so far it runs from an inside PC.

>I use the FastTrack without problems.

Ok thx.

>I don;t think you need any start/stop midi controlling - just
>kill the proccess playing this and start another playing that.

For audio I prefer physical over software controllers and have spare MIDI/USB devices; not planning to buy new gear.

>> - what's the most nimble stream+mp3 solution?
>
>I use audio/sox, but that also supports many other formats beside mp3,
>so you might find something lighter that supports just mp3.
>(Then plug it into the radio tool instead of 'play')

Ok I'm looking at madplay since most other players seem to depend on madlib anyway.

thx,

-- p

Reply | Threaded
Open this post in threaded view
|

Re: minimal radio streamer on Alix LX800 gateway?

Alexandre Ratchov-2
In reply to this post by Peter Laufenberg
On Mon, Jul 23, 2012 at 07:06:21PM +0200, Peter Laufenberg wrote:

> >Peter Laufenberg <[hidden email]> wrote:
> >
> >> I want to set up a minimal mp3 Internet radio streamer directly on my
> >> PPPoE ADSL modem so it doesn't travel through the rest of the LAN and
> >> pollute logs,
> >
> >I don't understand that rationale.
>
> For Internet radio to feel as if I was listening to FM radio -- no/little impact on my LAN, works even if all my computers are off (except the Geode & modem), can be on all the time. I don't need or want visual feedback, fancy equalizers or mouse, just 2 accessible *physical* buttons. Picture a car mechanic with a crappy FM receiver if you will. The decoded audio signal plugs into the rest of my audio gear which is not PC-based.
>
> >> For play/stop & next controls I'd use a small USB gamepad-type or MIDI
> >> controller,
> >
> >That looks like the most difficult part, because offhand I have no
> >idea how to interface those input devices with a tty.
>
> The point is not to need tty or network client/server messaging.
> I query a USB device directly, never leaves the Geode. I've done
> more complex stuff before, www.hackerdjs.com, and have lots of
> gear just lying around, forget about that part it's a
> distraction.
>

I agree that the most natural interface would be to a simple knob
to select stations, possibly a knob for the volume, and possibly a
led to indicate the state.

If you have a nice usb midi controller with knobs and leds, and if
you are not scared by writing code, you could write a small program
to run & kill mpg321/mplayer/whatever instances depending of
current state of the controller. It's not complicated afaics.

IMHO some minimal feedback may be necessary, ex. to indicate
temporary connection failures. Leds on the MIDI controller or
playback of short and discrete .wav files could be used for that,
for instance.

Using directly libmad/libcurl rather than a player and submitting
audio data to the device could allow switching between stations to
be smoother. Example, start decoding the next station while the
previous is still playing, etc.

-- Alexandre

Reply | Threaded
Open this post in threaded view
|

Re: minimal radio streamer on Alix LX800 gateway?

Christian Weisgerber
In reply to this post by Peter Laufenberg
Peter Laufenberg <[hidden email]> wrote:

> Ok I'm looking at madplay since most other players seem to depend on
> madlib anyway.

madplay doesn't support streaming or interactive controls.  The
madlib-based mpg321 does, and eats about twice as much CPU as mpg123
on the Geode LX800.

--
Christian "naddy" Weisgerber                          [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: minimal radio streamer on Alix LX800 gateway?

Peter Laufenberg
In reply to this post by Alexandre Ratchov-2
>On Mon, Jul 23, 2012 at 07:06:21PM +0200, Peter Laufenberg wrote:
>> >Peter Laufenberg <[hidden email]> wrote:
>> >
>> >> I want to set up a minimal mp3 Internet radio streamer directly on my
>> >> PPPoE ADSL modem so it doesn't travel through the rest of the LAN and
>> >> pollute logs,
>> >
>> >I don't understand that rationale.
>>
>> For Internet radio to feel as if I was listening to FM radio -- no/little impact on my LAN, works even if all my computers are off (except the Geode & modem), can be on all the time. I don't need or want visual feedback, fancy equalizers or mouse, just 2 accessible *physical* buttons. Picture a car mechanic with a crappy FM receiver if you will. The decoded audio signal plugs into the rest of my audio gear which is not PC-based.
>>
>> >> For play/stop & next controls I'd use a small USB gamepad-type or MIDI
>> >> controller,
>> >
>> >That looks like the most difficult part, because offhand I have no
>> >idea how to interface those input devices with a tty.
>>
>> The point is not to need tty or network client/server messaging.
>> I query a USB device directly, never leaves the Geode. I've done
>> more complex stuff before, www.hackerdjs.com, and have lots of
>> gear just lying around, forget about that part it's a
>> distraction.
>
>I agree that the most natural interface would be to a simple knob
>to select stations, possibly a knob for the volume, and possibly a
>led to indicate the state.

Nice to find someone who understands audio interfaces, and no I'm not an extremist vinyl fondler. I control the volume on the pre-amp, manually, then it goes to my industrial Brazilian "Watsom" amp, low-end compared to the racked models Sepultura use at concerts, but powerful enough to send cops over every now and then.

A led wouldn't be of much use, one of the stations, Ibiza Sonica (mellow compared to actual clubs), frequently broadcasts from live venues, drops in & out and has gain hickups like somebody sat on an upslider. When the other station stops, Couleur 3, it's usually because my crappy ISP connection did. I only listen to those two cause I can't figure out Santa Monica KCRW's new grid.

>If you have a nice usb midi controller with knobs and leds, and if
>you are not scared by writing code, you could write a small program
>to run & kill mpg321/mplayer/whatever instances depending of
>current state of the controller. It's not complicated afaics.

Nah the stressful part was using my MIDIbots router whose Lua scripts I idiotically tweaked just before the event. At home who cares, it can crash & burn.

>Using directly libmad/libcurl rather than a player and submitting
>audio data to the device could allow switching between stations to
>be smoother. Example, start decoding the next station while the
>previous is still playing, etc.

I'm more concerned about overloading the Geode than rude crossfades. That setup is just for radio, my offline library is a hell lot hairier to manage and definitely requires a rich UI.

Thx for the advice on libmad/libcurl, I'll try that.

-- p

Reply | Threaded
Open this post in threaded view
|

Re: minimal radio streamer on Alix LX800 gateway?

Peter Laufenberg
In reply to this post by Christian Weisgerber
>Peter Laufenberg <[hidden email]> wrote:
>
>> Ok I'm looking at madplay since most other players seem to depend on
>> madlib anyway.
>
>madplay doesn't support streaming or interactive controls.  The
>madlib-based mpg321 does, and eats about twice as much CPU as mpg123
>on the Geode LX800.

Interesting, do you know why?

I was going to write madlib off given the 2004 timestamp but then saw pretty much every audio player used it (incl. low-latency Mixxx). Also I thought mpg321 was just a refresh of the abandoned mpg123, what should I make of this?

thx,

-- p

Reply | Threaded
Open this post in threaded view
|

Re: minimal radio streamer on Alix LX800 gateway?

Christian Weisgerber
In reply to this post by Peter Laufenberg
Peter Laufenberg <[hidden email]> wrote:

> >That looks like the most difficult part, because offhand I have no
> >idea how to interface those input devices with a tty.
>
> The point is not to need tty or network client/server messaging. I query
> a USB device directly, never leaves the Geode.

Well, on the box you still need to talk somehow to the MP3 playing
program.

> >mpg123 is probably the fastest one, although all of them will be
> >fast enough.
>
> Ok I saw mpg321 picked up that project and depends on madlib like a ton
> of other players.

That's not how it happened.

mpg123 is a floating point decoder.  That code has also been used
in XMMS and MPlayer.  libmad is a completely independent code base
and uses fixed point arithmetic.

Years ago, when mpg123 was stuck at 0.59r, unmaintained and crufty,
and with a problematic license, somebody decided to throw a rough
clone together as a programming exercise by combining libmad and
libao with some glue and under the GPL--thus was born mpg321.
Eventually mpg321 was abandoned as well, but in the meantime mpg123
had been picked up again and the project is alive and well today,
including a cleaned-up license.  Lately mpg321 has also been revived,
sort of.

Historically, there was also a bit of jostling over the patent
situation, where the mpg123 author said that MP3 patents probably
applied and the libmad author thought they might not because of the
fixed-point code, but by now they are probably expired anyway.

Speaking as the guy who is the OpenBSD maintainer for both ports,
I very much prefer mpg123, and if you are concerned about CPU usage,
it should be the fastest MP3 decoder around (unless you are on an
architecture without floating point, i.e., ARM).

--
Christian "naddy" Weisgerber                          [hidden email]

12