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 20:24:46 -0400, Adrian Chadd wrote: > Whoa whoa. > > I'm confused. Well, a bit. How is it up to syscons to fix the > backlight configuration, which seems to be a large part of the > problem here? No, it has nothing to do with syscons(4)

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

2013-09-05 Thread Adrian Chadd
Whoa whoa. I'm confused. Well, a bit. How is it up to syscons to fix the backlight configuration, which seems to be a large part of the problem here? Or what else is going on here with restoring the system state? I'm worried that we'll have the same problem with newcons, with or without KMS. Why

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" 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

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

2013-09-05 Thread Bengt Ahlgren
Jung-uk Kim 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 goes fo

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 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 >>

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

2013-09-05 Thread Bengt Ahlgren
"Ganael LAPLANCHE" 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). > > Great, I can confirm

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

2013-09-04 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-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 sc

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 writes: > >> On 2013-09-04 15:14:32 -0400, Bengt Ahlgren wrote: >>> Jung-uk Kim writes: >>> On 2013-09-04 09:29:35 -0400, John Baldwin wrote: > On Tuesday, September 03, 2013

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

2013-09-04 Thread Bengt Ahlgren
Jung-uk Kim writes: > On 2013-09-04 15:14:32 -0400, Bengt Ahlgren wrote: >> Jung-uk Kim 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 tha

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

2013-09-04 Thread Bengt Ahlgren
John Baldwin writes: > On Wednesday, September 04, 2013 3:14:32 pm Bengt Ahlgren wrote: >> Jung-uk Kim 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 John Baldwin
On Wednesday, September 04, 2013 3:14:32 pm Bengt Ahlgren wrote: > Jung-uk Kim 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 Jung-uk Kim
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-09-04 15:14:32 -0400, Bengt Ahlgren wrote: > Jung-uk Kim 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 Bengt Ahlgren
Jung-uk Kim 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 mod

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 re

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)

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

2013-09-03 Thread John Baldwin
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 you mind taking a look at the -acpi list posts with > >> this subject? It looks like a

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 12:28:30 -0400, John Baldwin wrote: > 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

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-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) x1

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 on

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

2013-09-01 Thread Laura Marie Feeney
Gleb and Luara, could you try x11-wm/i3 for suspend/resume trick and check slowdown? x11perf data for twm are at http://www.sics.se/~lmfeeney/9.2-RC2 I used firefox and flickr.com as subjective test. After several suspend/resume cycles, scrolling through pictures became noticeably slower.

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 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 promise anyt

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

2013-08-31 Thread Adrian Chadd
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 promise anything. Who actually has experience with the VESA code and may be able

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

2013-08-31 Thread Kevin Oberman
On Fri, Aug 30, 2013 at 11:39 PM, Sergey A. Osokin wrote: > On Fri, Aug 30, 2013 at 10:47:14PM -0700, Kevin Oberman wrote: > > > [skipped] > > > > I am running Gnome2, so it is a very heavyweight system running > 9.2-Stable > > from last Wednesday (r255013). > > Are you talking about stable/9 or

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

2013-08-30 Thread Sergey A. Osokin
On Fri, Aug 30, 2013 at 10:47:14PM -0700, Kevin Oberman wrote: > [skipped] > > I am running Gnome2, so it is a very heavyweight system running 9.2-Stable > from last Wednesday (r255013). Are you talking about stable/9 or 9.2-PRERELEASE (releng/9.2)? 9.2-RELEASE hasn't yet released, FreeBSD 9.2-

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 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 usin

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

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 wrote: > > > > On Wed, Aug 28, 2013 at 07:03:10PM +0400,

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 i

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 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 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 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 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 ag

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

2013-08-30 Thread Adrian Chadd
On 29 August 2013 20:14, Sergey A. Osokin 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 ago, introduced a regression: xorg performs very slowly after > > resume. I

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 oka

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 xf

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

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

2013-08-29 Thread Glen Barber
On Thu, Aug 29, 2013 at 06:42:28PM +0200, Laura Marie Feeney wrote: > 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. It's still necessary to compile out > 'options VESA' from the kernel, othe

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 l

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 tha

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

2013-08-29 Thread Sergey A. Osokin
Dear Laura, could you show your kernel configuration file. Thanks in advance. -- Sergey A. Osokin o...@freebsd.org On Thu, Aug 29, 2013 at 06:42:28PM +0200, Laura Marie Feeney wrote: > Hi > > Yes! I now have working suspend/resume building xorg using the > updated ports and compile options tha

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 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 > work correctl

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. I

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 wrote: > Laura, > > according to your Xorg.log PCI device ID of your video card exactly > matches mine 8086:0166:17aa:21f9, so it should wo

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 r

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 minimal

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 Th

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

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

2013-08-27 Thread Sergey A. Osokin
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 ThinkPad Carbon. -- Sergey A. Osokin o...@f

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 cl

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). Unfortunately,

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

2013-08-27 Thread Adrian Chadd
Hi! Can you try 9.0-RELEASE? ANd 9.1-RELEASE? When you get a panic on resume - how do you know that? Can you get a photo of it? -adrian On 27 August 2013 12:53, Laura Marie Feeney wrote: > At > https://wiki.freebsd.org/**SuspendResume, > users osa a

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 d