Bluetooth DKMS driver for Ubuntu 14.04 on Kernel 3.19

58 views
Skip to first unread message

Naftuli Tzvi Kay

unread,
Oct 29, 2015, 6:40:16 PM10/29/15
to linux-m...@googlegroups.com
Hello all!
I'm currently hacking away on backporting this commit into the Bluetooth kernel module source for kernel 3.19. On newer MacBook Pro models (I'm on 11,5), there is a Bluetooth USB device with id 05ac:8290 which doesn't register properly with the btusb kernel module. 

There was a dirty hack which got things working, but it was less than ideal as it rendered all other Bluetooth USB adapters useless while it was installed. 

The aforementioned commit should make the device completely usable.

I've pushed my work in project to my GitHub project page at https://github.com/rfkrocktk/macbook-btusb-trusty, with my backporting work going into the feature/backport branch. I'm having some difficulties, because the original commit is from a much later kernel version, and there are changes to structs and other files in there. 

The ultimate goal is:
  1. Make repeatable Debian packages for Trusty which use DKMS to compile and insert the module into the current kernel.
  2. Support kernel 3.19, aka linux-image-generic-lts-vivid.
  3. Eventually shove things into a Debian repository for Trusty (14.04).
I could use all of the help I can get on this, because I'm pretty new to working on kernel source code. 

My ultimate goal is to find all of the main hardware problems with these later MacBook Pros and create DKMS modules/Debian packages which recompile the relevant kernel modules. No one should ever have to recompile their kernel or a module manually ever again. 

After I'm able to get this working, I'll set my sights on bringing over SicVolo/hid-apple-3.19 and provide two GitHub repositories providing fixes for hid-apple (the keyboard) and bcm5974 (the trackpad). I tried his stuff, but I couldn't get it working reliably, and on 3.19 I have an utterly broken touchpad and a weirdly functioning keyboard.

Thanks,
 - Naftuli Tzvi

Tim Sammut

unread,
Oct 30, 2015, 6:48:41 AM10/30/15
to Naftuli Tzvi Kay, linux-m...@googlegroups.com
Hi! Thanks for doing all this.

Can you run a 4.2+ kernel on Ubuntu? That will make all of this much easier.

hope you are well
t

Naftuli Tzvi Kay

unread,
Oct 30, 2015, 12:25:18 PM10/30/15
to Tim Sammut, linux-m...@googlegroups.com
Yeah, I can run a 4.2 kernel on Ubuntu, but not from the official Trusty package repositories. I've been able to get kernel 4.2.0 running from Wily's package repositories, but the goal of this project is to get it working on packages available for trusty. 

I use elementary OS, which pins to the latest Ubuntu LTS release, so that's why I'm on 14.04. When 16.04 is released with its elementary equivalent, I'll be upgrading to that.

Thanks,
 - Naftuli Tzvi

t

--
You received this message because you are subscribed to the Google Groups "Linux on Macbooks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-macbook...@googlegroups.com.
To post to this group, send email to linux-m...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

rfkrocktk

unread,
Nov 2, 2015, 1:50:38 PM11/2/15
to Linux on Macbooks
I have the patch working as of today. Adventurous users can do the following to install:

git clone https://github.com/rfkrocktk/macbook-btusb-trusty.git
sudo mkdir
/usr/src/btusb-1.6
sudo rsync
-azvP macbook-btusb-trusty/ /usr/src/btusb-1.6/
sudo dkms add
-m btusb -v 1.6
sudo dkms build btusb
/1.6
sudo dkms install btusb
/1.6 --all

Be aware that you absolutely must be running kernel 3.19 for this to work. That means you need to have the linux-image-generic-lts-vivid package installed.

This project uses DKMS to build, so every time your kernel is updated, the module will be built and installed, meaning that you shouldn't ever lose Bluetooth again. Please report bugs to the GitHub project page.


On Friday, October 30, 2015 at 9:25:18 AM UTC-7, rfkrocktk wrote:
Yeah, I can run a 4.2 kernel on Ubuntu, but not from the official Trusty package repositories. I've been able to get kernel 4.2.0 running from Wily's package repositories, but the goal of this project is to get it working on packages available for trusty. 

I use elementary OS, which pins to the latest Ubuntu LTS release, so that's why I'm on 14.04. When 16.04 is released with its elementary equivalent, I'll be upgrading to that.

Thanks,
 - Naftuli Tzvi

On Fri, Oct 30, 2015 at 3:48 AM, Tim Sammut <t...@teamsammut.com> wrote:
Hi! Thanks for doing all this.

Can you run a 4.2+ kernel on Ubuntu? That will make all of this much easier.

hope you are well
t

--
You received this message because you are subscribed to the Google Groups "Linux on Macbooks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-macbooks+unsubscribe@googlegroups.com.
To post to this group, send email to linux-macbooks@googlegroups.com.

Naftuli Tzvi Kay

unread,
Nov 2, 2015, 4:06:38 PM11/2/15
to Linux on Macbooks
Coming soon: a Debian package and eventually a PPA. 

I'd also like to test this out on other LTS kernel versions. Not sure how compatible the patch will be.

Thanks,
 - Naftuli Tzvi


Thanks,
 - Naftuli Tzvi

To unsubscribe from this group and stop receiving emails from it, send an email to linux-macbook...@googlegroups.com.
To post to this group, send email to linux-m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Linux on Macbooks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-macbook...@googlegroups.com.
To post to this group, send email to linux-m...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages