Install AMD Catalyst 13.12 Driver with patch on Ubuntu 13.10

This is a copy-paste post from this one only for my personal reference and just in case the original post is gone for any reason.
---------------------------------------------------------------------------------

  • Download amd-catalyst-13.12-linux-x86.x86_64.zip
  • Extract it and you will get amd-catalyst-13.12-linux-x86.x86_64.run
  • chmod +x amd-catalyst-13.12-linux-x86.x86_64.run
  • ./amd-catalyst-13.12-linux-x86.x86_64.run --extract catalyst
  • cd catalyst
  • Apply the patch manualy:
at the end of the file catalyst/common/lib/modules/fglrx/build_mod/kcl_acpi.c, starting with line 990, there is
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,3)    
    if (!ACPI_SUCCESS(acpi_get_table_with_size(id, 0, &hdr, &tbl_size)))
#else
    tbl_size = 0x7fffffff;
    if (!ACPI_SUCCESS(acpi_get_table(id, 0, &hdr)))
...
delete everything to the end of the file and replace with this
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,3)    
    if (!ACPI_SUCCESS(acpi_get_table_with_size(id, 0, &hdr, &tbl_size)))
#else
    tbl_size = 0x7fffffff;
    if (!ACPI_SUCCESS(acpi_get_table(id, 0, &hdr)))
#endif
    {
        return KCL_ACPI_ERROR;
    }
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,1)
    ((acpi_tbl_table_handler)handler)(hdr);
#else
    ((acpi_table_handler)handler)(hdr);
#endif
    return KCL_ACPI_OK;
}
  • sudo ./ati-installer.sh 13.251 --buildpkg Ubuntu/saucy
  • Change owner and group (from root to your user) for generated .deb files placed one directory up (sudo chown fglrx* and sudo chgrp fglrx*), and install them all via Software Center (or from command line as root).
To open amdcccle, run this sudo /usr/lib/fglrx/bin/amdcccle

Comments

Popular posts from this blog

Hosting Apache Tapestry5.1 on GAE (Google App Engine)

Apache Tapestry PageActivationContext tutorial

MySQL workbench not working on Windows 7