[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Crash inspiegabili di XFree in SID



On Sun, Apr 04, 2004 at 05:55:52PM +0200, Vincenzo aka Nick Name wrote:
> On Sunday 04 April 2004 16:31, GigaBytes wrote:
[...]
> opengl piuttosto che avere a che fare con vari problemi (es. il DRI 
> impedisce di configurare correttamente il suspend-to-disk). La 
[...]

sempre per chi ha voglia di smanazzare, nella parte *sorgente* dei driver
nvidia nel file nv.c:1860 (rev. 5336)

# cat ~/nv.c | head -n 1881 | tail -n 22
#if defined(CONFIG_APM) || defined(CONFIG_APM_MODULE)
        // for now, only APM is supported. once ACPI is fully supported by the 
        // core kernel (looks like 2.6 timeframe), we'll be able to finish up 
        // ACPI support. Unfortunately, this means only older laptops will work
        // with power management (any laptop that supports win9x has an APM
        // capable SBIOS/VBIOS and will work).
        // Attempting to suspend/hibernate on an ACPI-only system is likely to
        // hang the system, so we continue to try to avoid that case. this
        // check of the kernel config is a weak attempt really, if the end
        // user loaded an APM enabled kernel on an ACPI-only system, they're
        // still probably going to hang here. we'll keep working on better
        // ways of handling this. 
        case PM_RESUME:
            nv_printf(NV_DBG_INFO, "NVRM: received PM resume event\n");
            rm_power_management(NV_STATE_PTR(lnv), 0, rqst);
            break;

        case PM_SUSPEND:
            nv_printf(NV_DBG_INFO, "NVRM: received PM suspend event\n");
            rm_power_management(NV_STATE_PTR(lnv), 0, rqst);
            break;
#endif

avevo letto dei post in giro (mi pare su debian-laptop o acpi-devel)
dove si sosteneva che in effetti il codice e' funzionante e che
basterebbe mettere gli ifdef giusti:

ATTEZIONE: io non l'ho provato e non garantisco niente!!!!

----8<----
# diff -u nv.c nv.c.new
--- nv.c	2004-04-04 18:45:13.000000000 +0200
+++ nv.c.new	2004-04-04 19:08:12.000000000 +0200
@@ -1857,7 +1857,6 @@
 
     switch (rqst)
     {
-#if defined(CONFIG_APM) || defined(CONFIG_APM_MODULE)
         // for now, only APM is supported. once ACPI is fully supported by the 
         // core kernel (looks like 2.6 timeframe), we'll be able to finish up 
         // ACPI support. Unfortunately, this means only older laptops will work
@@ -1878,7 +1877,6 @@
             nv_printf(NV_DBG_INFO, "NVRM: received PM suspend event\n");
             rm_power_management(NV_STATE_PTR(lnv), 0, rqst);
             break;
-#endif
         default:
             nv_printf(NV_DBG_INFO, "NVRM: received unknown PM event: 0x%x\n", rqst);
             return 1;
----8<----

dopodiche' basta ricompilare/reinstallare il driver

boh... io non lo proverei :) magari dopo una ricerca con l'amico google
hummm... ecco, qui ne parlano (faq #4.6):
http://swsusp.sourceforge.net/FAQ-4.html

buon divertimento
-- 
mattia
:wq!
Hodie pridie Nonas Apriles MMDCCLVII ab urbe condita est



Reply to: