Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device.py:204:name:TypeError: 'str' object cannot be interpreted as an integer #2652

Open
rathann opened this issue Oct 28, 2024 · 3 comments
Labels

Comments

@rathann
Copy link
Contributor

rathann commented Oct 28, 2024

Information

  • Solaar version (solaar --version or git describe --tags if cloned from this repository): 1.1.13
  • Distribution: Fedora
  • Kernel version (ex. uname -srmo): 6.10.8-200.fc40.x86_64
  • Output of solaar show:
rules cannot access modifier keys in Wayland, accessing process only works on GNOME with Solaar Gnome extension installed
2024-10-28 15:53:44,792,792     INFO [MainThread] hidapi.udev: Report Descriptor not processed for DEVICE /dev/hidraw2 BID 0003 VID 0000043E PID 00009A39: Expecting 64 usages but got 1
2024-10-28 15:53:44,794,794     INFO [MainThread] hidapi.udev: Report Descriptor not processed for DEVICE /dev/hidraw0 BID 0018 VID 000006CB PID 0000CD8C: Unsupported global tag: 0b101
2024-10-28 15:53:44,798,798     INFO [MainThread] hidapi.udev: Found device /dev/hidraw1 BID 0005 VID 0000046D PID 0000B023 HID++ False True USB None None
2024-10-28 15:53:44,798,798     INFO [MainThread] hidapi.udev: OPEN PATH /dev/hidraw1
2024-10-28 15:53:44,798,798     INFO [MainThread] logitech_receiver.base: New lock 17
2024-10-28 15:53:44,885,885     INFO [MainThread] hidapi.udev: Found device /dev/hidraw3 BID 0005 VID 0000046D PID 0000B367 HID++ False True USB None None
2024-10-28 15:53:44,885,885     INFO [MainThread] hidapi.udev: OPEN PATH /dev/hidraw3
2024-10-28 15:53:44,885,885     INFO [MainThread] logitech_receiver.base: New lock 18
solaar version 1.1.13


MX Master 3 Wireless Mouse
     Device path  : /dev/hidraw1
     USB id       : 046d:B023
     Codename     : MX Master 3
     Kind         : mouse
     Protocol     : HID++ 4.5
     Serial number: 
     Model ID:      B02340820000
     Unit ID:       3CAB7E82
                 1: BOT 95.00.B0013
                 0: MPM 19.01.B0015
                 3: 
     Supports 31 HID++ 2.0 features:
         0: ROOT                   {0000} V0     
         1: FEATURE SET            {0001} V0     
         2: DEVICE FW VERSION      {0003} V3     
            Firmware: Bootloader BOT 95.00.B0013 0000D8279515
            Firmware: Firmware MPM 19.01.B0015 B0236A9CA89D
            Firmware: Other   
            Unit ID: 3CAB7E82  Model ID: B02340820000  Transport IDs: {'btleid': 'B023', 'wpid': '4082'}
         3: DEVICE NAME            {0005} V0     
            Name: Wireless Mouse MX Master 3
            Kind: mouse
         4: WIRELESS DEVICE STATUS {1D4B} V0     
         5: CONFIG CHANGE          {0020} V0     
            Configuration: 00000000000000000000000000000000
         6: CRYPTO ID              {0021} V1     
         7: DEVICE FRIENDLY NAME   {0007} V0     
            Friendly Name: MX Master 3
         8: BATTERY STATUS         {1000} V1     
            Battery: 100%, discharging, next level 50%.
         9: REPROG CONTROLS V4     {1B04} V4     
            Key/Button Actions (saved): {Left Button:Left Click, Right Button:Right Click, Middle Button:Mouse Middle Button, Back Button:Mouse Back Button, Forward Button:Mouse Forward Button, Mouse Gesture Button:Gesture Button Navigation, Smart Shift:Smart Shift}
            Key/Button Actions        : {Left Button:Left Click, Right Button:Right Click, Middle Button:Mouse Middle Button, Back Button:Mouse Back Button, Forward Button:Mouse Forward Button, Mouse Gesture Button:Gesture Button Navigation, Smart Shift:Smart Shift}
            Key/Button Diversion (saved): {Middle Button:Regular, Back Button:Regular, Forward Button:Regular, Mouse Gesture Button:Mouse Gestures, Smart Shift:Regular}
            Key/Button Diversion        : {Middle Button:Regular, Back Button:Regular, Forward Button:Regular, Mouse Gesture Button:Regular, Smart Shift:Regular}
        10: CHANGE HOST            {1814} V1     
            Change Host        : 3:kunta-carbon-fedora
        11: XY STATS               {2250} V1     
        12: ADJUSTABLE DPI         {2201} V1     
            Sensitivity (DPI) (saved): 1000
            Sensitivity (DPI)        : 1000
        13: SMART SHIFT            {2110} V0     
            Scroll Wheel Ratcheted (saved): Ratcheted
            Scroll Wheel Ratcheted        : Ratcheted
            Scroll Wheel Ratchet Speed (saved): 10
            Scroll Wheel Ratchet Speed        : 10
        14: HIRES WHEEL            {2121} V1     
            Multiplier: 15
            Has invert: Normal wheel motion
            Has ratchet switch: Normal wheel mode
            High resolution mode
            HID notification
            Scroll Wheel Direction (saved): False
            Scroll Wheel Direction        : False
            Scroll Wheel Resolution (saved): True
            Scroll Wheel Resolution        : True
            Scroll Wheel Diversion (saved): False
            Scroll Wheel Diversion        : False
        15: THUMB WHEEL            {2150} V0     
            Thumb Wheel Direction (saved): False
            Thumb Wheel Direction        : False
            Thumb Wheel Diversion (saved): False
            Thumb Wheel Diversion        : False
        16: WHEEL STATS            {2251} V0     
        17: DFUCONTROL SIGNED      {00C2} V0     
        18: DEVICE RESET           {1802} V0    internal, hidden 
        19: unknown:1803           {1803} V0    internal, hidden 
        20: CONFIG DEVICE PROPS    {1806} V6    internal, hidden 
        21: unknown:1813           {1813} V0    internal, hidden 
        22: OOBSTATE               {1805} V0    internal, hidden 
        23: unknown:1830           {1830} V0    internal, hidden 
        24: unknown:18A1           {18A1} V0    internal, hidden 
        25: unknown:1E00           {1E00} V0    hidden 
        26: unknown:1EB0           {1EB0} V0    internal, hidden 
        27: unknown:1861           {1861} V0    internal, hidden 
        28: unknown:9300           {9300} V0    internal, hidden 
        29: unknown:9001           {9001} V0    internal, hidden 
        30: unknown:9205           {9205} V0    internal, hidden 
     Has 8 reprogrammable keys:
         0: Left Button               , default: Left Click                  => Left Click                
             mse, analytics key events, pos:0, group:1, group mask:g1
             reporting: default
         1: Right Button              , default: Right Click                 => Right Click               
             mse, analytics key events, pos:0, group:1, group mask:g1
             reporting: default
         2: Middle Button             , default: Mouse Middle Button         => Mouse Middle Button       
             mse, reprogrammable, divertable, raw XY, analytics key events, pos:0, group:3, group mask:g1,g2,g3
             reporting: default
         3: Back Button               , default: Mouse Back Button           => Mouse Back Button         
             mse, reprogrammable, divertable, raw XY, analytics key events, pos:0, group:2, group mask:g1,g2
             reporting: default
         4: Forward Button            , default: Mouse Forward Button        => Mouse Forward Button      
             mse, reprogrammable, divertable, raw XY, analytics key events, pos:0, group:2, group mask:g1,g2
             reporting: default
         5: Mouse Gesture Button      , default: Gesture Button Navigation   => Gesture Button Navigation 
             mse, reprogrammable, divertable, raw XY, analytics key events, pos:0, group:3, group mask:g1,g2,g3
             reporting: default
         6: Smart Shift               , default: Smart Shift                 => Smart Shift               
             mse, reprogrammable, divertable, raw XY, analytics key events, pos:0, group:3, group mask:g1,g2,g3
             reporting: default
         7: Virtual Gesture Button    , default: Virtual Gesture Button      => Virtual Gesture Button    
             divertable, virtual, raw XY, force raw XY, pos:0, group:4, group mask:empty
             reporting: default
     Battery: 100%, discharging, next level 50%.

MX Mechanical Mini
     Device path  : /dev/hidraw3
     USB id       : 046d:B367
     Codename     : MX MCHNCL M
     Kind         : keyboard
     Protocol     : HID++ 4.5
     Serial number: 
     Model ID:      B36700000000
     Unit ID:       AD99EE50
                 1: BL1 50.02.B0012
                 0: RBK 72.02.B0012
                 3: 
     Supports 33 HID++ 2.0 features:
         0: ROOT                   {0000} V0     
         1: FEATURE SET            {0001} V0     
         2: DEVICE FW VERSION      {0003} V4     
            Firmware: Bootloader BL1 50.02.B0012 B367B7232F6A
            Firmware: Firmware RBK 72.02.B0012 B367B7232F6A
            Firmware: Other   
            Unit ID: AD99EE50  Model ID: B36700000000  Transport IDs: {'btleid': 'B367'}
         3: DEVICE NAME            {0005} V0     
            Name: MX Mechanical Mini
            Kind: keyboard
         4: WIRELESS DEVICE STATUS {1D4B} V0     
         5: CONFIG CHANGE          {0020} V0     
            Configuration: 00000000000000000000000000000000
         6: DEVICE FRIENDLY NAME   {0007} V0     
            Friendly Name: MX MCHNCL M
         7: UNIFIED BATTERY        {1004} V3     
            Battery: 25%, discharging.
         8: REPROG CONTROLS V4     {1B04} V5     
            Key/Button Diversion (saved): {MultiPlatform Search:Regular, Backlight Down:Regular, Backlight Up:Regular, Mute Fn:Regular, Volume Down Fn:Regular, Volume Up Fn:Regular, Voice Dictation:Regular, Open Emoji Panel:Regular, Snipping Tool:Regular, Grave Accent:Regular, Tab Key:Regular, Caps Lock:Regular, Left Shift:Regular, Left Control:Regular, Left Option/Start:Regular, Left Command/Alt:Regular, Right Command/Alt:Regular, Right Shift:Regular, Delete:Regular, Home:Regular, End:Regular, Page Up:Regular, Page Down:Regular, Mute Microphone:Regular, Backslash:Regular, Right Option/Start/2:Regular, Play Pause:Regular}
            Key/Button Diversion        : {MultiPlatform Search:Regular, Backlight Down:Regular, Backlight Up:Regular, Mute Fn:Regular, Volume Down Fn:Regular, Volume Up Fn:Regular, Voice Dictation:Regular, Open Emoji Panel:Regular, Snipping Tool:Regular, Grave Accent:Regular, Tab Key:Regular, Caps Lock:Regular, Left Shift:Regular, Left Control:Regular, Left Option/Start:Regular, Left Command/Alt:Regular, Right Command/Alt:Regular, Right Shift:Regular, Delete:Regular, Home:Regular, End:Regular, Page Up:Regular, Page Down:Regular, Mute Microphone:Regular, Backslash:Regular, Right Option/Start/2:Regular, Play Pause:Regular}
         9: CHANGE HOST            {1814} V1     
            Change Host        : 3:kunta-carbon-fedora
        10: HOSTS INFO             {1815} V2     
            Host 0 (paired): KUNTA-IQUNIX
            Host 1 (paired): KUNTA-CARBON
            Host 2 (paired): kunta-carbon-fedora
        11: BACKLIGHT2             {1982} V2     
            Backlight (saved): Enabled
            Backlight        : Enabled
        12: K375S FN INVERSION     {40A3} V0     
            Swap Fx function (saved): False
            Swap Fx function        : False
        13: LOCK KEY STATE         {4220} V0     
        14: KEYBOARD DISABLE KEYS  {4521} V0     
            Disable keys (saved): {Caps Lock:False, Scroll Lock:False, Insert:False, Win:False}
            Disable keys        : {Caps Lock:False, Scroll Lock:False, Insert:False, Win:False}
        15: MULTIPLATFORM          {4531} V1     
            Set OS (saved): Windows
            Set OS        : Windows
        16: KEYBOARD LAYOUT 2      {4540} V0     
        17: DFUCONTROL             {00C3} V0     
        18: DEVICE RESET           {1802} V0    internal, hidden, unknown:000010 
        19: unknown:1803           {1803} V0    internal, hidden, unknown:000010 
        20: CONFIG DEVICE PROPS    {1806} V8    internal, hidden, unknown:000010 
        21: unknown:1816           {1816} V0    internal, hidden, unknown:000010 
        22: OOBSTATE               {1805} V0    internal, hidden 
        23: unknown:1830           {1830} V0    internal, hidden, unknown:000010 
        24: unknown:1891           {1891} V7    internal, hidden, unknown:000008 
        25: unknown:18A1           {18A1} V0    internal, hidden, unknown:000010 
        26: unknown:1E00           {1E00} V0    hidden 
        27: unknown:1E02           {1E02} V0    internal, hidden 
        28: unknown:1602           {1602} V0     
        29: unknown:1EB0           {1EB0} V0    internal, hidden, unknown:000010 
        30: unknown:1861           {1861} V1    internal, hidden, unknown:000010 
        31: unknown:1A20           {1A20} V0    internal, hidden, unknown:000010 
        32: unknown:18B0           {18B0} V0    internal, hidden, unknown:000010 
     Has 32 reprogrammable keys:
         0: Host Switch Channel 1     , default: HostSwitch Channel 1        => HostSwitch Channel 1      
             is FN, FN sensitive, analytics key events, pos:1, group:0, group mask:empty
             reporting: default
         1: Host Switch Channel 2     , default: HostSwitch Channel 2        => HostSwitch Channel 2      
             is FN, FN sensitive, analytics key events, pos:2, group:0, group mask:empty
             reporting: default
         2: Host Switch Channel 3     , default: HostSwitch Channel 3        => HostSwitch Channel 3      
             is FN, FN sensitive, analytics key events, pos:3, group:0, group mask:empty
             reporting: default
         3: Backlight Down            , default: Backlight Down              => Backlight Down            
             is FN, FN sensitive, reprogrammable, divertable, analytics key events, pos:4, group:0, group mask:empty
             reporting: default
         4: Backlight Up              , default: Backlight Up                => Backlight Up              
             is FN, FN sensitive, reprogrammable, divertable, analytics key events, pos:5, group:0, group mask:empty
             reporting: default
         5: Voice Dictation           , default: Voice Dictation             => Voice Dictation           
             is FN, FN sensitive, reprogrammable, divertable, analytics key events, pos:6, group:0, group mask:empty
             reporting: default
         6: Open Emoji Panel          , default: Open Emoji Panel            => Open Emoji Panel          
             is FN, FN sensitive, reprogrammable, divertable, analytics key events, pos:7, group:0, group mask:empty
             reporting: default
         7: Snipping Tool             , default: Snipping Tool               => Snipping Tool             
             is FN, FN sensitive, reprogrammable, divertable, analytics key events, pos:8, group:0, group mask:empty
             reporting: default
         8: Mute Microphone           , default: Mute Microphone             => Mute Microphone           
             is FN, FN sensitive, reprogrammable, divertable, analytics key events, pos:9, group:0, group mask:empty
             reporting: default
         9: MultiPlatform Search      , default: Multiplatform Search        => Multiplatform Search      
             is FN, FN sensitive, reprogrammable, divertable, analytics key events, pos:10, group:0, group mask:empty
             reporting: default
        10: Play Pause                , default: unknown:00FD                => unknown:00FD              
             is FN, FN sensitive, reprogrammable, divertable, analytics key events, pos:11, group:0, group mask:empty
             reporting: default
        11: Mute Fn                   , default: Mute                        => Mute                      
             is FN, FN sensitive, reprogrammable, divertable, analytics key events, pos:12, group:0, group mask:empty
             reporting: default
        12: Volume Down Fn            , default: Volume Down                 => Volume Down               
             nonstandard, reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        13: Volume Up Fn              , default: Volume Up                   => Volume Up                 
             nonstandard, reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        14: Grave Accent              , default: Grave Accent                => Grave Accent              
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        15: Tab Key                   , default: Standard Tab Key            => Standard Tab Key          
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        16: Caps Lock                 , default: Caps Lock                   => Caps Lock                 
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        17: Left Shift                , default: Left Shift                  => Left Shift                
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        18: Left Control              , default: Left Control                => Left Control              
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        19: Left Option/Start         , default: Left Option/Start           => Left Option/Start         
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        20: Left Command/Alt          , default: Left Command/Alt            => Left Command/Alt          
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        21: Right Command/Alt         , default: Right Command/Alt           => Right Command/Alt         
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        22: Right Option/Start/2      , default: Right Option/Start/2        => Right Option/Start/2      
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        23: Right Shift               , default: Right Shift                 => Right Shift               
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        24: Backslash                 , default: Backslash                   => Backslash                 
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        25: Delete                    , default: Delete                      => Delete                    
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        26: Home                      , default: Home                        => Home                      
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        27: End                       , default: End                         => End                       
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        28: Page Up                   , default: Page Up                     => Page Up                   
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        29: Page Down                 , default: Page Down                   => Page Down                 
             reprogrammable, divertable, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        30: F Lock                    , default: Do Nothing One              => Do Nothing One            
             is FN, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
        31: FN Key                    , default: Do Nothing One              => Do Nothing One            
             nonstandard, analytics key events, pos:0, group:0, group mask:empty
             reporting: default
     Battery: 25%, discharging.
  • Contents of ~/.config/solaar/config.yaml (or ~/.config/solaar/config.json if ~/.config/solaar/config.yaml not present):
- 1.1.13
- _NAME: MX Master 3 Wireless Mouse
  _absent: [hi-res-scroll, lowres-scroll-mode, onboard_profiles, report_rate, 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, led_control, led_zone_, rgb_control,
    rgb_zone_, brightness_control, per-key-lighting, fn-swap, persistent-remappable-keys, disable-keyboard-keys, crown-smooth, divert-crown, divert-gkeys,
    m-key-leds, mr-key-led, multiplatform, gesture2-gestures, gesture2-divert, gesture2-params, sidetone, equalizer, adc_power_management]
  _battery: 4096
  _modelId: B02340820000
  _sensitive: {hires-scroll-mode: ignore, hires-smooth-invert: ignore, hires-smooth-resolution: ignore}
  _unitId: 3CAB7E82
  change-host: null
  divert-keys: {82: 0, 83: 0, 86: 0, 195: 2, 196: 0}
  dpi: 1000
  hires-scroll-mode: false
  hires-smooth-invert: false
  hires-smooth-resolution: true
  reprogrammable-keys: {80: 80, 81: 81, 82: 82, 83: 83, 86: 86, 195: 195, 196: 196}
  scroll-ratchet: 2
  smart-shift: 10
  thumb-scroll-invert: false
  thumb-scroll-mode: false
- _NAME: MX Mechanical Mini
  _absent: [hi-res-scroll, lowres-scroll-mode, hires-smooth-invert, hires-smooth-resolution, hires-scroll-mode, scroll-ratchet, smart-shift, thumb-scroll-invert,
    thumb-scroll-mode, onboard_profiles, report_rate, report_rate_extended, pointer_speed, dpi, dpi_extended, speed-change, backlight_level, backlight_duration_hands_out,
    backlight_duration_hands_in, backlight_duration_powered, backlight-timed, led_control, led_zone_, rgb_control, rgb_zone_, brightness_control, per-key-lighting,
    reprogrammable-keys, persistent-remappable-keys, crown-smooth, divert-crown, divert-gkeys, m-key-leds, mr-key-led, gesture2-gestures, gesture2-divert,
    gesture2-params, sidetone, equalizer, adc_power_management]
  _battery: 4100
  _modelId: B36700000000
  _sensitive: {fn-swap: true, hires-scroll-mode: ignore, hires-smooth-invert: ignore, hires-smooth-resolution: ignore}
  _unitId: AD99EE50
  backlight: 0
  change-host: null
  disable-keyboard-keys: {1: false, 4: false, 8: false, 16: false}
  divert-keys: {212: 0, 226: 0, 227: 0, 231: 0, 232: 0, 233: 0, 259: 0, 264: 0, 266: 0, 267: 0, 268: 0, 269: 0, 270: 0, 271: 0, 272: 0, 273: 0, 274: 0,
    277: 0, 279: 0, 280: 0, 281: 0, 282: 0, 283: 0, 284: 0, 286: 0, 316: 0, 321: 0}
  fn-swap: false
  multiplatform: 0
  • Errors or warrnings from Solaar:
    See above.

Describe the bug
Gestures not working after waking up from suspend.

To Reproduce
Steps to reproduce the behavior:

  1. Install Solaar
  2. Configure gestures (ex. thumb click + move left to switch workspace)
  3. Go to sleep
  4. Wake up from sleep

Screenshots
N/A

Additional context
Originally reported in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=2319333 .

Note: after re-running solaar app from launcher, the app and gestures were restored (without a crash, today).

@rathann rathann added the bug label Oct 28, 2024
@pfps
Copy link
Collaborator

pfps commented Oct 28, 2024

PR #2494 fixed this.

@pfps
Copy link
Collaborator

pfps commented Jan 2, 2025

Any info on whether #2494 fixed the problem?

@rathann
Copy link
Contributor Author

rathann commented Jan 2, 2025

I made a new build and I'll request testing from the reporter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants