Re: Trying to get suspend to RAM working on an X31

2014-11-12 Thread Antonio Barrones
Mike Larkin  azathoth.net> writes:

>
> On Fri, Oct 10, 2014 at 10:01:18AM -0700, John Magolske wrote:
> > Hi,
> >
> > I have an X31 ThinkPad on which I've installed OpenBSD. Everything

>
> boot -c , disable radeondrm (and also disable auto xdm start).
>
> See if you can zzz/resume from the console without radeondrm running.
>
> That will at least give us a place to start.
>
> Another thing you can try is seeing if the machine is in ddb on resume
> for some reason. Try a few (3 or 4) "bo re"  commands (enter after each). See
> if the machine reboots, and if so you might have clues in dmesg after
> reboot.
>
> -ml
>
>
Hi,
with the current version and disabling radeondrm at boot, the resume works.
Without disabling anything the resume doesn't work.
The keyboard looks not responding, but the keys to change the lights
in the display are working
(Fn+Home or Fn+End), but no any response when I press Caps Lock, or I try to
reboot.
Disabling the radeondrm in the dmesg the keyboard is using wsdisplay0:
wskbd0 at pckbd0: console keyboard, using wsdisplay0
with the radeondrm there is not wsdisplay0:
wskbd0 at pckbd0: console keyboard
I don't know if this is normal or not.

The dmesg with radeondrm disabled:
OpenBSD 5.6-current (GENERIC) #503: Wed Nov 12 00:43:00 MST 2014
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1400MHz ("GenuineIntel" 686-class)
1.40 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE,EST,TM2,PERF
real mem  = 1341026304 (1278MB)
avail mem = 1306824704 (1246MB)
User Kernel Config
UKC> disable radeondrm
247 radeondrm* disabled
UKC> exit
Continuing...
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/22/05, BIOS32 rev. 0 @ 0xfd750,
SMBIOS rev. 2.33 @ 0xe0010 (57 entries)
bios0: vendor IBM version "1QET97WW (3.02 )" date 09/22/2005
bios0: IBM 2672C2G
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA BOOT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) PCI0(S3) PCI1(S4) DOCK(S4)
USB0(S3) USB1(S3) AC9M(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (PCI1)
acpiprt3 at acpi0: bus -1 (DOCK)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS, resource for USB0, USB1, USB7
acpitz0 at acpi0: critical temperature is 91 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "IBM-COMPATIBLE" serial21 type LION oem
"SANYO"
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
bios0: ROM list: 0xc/0x1 0xd/0x1000 0xd1000/0x1000
0xdc000/0x4000! 0xe/0x1
cpu0 at mainbus0: (uniprocessor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: Enhanced SpeedStep 1399 MHz: speeds: 1400, 1200, 1000, 800, 600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82855PM Host" rev 0x03
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xd000, size 0x1000
ppb0 at pci0 dev 1 function 0 "Intel 82855PM AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility M6" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x01: irq 11
uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x01: irq 11
uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x01: irq 11
ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x01: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x81
pci2 at ppb1 bus 2
2:0:0: mem address conflict 0xb000/0x1000
2:0:1: mem address conflict 0xb100/0x1000
cbb0 at pci2 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0xaa: irq 11
cbb1 at pci2 dev 0 function 1 "Ricoh 5C476 CardBus" rev 0xaa: irq 11
"Ricoh 5C552 Firewire" rev 0x02 at pci2 dev 0 function 2 not configured
fxp0 at pci2 dev 8 function 0 "Intel PRO/100 VE" rev 0x81, i82562: irq 11,
address 00:0d:60:78:16:30
inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 6 device 0 cacheline 0x0, lattimer 0xb0
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 "Intel 82801DBM LPC" rev 0x01
pciide0 at pci0 dev 31 function 1 "Intel 82801DBM IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0

Re: Trying to get suspend to RAM working on an X31

2014-11-05 Thread Antonio Barrones
> John Magolske  b79.net> writes:
Hi,

In Debian you can resume after suspend if you disable Radeon KMS at boot:
http://tomlowshang.blogspot.fi/2010/04/disabling-radeon-kms.html

I have tried to disable radeondrm at boot in OpenBSD, the resume worked but
the console was corrupted and the characters were not legible. The computer
was responding, but anyway you have to reboot the computer because it was no
way to restore it, and to run X11 didn't help.

About the back light on after suspend, there is a tool radontool to turn off
it before suspend, but it looks that it is an obsolete method:
http://www.thinkwiki.org/wiki/Radeontool In that page they recommend to use
xrand instead or xbacklight:
http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/xbacklight.1?query=xbacklight&sec=1

The Thinkpad x31 works very well if you don't need to use the suspend
function. The bug is old and it doesn't look that it has been solved in
others systems.

Antonio