public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-apps/lomoco/files: lomoco-1.0-updated-udev.patch lomoco.conf
@ 2012-08-19 22:12 Markos Chandras (hwoarang)
  0 siblings, 0 replies; only message in thread
From: Markos Chandras (hwoarang) @ 2012-08-19 22:12 UTC (permalink / raw
  To: gentoo-commits

hwoarang    12/08/19 22:12:13

  Modified:             lomoco-1.0-updated-udev.patch lomoco.conf
  Log:
  New revbump to fix problems with suspend/hibernate. Bug #345351. Thanks to Anton Bolshakov <anton.bugs@gmail.com> for the patches. He will proxy-maintainer it
  
  (Portage version: 2.1.11.10/cvs/Linux x86_64)

Revision  Changes    Path
1.3                  sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch?r1=1.2&r2=1.3

Index: lomoco-1.0-updated-udev.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- lomoco-1.0-updated-udev.patch	7 Mar 2010 12:39:28 -0000	1.2
+++ lomoco-1.0-updated-udev.patch	19 Aug 2012 22:12:13 -0000	1.3
@@ -30,30 +30,19 @@
 index 9e55511..da896d9 100755
 --- a/udev/udev.lomoco
 +++ b/udev/udev.lomoco
-@@ -1,26 +1,24 @@
+@@ -1,26 +1,36 @@
 -#!/bin/bash
-+#!/bin/sh
-+#
-+#  udev helper script for the locomo utility
-+#
- 
+-
 -case "$DEVPATH" in
 -	*usbdev*.*)
 -		dev=${DEVPATH##*usbdev}
 -		bus=$(printf %03d ${dev%.*})
 -		dev=$(printf %03d ${dev#*.})
-+test -x /usr/bin/lomoco || exit 0
-+test -r /etc/lomoco.conf || exit 0
- 
+-
 -		. /etc/sysconfig/logitech_mouse
-+options=
-+. /etc/lomoco.conf
- 
+-
 -		options=
-+if [ -n "$LOGITECH_MOUSE_RESOLUTION" ]; then
-+	options="--$LOGITECH_MOUSE_RESOLUTION"
-+fi
- 
+-
 -		if [ -n "$LOGITECH_MOUSE_RESOLUTION" ]; then
 -			options="--$LOGITECH_MOUSE_RESOLUTION"
 -		fi
@@ -67,12 +56,40 @@
 -		fi
 -	;;
 -esac 2>&1 | /bin/logger -t lomoco
+-
++#!/bin/sh
++#
++#  udev helper script for the locomo utility
++#
++
++test -x /usr/bin/lomoco || exit 0
++test -r /etc/lomoco.conf || exit 0
++
++options=
++. /etc/lomoco.conf
++
++if [ -n "$LOGITECH_MOUSE_RESOLUTION" ]; then
++	options="--$LOGITECH_MOUSE_RESOLUTION"
++fi
++
 +if [ -z "$LOGITECH_MOUSE_DISABLE_CC" -o "$LOGITECH_MOUSE_DISABLE_CC" = yes ]; then
 +	options="$options --no-sms"
 +fi
- 
++
++if [ -n "$BUSNUM" ]; then
++	options="$options -b $BUSNUM"
++fi
++
++if [ -n "$DEVNUM" ]; then
++	options="$options -d $DEVNUM"
++fi
++
++if [ -n "$MODEL_ID" ]; then
++	options="$options -p $MODEL_ID"
++fi
++
 +if [ -n "$options" ]; then
-+	/usr/bin/lomoco -b $BUSNUM -d $DEVNUM -p $ID_MODEL_ID $options 2>&1 | \
++	/usr/bin/lomoco $options 2>&1 | \
 +		sed -e 's/^[[:blank:]]\+//' -e 's/ \+$//' -e '/^$/ d' | \
 +		logger -t lomoco -p daemon.info
 +fi



1.2                  sys-apps/lomoco/files/lomoco.conf

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lomoco/files/lomoco.conf?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lomoco/files/lomoco.conf?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lomoco/files/lomoco.conf?r1=1.1&r2=1.2

Index: lomoco.conf
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-apps/lomoco/files/lomoco.conf,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- lomoco.conf	30 Jul 2007 09:19:25 -0000	1.1
+++ lomoco.conf	19 Aug 2012 22:12:13 -0000	1.2
@@ -1,2 +1,9 @@
 LOGITECH_MOUSE_RESOLUTION=800
 LOGITECH_MOUSE_DISABLE_CC=no
+
+# Use the lsusb output to configure additional parameters bellow
+#  Bus <BUSNUM> Device <DEVNUM>: ID 046d:<MODEL_ID> Logitech, Inc. MX510 Optical Mouse
+# Note: DEVNUM is dynamic and not recommened
+#BUSNUM=001
+#DEVNUM=009
+#MODEL_ID=c01d





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-19 22:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-19 22:12 [gentoo-commits] gentoo-x86 commit in sys-apps/lomoco/files: lomoco-1.0-updated-udev.patch lomoco.conf Markos Chandras (hwoarang)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox