Giter Club home page Giter Club logo

magicmouse-hid's Issues

No scrolling

I have tried the fixes provided in here, after trying the driver this was forked from, with no luck regarding scrolling.

Kernel modules and drivers are a little new to me, but I've followed the instructions without luck.

Any advice?

Scrolling doesn't work AFTER mouse is disconnected and reconnected

Hi,
first of all, that you very much for this project!

I've ran into an issue, that when the mouse is re-connected after it disconnects itself (which is a known issue it seems) and /opt/magic-mouse-fix/magic-mouse-2-add.sh is supposed to kick in, it didn't work as expected. Mouse got reconnected, but scrolling didn't work,. What worked was executing rmmod and modprobe of magic mouse module. I haven't yet found out why the original script didn't do what it is supposed to, but the modified script below seems to work so far.

I'm writing this for anyone with simillar issue as mine

System Info
OS: Arch Linux
Kernel: x86_64 Linux 5.9.11-arch2-1

#!/bin/sh

FILE=/tmp/magicmouse-driveload

reload() {
    if [ ! -f "$FILE" ]; then
        touch $FILE

	rmmod hid_magicmouse
        sleep 2
	modprobe hid_magicmouse
        sleep 2
        rm -f "$FILE"
    fi
}

reload &

Magic Trackpad 2: why not smooth and stabile ?

First of all i am sorry for my English.

Mostly i am using hackintosh because trackpad is my 3rd hand. Today i tried to install pop os and see trackpad works or not on it. After that i installed your driver.
but, unfortunetely how can i say idk but trackpad does not work %100. The main problem is micro stuttering and not smooth like on MacOS. After a few minutes later its becoming more and more annoying.

Just wanted to wrote my feedback. İ hope it would be better in future.

Many thanks for your grrat work and effort.

Improved Magic Mouse 1 & 2 scrolling support merged into 5.15

Just wanted to note this recent addition to Kernel 5.15. The magic mice should scroll more smoothly and at higher resolution. The change also adds a movement threshold.

https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/patch/?id=56e7b4940ba678b498a6156086f7823d86bf74ad

https://www.phoronix.com/scan.php?page=news_item&px=Magic-Mouse-High-Res-Linux-5.15

Perhaps this, and the fact general support is in 5.13 (#8) should be mentioned in the readme? Most users are probably fine with 5.13+ or 5.15.

Problem to connect to bluetooth with Elementary OS Juno

Hi thanks for yout work.

I'm trying to connect via bluetooth but this is giving this errors in blueman:

image
image

yesterday it was working, and to work the scroll I compiled this repository: rohitpid/Linux-Magic-Trackpad-2-Driver.
but today when I turned on the computer it was not connecting to bluetooth anymore.

I ran the remove.sh script from rohitpid/Linux-Magic-Trackpad-2-Driver, but still had a problem connecting to bluetooth. I tried to use your repository but it still didn't work. have any idea what could have happened?

thanks for advance, and sorry for my terrible english

Unstable Crashes Monitor OSD

Just thought i'd add this as i thought my Monitor had become faulty but in the end tracked it down to this driver.
Driver works with touchpad great but after around an hour functions from my monitor freeze.
1 i can no longer access OSD menu functions
2 Monitor will not turn off on shutdown just goes blank.
3 Monitor stays blank after restarting PC
4 Monitor and tablet work perfect on windows

Monitor is 43CVSUWD120HQ

Crash when Magic Trackpad Disconnects

If I unplug my Magic Trackpad from USB or turn it off, I get the following crash:

│[17366.439139] usb 5-2.3: USB disconnect, device number 8                                                                                                                                                                                   │
│[17366.501181] BUG: kernel NULL pointer dereference, address: 0000000000000170                                                                                                                                                              │
│[17366.501184] #PF: supervisor read access in kernel mode                                                                                                                                                                                   │
│[17366.501186] #PF: error_code(0x0000) - not-present page                                                                                                                                                                                   │
│[17366.501187] PGD 0 P4D 0                                                                                                                                                                                                                  │
│[17366.501190] Oops: 0000 [#1] PREEMPT SMP NOPTI                                                                                                                                                                                            │
│[17366.501192] CPU: 10 PID: 139201 Comm: kworker/10:0 Tainted: P           OE      6.5.0-28-generic #29~22.04.1-Ubuntu                                                                                                                      │
│[17366.501195] Hardware name: Gigabyte Technology Co., Ltd. B650I AORUS ULTRA/B650I AORUS ULTRA, BIOS F8 07/10/2023                                                                                                                         │
│[17366.501196] Workqueue: usb_hub_wq hub_event                                                                                                                                                                                              │
│[17366.501201] RIP: 0010:timer_delete+0x2c/0x90                                                                                                                                                                                             │
│[17366.501205] Code: 44 00 00 55 48 89 e5 41 55 41 54 45 31 e4 53 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 45 e0 31 c0 48 c7 45 d8 00 00 00 00 <48> 8b 47 08 48 85 c0 74 2e 48 8d 75 d8 48 89 fb e8 cf db ff ff 48                      │
│[17366.501207] RSP: 0018:ffffad1a97e7f828 EFLAGS: 00010046                                                                                                                                                                                  │
│[17366.501209] RAX: 0000000000000000 RBX: 0000000000000148 RCX: 0000000000000000                                                                                                                                                            │
│[17366.501210] RDX: ffffad1a97e7f890 RSI: 0000000000000001 RDI: 0000000000000168                                                                                                                                                            │
│[17366.501211] RBP: ffffad1a97e7f850 R08: 0000000000000001 R09: 0000000000000286                                                                                                                                                            │
│[17366.501212] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000                                                                                                                                                            │
│[17366.501213] R13: 0000000000000001 R14: ffff8a32e2c2d950 R15: 0000000000000080                                                                                                                                                            │
│[17366.501215] FS:  0000000000000000(0000) GS:ffff8a39f8880000(0000) knlGS:0000000000000000                                                                                                                                                 │
│[17366.501216] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033                                                                                                                                                                            │
│[17366.501217] CR2: 0000000000000170 CR3: 000000054c83a000 CR4: 0000000000750ee0                                                                                                                                                            │
│[17366.501219] PKRU: 55555554                                                                                                                                                                                                               │
│[17366.501220] Call Trace:                                                                                                                                                                                                                  │
│[17366.501222]  <TASK>                                                                                                                                                                                                                      │
│[17366.501225]  ? show_regs+0x6d/0x80                                                                                                                                                                                                       │
│[17366.501229]  ? __die+0x24/0x80                                                                                                                                                                                                           │
│[17366.501231]  ? page_fault_oops+0x99/0x1b0                                                                                                                                                                                                │
│[17366.501235]  ? do_user_addr_fault+0x31d/0x6b0                                                                                                                                                                                            │
│[17366.501237]  ? exc_page_fault+0x83/0x1b0                                                                                                                                                                                                 │
│[17366.501240]  ? asm_exc_page_fault+0x27/0x30                                                                                                                                                                                              │
│[17366.501245]  ? timer_delete+0x2c/0x90                                                                                                                                                                                                    │
│[17366.501248]  try_to_grab_pending+0x109/0x1a0                                                                                                                                                                                             │
│[17366.501251]  __cancel_work_timer+0x3f/0x1b0                                                                                                                                                                                              │
│[17366.501253]  ? srso_alias_return_thunk+0x5/0x7f                                                                                                                                                                                          │
│[17366.501255]  ? kernfs_name_hash+0x17/0x90                                                                                                                                                                                                │
│[17366.501259]  ? srso_alias_return_thunk+0x5/0x7f                                                                                                                                                                                          │
│[17366.501260]  ? kernfs_find_ns+0x3a/0xe0                                                                                                                                                                                                  │
│[17366.501263]  cancel_delayed_work_sync+0x13/0x20                                                                                                                                                                                          │
│[17366.501267]  magicmouse_remove+0x20/0x40 [hid_magicmouse]                                                                                                                                                                                │
│[17366.501272]  hid_device_remove+0x45/0xd0 [hid]                                                                                                                                                                                           │
│[17366.501277]  device_remove+0x40/0x80                                                                                                                                                                                                     │
│[17366.501281]  device_release_driver_internal+0x20b/0x270                                                                                                                                                                                  │
│[17366.501283]  ? srso_alias_return_thunk+0x5/0x7f                                                                                                                                                                                          │
│[17366.501285]  device_release_driver+0x12/0x20                                                                                                                                                                                             │
│[17366.501290]  bus_remove_device+0xcb/0x140                                                                                                                                                                                                │
│[17366.501295]  device_del+0x161/0x3e0                                                                                                                                                                                                      │
│[17366.501298]  ? __hid_bpf_destroy_device+0x139/0x1a0                                                                                                                                                                                      │
│[17366.501304]  hid_destroy_device+0x55/0x70 [hid]                                                                                                                                                                                          │
│[17366.501312]  usbhid_disconnect+0x49/0x70 [usbhid]                                                                                                                                                                                        │
│[17366.501318]  usb_unbind_interface+0x8e/0x280                                                                                                                                                                                             │
│[17366.501323]  device_remove+0x65/0x80                                     
│[17366.501326]  device_release_driver_internal+0x20b/0x270                                                                                                                                                                                  │
│[17366.501328]  ? srso_alias_return_thunk+0x5/0x7f                                                                                                                                                                                          │
│[17366.501332]  device_release_driver+0x12/0x20                                                                                                                                                                                             │
│[17366.501334]  bus_remove_device+0xcb/0x140                                                                                                                                                                                                │
│[17366.501337]  device_del+0x161/0x3e0                                                                                                                                                                                                      │
│[17366.501340]  ? kobject_put+0x67/0xa0                                                                                                                                                                                                     │
│[17366.501345]  usb_disable_device+0xd5/0x280                                                                                                                                                                                               │
│[17366.501348]  usb_disconnect+0xe9/0x2e0                                                                                                                                                                                                   │
│[17366.501352]  hub_port_connect+0x90/0xc30                                                                                                                                                                                                 │
│[17366.501356]  ? srso_alias_return_thunk+0x5/0x7f                                                                                                                                                                                          │
│[17366.501359]  hub_port_connect_change+0x91/0x300                                                                                                                                                                                          │
│[17366.501363]  port_event+0x652/0x810                                                                                                                                                                                                      │
│[17366.501368]  hub_event+0x155/0x450                                                                                                                                                                                                       │
│[17366.501372]  process_one_work+0x23d/0x450                                                                                                                                                                                                │
│[17366.501376]  worker_thread+0x50/0x3f0                                                                                                                                                                                                    │
│[17366.501380]  ? __pfx_worker_thread+0x10/0x10                                                                                                                                                                                             │
│[17366.501382]  kthread+0xef/0x120                                                                                                                                                                                                          │
│[17366.501386]  ? __pfx_kthread+0x10/0x10                                                                                                                                                                                                   │
│[17366.501390]  ret_from_fork+0x44/0x70                                                                                                                                                                                                     │
│[17366.501394]  ? __pfx_kthread+0x10/0x10                                                                                                                                                                                                   │
│[17366.501397]  ret_from_fork_asm+0x1b/0x30                                                                                                                                                                                                 │
│[17366.501403]  </TASK>                                                                                                                                                                                                                     │
│[17366.501404] Modules linked in: rfcomm xt_multiport nft_compat nf_tables nfnetlink rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace fscache netfs vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) bridge stp llc cmac algif_hash algif_skcipher│
│ af_alg bnep sunrpc binfmt_misc zfs(PO) spl(O) intel_rapl_msr intel_rapl_common snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg snd_usb_audio snd_intel_sdw_acpi snd_usbmidi_lib snd_hda_codec snd_ump mt7921e mc snd_hda_core edac_mce_am│
│d snd_hwdep mt7921_common snd_pcm mt76_connac_lib kvm_amd mt76 snd_seq_midi snd_seq_midi_event mac80211 snd_rawmidi kvm btusb btrtl snd_seq btbcm btintel irqbypass btmtk snd_seq_device rapl bluetooth hid_magicmouse(OE) snd_timer ch341 x│
│r_serial joydev xpad ecdh_generic cfg80211 usbserial snd input_leds apple_mfi_fastcharge nls_iso8859_1 ff_memless cdc_acm ecc gigabyte_wmi wmi_bmof ccp k10temp libarc4 soundcore mac_hid sch_fq_codel msr parport_pc ppdev lp parport efi_p│
│store ip_tables x_tables autofs4 btrfs blake2b_generic raid10 raid456 async_raid6_recov                                                                                                                                                     │
│[17366.501500]  async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear dm_mirror dm_region_hash dm_log hid_logitech_hidpp hid_logitech_dj uas usb_storage hid_generic usbhid hid amdgpu amdxcp iommu_v│
│2 drm_buddy gpu_sched i2c_algo_bit drm_suballoc_helper drm_ttm_helper ttm crct10dif_pclmul drm_display_helper crc32_pclmul polyval_clmulni polyval_generic cec ghash_clmulni_intel sha256_ssse3 rc_core sha1_ssse3 aesni_intel drm_kms_helpe│
│r nvme crypto_simd cryptd i2c_piix4 drm nvme_core ahci xhci_pci igc libahci xhci_pci_renesas nvme_common video wmi                                                                                                                          │
│[17366.501553] CR2: 0000000000000170                                                                                                                                                                                                        │
│[17366.501555] ---[ end trace 0000000000000000 ]---                                                                                                                                                                                         │
│[17367.245345] RIP: 0010:timer_delete+0x2c/0x90                                                                                                                                                                                             │
│[17367.245355] Code: 44 00 00 55 48 89 e5 41 55 41 54 45 31 e4 53 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 45 e0 31 c0 48 c7 45 d8 00 00 00 00 <48> 8b 47 08 48 85 c0 74 2e 48 8d 75 d8 48 89 fb e8 cf db ff ff 48                      │
│[17367.245358] RSP: 0018:ffffad1a97e7f828 EFLAGS: 00010046                                                                                                                                                                                  │
│[17367.245361] RAX: 0000000000000000 RBX: 0000000000000148 RCX: 0000000000000000                                                                                                                                                            │
│[17367.245363] RDX: ffffad1a97e7f890 RSI: 0000000000000001 RDI: 0000000000000168                                                                                                                                                            │
│[17367.245365] RBP: ffffad1a97e7f850 R08: 0000000000000001 R09: 0000000000000286                                                                                                                                                            │
│[17367.245367] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000                                                                                                                                                            │
│[17367.245368] R13: 0000000000000001 R14: ffff8a32e2c2d950 R15: 0000000000000080                                                                                                                                                            │
│[17367.245370] FS:  0000000000000000(0000) GS:ffff8a39f8880000(0000) knlGS:0000000000000000                                                                                                                                                 │
│[17367.245372] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033                                                                                                                                                                            │
│[17367.245374] CR2: 0000000000000170 CR3: 0000000121f42000 CR4: 0000000000750ee0                                                                                                                                                            │
│[17367.245375] PKRU: 55555554                                                                                        

Any way to adjust touch sensitivity?

Thanks so much for your work on this, I've finally got an automatically connecting Magic Mouse on boot and after suspend.

I have a question though, do you know any way to adjust the touch sensitivity to make it more in line with how it behaves when connected to MacOS? At the moment it is too easy to trigger a scroll accidentally as the sensitivity to touch is so high. On MacOS I think it ignores the first few ticks of scrolling so it requires a bit more finger movement to activate. This helps reduce accidental touch events.

Apple Magic Trackpad (A1339) turns off every few minutes.

Apple Magic Trackpad (A1339) turns off every few minutes. I am using Ubuntu 23.04.
libinput --version: 1.22.1.
The trackpad periodically turns off and then, after a dozen seconds, reconnects. I'll attach a report from hciconfig, bluetoothctl, syslog, sudo btmon:
https://pastebin.com/3A9EXusp

I love using the trackpad, but these reconnections make interacting with it impossible. This trackpad works great with android phone and doesn't have any reconnects. Connectivity is constantly lost with Ubuntu. This also happens with different usb bluetooth dongles.
This issue has been reported here:
https://bugs.launchpad.net/linux/+bug/1834085
and
https://bugzilla.kernel.org/show_bug.cgi?id=204589

I booted Ubuntu 23.04(kernel 6.2.0) from a flash drive - the same error:
https://pastebin.com/5KtUjCHQ

I booted from Fedor's(kernel 6.2.9) flash drive - error:
https://pastebin.com/4LJC7NJQ

When using Fedora, communication breaks also occur.
Today I tried altlinux and this problem persists.

What other logs and reports do I need to provide in order to sort out the problem?
Where else can you write about it?
Thank you!

[Not a bug] Thank you!

Just wanted to drop by and say "thanks!" this fixed my problems and nothing else worked. You rock for sharing it.

What are your preferred configurations?

Have you changed the configuration for the driver?

What are your changes in /etc/modprobe.d/hid-magicmouse.conf?

Lets see what you prefer so that we can have a more informed configuration file.

Mouse sensitivity/resolution

Using a Magic Mouse 2 with this driver, the minimum I can move the mouse seems to be in jumps of about 4 pixels. Could there be a way to adjust this driver to allow for more fine-grained movement?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.