@mylan4:
paste this into the terminal
sudo gedit /etc/modprobe.d/blacklist.conf
and add following string at the end
blacklist radeon
reboot.
@hotwax
its really easy. do this
open up terminal and type
gedit timelinex_acpi.c
past following code inside and save.
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);
then type in terminal
gedit Makefile
and paste following code inside
Code:
ifneq ($(KERNELRELEASE),)
obj-m := timelinex_acpi.o
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) $(EXTRA_FLAGS) modules
clean:
$(MAKE) -C $(KERNELDIR) M=$(PWD) $(EXTRA_FLAGS) clean
endif
save and paste in terminal
make
sudo cp timelinex_acpi.ko /lib/modules/`uname -r`/kernel/
sudo depmod
echo timelinex_acpi | sudo tee -a /etc/modules > /dev/null
done.
dont forget to
paste this into the terminal
sudo gedit /etc/modprobe.d/blacklist.conf
and add following string at the end
Bookmarks