From 8c803b415ea9627cdcdb33d96a4f88ecc256296e Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Tue, 31 Jan 2023 09:30:13 -0500 Subject: [PATCH] ui: ignore smooth scroll settings by default --- docs/index.md | 4 ++-- lib/solaar/configuration.py | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 736b3d4f..e664e8d0 100644 --- a/docs/index.md +++ b/docs/index.md @@ -138,11 +138,11 @@ for the step-by-step procedure for manual installation. Running other programs that modify these settings, such as logiops, will likely result in unexpected device behavior. -- The Linux HID++ driver modifies the setting Scroll Wheel Resolution to +- The Linux HID++ driver modifies the Scroll Wheel Resolution setting to implement smooth scrolling. If Solaar later changes this setting scrolling can be either very fast or very slow. To fix this problem click on the icon at the right edge of the setting to set it to - "Ignore this setting". + "Ignore this setting", which is the default for new devices. The mouse has to be reset (e.g., by turning it off and on again) before this fix will take effect. - The driver also sets the scrolling direction to its normal setting when implementing smooth scrolling. diff --git a/lib/solaar/configuration.py b/lib/solaar/configuration.py index a7e577ab..18aeea19 100644 --- a/lib/solaar/configuration.py +++ b/lib/solaar/configuration.py @@ -112,6 +112,12 @@ def _device_entry_from_config_dict(data, discard_derived_properties): data.pop('mouse-gestures', None) # remove any string entries (from bad conversions) data['divert-keys'] = {k: v for k, v in divert.items() if isinstance(k, int)} + if data.get('_sensitive', None) is None: # make scroll wheel settings default to ignore + data['_sensitive'] = { + 'hires-smooth-resolution': 'ignore', + 'hires-smooth-invert': 'ignore', + 'hires-scroll-mode': 'ignore' + } if discard_derived_properties: data.pop('_absent', None) data.pop('_battery', None)