Skip to content
  • Peter Hutterer's avatar
    test: unset MOUSE_DPI for the apple magic mouse · c5f39394
    Peter Hutterer authored
    
    
    As of systemd commit f013e99e160f385a0c02793c612ef4c8a8ffc4d7, ID_BUS is now
    set for all bluetooth devices, not just those with subsystem bluetooth. This
    affects the Apple Magic Mouse and sets the systemd hwdb's MOUSE_DPI value.
    
    That value is different to the test results we currently have, causing some
    tests to fail because different deltas are generated (e.g.
    pointer_scroll_button).
    
    Our udev rules are prefixed 99 and thus apply after the various system rules.
    So we can't easily set ID_BUS in our rule because it'll apply after
    70-mouse.rules checks for the bustype. So we'd have to detect systemd version
    or so, but the easy way is to simply force MOUSE_DPI to the empty value. For
    our test cases it doesn't matter if the DPI is set correctly anyway.
    
    Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
    (cherry picked from commit 4030959f)
    c5f39394