[mythtv-users] Ubuntu, V4L, and DKMS

faginbagin mythtv at hbuus.com
Sun May 8 19:29:38 UTC 2011


On 5/8/2011 09:20 AM, R. G. Newbury wrote:
> On 05/08/2011 12:51 AM, faginbagin wrote:
>> On 2:59 PM, Christopher Meredith wrote:
>>> I'm running Ubuntu 10.10 and I've got one of those newer HD-PVRs that
>>> requires drivers from the media_build branch of V4L. I've got the
>>> drivers built and running great, but now I'd like to find out if I can
>>> set up DKMS to automatically rebuild these drivers when installing
>>> kernel upgrades. Before I embark on a process that is certain to
>>> include swearing, crying, and frustration, I wanted to ask if anyone
>>> on here has already done it. So... anyone?
>>>
>>> TIA!
>>
>> I've done this for one module, rc-hauppauge-new, to get my Hauppauge remote to generate the key codes I want. Seems to do what I want, IOW, when I update the kernel via Update Manager, the module is recompiled as needed. Although it didn't do the job the first time I updated the kernel. For some reason, my module was not recompiled. I don't know what the problem was. I made some more tweaks to my dkms.conf file, repeated key DKMS commands, and it seemed to do the trick, because the module was recompiled on the next kernel update. I think I've only had one kernel update since that time, so I'm not 100% sure I've got it right.
>>
>> If you'd like to see what I've done, I can send you the gzipped tar file. It's tiny, 2396 bytes.
>>
>> Regards,
>> Helen
>
> Please post here too. Since it is so small it does not need to be a tar.
>
> And it may be useful to a lot of us who use the nvidia driver too.
>
> I'd love to be able to avoid the re-boot to init=3, install, reboot to
> init=5 cycle.
>
> Geoff

Well, the contents of the .tgz is 28K bytes unzipped, so I've put the .tgz on my web server here:
http://www.hbuus.com/ir-keymap-0.1.tgz

You need to untar it (or put your own stuff) under /usr/src and then use the dkms command to add, build and install, IIRC. It's been a while, so I'd have to re-read the man page to give better instructions. I have confidence you and Christoper can figure that out <vbg>. If you get stuck, let me know, and I'll try to help.

FWIW, I used the Ubuntu packaged nvidia driver installed on my system as a template for the dkms.conf and Makefiles. So, if you're using a newer nvidia driver than what Ubuntu provides in any of their repos, I suggest using one of their source nvidia packages as a template.

HTH,
Helen


More information about the mythtv-users mailing list