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

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

2013-09-05 Thread Bengt Ahlgren
Ganael LAPLANCHE ganael.laplan...@martymac.org writes: 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).

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

2013-09-05 Thread Jung-uk Kim
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-09-05 16:04:56 -0400, Bengt Ahlgren wrote: Jung-uk Kim j...@freebsd.org writes: On 2013-09-04 18:47:47 -0400, Jung-uk Kim wrote: On 2013-09-04 18:39:07 -0400, Bengt Ahlgren wrote: The value of hw.acpi.video.lcd0.brightness changes when

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

2013-09-05 Thread Bengt Ahlgren
Jung-uk Kim j...@freebsd.org writes: On 2013-09-04 18:47:47 -0400, Jung-uk Kim wrote: On 2013-09-04 18:39:07 -0400, Bengt Ahlgren wrote: The value of hw.acpi.video.lcd0.brightness changes when the screen brightness keys (Fn+Home/End) are pressed, but nothing happens with the screen. Same

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

2013-09-05 Thread Jung-uk Kim
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-09-05 04:24:58 -0400, Bengt Ahlgren wrote: Ganael LAPLANCHE ganael.laplan...@martymac.org writes: 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

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

2013-09-04 Thread Jung-uk Kim
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-09-04 09:29:35 -0400, John Baldwin wrote: On Tuesday, September 03, 2013 6:58:55 pm Jung-uk Kim wrote: On 2013-09-03 16:47:47 -0400, John Baldwin wrote: Even with that hacked so I force vgapm0 and dpms0 to attach, I still can't resume in

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

2013-09-04 Thread Bengt Ahlgren
Jung-uk Kim j...@freebsd.org writes: On 2013-09-04 09:29:35 -0400, John Baldwin wrote: On Tuesday, September 03, 2013 6:58:55 pm Jung-uk Kim wrote: On 2013-09-03 16:47:47 -0400, John Baldwin wrote: Even with that hacked so I force vgapm0 and dpms0 to attach, I still can't resume in console

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

2013-09-04 Thread Jung-uk Kim
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-09-04 15:14:32 -0400, Bengt Ahlgren wrote: Jung-uk Kim j...@freebsd.org writes: On 2013-09-04 09:29:35 -0400, John Baldwin wrote: On Tuesday, September 03, 2013 6:58:55 pm Jung-uk Kim wrote: On 2013-09-03 16:47:47 -0400, John Baldwin

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

2013-09-04 Thread John Baldwin
On Wednesday, September 04, 2013 3:14:32 pm Bengt Ahlgren wrote: Jung-uk Kim j...@freebsd.org writes: On 2013-09-04 09:29:35 -0400, John Baldwin wrote: On Tuesday, September 03, 2013 6:58:55 pm Jung-uk Kim wrote: On 2013-09-03 16:47:47 -0400, John Baldwin wrote: Even with that hacked so

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

2013-09-04 Thread Bengt Ahlgren
Jung-uk Kim j...@freebsd.org writes: On 2013-09-04 15:14:32 -0400, Bengt Ahlgren wrote: Jung-uk Kim j...@freebsd.org writes: On 2013-09-04 09:29:35 -0400, John Baldwin wrote: On Tuesday, September 03, 2013 6:58:55 pm Jung-uk Kim wrote: On 2013-09-03 16:47:47 -0400, John Baldwin wrote:

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

2013-09-04 Thread Jung-uk Kim
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-09-04 18:39:07 -0400, Bengt Ahlgren wrote: Jung-uk Kim j...@freebsd.org writes: On 2013-09-04 15:14:32 -0400, Bengt Ahlgren wrote: Jung-uk Kim j...@freebsd.org writes: On 2013-09-04 09:29:35 -0400, John Baldwin wrote: On Tuesday,

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

2013-09-04 Thread Jung-uk Kim
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-09-04 18:47:47 -0400, Jung-uk Kim wrote: On 2013-09-04 18:39:07 -0400, Bengt Ahlgren wrote: The value of hw.acpi.video.lcd0.brightness changes when the screen brightness keys (Fn+Home/End) are pressed, but nothing happens with the screen.

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

2013-09-03 Thread John Baldwin
On Sunday, September 01, 2013 3:51:47 pm Adrian Chadd wrote: (cc jkim) Hi! Would you mind taking a look at the -acpi list posts with this subject? It looks like a lot of the video suspend/resume issues on these thinkpads boil down to the VESA driver code. If it's disabled, (at least) x11

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

2013-09-03 Thread Jung-uk Kim
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-09-03 16:47:47 -0400, John Baldwin wrote: On Tuesday, September 03, 2013 4:12:01 pm Jung-uk Kim wrote: On 2013-09-03 12:28:30 -0400, John Baldwin wrote: On Sunday, September 01, 2013 3:51:47 pm Adrian Chadd wrote: (cc jkim) Hi! Would

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

2013-09-01 Thread Adrian Chadd
(cc jkim) Hi! Would you mind taking a look at the -acpi list posts with this subject? It looks like a lot of the video suspend/resume issues on these thinkpads boil down to the VESA driver code. If it's disabled, (at least) x11 resume works. Would you be able to help us track down what's going

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

2013-09-01 Thread Glen Barber
On Sun, Sep 01, 2013 at 12:51:47PM -0700, Adrian Chadd wrote: (cc jkim) Hi! Would you mind taking a look at the -acpi list posts with this subject? It looks like a lot of the video suspend/resume issues on these thinkpads boil down to the VESA driver code. If it's disabled, (at least) x11

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

2013-08-31 Thread Kevin Oberman
On Sat, Aug 31, 2013 at 9:53 AM, Adrian Chadd adr...@freebsd.org wrote: Ok. I'm glad this is actually working for people. But now comes the hard bit - figuring out why the VESA driver is breaking resume. :( I actually use VESA text modes in console mode so I'll take a look but I can't

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

2013-08-30 Thread Sergey A. Osokin
On Fri, Aug 30, 2013 at 01:39:59AM -0700, Adrian Chadd wrote: On 29 August 2013 20:14, Sergey A. Osokin o...@freebsd.org wrote: On Wed, Aug 28, 2013 at 07:03:10PM +0400, Gleb Smirnoff wrote: Laura, Now bad news :) Last major Xorg update in ports, which happened couple of months

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

2013-08-30 Thread Bengt Ahlgren
Just a mee too report for a Thinkpad X201. Resume now results in a usable display with Intel/KMS graphics thanks to removing options VESA from the kernel config! Still no backlight in console mode, however. I have not investigated any slow-downs. Thanks for the crucial piece of info! (I'm on

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

2013-08-30 Thread John Baldwin
On Friday, August 30, 2013 10:51:02 am Sergey A. Osokin wrote: On Fri, Aug 30, 2013 at 01:39:59AM -0700, Adrian Chadd wrote: On 29 August 2013 20:14, Sergey A. Osokin o...@freebsd.org wrote: On Wed, Aug 28, 2013 at 07:03:10PM +0400, Gleb Smirnoff wrote: Laura, Now bad news :)

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

2013-08-30 Thread Laura Marie Feeney
On 08/30/13 23:53, Sergey A. Osokin wrote: Maybe try x11perf before and after? 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). I'm also using i3 now, previously

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

2013-08-30 Thread Sergey A. Osokin
On Fri, Aug 30, 2013 at 11:53:22AM -0400, John Baldwin wrote: On Friday, August 30, 2013 10:51:02 am Sergey A. Osokin wrote: On Fri, Aug 30, 2013 at 01:39:59AM -0700, Adrian Chadd wrote: On 29 August 2013 20:14, Sergey A. Osokin o...@freebsd.org wrote: On Wed, Aug 28, 2013 at 07:03:10PM

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

2013-08-30 Thread Sergey A. Osokin
On Sat, Aug 31, 2013 at 12:12:59AM +0200, Laura Marie Feeney wrote: On 08/30/13 23:53, Sergey A. Osokin wrote: Maybe try x11perf before and after? 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

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

2013-08-30 Thread Kevin Oberman
On Fri, Aug 30, 2013 at 3:12 PM, Laura Marie Feeney lmfee...@sics.sewrote: On 08/30/13 23:53, Sergey A. Osokin wrote: Maybe try x11perf before and after? 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

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

2013-08-29 Thread Adrian Chadd
Hi! What's the result of all of this? Laura - do you have functioning suspend/resume with xorg now? -adrian On 28 August 2013 08:03, Gleb Smirnoff gleb...@freebsd.org wrote: Laura, according to your Xorg.log PCI device ID of your video card exactly matches mine 8086:0166:17aa:21f9,

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

2013-08-29 Thread Laura Marie Feeney
Hi Yes! I now have working suspend/resume building xorg using the updated ports and compile options that Gleb Smirnoff kindly pointed me at. No xorg.conf is needed and all acpi options are as default. It seems to work correctly both with and without acpi_video and acpi_ibm in the kernel.

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

2013-08-29 Thread Adrian Chadd
Hi! On 29 August 2013 09:42, Laura Marie Feeney lmfee...@sics.se wrote: Hi Yes! I now have working suspend/resume building xorg using the updated ports and compile options that Gleb Smirnoff kindly pointed me at. No xorg.conf is needed and all acpi options are as default. It seems to

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

2013-08-29 Thread Laura Marie Feeney
On 08/29/13 18:44, Adrian Chadd wrote: Hi! Let's not finish this just yet! I'd like to try and nail down exactly what's going on so PRs can be filed. Absolutely. (I was thinking to do this off-list to minimize spam.) * Is this with 9.2-RC2? Yes this is 9.2-RC2. I think the problem is

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

2013-08-29 Thread Gleb Smirnoff
On Thu, Aug 29, 2013 at 08:51:18PM +0200, Laura Marie Feeney wrote: L suspend/resume and repeat the scrolling. The load seems to go quite a L bit higher after resuming (CPU from ~10% to ~20%). But this is L definitely not a scientific test AND I was primed by Gleb Smirnoff's L comments to look

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

2013-08-29 Thread Gleb Smirnoff
On Thu, Aug 29, 2013 at 03:04:28PM -0400, Glen Barber wrote: G I also observe the issue that Gleb Smirnoff mentions below, that the G xorg server is quite slow after result. Using 'xterm -sb' and G moving the scrollbar up and down very fast, I was able to able to G get the xorg process up to

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

2013-08-29 Thread Laura Marie Feeney
I don't see noticable slowdown. But there is NOTHING (twm and a couple of xterms) running on the machine. A more practical machine is going to be interacting with a lot more X functionality. If you just run 'startx' from the console, do you still have a problem? xf86-input-keyboard-1.7.0

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

2013-08-29 Thread Sergey A. Osokin
On Wed, Aug 28, 2013 at 07:03:10PM +0400, Gleb Smirnoff wrote: Laura, Now bad news :) Last major Xorg update in ports, which happened couple of months ago, introduced a regression: xorg performs very slowly after resume. If the server process is restarted, then a new one performs okay.

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

2013-08-28 Thread Laura Marie Feeney
On 08/28/13 06:05, Sergey A. Osokin wrote: On Tue, Aug 27, 2013 at 09:53:18PM +0200, Laura Marie Feeney wrote: At https://wiki.freebsd.org/SuspendResume, users osa and glebius both report on Thinkpad Carbon X1. This is wrong, please read wiki carefully cause I'm using Lenovo ThinkPad X1 nor

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

2013-08-28 Thread Laura Marie Feeney
Hi Mattias, These results I described (system resumes, but video is not restored, x server exits with error) are with 'options VESA' compiled out of a minimal kernel. See http://www.sics.se/~lmfeeney/9.2-RC2/ANKUNGE.config for the full config) With 'options VESA' included in the same

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

2013-08-28 Thread Gleb Smirnoff
Laura, according to your Xorg.log PCI device ID of your video card exactly matches mine 8086:0166:17aa:21f9, so it should work. It looks like versions of Xorg and Xorg Intel driver installed from packages are too old, and this is the biggest difference between your setup and mine. You are

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

2013-08-27 Thread Laura Marie Feeney
At https://wiki.freebsd.org/SuspendResume, users osa and glebius both report on Thinkpad Carbon X1. They agree that suspend and resume work from X (but not console) for '9.0-stable' and 'head' respectively. Sadly, I can't reproduce this on 9.2-RC2: Under X, resume fails to restore video. I

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

2013-08-27 Thread Laura Marie Feeney
On 08/27/13 21:54, Adrian Chadd wrote: Hi! Hi Adrian, Can you try 9.0-RELEASE? ANd 9.1-RELEASE? I tried suspend/resume (less systematically) with 9.1-RELEASE and didn't have success. I can build minimal kernels for both 9.1 and 9.0 and will report (probably not tonight).

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

2013-08-27 Thread Matthias Petermann
Hi Laura, Am 27.08.2013 22:32, schrieb Laura Marie Feeney: I tried suspend/resume (less systematically) with 9.1-RELEASE and didn't have success. I can build minimal kernels for both 9.1 and 9.0 and will report (probably not tonight). Unfortunately, the SuspendResume wiki isn't completely

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

2013-08-27 Thread Gleb Smirnoff
Laura, On Tue, Aug 27, 2013 at 09:53:18PM +0200, Laura Marie Feeney wrote: L At https://wiki.freebsd.org/SuspendResume, users osa and glebius both L report on Thinkpad Carbon X1. They agree that suspend and resume work L from X (but not console) for '9.0-stable' and 'head' respectively. I