个人工具
登录
查看“UbuntuHelp:AppleMagicMouse”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:AppleMagicMouse”的源代码
来自Ubuntu中文
←
UbuntuHelp:AppleMagicMouse
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/AppleMagicMouse}} {{Languages|UbuntuHelp:AppleMagicMouse}} There is a driver for this device that is still under development, you can download it from the following address: http://github.com/entrope/linux-magicmouse ---- === README === This code contains a Linux kernel driver for the magic mouse. Please see the INSTALL file for directions on how to use it with your kernel. This code also contains three standalone programs: hid-parse reads one or more input files (specified on the command line) that contain hexadecimal-formatted HID report descriptors, and prints out human-readable text forms of the descriptors. It should be considered fairly complete and stable. mtalk talks to an Apple Magic Mouse (using L2CAP with the HID control and interrupt Protocol and Service Multiplexors [PSMs]) and prints human-readable forms of the messages that it receives. Typically the only command-line parameters you would pass are -r <BluetoothAddr>. It should be considered 85% complete. usb-bt-dump reads a text dump in the format generated by Linux's usbmon (e.g. /sys/kernel/debug/usb/usbmon/0u) to parse Bluetooth messages at various layers (HCI, L2CAP, etc) and print annotations with the parsed form. It is woefully incomplete and buggy and will probably not be maintained. I wrote usb-bt-dump first, followed by mtalk, followed by hid-parse. mtalk is the only one that I expect to modify going forward. === INSTALLING THE MAGICMOUSE DRIVER === The Magic Mouse driver for linux is a module named hid-magicmouse. Older kernels do not have all the hooks that a driver needs to talk to the Magic Mouse. These are provided in this directory; you must apply them and rebuild the kernel before you can load hid-magicmouse. To apply the patch series, change to your linux-2.6 directory, and run either: <pre><nowiki> git apply *.patch </nowiki></pre> OR (in a Bourne shell, such as /bin/sh): <pre><nowiki> for PATCH in *.patch ; do patch -p1 < $PATCH ; done </nowiki></pre> This series were cherry-picked from the HID and Bluetooth trees onto v2.6.32.8. They should be filtering from the HID and Bluetooth trees into the mainstream kernel between v2.6.33 and v2.6.34. This directory's hid-magicmouse.c should match the final result of applying the patches in sequence. You will obviously need to reboot into the new kernel before the module can be loaded, but at that point user-space should see it as a normal input device, including a(n emulated) scroll wheel and middle button. A great howto can be found here: http://ubuntuforums.org/showpost.php?p=8777663&postcount=21 [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:AppleMagicMouse
。