Resume failed after Suspend on Thinkpad x201i

Brandon Gooch jamesbrandongooch at gmail.com
Sun Jul 8 23:01:10 UTC 2012


On Sat, Jul 7, 2012 at 10:40 AM, Brandon Gooch
<jamesbrandongooch at gmail.com> wrote:
> On Wed, Jul 4, 2012 at 4:23 PM, mbsd <mbsd at 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


More information about the freebsd-acpi mailing list