RatSlap

Linux configuration tool for Logitech mice (currently only G300/G300S)

RatSlap source is available on GitLab, GitHub and BitBucket with the primary (public) repository being GitLab.

IDProjectCategoryTask TypeSeveritySummaryStatusProgressLast Edited
125RatSlapUncategorisedBug ReportMediumError assigning Num+New
0%
2018-08-06 Task Description

From GitHub Issue #16 by vdomos :

  Hi,
  
  I have this error when assign a button to LeftCtrl+Num+ (zoom+ in FIrefox),
  LeftCtrl+Num- is ok.
  
      $ ./ratslap --modify F3 --G7 LeftCtrl+Num+ --G6 LeftCtrl+Num- --print F3 --select F3                  
      RatSlap v0.2.2-tags/0.2.2^0 (BUILT: 2018-07-11 11:06:16+0200)
      Copyright (C) 2016 Todd Harbour
      Linux configuration tool for Logitech mice (currently only G300/G300S)
      https://gitlab.com/krayon/ratslap/
      Found Logitech G300s (046d:c246) @ 0x5568a0d53ce0
      Detaching kernel driver...
      Modifying Mode: F3
          Setting button 7: LeftCtrl+Num+
      20180712T132246+0200 [E]           main.c:01101:set_mode_button ERROR: Invalid modifier (Num) specified: LeftCtrl+Num+
          Setting button 6: LeftCtrl+Num-
      Saving Mode: F3
      Printing Mode: F3
        Colour:              cyan
        Report Rate:          500
        DPI #1:               500
        DPI #2:        (DEF) 1000
        DPI #3:              1500
        DPI #4:              2500
        DPI Shift:           NOT SET
        Left Click (But1):   Button1
        Right Click (But2):  Button2
        Middle Click (But3): Button3
        G4:                  Button6
        G5:                  Button7
        G6:                  LeftCtrl + Num-
        G7:                  Button9
        G8:                  LeftCtrl + Tab
        G9:                  LeftCtrl + LeftShift + Tab
      Mode Selection Specified: F3
      Selecting Mode: F3
      Attaching kernel driver...
 124 RatSlapUncategorisedBug ReportMedium Failed operations don't abort execution Closed
100%
2018-08-061 Task Description

A failed operation doesn’t abort execution such that subsequent parameters are
still parsed and executed. eg.

$ ./ratslap -s INVALID1 -s INVALID2 -s INVALID3
RatSlap v0.2.2 (BUILT: 2018-05-01 01:00:50+1000)
Copyright (C) 2016 Todd Harbour
Linux configuration tool for Logitech mice (currently only G300/G300S)
https://gitlab.com/krayon/ratslap/
Found Logitech G300s (046d:c246) @ 0x1470620
Detaching kernel driver...
20180711T012738+1000 [E]           main.c:01322:main            ERROR: Invalid mode for select option: INVALID1
20180711T012738+1000 [E]           main.c:01322:main            ERROR: Invalid mode for select option: INVALID2
20180711T012738+1000 [E]           main.c:01322:main            ERROR: Invalid mode for select option: INVALID3
Attaching kernel driver...

I can’t think of any way at present that this could be bad but it’s probably
not a good idea.

 123 RatSlapUncategorisedBug ReportLow Check mode_load() return code Closed
100%
2018-08-061 Task Description

Currently we are not checking the return code of mode_load(). This could lead
to weird results in the printing of a mode.

 122 RatSlapUncategorisedBug ReportLow Help shouldn't require USB permissions Closed
100%
2018-08-064 Task Description

From GitHub Issue #15 by ChillyWillyGuru:

If you run 'ratslap -h' normally such that the user doesn't have access to
the usb, you get an error about not being able to do any usb ops rather than
the help. Help should ALWAYS be available. I'd suggest checking if the help
option has been asked for first before anything else, and if so print the
help and exit. Only if the user doesn't want help should it then try to get
the usb.
 121 RatSlapUncategorisedBug ReportLow set_debug is deprecated, use libusb_set_option instead Closed
100%
2018-07-101 Task Description

From GitHub PR #14 by captn3m0 :

Use libusb_set_option, set_debug is deprecated

119RatSlapUncategorisedBug ReportLowUnrecognised keys/buttons fail silentlyNew
0%
2018-08-06 Task Description

QB#118 shows that unrecognised parameters (such as “button5”) fail silently,
assigning 000000h instead of reporting an error.

118RatSlapUncategorisedBug ReportLowButton5 cannot be assigned to G5New
0%
2018-08-062 Task Description

From GitHub Issue #9 by adrfantini:

I have a very weird behaviour here. After having modified many buttons to
suit my needs, I have the following problem.

I cannot assign many software mouse Buttons to many hardware buttons.
Assigning keys seems to always work tho.

Say I am in this situation:
...
  sudo ratslap --p F3
  Left Click (But1):   Button1
  Right Click (But2):  Button2
  Middle Click (But3): Button3
  G4:                  
  G5:                  
  G6:                  
  G7:                  
  G8:                  ModeSwitch
  G9:                  DPICycle
...
Now let's try to modify it with:
  sudo ratslap --modify F3 --G4 Button4
Result:
  sudo ratslap --p F3
  Left Click (But1):   Button1
  Right Click (But2):  Button2
  Middle Click (But3): Button3
  G4:                  
  G5:                  
  G6:                  
  G7:                  
  G8:                  ModeSwitch
  G9:                  DPICycle
Nothing! Let's try assigning keys instead:
  sudo ratslap --modify F3 --G4 LeftAlt+K
  Left Click (But1):   Button1
  Right Click (But2):  Button2
  Middle Click (But3): Button3
  G4:                  LeftAlt + K
  G5:                  
  G6:                  
  G7:                  
  G8:                  ModeSwitch
  G9:                  DPICycle
Works...

In short, I can seem to bind mouse Buttons anymore!

However, some, like sudo ratslap --modify F3 --G7 Button9 work, while others,
like sudo ratslap --modify F3 --G7 Button5 do not.
 117 RatSlapUncategorisedBug ReportLow Compile fails when ctags missing Closed
100%
2017-02-271 Task Description

From GitHub Issue #7 by akred :

  Hello,
  
  Can you add documentation in order to explain how to install this tool please ?
  For those who are not familiar to C language.
  On my side, I have download sources and run the command "make", but I have an error which is :
  
      /bin/sh: 1: ctags: not found
      Makefile:170 : la recette pour la cible ? ctags ? a ?chou?e
      make: *** [ctags] Erreur 127
  
  Thanks for your help

Obviously ctags shouldn’t be required for compilation, only development.

116RatSlapUncategorisedPlanned FeatureMediumModes should have simpler names such as A, B, CNew
0%
2018-08-06 Task Description

The mode names should be simpler than “F3”, “F4” and “F5”. They were only named
this way as that was the hex code for the mode, hardly user friendly.

115RatSlapUncategorisedPlanned FeatureLowAbility to save/load profilesNew
0%
2018-08-06 Task Description

Would be nice to be able to save and load profiles.

 114 RatSlapUncategorisedPlanned FeatureLow Factory reset option Closed
0%
2018-07-10 Task Description

It would be good to have a factory reset option to return the mouse to
(Logitech’s idea of) sane button assignments.

113RatSlapUncategorisedPlanned FeatureLowConfigure DPI #[1-4], DPI Default and DPI Shift valuesNew
0%
2016-11-09 Task Description

The Logitech G300s allows for 4 different DPI preset values that can be cycled
between using the assignments DPIDown, DPIUp and DPICycle.

Additionally, one of the 4 can be assigned as the DEFAULT DPI.

Lastly, a DPI Shift value can be assigned that can be temporarily switched
to be holding down the DPIShift assignment.

We need the ability to set these.

112RatSlapUncategorisedPlanned FeatureLowDistribution package should contain archNew
0%
2018-08-06 Task Description

The built dist package is named “ratslap-0.2.0.tar.gz” regardless of architecture.

 111 RatSlapUncategorisedBug ReportHigh Build fails: implicit declaration of function 'libusb_s ...Closed
100%
2017-02-271 Task Description

On systems with older libusb, libusb_strerror isn’t defined and will therefore lead to
a failure to build.

110RatSlapUncategorisedBug ReportLowDocument basic usageAssigned
70%
2016-11-081 Task Description

From https://github.com/krayon/ratslap/issues/2 :

https://github.com/jpotier wrote:

  I may be tired, but I don't get how to set say key 1 to my button G4.
  Actually, apart from calling
      ./ratslap -p f3-5
  I don't understand how you actually set a modified mode. Should I edit the
  source code and recompile?

https://github.com/thomasluquet wrote:

  Same thing, for me, the documentation it is not really clear for me...
  BTW, i try to make a draw of the mouse and the buttons, is it ok ? (i can
  send you the .odg if you want)
 109 RatSlapUncategorisedBug ReportHigh kernel driver disconnect after --listkeys Closed
100%
2016-11-08 Task Description

The kernel driver stays disconnected after calling ratslap with –listkeys.

 108 RatSlapUncategorisedBug ReportHigh kernel driver disconnect after --help/--version Closed
100%
2016-11-08 Task Description

The kernel driver stays disconnected after calling ratslap with –help or –version.

107RatSlapUncategorisedPlanned FeatureHighReset to defaults/factory reset optionAssigned
0%
2018-07-102 Task Description

At present, the original configuration is lost once you modify the modes of the
mouse. An option to return the mouse to it’s factory defaults would be
advantageous.

 106 RatSlapUncategorisedPlanned FeatureLow Modify mode - change button assignment Closed
100%
2016-11-08 Task Description

Ability to map different keys to each button

 105 RatSlapUncategorisedPlanned FeatureLow Modify mode - change mode LED colour Closed
100%
2016-11-08 Task Description

no task description

 104 RatSlapUncategorisedPlanned FeatureLow Modify mode - change refresh rate Closed
100%
2016-11-08 Task Description

Add ability to change the mouse refresh rate

 103 RatSlapUncategorisedBug ReportLow Current rev (89b0d34) does not compile Closed
100%
2016-11-083 Task Description

From https://github.com/krayon/ratslap/issues/1 by https://github.com/jpotier :

log.h:44:13: warning: inline function 'std_output' declared but never defined
  inline void std_output(FILE *strm, const char *srcfile, const int line

leading to a

main.o: In function `mouse_hid_detach_kernel':
/tmp/ratslap/main.c:596: undefined reference to `std_output'
/tmp/ratslap/main.c:601: undefined reference to `std_output'
main.o: In function `mouse_hid_attach_kernel':
/tmp/ratslap/main.c:622: undefined reference to `std_output'
/tmp/ratslap/main.c:617: undefined reference to `std_output'
main.o: In function `main':
/tmp/ratslap/main.c:745: undefined reference to `std_output'
main.o:/tmp/ratslap/main.c:501: more undefined references to `std_output' follow
collect2: error: ld returned 1 exit status
make: *** [Makefile:176: ratslap] Error 1
 102 RatSlapUncategorisedPlanned FeatureLow Print current mode settings Closed
100%
2016-11-081 Task Description

Ability to print current mode settings.

 101 RatSlapUncategorisedPlanned FeatureLow Select mode Closed
100%
2016-11-081 Task Description

Add ability to select different mouse modes.

Showing tasks 1 - 24 of 24 Page 1 of 1

Available keyboard shortcuts

Tasklist

Task Details

Task Editing