Date: Sun, 8 Jul 2012 18:01:09 -0500 From: Brandon Gooch <jamesbrandongooch@gmail.com> To: mbsd <mbsd@isgroup.com.ua>, honestqiao@gmail.com Cc: freebsd-acpi@freebsd.org Subject: Re: Re: Resume failed after Suspend on Thinkpad x201i Message-ID: <CALBk6yK1fSg2ksVP4hmQz1pN-NVqXVGb3enjcE9t-rq0qXQQfA@mail.gmail.com> In-Reply-To: <CALBk6yLgUUvbZUhEhNgbqKOz8bc5eAM9anuP0ZSDR=qd6SstUw@mail.gmail.com> References: <201207021729413382845@gmail.com> <4FF2599B.6050409@gmail.com> <201207031411248300207@gmail.com> <1341437029.4017.5.camel@localhost> <CALBk6yLgUUvbZUhEhNgbqKOz8bc5eAM9anuP0ZSDR=qd6SstUw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 7, 2012 at 10:40 AM, Brandon Gooch
<jamesbrandongooch@gmail.com> wrote:
> On Wed, Jul 4, 2012 at 4:23 PM, mbsd <mbsd@isgroup.com.ua> wrote:
>> On Tue, 2012-07-03 at 14:11 +0800, 乔楚/HonestQiao wrote:
> [SNIP]
>>>
>>> In All the test, the screen is light and black, system is hangup, nothing can be done.
>>> The only thing can be done, is push power button, to force it shutdown.
>>
>> Which graphic card have you used? If you have had nvidia, it's normal,
>> I've had the same problem "the screen is light and black".
>
> Can both of you show the output of `devinfo -v` from your systems?
>
> I was able to solve my suspend/resume issue with my nvidia-equipped
> notebook by forcing the module load ordering of vgapm in
> sys/isa/vga_isa.c:
>
> Index: sys/isa/vga_isa.c
> ===================================================================
> --- sys/isa/vga_isa.c (revision 237779)
> +++ sys/isa/vga_isa.c (working copy)
> @@ -379,4 +379,4 @@
> 0
> };
>
> -DRIVER_MODULE(vgapm, vgapci, vgapm_driver, vgapm_devclass, 0, 0);
> +DRIVER_MODULE(vgapm, vgapci, vgapm_driver, vgapm_devclass, 0, SI_ORDER_ANY);
>
>
> The system requires however that I load the nvidia module in
> /boot/loader.conf (as opposed to loading it after system is up and
> running).
>
> -Brandon
Oops, the patch above should instead be:
Index: sys/isa/vga_isa.c
===================================================================
--- sys/isa/vga_isa.c (revision 238266)
+++ sys/isa/vga_isa.c (working copy)
@@ -379,4 +379,4 @@
0
};
-DRIVER_MODULE(vgapm, vgapci, vgapm_driver, vgapm_devclass, 0, 0);
+DRIVER_MODULE_ORDERED(vgapm, vgapci, vgapm_driver, vgapm_devclass,
NULL, NULL, SI_ORDER_ANY);
I made the edit for the diff on a clean tree, but I'm actually
building from another :)
The above is correct. However, I'm still not sure this pertains to
your Intel video problem.
-Brandon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALBk6yK1fSg2ksVP4hmQz1pN-NVqXVGb3enjcE9t-rq0qXQQfA>
