Re: ACPI so close I can almost taste it...

2010-04-19 Thread Pau
Hello,

yes, unfortunately I am having some issues too. I think I talked too fast.

I had the same problem about having the laptop unresponsive, even
without xorg.conf (no effect on ctrl+alt+Fx or ctrl+alt+back), though
I still could move the mouse. But that's it, the only thing I could do
was to move the mouse.

We can just wait and offer to run tests, if somebody needs a test machine.

Thanks in any case for the progress!



2010/4/19 Neal Hogan :
> On Sun, Apr 18, 2010 at 9:03 AM, Neal Hogan  wrote:
>>>
>>> Like sthen@ already said..
>>>
>>> The ahci controller does not support suspend/resume yet so.. try
>>> changing SATA mode in the bios to compability mode so that your
>>> harddrive attaches through pciide instead of through ahci.
>>>
>>> This has the consequence that you have to edit fstab during boot when
>>> the kernel cannot find sd0a but then you just do:
>>>
>>> # mount /dev/wd0a /
>>> # cd /etc
>>> # ed fstab
>>> ,s/sd0/wd0/g
>>> w
>>> q
>>> # exit
>>> [ boot continues.. ]
>>>
>>> I tried that on my thinkpad t400 and it made suspend/resume work for me.
>>>
>>> /gabriel
>>>
>>>
>>
>> I'm curious what you mean by "work fine for me." I have a T400 and
>> followed your suggestion. My machine suspends and resumes most of the
>> time with X and the network up and running. However, once resumed, one
>> of the processors is in ~100% interupt state and reboot doesn't work
>> properly. It will sync disks and look as though it powers down (black
>> screen) but the system's power light is still on and the machine does
>> not resond to anything but a hard shutdown. Also, after one
>> suspend/resume, it won't suspend again.
>>
>> Note, I say that it suspends/resumes most of the time because it
>> panicked once. However, I haven't been able to get to panic again.
>>
>
> First, I want to be clear that I'm not complaining about this, just
> informing. I'm as excited as most to see this progress with ACPI.
>
> Second, as I say above, one of the processors is in 98-100% interrupt
> state after the machine resumes. However, that's only while X is
> running. When I leave X it drops to around 40% and returns to ~100%
> when I start X again.
>
> Thanks!
>
>> dmesg after suspend/resume:
>>
>> OpenBSD 4.7-current (GENERIC.MP) #186: Thu Apr 15 12:02:55 MDT 2010
>>dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>> real mem = 2070614016 (1974MB)
>> avail mem = 2001784832 (1909MB)
>> mainbus0 at root
>> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (74 entries)
>> bios0: vendor LENOVO version "7UET43WW (1.13 )" date 08/19/2008
>> bios0: LENOVO 7417CTO
>> acpi0 at bios0: rev 2
>> acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT
>> SSDT TCPA SSDT SSDT SSDT
>> acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4)
>> EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3)
>> USB2(S3) USB3(S3) USB4(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4)
>> acpitimer0 at acpi0: 3579545 Hz, 24 bits
>> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
>> cpu0 at mainbus0: apid 0 (boot processor)
>> cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.34 MHz
>> cpu0:
>
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
>
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
> SSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG
>> cpu0: 3MB 64b/line 8-way L2 cache
>> cpu0: apic clock running at 266MHz
>> cpu1 at mainbus0: apid 1 (application processor)
>> cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz
>> cpu1:
>
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
>
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
> SSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG
>> cpu1: 3MB 64b/line 8-way L2 cache
>> ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
>> ioapic0: misconfigured as apic 2, remapped to apid 1
>> acpihpet0 at acpi0: 14318179 Hz
>> acpiprt0 at acpi0: bus 0 (PCI0)
>> acpiprt1 at acpi0: bus -1 (AGP_)
>> acpiprt2 at acpi0: bus 2 (EXP0)
>> acpiprt3 at acpi0: bus 3 (EXP1)
>> acpiprt4 at acpi0: bus -1 (EXP2)
>> acpiprt5 at acpi0: bus 5 (EXP3)
>> acpiprt6 at acpi0: bus 13 (EXP4)
>> acpiprt7 at acpi0: bus 21 (PCI1)
>> acpiec0 at acpi0
>> acpicpu0 at acpi0: C3, C2, C1, PSS
>> acpicpu1 at acpi0: C3, C2, C1, PSS
>> acpipwrres0 at acpi0: PUBS
>> acpitz0 at acpi0: critical temperature 127 degC
>> acpitz1 at acpi0: critical temperature 100 degC
>> acpibtn0 at acpi0: LID_
>> acpibtn1 at acpi0: SLPB
>> acpibat0 at acpi0: BAT0 model "42T5225" serial  3388 type LION oem
> "Panasonic"
>> acpibat1 at acpi0: BAT1 not present
>> acpiac0 at acpi0: AC unit online
>> acpithinkpad0 at acpi0
>> acpidock0 at acpi0: GDCK not docked (0)
>> cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1600, 800 MHz
>> pci0 at mainbus0 bus 0
>> pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
>> vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07
>> wsdisplay0 at vga1 mux 1: console (80x25, v

Re: ACPI so close I can almost taste it...

2010-04-19 Thread Neal Hogan
On Sun, Apr 18, 2010 at 9:03 AM, Neal Hogan  wrote:
>>
>> Like sthen@ already said..
>>
>> The ahci controller does not support suspend/resume yet so.. try
>> changing SATA mode in the bios to compability mode so that your
>> harddrive attaches through pciide instead of through ahci.
>>
>> This has the consequence that you have to edit fstab during boot when
>> the kernel cannot find sd0a but then you just do:
>>
>> # mount /dev/wd0a /
>> # cd /etc
>> # ed fstab
>> ,s/sd0/wd0/g
>> w
>> q
>> # exit
>> [ boot continues.. ]
>>
>> I tried that on my thinkpad t400 and it made suspend/resume work for me.
>>
>> /gabriel
>>
>>
>
> I'm curious what you mean by "work fine for me." I have a T400 and
> followed your suggestion. My machine suspends and resumes most of the
> time with X and the network up and running. However, once resumed, one
> of the processors is in ~100% interupt state and reboot doesn't work
> properly. It will sync disks and look as though it powers down (black
> screen) but the system's power light is still on and the machine does
> not resond to anything but a hard shutdown. Also, after one
> suspend/resume, it won't suspend again.
>
> Note, I say that it suspends/resumes most of the time because it
> panicked once. However, I haven't been able to get to panic again.
>

First, I want to be clear that I'm not complaining about this, just
informing. I'm as excited as most to see this progress with ACPI.

Second, as I say above, one of the processors is in 98-100% interrupt
state after the machine resumes. However, that's only while X is
running. When I leave X it drops to around 40% and returns to ~100%
when I start X again.

Thanks!

> dmesg after suspend/resume:
>
> OpenBSD 4.7-current (GENERIC.MP) #186: Thu Apr 15 12:02:55 MDT 2010
>dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 2070614016 (1974MB)
> avail mem = 2001784832 (1909MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (74 entries)
> bios0: vendor LENOVO version "7UET43WW (1.13 )" date 08/19/2008
> bios0: LENOVO 7417CTO
> acpi0 at bios0: rev 2
> acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT
> SSDT TCPA SSDT SSDT SSDT
> acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4)
> EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3)
> USB2(S3) USB3(S3) USB4(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.34 MHz
> cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
SSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG
> cpu0: 3MB 64b/line 8-way L2 cache
> cpu0: apic clock running at 266MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz
> cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
SSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG
> cpu1: 3MB 64b/line 8-way L2 cache
> ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
> ioapic0: misconfigured as apic 2, remapped to apid 1
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (AGP_)
> acpiprt2 at acpi0: bus 2 (EXP0)
> acpiprt3 at acpi0: bus 3 (EXP1)
> acpiprt4 at acpi0: bus -1 (EXP2)
> acpiprt5 at acpi0: bus 5 (EXP3)
> acpiprt6 at acpi0: bus 13 (EXP4)
> acpiprt7 at acpi0: bus 21 (PCI1)
> acpiec0 at acpi0
> acpicpu0 at acpi0: C3, C2, C1, PSS
> acpicpu1 at acpi0: C3, C2, C1, PSS
> acpipwrres0 at acpi0: PUBS
> acpitz0 at acpi0: critical temperature 127 degC
> acpitz1 at acpi0: critical temperature 100 degC
> acpibtn0 at acpi0: LID_
> acpibtn1 at acpi0: SLPB
> acpibat0 at acpi0: BAT0 model "42T5225" serial  3388 type LION oem
"Panasonic"
> acpibat1 at acpi0: BAT1 not present
> acpiac0 at acpi0: AC unit online
> acpithinkpad0 at acpi0
> acpidock0 at acpi0: GDCK not docked (0)
> cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1600, 800 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
> vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> intagp0 at vga1
> agp0 at intagp0: aperture at 0xd000, size 0x1000
> inteldrm0 at vga1: apic 1 int 16 (irq 11)
> drm0 at inteldrm0
> "Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured
> "Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured
> ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
> ioapic0: misconfigured as apic 2, remapped to apid 1
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (AGP_)
> acpi

Re: ACPI so close I can almost taste it...

2010-04-18 Thread Neal Hogan
> Like sthen@ already said..
>
> The ahci controller does not support suspend/resume yet so.. try
> changing SATA mode in the bios to compability mode so that your
> harddrive attaches through pciide instead of through ahci.
>
> This has the consequence that you have to edit fstab during boot when
> the kernel cannot find sd0a but then you just do:
>
> # mount /dev/wd0a /
> # cd /etc
> # ed fstab
> ,s/sd0/wd0/g
> w
> q
> # exit
> [ boot continues.. ]
>
> I tried that on my thinkpad t400 and it made suspend/resume work for me.
>
> /gabriel
>
>

I'm curious what you mean by "work fine for me." I have a T400 and
followed your suggestion. My machine suspends and resumes most of the
time with X and the network up and running. However, once resumed, one
of the processors is in ~100% interupt state and reboot doesn't work
properly. It will sync disks and look as though it powers down (black
screen) but the system's power light is still on and the machine does
not resond to anything but a hard shutdown. Also, after one
suspend/resume, it won't suspend again.

Note, I say that it suspends/resumes most of the time because it
panicked once. However, I haven't been able to get to panic again.

dmesg after suspend/resume:

OpenBSD 4.7-current (GENERIC.MP) #186: Thu Apr 15 12:02:55 MDT 2010
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2070614016 (1974MB)
avail mem = 2001784832 (1909MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (74 entries)
bios0: vendor LENOVO version "7UET43WW (1.13 )" date 08/19/2008
bios0: LENOVO 7417CTO
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT
SSDT TCPA SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4)
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3)
USB2(S3) USB3(S3) USB4(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.34 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T5225" serial  3388 type LION oem "Panasonic"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at inteldrm0
"Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured
"Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T5225" serial  3388 type LION oem "Panasonic"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0

Re: ACPI so close I can almost taste it...

2010-04-17 Thread Pau
Confirmed: When using X without the xorg.conf that I had "adapted",
it's suspending and resuming perfectly.

These are the additional lines I had put in:

FontPath "/usr/local/lib/X11/fonts/mscorefonts/"

(...)

Option "NoAccel""False"
Option "AccelMethod""EXA"

Now it's working perfectly well. After resuming all is there: X, em0
up and running, usb, sound etc..

This is great! I had been waiting for a long time for this.

I have some 9 desktops and some >~ 16 things open all the time: gv,
plotting programmes, firefox, many vi editing files, etc

It was a pain to have to shutdown and boot again the laptop every time
I had to go home etc

Thanks a lot!

Pau

2010/4/17 Marco Peereboom :
> Build X from source and you'll have a fighting chance.
>
> On Sat, Apr 17, 2010 at 08:14:09AM +0200, Jean-Michel Bessot wrote:
>> Is works fine in pciide when I donb t run Xorg on R400.
>>
>> I think the intel driver donb t want to resume, I will see if I can
>> obtain more information.



Re: ACPI so close I can almost taste it...

2010-04-17 Thread Marco Peereboom
Build X from source and you'll have a fighting chance.

On Sat, Apr 17, 2010 at 08:14:09AM +0200, Jean-Michel Bessot wrote:
> Is works fine in pciide when I donbt run Xorg on R400.
>
> I think the intel driver donbt want to resume, I will see if I can
> obtain more information.



Re: ACPI so close I can almost taste it...

2010-04-17 Thread Pau
Hello,

I am using the intel driver on a thinkpad x200s with a xorg.conf file

It was suspending resuming very well until now. With  4.7 GENERIC.MP#509 i386
I have the problem that, when resuming, X does not "wake up" totally. I can
see
the applications open and I can move the mouse but nothing else.

I cannot switch to a terminal (ctrl+alt+fX); the system is in general
unresponsive

I will try now to use X without xorg.conf (I changed a couple of things).

Thanks,

Pau

2010/4/17 Jean-Michel Bessot :
> Is works fine in pciide when I dont run Xorg on R400.
>
> I think the intel driver dont want to resume, I will see if I can
> obtain more information.



Re: ACPI so close I can almost taste it...

2010-04-16 Thread Jean-Michel Bessot
Is works fine in pciide when I donbt run Xorg on R400.

I think the intel driver donbt want to resume, I will see if I can
obtain more information.



Re: ACPI so close I can almost taste it...

2010-04-12 Thread Pau
PS: In these days it has worked some 10-12 times; then, today in the
way back home in the tram it suspended and automatically resumed
again. I tried all possible combinations (fn+f4, zzz, apm -S etc) but
the result was always the same: It would resume after suspending
immediately.
After a reboot it works again... for the next 10-12 times, I guess...
But in any case it is a very promising start!
Btw all services work fine after resuming: em0 is up and running, usb,
X, etc etc



2010/4/11 Josh Grosse :
> On Sun, Apr 11, 2010 at 08:40:47PM +0200, Pau wrote:
>> YES!!!
>>
>> Same here on a thinkpad x200s!
>>
>> I'm so happy!
>>
>> Thanks a LOT!
>
> Not here.  Even setting this netbook's disk bus to IDE-compatible, it
cannot
> (yet) suspend/resume.  But then, I don't have a Thinkpad. :(
>
> It's an Asus netbook - 1005HAB.



Re: ACPI so close I can almost taste it...

2010-04-11 Thread Josh Grosse
On Sun, Apr 11, 2010 at 08:40:47PM +0200, Pau wrote:
> YES!!!
> 
> Same here on a thinkpad x200s!
> 
> I'm so happy!
> 
> Thanks a LOT!

Not here.  Even setting this netbook's disk bus to IDE-compatible, it cannot
(yet) suspend/resume.  But then, I don't have a Thinkpad. :(

It's an Asus netbook - 1005HAB.



Re: ACPI so close I can almost taste it...

2010-04-11 Thread Pau
YES!!!

Same here on a thinkpad x200s!

I'm so happy!

Thanks a LOT!

And btw, the suspend/resume is much faster than with the
penguin!!!

Thanks for this, I have been waiting YEARS for it!

Pau

2010/4/11 Gabriel Kihlman :
> Pau  writes:
>
>> I have a thinkpad x200s and with a recent snapshot I can confirm here
>> that the laptop suspends in a fraction of a second and resumes again
>> almost immediately
>>
>> Unfortunately, after some few seconds, even if if looks as if
>> everything had gone just perfect (em0, usb etc are resumed), I get
>>
>> ahci_get_err_ccb but SACT 03ff != 0?
>> panic: kernel diagnostic assertion "ahci_pread(ap, AHCI_PREG_CI) == 0"
>> failed: file "../../../../dev/pci/ahci.c", line 2037
>> Stopped at Debugger+0x4:  leave
>> RUEN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS
PANIC!
>> IF RUNNING SMP, USE 'mach ddbcpu <#>' AND 'trace' ON OTHER PROCESSORS,
TOO.
>> (...)
>> ddb{0}>
>
> Like sthen@ already said..
>
> The ahci controller does not support suspend/resume yet so.. try
> changing SATA mode in the bios to compability mode so that your
> harddrive attaches through pciide instead of through ahci.
>
> This has the consequence that you have to edit fstab during boot when
> the kernel cannot find sd0a but then you just do:
>
> # mount /dev/wd0a /
> # cd /etc
> # ed fstab
> ,s/sd0/wd0/g
> w
> q
> # exit
> [ boot continues.. ]
>
> I tried that on my thinkpad t400 and it made suspend/resume work for me.
>
> /gabriel



Re: ACPI so close I can almost taste it...

2010-04-11 Thread Gabriel Kihlman
Pau  writes:

> I have a thinkpad x200s and with a recent snapshot I can confirm here
> that the laptop suspends in a fraction of a second and resumes again
> almost immediately
>
> Unfortunately, after some few seconds, even if if looks as if
> everything had gone just perfect (em0, usb etc are resumed), I get
>
> ahci_get_err_ccb but SACT 03ff != 0?
> panic: kernel diagnostic assertion "ahci_pread(ap, AHCI_PREG_CI) == 0"
> failed: file "../../../../dev/pci/ahci.c", line 2037
> Stopped at Debugger+0x4:  leave
> RUEN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
> IF RUNNING SMP, USE 'mach ddbcpu <#>' AND 'trace' ON OTHER PROCESSORS, TOO.
> (...)
> ddb{0}>

Like sthen@ already said..

The ahci controller does not support suspend/resume yet so.. try
changing SATA mode in the bios to compability mode so that your
harddrive attaches through pciide instead of through ahci.

This has the consequence that you have to edit fstab during boot when
the kernel cannot find sd0a but then you just do:

# mount /dev/wd0a /
# cd /etc
# ed fstab
,s/sd0/wd0/g
w
q
# exit
[ boot continues.. ]

I tried that on my thinkpad t400 and it made suspend/resume work for me.

/gabriel



Re: ACPI so close I can almost taste it...

2010-04-11 Thread Jean-Michel Bessot
Hi

I have the same problem with a R400.

dmesg: http://www.lacomte.net/informatique/lenovo-r400-dmesg
acpidumb: http://www.lacomte.net/informatique/lenovo-r400-acpidump
pcidump: http://www.lacomte.net/informatique/lenovo-r400-pcidump

Bye



Re: ACPI so close I can almost taste it...

2010-04-10 Thread Pau
hey!

I have a thinkpad x200s and with a recent snapshot I can confirm here
that the laptop suspends in a fraction of a second and resumes again
almost immediately

Unfortunately, after some few seconds, even if if looks as if
everything had gone just perfect (em0, usb etc are resumed), I get

ahci_get_err_ccb but SACT 03ff != 0?
panic: kernel diagnostic assertion "ahci_pread(ap, AHCI_PREG_CI) == 0"
failed: file "../../../../dev/pci/ahci.c", line 2037
Stopped at Debugger+0x4:  leave
RUEN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
IF RUNNING SMP, USE 'mach ddbcpu <#>' AND 'trace' ON OTHER PROCESSORS, TOO.
(...)
ddb{0}>

Then I ran trace and ps and I get a long output. I have taken three
pictures of the output and uploaded them here:

www.aei.mpg.de/~pau/1.jpg
www.aei.mpg.de/~pau/2.jpg
www.aei.mpg.de/~pau/3.jpg

(about 180K each)

I hope this help

Thanks!

Pau



2010/4/10 Josh Rickmar :
> On Fri, Apr 09, 2010 at 03:44:54PM -0400, STeve Andre' wrote:
>> On Friday 09 April 2010 03:37:17 Josh Rickmar wrote:
>> > On Thu, Apr 08, 2010 at 08:53:12PM -0400, STeve Andre' wrote:
>> > > Willing to be a test case for other ideas!
>> >
>> > Same here, I have a T500 and just upgraded to the latest -current to
>> > test out the new suspend and resume.  My dmesg:
>>
>> Interesting, so you can at least partly reactivate, which I cannot.
>> What do you do to suspend?
>>
>> --STeve Andre'
>
> zzz



Re: ACPI so close I can almost taste it...

2010-04-10 Thread Pau
PS:
> Unfortunately, after some few seconds, even if if looks as if
> everything had gone just perfect (em0, usb etc are resumed), I get

Sorry, that's not true. It does not resume. It looks like, but when I
get the prompt I cannot even make a "ls"
Then I get the panic.



Re: ACPI so close I can almost taste it...

2010-04-09 Thread Josh Rickmar
On Fri, Apr 09, 2010 at 03:44:54PM -0400, STeve Andre' wrote:
> On Friday 09 April 2010 03:37:17 Josh Rickmar wrote:
> > On Thu, Apr 08, 2010 at 08:53:12PM -0400, STeve Andre' wrote:
> > > Willing to be a test case for other ideas!
> >
> > Same here, I have a T500 and just upgraded to the latest -current to
> > test out the new suspend and resume.  My dmesg:
> 
> Interesting, so you can at least partly reactivate, which I cannot.
> What do you do to suspend?
> 
> --STeve Andre'

zzz



Re: ACPI so close I can almost taste it...

2010-04-09 Thread STeve Andre'
On Friday 09 April 2010 03:37:17 Josh Rickmar wrote:
> On Thu, Apr 08, 2010 at 08:53:12PM -0400, STeve Andre' wrote:
> > Willing to be a test case for other ideas!
>
> Same here, I have a T500 and just upgraded to the latest -current to
> test out the new suspend and resume.  My dmesg:

Interesting, so you can at least partly reactivate, which I cannot.
What do you do to suspend?

--STeve Andre'



Re: ACPI so close I can almost taste it...

2010-04-09 Thread Josh Rickmar
On Thu, Apr 08, 2010 at 08:53:12PM -0400, STeve Andre' wrote:
> Willing to be a test case for other ideas!

Same here, I have a T500 and just upgraded to the latest -current to
test out the new suspend and resume.  My dmesg:


OpenBSD 4.7-current (GENERIC.MP) #179: Wed Apr  7 21:07:50 MDT 2010
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2070614016 (1974MB)
avail mem = 2001797120 (1909MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (74 entries)
bios0: vendor LENOVO version "6FET66WW (2.16 )" date 04/22/2009
bios0: LENOVO 2081CTO
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4) EXP1(S4) 
EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) 
EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.32 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 265MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus -1 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4622" serial  4274 type LION oem "Panasonic"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at inteldrm0
"Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured
"Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured
pciide0 at pci0 dev 3 function 2 "Intel GM45 PT IDER" rev 0x07: DMA 
(unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide0: using apic 1 int 18 (irq 11) for native-PCI interrupt
pciide0: channel 0 ignored (not responding; disabled or no drives?)
pciide0: channel 1 ignored (not responding; disabled or no drives?)
"Intel GM45 AMT SOL" rev 0x07 at pci0 dev 3 function 3 not configured
em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: apic 1 int 20 
(irq 11), address 00:24:7e:6c:df:df
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 20 (irq 
11)
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 21 (irq 
11)
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 1 int 22 (irq 
11)
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 1 int 23 (irq 
11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x03: apic 1 int 
17 (irq 11)
azalia0: RIRB time out
azalia0: codecs: Conexant CX20561, 0x/0x, using Conexant CX20561
azalia0: RIRB time out
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: apic 1 int 20 (irq 
11)
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x03: apic 1 int 21 (irq 
11)
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel WiFi Link 5300" rev 0x00: apic 1 int 17 
(irq 11), MIMO 3T3R, MoW, address 00:21:6a:34:37:56
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 16 (irq 
11)
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 17 (irq 
11)
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x03: apic 1 int 18 (irq 
11)
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x03: apic 1

Re: ACPI so close I can almost taste it...

2010-04-08 Thread STeve Andre'
On Thursday 08 April 2010 16:23:37 Stuart Henderson wrote:
> On 2010-04-08, STeve Andre'  wrote:
> > ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x03: apic 1 int
> > 16 (irq 11), AHCI 1.2
>
> at this stage you might want to change your sata chip over to
> the legacy interface so pciide can attach (you will of course
> also need to adjust sd to wd in fstab; familiarity with ed, or
> an already-edited file you can mv into place from single-user
> mode, would be an advantage).
>
> some acpi-only systems will now suspend and (at least some
> devices) resume, but be in no doubt, there's still a lot left to
> do (in particular a lot of work on drivers).
>
> even so, this totally rocks. in particular I think it's great
> that this is an independent implementation and not just a rehash
> of the intel code.

Thanks, Stuart.

I agree that this is really cool.  It appears that the W500 is shutting
down, but somebody isn't reattaching yet.

I tried the compatibity mode, but there was no difference, ie I still
an an inadventantly narcoleptic laptop. 

Willing to be a test case for other ideas!

--STeve Andre'



Re: ACPI so close I can almost taste it...

2010-04-08 Thread Stuart Henderson
On 2010-04-08, STeve Andre'  wrote:
> ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x03: apic 1 int 16 
> (irq 11), AHCI 1.2

at this stage you might want to change your sata chip over to
the legacy interface so pciide can attach (you will of course
also need to adjust sd to wd in fstab; familiarity with ed, or
an already-edited file you can mv into place from single-user
mode, would be an advantage).

some acpi-only systems will now suspend and (at least some
devices) resume, but be in no doubt, there's still a lot left to
do (in particular a lot of work on drivers).

even so, this totally rocks. in particular I think it's great
that this is an independent implementation and not just a rehash
of the intel code.



Re: ACPI so close I can almost taste it...

2010-04-08 Thread Kurt Mosiejczuk

STeve Andre' wrote:


Did you try just pressing a holding Fn for a few seconds?  That's how
I've had to awake all the thinkpads I've used (granted, not OBSD).



I tried various things, including holding fn-f4 down for a minute.
Nothing makes any difference.


Not Fn-F4, but just Fn, by itself.

--Kurt



Re: ACPI so close I can almost taste it...

2010-04-08 Thread STeve Andre'
On Thursday 08 April 2010 13:10:02 Kurt Mosiejczuk wrote:
> STeve Andre' wrote:
>  > Excellent idea.  It doesn't do anything, however, so I came back
>  > on to write this.
>  >
>  > --STeve Andre'
>
> Did you try just pressing a holding Fn for a few seconds?  That's how
> I've had to awake all the thinkpads I've used (granted, not OBSD).
>
> --Kurt

I tried various things, including holding fn-f4 down for a minute.
Nothing makes any difference.

I also tried disabling em and iwn, and when I did the Fn-F4 (sleep)
I could see a very fast stream of kernel messages, which I assume
was the devices going into suspend.  Still, that had no effect on
waking back up.

--STeve Andre'



Re: ACPI so close I can almost taste it...

2010-04-08 Thread Kurt Mosiejczuk

STeve Andre' wrote:
> Excellent idea.  It doesn't do anything, however, so I came back
> on to write this.
>
> --STeve Andre'

Did you try just pressing a holding Fn for a few seconds?  That's how 
I've had to awake all the thinkpads I've used (granted, not OBSD).


--Kurt