Re: suspend/resume on Lenovo X1 (regression from reports on wiki)

2013-09-05 Thread Ganael LAPLANCHE
On Fri, 30 Aug 2013 11:53:22 -0400, John Baldwin wrote

 I just removed VESA from my kernel on an X220 and it now suspends and
 resumes great in X.  I don't notice any slowdown, but I'm using a very
 simple tiling window manager (i3wm).

Great, I can confirm that suspend/resume also works on my X220 with this
trick !

I had once opened a PR for that problem and I had managed to track the
change that, at that time, broke suspend/resume :

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/174504

I don't know how it relates to VESA (the change does not seem to be
related to VESA), but it might help ?

Best regards,

--
Ganael LAPLANCHE ganael.laplan...@martymac.org
http://www.martymac.org | http://contribs.martymac.org
FreeBSD: martymac marty...@freebsd.org, http://www.FreeBSD.org
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Re: kern/174504: [ACPI] Suspend/resume broken on Lenovo x220

2013-09-05 Thread Ganael LAPLANCHE
The following reply was made to PR kern/174504; it has been noted by GNATS.

From: Ganael LAPLANCHE marty...@freebsd.org
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: kern/174504: [ACPI] Suspend/resume broken on Lenovo x220
Date: Thu,  5 Sep 2013 06:35:39 + (UTC)

 Hi,
 
 Following this message :
 
 http://lists.freebsd.org/pipermail/freebsd-acpi/2013-August/008335.html
 
 I can confirm that removing the VESA option from the kernel enables
 suspend/resume again. I don't know how the change introduced by rev.
 231797 is related to VESA, but it might give a hint.
 
 As removing VESA is only a workaround, I'll leave this PR opened for the
 moment. Feel free to close it if you think it can be.
 
 Best regards,
 
 --
 Ganael LAPLANCHE ganael.laplan...@martymac.org
 http://www.martymac.org | http://contribs.martymac.org
 FreeBSD: martymac marty...@freebsd.org, http://www.FreeBSD.org
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Re: Fixing suspend/resume on Lenovo x220

2013-06-18 Thread Ganael LAPLANCHE
On Fri, 14 Jun 2013 16:02:59 -0700, matt wrote

Hi Matt,

 I think if X is loaded or certain USB peripherals are attached 
 it quietly panics at resume. You'll note that we are sending 
 D3 to the USB bridges, which complain loudly before suspend is 
 complete...

I have tried to unload a maximum of kernel modules as well as disabling
everything in the BIOS (USB, wifi, SD card reader, ethernet card, ...),
same problem at resume.

 I think in the hackintosh world, they are using a 
 custom DSDT that prevents that or something to allow OS X to resume.

I have Googled a bit but could not find any custom/fixed DSDT for the
x220. Do you have a link ?

Best regards,

--
Ganael LAPLANCHE ganael.laplan...@martymac.org
http://www.martymac.org | http://contribs.martymac.org
FreeBSD: martymac marty...@freebsd.org, http://www.FreeBSD.org
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Re: Fixing X220 Video The Right Way

2013-06-17 Thread Ganael LAPLANCHE
On Fri, 14 Jun 2013 16:00:11 -0700, matt wrote

 I'm glad you got this working, it makes the X220 (and probably 
 other laptops with similar issues) more usable on FreeBSD.

Sure, that's good news !
 
 I'll have to bring my X220 back up to current and start 
 looking at sleep issues next.

Great ! Do not hesitate if you need testing on this, I can help :)

Best regards,

--
Ganael LAPLANCHE ganael.laplan...@martymac.org
http://www.martymac.org | http://contribs.martymac.org
FreeBSD: martymac marty...@freebsd.org, http://www.FreeBSD.org
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Re: Fixing suspend/resume on Lenovo x220

2013-06-14 Thread Ganael LAPLANCHE
On Thu, 13 Jun 2013 10:16:57 -0400, John Baldwin wrote

Hi John,

 Interesting, I connected a serial console via AMT but wasn't 
 able to get any output during resume.  Is this with a stock kernel?

Yep, but only with minimum debugger support (I commented out the full
debugger support section).

I obtained these logs without serial cable, by connecting through ssh
after resume.

--
Ganael LAPLANCHE ganael.laplan...@martymac.org
http://www.martymac.org | http://contribs.martymac.org
FreeBSD: martymac marty...@freebsd.org, http://www.FreeBSD.org
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Fixing suspend/resume on Lenovo x220

2013-06-13 Thread Ganael LAPLANCHE
 on
\_SB_.PCI0.EXP7
Jun 13 14:40:14 laptop kernel: vga0: calling BIOS POST
Jun 13 14:40:14 laptop kernel: em0: Link is Down
Jun 13 14:40:14 laptop kernel: em0: link state changed to DOWN
Jun 13 14:40:14 laptop kernel: hdaa0: Headphones redirection for
association 0 nid=25 using unsolicited responses.
Jun 13 14:40:14 laptop kernel: ahcich0: AHCI reset...
Jun 13 14:40:14 laptop kernel: ahcich0: SATA connect time=900us
status=0123
Jun 13 14:40:14 laptop kernel: ahcich0: AHCI reset: device found
Jun 13 14:40:14 laptop kernel: ahcich0: AHCI reset: device ready after 0ms
Jun 13 14:40:14 laptop kernel: ahcich4: AHCI reset...
Jun 13 14:40:14 laptop kernel: ahcich4: SATA connect timeout
time=1us status=
Jun 13 14:40:14 laptop kernel: ahcich4: AHCI reset: device not found
Jun 13 14:40:14 laptop kernel: atkbd: the current kbd controller command
byte 0065
Jun 13 14:40:14 laptop kernel: atkbd: keyboard ID 0x54ab (2)
Jun 13 14:40:14 laptop kernel: kbdc: RESET_KBD return code:00fa
Jun 13 14:40:14 laptop kernel: kbdc: RESET_KBD status:00aa
Jun 13 14:40:14 laptop kernel: kbdc: TEST_AUX_PORT status:
Jun 13 14:40:14 laptop kernel: kbdc: RESET_AUX return code:00fa
Jun 13 14:40:14 laptop kernel: kbdc: RESET_AUX status:00aa
Jun 13 14:40:14 laptop kernel: kbdc: RESET_AUX ID:
Jun 13 14:40:14 laptop kernel: battery0: battery initialization start
Jun 13 14:40:14 laptop kernel: xhci0: 32 byte context size.
Jun 13 14:40:14 laptop kernel: uhub0: 0x1033 XHCI root HUB, class 9/0,
rev 3.00/1.00, addr 1 on usbus1
Jun 13 14:40:14 laptop kernel: uhub1: Intel EHCI root HUB, class 9/0,
rev 2.00/1.00, addr 1 on usbus2
Jun 13 14:40:14 laptop kernel: uhub2: Intel EHCI root HUB, class 9/0,
rev 2.00/1.00, addr 1 on usbus0
Jun 13 14:40:14 laptop kernel: battery0: battery initialization done,
tried 1 times
Jun 13 14:40:14 laptop kernel: (ada0:ahcich0:0:0:0): resume
Jun 13 14:40:14 laptop kernel: acpi_timer0: restoring timecounter,
ACPI-fast - TSC-low
Jun 13 14:40:14 laptop acpi: resumed at 20130613 14:40:14
Jun 13 14:40:14 laptop kernel: uhub0: 4 ports with 4 removable, self powered
Jun 13 14:40:15 laptop kernel: em0: Link is up 1000 Mbps Full Duplex
Jun 13 14:40:15 laptop kernel: em0: link state changed to UP
Jun 13 14:40:16 laptop kernel: uhub2: 3 ports with 3 removable, self powered
Jun 13 14:40:16 laptop kernel: uhub1: 3 ports with 3 removable, self powered
Jun 13 14:40:16 laptop kernel: ugen0.2: vendor 0x8087 at usbus0
Jun 13 14:40:16 laptop kernel: uhub3: vendor 0x8087 product 0x0024,
class 9/0, rev 2.00/0.00, addr 2 on usbus0
Jun 13 14:40:16 laptop kernel: ugen2.2: vendor 0x8087 at usbus2
Jun 13 14:40:16 laptop kernel: uhub4: vendor 0x8087 product 0x0024,
class 9/0, rev 2.00/0.00, addr 2 on usbus2
Jun 13 14:40:17 laptop kernel: uhub3: 6 ports with 6 removable, self powered
Jun 13 14:40:18 laptop kernel: uhub4: 8 ports with 8 removable, self powered
Jun 13 14:40:18 laptop root: Unknown USB device: vendor 0x04f2 product
0xb217 bus uhub3
Jun 13 14:40:18 laptop kernel: ugen0.3: Chicony Electronics Co., Ltd.
at usbus0
Jun 13 14:40:18 laptop root: Unknown USB device: vendor 0x04f2 product
0xb217 bus uhub3
Jun 13 14:40:34 laptop dhclient: New IP Address (em0): XXX.XX.XX.XXX
Jun 13 14:40:34 laptop dhclient: New Subnet Mask (em0): 255.255.255.0
Jun 13 14:40:34 laptop dhclient: New Broadcast Address (em0): XXX.XX.XX.255
Jun 13 14:40:34 laptop dhclient: New Routers (em0): XXX.XX.XX.1

I have a recent kernel :

FreeBSD laptop.martymac.org 10.0-CURRENT FreeBSD 10.0-CURRENT #9
r251648M: Wed Jun 12 13:47:02 CEST 2013
marty...@laptop.martymac.org:/usr/obj/files/Src/sys/GENERIC  amd64

Could someone help debugging this issue ? I can test things, if needed...

Thanks in advance,

--
Ganael LAPLANCHE ganael.laplan...@martymac.org
http://www.martymac.org | http://contribs.martymac.org
FreeBSD: martymac marty...@freebsd.org, http://www.FreeBSD.org
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org