Skip to content

Device settings reset when device is unplugged #764

Open

Description

@mkaito

OS

15.0 Beta (24A5279h)

LinearMouse

v0.10.0

Describe the bug

When I unplug a mouse, and then plug it back in, all settings for the device in Linear Mouse are forgotten.

To reproduce

  1. Plug in mouse
  2. Configure the device in Linear Mouse
  3. Unplug mouse
  4. Plug back in
  5. Observe LM settings have reset

Expected behavior

Device settings to be remembered

Anything else?

LinearMouse.log

Activity

  1. added
    bug
    on Jul 9, 2024
  2. lujjjh commented on Jul 9, 2024

    @lujjjh
    Collaborator

    Thank you for the feedback!

    2024-07-09 02:06:22 +0000 info DeviceManager Device removed: Razer DeathAdder V3 Pro川컠얏≒e (VID=0x1532, PID=0x00B7)
    2024-07-09 02:06:22 +0000 info DeviceManager Device removed: Razer DeathAdder V3 Pro峭컠얏턋d耀_ (VID=0x1532, PID=0x00B7)
    2024-07-09 02:06:49 +0000 info DeviceManager Device added: Razer DeathAdder V3 Pro灁汰啥敳啲䉓潈瑳䥈䑄癥捩ⵥ敄慦汵t (VID=0x1532, PID=0x00B7)
    2024-07-09 02:06:49 +0000 info DeviceManager Device added: Razer DeathAdder V3 Pro (VID=0x1532, PID=0x00B7)

    It appears that the device name has random gibberish at the end, and it's unclear what causes this. If you could test other models of mice, it might be helpful.

    When I have the time, I will try upgrading to the macOS beta to see if I can reproduce this issue.

  3. self-assigned this
    on Jul 9, 2024
  4. sc4n1a471 commented on Jul 10, 2024

    @sc4n1a471

    Same here, the mouse name has weird characters on the same beta OS: USB Laser Mouse濠삫歠㾘

  5. lujjjh commented on Jul 10, 2024

    @lujjjh
    Collaborator

    I installed macOS 15.0 Beta (24A5279h) but was unable to reproduce this issue with my Logitech mouse. It seems this might be related to specific mouse vendors.

  6. mkaito commented on Jul 12, 2024

    @mkaito
    Author

    I can no longer reproduce this issue. It just stopped happening for no apparent reason. No idea why.

  7. sc4n1a471 commented on Jul 14, 2024

    @sc4n1a471

    I also have a Logitech mouse/kb combo and it shows USB Receiver correctly, I just tested that and it does not reset the tracking speed of that mouse.

  8. sc4n1a471 commented on Jul 19, 2024

    @sc4n1a471

    The random characters don't appear all the time, sometimes it's working properly, sometimes it's not and has the chars in the name.
    In System Information, I can't see these weird names.

    2024-07-19 08:20:55 +0000	info	Device	Device initialized: USB Laser Mouse (VID=0x046D, PID=0xC069): HIDPointerResolution=400.000000, HIDPointerAccelerationType=HIDMouseAcceleration
    2024-07-19 08:20:55 +0000	info	DeviceManager	Device added: USB Laser Mouse (VID=0x046D, PID=0xC069)
    ...
    2024-07-19 08:24:22 +0000	info	Device	Device initialized: USB Laser Mouse᮴⚀䔶퇸- (VID=0x046D, PID=0xC069): HIDPointerResolution=400.000000, HIDPointerAccelerationType=HIDMouseAcceleration
    2024-07-19 08:24:22 +0000	info	DeviceManager	Device added: USB Laser Mouse᮴⚀䔶퇸- (VID=0x046D, PID=0xC069)
    

    EDIT: Forgot to mention that this Laser mouse is a Logitech mouse, too. (M500)

  9. AsamiT commented on Jul 20, 2024

    @AsamiT

    I want to chime in and say that this is absolutely an issue I've been having with my own Razer Deathadder V3 Pro. Every time I wake my Mac from sleep in 15.0 Beta, or switch my KVM inputs, LinearMouse registers it as a brand new device with a bunch of Chinese characters appended after, and I have to reconfigure the mouse from scratch all over again.

    2024-07-20 11:18:22 +0000	info	Device	Device initialized: Razer DeathAdder V3 Pro츣猚넙퐁 (VID=0x1532, PID=0x00C2): HIDPointerResolution=400.000000, HIDPointerAccelerationType=HIDMouseAcceleration
    2024-07-20 11:18:22 +0000	info	DeviceManager	Device added: Razer DeathAdder V3 Pro츣猚넙퐁 (VID=0x1532, PID=0x00C2)
    2024-07-20 11:18:22 +0000	info	Device	Restore pointer speed for device: Razer DeathAdder V3 Pro츣猚넙퐁 (VID=0x1532, PID=0x00C2): 0.068966
    2024-07-20 11:18:22 +0000	info	Device	Restore pointer acceleration for device: Razer DeathAdder V3 Pro츣猚넙퐁 (VID=0x1532, PID=0x00C2): 0.875000
    2024-07-20 11:18:22 +0000	info	Device	Update pointer acceleration for device: Razer DeathAdder V3 Pro츣猚넙퐁 (VID=0x1532, PID=0x00C2): 0.875000
    2024-07-20 11:18:22 +0000	info	Device	Last active device changed: Razer DeathAdder V3 Pro츣猚넙퐁 (VID=0x1532, PID=0x00C2), category=mouse (Reason: Received input value: usagePage=0x01, usage=0x31)
    

    LinearMouse.log

  10. lujjjh commented on Jul 20, 2024

    @lujjjh
    Collaborator

    Thank you for providing more information. Before I figure out how to reproduce this issue, there is a workaround: instead of using the GUI to edit the configuration, manually edit the linearmouse configuration file and remove the part that matches the device name. Here are the steps to do this:

    1. Click on the LinearMouse icon in the menu, and select Config -> Reveal in Finder.
    2. Open the linearmouse.json file with a text editor, and locate the snippet similar to the following one (the following snippet is to match my Logitech mouse, yours should be like "productName": "Razer DeathAdder V3 Pro" with different vendorId and productId:
          "if": {
            "device": {
              "productName": "USB Receiver",
              "vendorID": "0x46d",
              "productID": "0xc52b",
              "category": "mouse"
            }
          },
    1. Delete the productName line and save the file, making sure to follow the correct JSON format:
           "if": {
             "device": {
    -          "productName": "USB Receiver",
               "vendorID": "0x46d",
               "productID": "0xc52b",
               "category": "mouse"
             }
           },
    1. Click on the LinearMouse icon in the menu, and select Config -> Reload.

    For more information on the LinearMouse configuration file, please refer to the documentation.

  11. AsamiT commented on Jul 20, 2024

    @AsamiT

    Thank you, will give this workaround a try. :)

  12. aptkingston commented on Jul 21, 2024

    @aptkingston

    Encountering the same issue on the beta. Checking my config file, there were multiple entries for my mouse (explaining why I had to reconfigure it every time I connected it to my dock).

    In case it helps, here are the different names generated in my config file:

    • BenQ ZOWIE Gaming Mouse (correct name)
    • BenQ ZOWIE Gaming Mouse␡
    • BenQ ZOWIE Gaming Mouse\u0007
    • BenQ ZOWIE Gaming Mouse멢餖嚘逕
    • BenQ ZOWIE Gaming Mouse蘲㤫쨝䟼
    • BenQ ZOWIE Gaming Mouse\u0014脀
    • BenQ ZOWIE Gaming Mouse灁汰啥敳啲䉓潈瑳䥈䑄癥捩ⵥ敄慦汵t
    • BenQ ZOWIE Gaming Mouse쇥宖⟍㺯¹

    Looks like just random unicode to me, but maybe there's something there that helps. vendorID, serialNumber and productID are identical and correct for every entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions