pwr-Solaar / Solaar

Linux device manager for Logitech devices
https://pwr-solaar.github.io/Solaar
GNU General Public License v2.0
5.4k stars 401 forks source link

Side-scroll breaks #2618

Open DrkShadow opened 20 hours ago

DrkShadow commented 20 hours ago

Information

``` solaar version 1.1.13 Lightspeed Receiver Device path : /dev/hidraw6 USB id : 046d:C539 Serial : 29189FD2 C Pending : ff Firmware : 39.06.B0040 Bootloader : 02.09 Other : AA.BE Has 1 paired device(s) out of a maximum of 1. Notifications: wireless, software present (0x000900) Device activity counters: (empty) 1: G502 Gaming Mouse Device path : None WPID : 407F Codename : G502 Kind : mouse Protocol : HID++ 4.2 Report Rate : 1ms Serial number: 3C045B04 Model ID: 407FC08D0000 Unit ID: 3C045B04 1: BOT 92.00.B0008 0: MPM 17.00.B0008 3: The power switch is located on the base. Supports 30 HID++ 2.0 features: 0: ROOT {0000} V0 1: FEATURE SET {0001} V0 2: DEVICE FW VERSION {0003} V2 Firmware: Bootloader BOT 92.00.B0008 AAEF21F1FA5F Firmware: Firmware MPM 17.00.B0008 407F21F1FA5F Firmware: Other Unit ID: 3C045B04 Model ID: 407FC08D0000 Transport IDs: {'wpid': '407F', 'usbid': 'C08D'} 3: DEVICE NAME {0005} V0 Name: G502 LIGHTSPEED Wireless Gaming Mouse Kind: mouse 4: WIRELESS DEVICE STATUS {1D4B} V0 5: CONFIG CHANGE {0020} V0 Configuration: 11000000000000000000000000000000 6: BATTERY VOLTAGE {1001} V2 Battery: 70% 3945mV , discharging. 7: COLOR LED EFFECTS {8070} V4 LED Control (saved): Solaar LED Control : Solaar LEDs Primary (saved): !LEDEffectSetting {ID: 0, color: 16711680, intensity: 0, period: 100, ramp: 0, speed: 0} LEDs Primary : None LEDs Logo (saved): !LEDEffectSetting {ID: 0, color: 2142890, intensity: 0, period: 100, ramp: 0, speed: 0} LEDs Logo : None 8: LED CONTROL {1300} V0 9: ONBOARD PROFILES {8100} V0 Device Mode: Host Onboard Profiles (saved): Disabled Onboard Profiles : Disabled 10: MOUSE BUTTON SPY {8110} V0 11: REPORT RATE {8060} V0 Report Rate: 1ms Report Rate (saved): 1ms Report Rate : 1ms 12: ADJUSTABLE DPI {2201} V1 Sensitivity (DPI) (saved): 1300 Sensitivity (DPI) : 1300 13: DEVICE RESET {1802} V0 internal, hidden 14: unknown:1803 {1803} V0 internal, hidden 15: OOBSTATE {1805} V0 internal, hidden 16: CONFIG DEVICE PROPS {1806} V4 internal, hidden 17: unknown:1811 {1811} V0 internal, hidden 18: unknown:1830 {1830} V0 internal, hidden 19: unknown:1890 {1890} V4 internal, hidden 20: unknown:1891 {1891} V4 internal, hidden 21: unknown:18A1 {18A1} V0 internal, hidden 22: unknown:1801 {1801} V0 internal, hidden 23: unknown:18B1 {18B1} V0 internal, hidden 24: unknown:1DF3 {1DF3} V0 internal, hidden 25: unknown:1E00 {1E00} V0 hidden 26: unknown:1EB0 {1EB0} V0 internal, hidden 27: unknown:1863 {1863} V0 internal, hidden 28: unknown:1E22 {1E22} V0 internal, hidden 29: HIRES WHEEL {2121} V0 Multiplier: 8 Has invert: Normal wheel motion Has ratchet switch: Normal wheel mode Low resolution mode HID notification Scroll Wheel Direction (saved): False Scroll Wheel Direction : False Scroll Wheel Resolution (saved): False Scroll Wheel Resolution : False Scroll Wheel Diversion (saved): False Scroll Wheel Diversion : False Battery: 70% 3945mV , discharging. ```
``` - 1.1.13 - _NAME: G502 Gaming Mouse _absent: [hi-res-scroll, lowres-scroll-mode, scroll-ratchet, smart-shift, thumb-scroll-invert, thumb-scroll-mode, report_rate_extended, pointer_speed, dpi_extended, speed-change, backlight, backlight_level, backlight_duration_hands_out, backlight_duration_hands_in, backlight_duration_powered, backlight-timed, rgb_control, rgb_zone_, brightness_control, per-key-lighting, fn-swap, reprogrammable-keys, persistent-remappable-keys, divert-keys, disable-keyboard-keys, crown-smooth, divert-crown, divert-gkeys, m-key-leds, mr-key-led, multiplatform, change-host, gesture2-gestures, gesture2-divert, gesture2-params, sidetone, equalizer, adc_power_management] _battery: 4097 _modelId: 407FC08D0000 _sensitive: {dpi: true, hires-scroll-mode: false, hires-smooth-invert: false, hires-smooth-resolution: true, led_control: true, led_zone_1: true, led_zone_2: true, onboard_profiles: false, report_rate: false} _serial: 3C045B04 _unitId: 3C045B04 _wpid: 407F dpi: 1300 hires-scroll-mode: false hires-smooth-invert: false hires-smooth-resolution: false led_control: 1 led_zone_1: !LEDEffectSetting {ID: 0, color: 16711680, intensity: 0, period: 100, ramp: 0, speed: 0} led_zone_2: !LEDEffectSetting {ID: 0, color: 2142890, intensity: 0, period: 100, ramp: 0, speed: 0} onboard_profiles: 0 report_rate: 1 ```

Describe the bug Side scrolling breaks shortly after plugging in the mouse. It seems to be related to Scroll Wheel Resolution (which I disable, because I hate the partial-line scroll, and also scrolling between clicks).

This seems related to https://github.com/pwr-Solaar/Solaar/issues/86. When I run xev, the left-and-right scroll of the scroll wheel show buttons 14 and 15 (whereas the issue suggests it should be 6 and 7).

``` ButtonPress event, serial 47, synthetic NO, window 0x5400001, root 0x4ab, subw 0x0, time 3003316313, (113,72), root:(2140,754), state 0x10, button 15, same_screen YES ButtonRelease event, serial 47, synthetic NO, window 0x5400001, root 0x4ab, subw 0x0, time 3003316504, (113,72), root:(2140,754), state 0x10, button 15, same_screen YES ButtonPress event, serial 47, synthetic NO, window 0x5400001, root 0x4ab, subw 0x0, time 3003317262, (113,72), root:(2140,754), state 0x10, button 14, same_screen YES ButtonRelease event, serial 47, synthetic NO, window 0x5400001, root 0x4ab, subw 0x0, time 3003317442, (113,72), root:(2140,754), state 0x10, button 14, same_screen YES ```

If I unplug the receiver and plug it back in, it works all right; because I'm not in plugdev group, I change the owner of the hiddev devices in /dev to my user, start solaar, and side-scroll stops working.