I have read a lot of threads with similar questions, but after reading the answers, I am very confused. I have found in them lots of url's with repositories but people discusses about which repositories are made for one or two versions of ubuntu, but I have found nothing about 11.10 version. Is too soon to ask for that? Should I downgrade my ubuntu to have a realtime kernel?
The long term goal of the RT kernel project is to end up having all the RT functionality in the standard kernel, and this is progressing nicely. The RT patch has had irregular releases in the past, and the hacking of kernel.org in August 2011 made the 3.0 version inaccessible for months, but now things are looking good: there's a patch for 3.0, another for 3.2 (coinciding with the kernel versions in Ubuntu 11.10 and 12.04), and another for 3.4, see here.
If you are using Precise, you can use Alessio Bogani's Realtime PPA, who has kindly packaged the vanilla kernel with the RT patch applied and is keeping it in sync with the version numbers in Precise.
If you prefer to build the RT kernel by hand, first install the required software packages:
Then configure the kernel using:
where you should select "full preemption" (option 5) when prompted, and leave everything else at its default value by pressing enter at every prompt. The config from the -lowlatency kernel might be a better starting point than that of the -generic kernel.
Then build the kernel with:
And finally install your new kernel with:
You should be able to reboot into your RT kernel at this point. If your kernel fails to boot make sure you double-check the boot parameters, and edit them accordingly in your bootloader. For example, ACPI functions may affect your real time system (as stated on rt.wiki.kernel.org). Adding acpi=off may be a solution in such case.
Notice though that the RT patch is incompatible with the Nvidia binary driver (but see the post by user "rt-kernel" below, and this question for a workaround), and that the Ubuntu kernel patches will not be present, so you may have hardware problems that you did not have before. This is true of both the PPA packages and the compiled kernel. You can always boot into your -generic kernel and uninstall the realtime kernel packages if they give you trouble, of course.
Another option is to install the RTKernel from KXStudio's repos. He keeps a set of packages aimed to audio and music productions and he has a real time and a low latency packages.
As far as I know, the development of the realtime kernel has not keep pace with the Ubuntu release cycle. If you must run a realtime kernel, you probably will have to run an older version.
For some more information, see https://help.ubuntu.com/community/UbuntuStudio/RealTimeKernel.
Note that there appears to be at least some current work on the low-latency kernel: https://launchpad.net/~abogani/+archive/ppa?field.series_filter=oneiric .
If you depend on using the nvidia binary driver you can patch the original driver with this patch (for 3.4+ kernels with rt-patches only) This patch comes with no garantee or warranty! Use it on your own risk.->
Save the patch as "nv295.33_for 3.3+_rt.patch". Apply the patch->
This will build a new nvidia binary installer called "NVIDIA-Linux-x86_64-295.33-custom.run".
Run the installer with
This patch comes with no garantee or warranty! Use it on your own risk.
Reboot and have fun.
You'll find more information in the nv forum. There you can find a solution for the 295.40 series, too.
protected by Community♦ Nov 27 '12 at 15:12
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?