Thank you Dan Ștefan Stroe (stroestefan) and Somberlain (somberlain218) for cleaning up my patch and giving more instructions. However, since this is a patch to a dkms module, I believe the proper way is to add it to dkms patches directory and modify dkms.conf.in. This way the original, proprietary code is distributed unchanged, and the patch is applied when the dkms module is built on install. I am not a dpkg expert, though...
This should generate a new fglrx-updates-core package in the parent directory. When installed, it will call dkms build, which will apply the patch and build the kernel module.
You can check dkms with
sudo dkms status
and to rebuild (should have been done by the above install)
Disclaimer: This is patching kernel modules. Here Be Dragons. This may make your computer unbootable. This may blow up your computer and all your files. This may kill your cat. Make sure you have adequate backups, time, and access to a linux expert (yourself or friend) before attempting
Thank you Dan Ștefan Stroe (stroestefan) and Somberlain (somberlain218) for cleaning up my patch and giving more instructions. However, since this is a patch to a dkms module, I believe the proper way is to add it to dkms patches directory and modify dkms.conf.in. This way the original, proprietary code is distributed unchanged, and the patch is applied when the dkms module is built on install. I am not a dpkg expert, though...
You can use the attached patch thus:
sudo apt-get build-dep fglrx-installer -updates -updates -updates- 15.200 ignore_ hotplug. diff updates- core_15. 200-0ubuntu0. 3_amd64. deb
apt-get source fglrx-installer
cd fglrx-installer
patch -p1 < ../fglrx_
dpkg-buildpackage -rfakeroot -uc -us -b
sudo dpkg -i ../fglrx-
This should generate a new fglrx-updates-core package in the parent directory. When installed, it will call dkms build, which will apply the patch and build the kernel module.
You can check dkms with
sudo dkms status
and to rebuild (should have been done by the above install)
sudo dkms remove fglrx-updates- core/15. 200 -k 3.19.0-26-generic core/15. 200 -k 3.19.0-26-generic core/15. 200 -k 3.19.0-26-generic
sudo dkms build fglrx-updates-
sudo dkms install fglrx-updates-
sudo update-initramfs -k 3.19.0-26-generic -u
Disclaimer: This is patching kernel modules. Here Be Dragons. This may make your computer unbootable. This may blow up your computer and all your files. This may kill your cat. Make sure you have adequate backups, time, and access to a linux expert (yourself or friend) before attempting