--- logitech-applet-0.4~test1.orig/debian/docs +++ logitech-applet-0.4~test1/debian/docs @@ -0,0 +1 @@ +doc/article.txt --- logitech-applet-0.4~test1.orig/debian/control +++ logitech-applet-0.4~test1/debian/control @@ -0,0 +1,16 @@ +Source: logitech-applet +Section: misc +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Simon Ruggier +Build-Depends: cdbs, debhelper (>= 5), libusb-dev +Standards-Version: 3.7.2 + +Package: logitech-applet +Architecture: any +Depends: ${shlibs:Depends} +Description: Logitech mouse tweaking utility + logitech_applet is a small command line tool for setting the special + features that are available on some Logitech mice. It is particularly useful + to those who want to switch their mouse to 800cpi instead of the default + 400cpi. --- logitech-applet-0.4~test1.orig/debian/rules +++ logitech-applet-0.4~test1/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +DEB_INSTALL_MANPAGES_logitech-applet := debian/logitech_applet.1 + +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk --- logitech-applet-0.4~test1.orig/debian/changelog +++ logitech-applet-0.4~test1/debian/changelog @@ -0,0 +1,14 @@ +logitech-applet (0.4~test1-0ubuntu2) intrepid; urgency=low + + * debian/control: + - Update Maintainer field as per spec (LP: #230350). + + -- Luca Falavigna Sat, 21 Jun 2008 07:05:10 +0200 + +logitech-applet (0.4~test1-0ubuntu1) feisty; urgency=low + + * Initial release + * debian/patches/mx300-mx518.patch: patch to add support + for mx300 and mx518 mice, and 1200 and 1600 dpi + + -- Simon Ruggier Sat, 10 Feb 2007 15:21:12 -0500 --- logitech-applet-0.4~test1.orig/debian/compat +++ logitech-applet-0.4~test1/debian/compat @@ -0,0 +1 @@ +5 --- logitech-applet-0.4~test1.orig/debian/README.Debian +++ logitech-applet-0.4~test1/debian/README.Debian @@ -0,0 +1,15 @@ +logitech-applet for Debian +-------------------------- + +Here's an example udev rule that would run logitech_applet whenever a Logitech +mouse is hotplugged. It sets the cpi to 800, disables cruise control, and +symlinks the mouse's evdev device file to /dev/input/mx500: + +KERNEL=="event*" ACTION=="add" SYSFS{idVendor}=="046d"\ + SYSFS{product}=="*Mouse*" RUN+="/usr/bin/logitech_applet -d -s 800"\ + SYMLINK="input/mx500" + +To use this rule, put it into a file in /etc/udev/rules.d, like +/etc/udev/rules.d/99-custom.rules + + -- Simon Ruggier , Sat, 13 Jan 2007 00:58:32 -0500 --- logitech-applet-0.4~test1.orig/debian/logitech_applet.1 +++ logitech-applet-0.4~test1/debian/logitech_applet.1 @@ -0,0 +1,49 @@ +.TH LOGITECH "1" "January 2007" "Logitech Mouse Applet" "User Commands" +.SH NAME +Logitech \- utility to set parameters for certain Logitech mice +.SH DESCRIPTION +Tweak certain mouse settings, like the CPI, Cruise Control +.TP +\fB\-\-get\-res\fR +read the current sensor resolution +.TP +\fB\-\-set\-res\fR=\fIX\fR +set the sensor resolution to X, where X is 400 or 800 +.TP +\fB\-\-get\-cc\fR +read the current Cruise Control setting +.TP +\fB\-\-enable\-cc\fR +enable Cruise Control +.TP +\fB\-\-disable\-cc\fR +disable Cruise Control +.TP +\fB\-\-version\fR +display the program version +.TP +\fB\-\-help\fR +print this usage information +.TP +\fB\-c\fR +same as \fB\-\-get\-cc\fR +.TP +\fB\-d\fR +same as \fB\-\-disable\-cc\fR +.TP +\fB\-e\fR +same as \fB\-\-enable\-cc\fR +.TP +\fB\-g\fR +same as \fB\-\-get\-res\fR +.TP +\fB\-s\fR X +same as \fB\-\-set\-res\fR X +.TP +\fB\-h\fR +same as \fB\-\-help\fR +.TP +\fB\-v\fR +same as \fB\-\-version\fR +.SH COPYRIGHT +Copyright \(co 2002-2004 Brad Hards --- logitech-applet-0.4~test1.orig/debian/copyright +++ logitech-applet-0.4~test1/debian/copyright @@ -0,0 +1,32 @@ +This package was debianized by Simon Ruggier on +Sat, 13 Jan 2007 00:58:32 -0500. + +It was originally downloaded from: +http://freshmeat.net/redir/logitech_applet/53319/url_tgz/\ +logitech_applet-0.4test1.tar.gz +It can no longer be found there, but it is mirrored at: +http://distfiles.gentoo.org/distfiles/logitech_applet-0.4test1.tar.gz + +Upstream Author: + Brad Hards + Patches were provided by Robert Love + +Copyright (C) Brad Hards, 2002, 2003, 2004 + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free Software +Foundation; either version 2 of the License, or (at your option) any later +version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License with your +Debian GNU system, in /usr/share/common-licenses/GPL, or with the Debian +logitech-applet source package as the file COPYING. If not, write to the Free +Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. + +The Debian packaging is (C) 2007, Simon Ruggier and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- logitech-applet-0.4~test1.orig/debian/patches/mx300-mx518.patch +++ logitech-applet-0.4~test1/debian/patches/mx300-mx518.patch @@ -0,0 +1,139 @@ +diff -Nur logitech-applet-0.4test1/logitech_applet.c logitech-applet-0.4test1.new/logitech_applet.c +--- logitech-applet-0.4test1/logitech_applet.c 2004-09-21 08:18:55.000000000 -0400 ++++ logitech-applet-0.4test1.new/logitech_applet.c 2007-01-27 02:08:10.000000000 -0500 +@@ -40,6 +40,43 @@ + #endif + + #define VENDOR_LOGITECH 0x046D ++#define HAS_RES 0x01 /* mouse supports variable resolution */ ++#define HAS_SS 0x02 /* mouse supports smart scroll control */ ++#define HAS_CSR 0x04 /* mouse supports cordless status reporting and control */ ++#define HAS_SSR 0x08 /* mouse supports smart scroll reporting */ ++#define USE_CH2 0x10 /* mouse needs to use the second channel */ ++ ++struct device_table { ++ int idVendor; ++ int idProduct; ++ char* Model; ++ char* Name; ++ int flags; ++} ++ ++device_table[] = { ++ { VENDOR_LOGITECH, 0xC00E, "M-BJ58", "Wheel Mouse Optical", HAS_RES }, ++ { VENDOR_LOGITECH, 0xC00F, "M-BJ79", "MouseMan Traveler", HAS_RES }, ++ { VENDOR_LOGITECH, 0xC012, "M-BL63B", "MouseMan Dual Optical", HAS_RES }, ++ { VENDOR_LOGITECH, 0xC01B, "M-BP86", "MX310 Optical Mouse", HAS_RES }, ++ { VENDOR_LOGITECH, 0xC01D, "M-BS81A", "MX510 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR }, ++ { VENDOR_LOGITECH, 0xC01E, "M-BS81A", "MX518 Optical Mouse", HAS_RES }, ++ { VENDOR_LOGITECH, 0xC01F, "M-BS82", "MX300 Optical Mouse", HAS_RES }, ++ { VENDOR_LOGITECH, 0xC024, "M-BP82", "MX300 Optical Mouse", HAS_RES }, ++ { VENDOR_LOGITECH, 0xC025, "M-BP81A", "MX500 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR }, ++ { VENDOR_LOGITECH, 0xC031, "M-UT58A", "iFeel Mouse (silver)", HAS_RES }, ++ { VENDOR_LOGITECH, 0xC501, "C-BA4-MSE", "Mouse Receiver", HAS_CSR }, ++ { VENDOR_LOGITECH, 0xC502, "C-UA3-DUAL", "Dual Receiver", HAS_CSR | USE_CH2}, ++ { VENDOR_LOGITECH, 0xC504, "C-BD9-DUAL", "Cordless Freedom Optical", HAS_CSR | USE_CH2 }, ++ { VENDOR_LOGITECH, 0xC505, "C-BG17-DUAL", "Cordless Elite Duo", HAS_SS | HAS_SSR | HAS_CSR | USE_CH2}, ++ { VENDOR_LOGITECH, 0xC506, "C-BF16-MSE", "MX700 Optical Mouse", HAS_SS | HAS_CSR }, ++ { VENDOR_LOGITECH, 0xC508, "C-BA4-MSE", "Cordless Optical TrackMan", HAS_SS | HAS_CSR }, ++ { VENDOR_LOGITECH, 0xC50B, "967300-0403", "Cordless MX Duo Receiver", HAS_SS|HAS_CSR }, ++ { VENDOR_LOGITECH, 0xC50E, "M-RAG97", "MX1000 Laser Mouse", HAS_SS | HAS_CSR }, ++ { VENDOR_LOGITECH, 0xC702, "C-UF15", "Receiver for Cordless Presenter", HAS_CSR }, ++ { 0, 0, 0, 0, 0 } ++}; ++ + + int get_resolution(struct usb_device *dev) + { +@@ -141,7 +178,12 @@ + return cruise; + } + +-/* resolution should be 0x03 for 400cpi, 0x04 for 800cpi */ ++/* resolution should be: ++ * - 0x03 for 400cpi ++ * - 0x04 for 800cpi ++ * - 0x05 for 1200cpi ++ * - 0x06 for 1600cpi ++ */ + int set_resolution(struct usb_device *dev, int resolution) + { + usb_dev_handle *usb_h; +@@ -233,39 +275,6 @@ + printf("Logitech Mouse Applet, Version %s\n", VERSION); + } + +-#define HAS_RES 0x01 /* mouse supports variable resolution */ +-#define HAS_SS 0x02 /* mouse supports smart scroll control */ +-#define HAS_CSR 0x04 /* mouse supports cordless status reporting and control */ +-#define HAS_SSR 0x08 /* mouse supports smart scroll reporting */ +-#define USE_CH2 0x10 /* mouse needs to use the second channel */ +- +-struct device_table { +- int idVendor; +- int idProduct; +- char* Model; +- char* Name; +- int flags; +-} device_table[] = { +- { VENDOR_LOGITECH, 0xC00E, "M-BJ58", "Wheel Mouse Optical", HAS_RES }, +- { VENDOR_LOGITECH, 0xC00F, "M-BJ79", "MouseMan Traveler", HAS_RES }, +- { VENDOR_LOGITECH, 0xC012, "M-BL63B", "MouseMan Dual Optical", HAS_RES }, +- { VENDOR_LOGITECH, 0xC01B, "M-BP86", "MX310 Optical Mouse", HAS_RES }, +- { VENDOR_LOGITECH, 0xC01D, "M-BS81A", "MX510 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR }, +- { VENDOR_LOGITECH, 0xC024, "M-BP82", "MX300 Optical Mouse", HAS_RES }, +- { VENDOR_LOGITECH, 0xC025, "M-BP81A", "MX500 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR }, +- { VENDOR_LOGITECH, 0xC031, "M-UT58A", "iFeel Mouse (silver)", HAS_RES }, +- { VENDOR_LOGITECH, 0xC501, "C-BA4-MSE", "Mouse Receiver", HAS_CSR }, +- { VENDOR_LOGITECH, 0xC502, "C-UA3-DUAL", "Dual Receiver", HAS_CSR | USE_CH2}, +- { VENDOR_LOGITECH, 0xC504, "C-BD9-DUAL", "Cordless Freedom Optical", HAS_CSR | USE_CH2 }, +- { VENDOR_LOGITECH, 0xC505, "C-BG17-DUAL", "Cordless Elite Duo", HAS_SS | HAS_SSR | HAS_CSR | USE_CH2}, +- { VENDOR_LOGITECH, 0xC506, "C-BF16-MSE", "MX700 Optical Mouse", HAS_SS | HAS_CSR }, +- { VENDOR_LOGITECH, 0xC508, "C-BA4-MSE", "Cordless Optical TrackMan", HAS_SS | HAS_CSR }, +- { VENDOR_LOGITECH, 0xC50B, "967300-0403", "Cordless MX Duo Receiver", HAS_SS|HAS_CSR }, +- { VENDOR_LOGITECH, 0xC50E, "M-RAG97", "MX1000 Laser Mouse", HAS_SS | HAS_CSR }, +- { VENDOR_LOGITECH, 0xC702, "C-UF15", "Receiver for Cordless Presenter", HAS_CSR }, +- { 0, 0, 0, 0, 0 } +-}; +- + int main(int argc, char **argv) + { + struct usb_bus *bus; +@@ -318,8 +327,12 @@ + resolution = 400; + else if (!strcmp("800", optarg)) + resolution = 800; ++ else if (!strcmp("1200", optarg)) ++ resolution = 1200; ++ else if (!strcmp("1600", optarg)) ++ resolution = 1600; + else +- printf("Bad argument (should be 400 or 800)\n"); ++ printf("Bad argument (should be 400, 800, 1200 or 1600)\n"); + break; + case 'v': + version(); +@@ -363,14 +376,22 @@ + break; + case 4: printf("800cpi\n"); + break; ++ case 5: printf("1200cpi\n"); ++ break; ++ case 6: printf("1600cpi\n"); ++ break; + default: printf("(Unexpected result:%i)\n", resolution); + break; + } + } else { + if (400 == resolution) + set_resolution(dev, 0x03); +- else ++ else if (800 == resolution) + set_resolution(dev, 0x04); ++ else if (1200 == resolution) ++ set_resolution(dev, 0x05); ++ else ++ set_resolution(dev, 0x06); + } + } +