Foren
Neue Beiträge
Foren durchsuchen
Aktuelles
Neue Beiträge
Profilnachrichten
Neueste Aktivitäten
Mitglieder
Zurzeit aktive Besucher
Profilnachrichten
Profilnachrichten suchen
Login
Registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Neue Beiträge
Foren durchsuchen
Menü
Login
Registrieren
App installieren
Installieren
Foren
BIOS / Recovery / Betriebssysteme
Linux
Ubuntu > Probleme mit Hybridgrafik
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Auf Thema antworten
Beitrag
<blockquote data-quote="Yashikuji" data-source="post: 307987" data-attributes="member: 47466"><p><strong>AW: Aspire TimelineX 4820 TG - Ubuntu > Probleme mit Hybridgrafik</strong></p><p></p><p>Habe den Fehler gefunden. Die timelinex_acpi.c war falsch kommentiert.</p><p>Versuch's mal mit der folgenden:</p><p> </p><p>[CODE] </p><p>/* </p><p>* </p><p>* timelinex_acpi.c</p><p>* </p><p>* Linux kernel module that disables the discrete graphics board for Acer</p><p>* Aspire TimelineX 3820TG (Core i5). Other TimelineX laptops could work, but I don't know.</p><p>*</p><p>* Based on the original lenovo_acpi.c by Sylvain Joyeux <sylvain.joyeux@m4x.org>, 2009</p><p>*/</p><p>#include <acpi/acpi.h></p><p> </p><p>MODULE_LICENSE("GPL");</p><p> </p><p>static acpi_handle root_handle;</p><p> </p><p>static int __init kill_ati(void)</p><p>{</p><p>int i;</p><p>acpi_status status;</p><p>// The device handle</p><p>acpi_handle handle;</p><p>// The package elements</p><p>union acpi_object package_elements[3];</p><p>// The arguments to ATPX</p><p>union acpi_object atpx_arg_elements[2];</p><p>struct acpi_object_list atpx_arg;</p><p>// For the return value of ATPX</p><p>struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };</p><p> </p><p>status = acpi_get_handle(root_handle, "\\_SB.PCI0.P0P2.PEGP._OFF", &handle); // status = acpi_get_handle(root_handle, "\\_SB_.PCI0.OVGA.ATPX", &handle);</p><p>if (ACPI_FAILURE(status))</p><p>{</p><p>status = acpi_get_handle(root_handle, "\\_SB_.PCI0.OVGA.XTPX", &handle);</p><p>if (ACPI_FAILURE(status))</p><p>{</p><p>printk("timelinex_acpi: cannot get ACPI handle: %s\n", acpi_format_exception(status));</p><p>return -ENOSYS;</p><p>}</p><p>printk("timelinex_acpi: in discrete graphics mode\n");</p><p>return 0;</p><p>}</p><p> </p><p>for (i = 0; i < 3; ++i)</p><p>{</p><p>package_elements[i].type = ACPI_TYPE_INTEGER;</p><p>package_elements[i].integer.value = 0;</p><p>}</p><p> </p><p>atpx_arg.count = 0; // atpx_arg.count = 2;</p><p>atpx_arg.pointer = &atpx_arg_elements[0];</p><p> </p><p>atpx_arg_elements[0].type = ACPI_TYPE_INTEGER;</p><p>atpx_arg_elements[0].integer.value = 2;</p><p> </p><p>atpx_arg_elements[1].type = ACPI_TYPE_PACKAGE;</p><p>atpx_arg_elements[1].package.count = 3;</p><p>atpx_arg_elements[1].package.elements = &package_elements[0];</p><p> </p><p>status = acpi_evaluate_object(handle, NULL, &atpx_arg, &buffer);</p><p>if (ACPI_FAILURE(status))</p><p>{</p><p>printk("timelinex_acpi: ATPX method call failed: %s\n", acpi_format_exception(status));</p><p>return -ENOSYS;</p><p>}</p><p>kfree(buffer.pointer);</p><p> </p><p>printk("timelinex_acpi: disabled the discrete graphics card\n");</p><p>return 0;</p><p>}</p><p> </p><p>static void dummy(void)</p><p>{</p><p>}</p><p> </p><p>module_init(kill_ati);</p><p>module_exit(dummy);</p><p>[/CODE]MfG</p><p> </p><p>Yashikuji</p></blockquote><p></p>
[QUOTE="Yashikuji, post: 307987, member: 47466"] [b]AW: Aspire TimelineX 4820 TG - Ubuntu > Probleme mit Hybridgrafik[/b] Habe den Fehler gefunden. Die timelinex_acpi.c war falsch kommentiert. Versuch's mal mit der folgenden: [CODE] /* * * timelinex_acpi.c * * Linux kernel module that disables the discrete graphics board for Acer * Aspire TimelineX 3820TG (Core i5). Other TimelineX laptops could work, but I don't know. * * Based on the original lenovo_acpi.c by Sylvain Joyeux <sylvain.joyeux@m4x.org>, 2009 */ #include <acpi/acpi.h> MODULE_LICENSE("GPL"); static acpi_handle root_handle; static int __init kill_ati(void) { int i; acpi_status status; // The device handle acpi_handle handle; // The package elements union acpi_object package_elements[3]; // The arguments to ATPX union acpi_object atpx_arg_elements[2]; struct acpi_object_list atpx_arg; // For the return value of ATPX struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; status = acpi_get_handle(root_handle, "\\_SB.PCI0.P0P2.PEGP._OFF", &handle); // status = acpi_get_handle(root_handle, "\\_SB_.PCI0.OVGA.ATPX", &handle); if (ACPI_FAILURE(status)) { status = acpi_get_handle(root_handle, "\\_SB_.PCI0.OVGA.XTPX", &handle); if (ACPI_FAILURE(status)) { printk("timelinex_acpi: cannot get ACPI handle: %s\n", acpi_format_exception(status)); return -ENOSYS; } printk("timelinex_acpi: in discrete graphics mode\n"); return 0; } for (i = 0; i < 3; ++i) { package_elements[i].type = ACPI_TYPE_INTEGER; package_elements[i].integer.value = 0; } atpx_arg.count = 0; // atpx_arg.count = 2; atpx_arg.pointer = &atpx_arg_elements[0]; atpx_arg_elements[0].type = ACPI_TYPE_INTEGER; atpx_arg_elements[0].integer.value = 2; atpx_arg_elements[1].type = ACPI_TYPE_PACKAGE; atpx_arg_elements[1].package.count = 3; atpx_arg_elements[1].package.elements = &package_elements[0]; status = acpi_evaluate_object(handle, NULL, &atpx_arg, &buffer); if (ACPI_FAILURE(status)) { printk("timelinex_acpi: ATPX method call failed: %s\n", acpi_format_exception(status)); return -ENOSYS; } kfree(buffer.pointer); printk("timelinex_acpi: disabled the discrete graphics card\n"); return 0; } static void dummy(void) { } module_init(kill_ati); module_exit(dummy); [/CODE]MfG Yashikuji [/QUOTE]
Authentifizierung
Antworten
Foren
BIOS / Recovery / Betriebssysteme
Linux
Ubuntu > Probleme mit Hybridgrafik
Oben