All of lore.kernel.org
 help / color / mirror / Atom feed
* Apple Magic Mouse a first stab.
@ 2010-03-06 20:05 Mike Mestnik
  2010-03-06 20:07 ` Mike Mestnik
  2010-03-07 16:35 ` Mike Mestnik
  0 siblings, 2 replies; 3+ messages in thread
From: Mike Mestnik @ 2010-03-06 20:05 UTC (permalink / raw)
  To: linux-hotplug

I need a little help with the syntax of a rules file.

cheako@overrun:~$ cat /etc/udev/rules.d/65-xorg-synaptics-mestnik.rules
ACTION!="add|change", GOTO="xorg_synaptics_mike_end"
KERNEL!="event*", GOTO="xorg_synaptics_mike_end"
SUBSYSTEM!="input", GOTO="xorg_synaptics_mike_end"
PRODUCT!="5/5ac/30d/84", GOTO="xorg_synaptics_mike_end"
EV!="f", GOTO="xorg_synaptics_mike_end"

ENV{x11_driver}="synaptics"
#ENV{x11_options.RTCornerButton}="2"
#ENV{x11_options.HorizEdgeScroll}="true"
RUN+="hcitool enc $UNIQ"

LABEL="xorg_synaptics_mike_end"

Here is the device information.  I would like to pass UNIQ to hcitool
in the +RUN.  The two devices are for the Magic Mouse, the first is
the Magic Mouse's two button mouse emulation.  The other is created by
the hid-magicmouse kernel module and reports touch events.

P: /devices/pci0000:00/0000:00:13.0/usb5/5-3/5-3:1.0/bluetooth/hci0/hci0:41/0005:05AC:030D.0003
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-3/5-3:1.0/bluetooth/hci0/hci0:41/0005:05AC:030D.0003
E: DRIVER=magicmouse
E: HID_ID\005:000005AC:0000030D
E: HID_NAME=Apple Wireless Mouse
E: HID_PHYS\0:15:E9:65:36:E4
E: HID_UNIQ4:15:9E:D3:C6:DA
E: MODALIAS=hid:b0005v000005ACp0000030D
E: SUBSYSTEM=hid

P: /devices/pci0000:00/0000:00:13.0/usb5/5-3/5-3:1.0/bluetooth/hci0/hci0:41/input6
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-3/5-3:1.0/bluetooth/hci0/hci0:41/input6
E: PRODUCT=5/5ac/30d/84
E: NAME="Apple Wireless Mouse"
E: PHYS="00:15:E9:65:36:E4"
E: UNIQ="34:15:9E:D3:C6:DA"
E: EV=17
E: KEY=30000 0 0 0 0 0 0 0 0
E: REL=3
E: MSC=10
E: MODALIAS=input:b0005v05ACp030De0084-e0,1,2,4,k110,111,r0,1,am4,lsfw
E: SUBSYSTEM=input

P: /devices/pci0000:00/0000:00:13.0/usb5/5-3/5-3:1.0/bluetooth/hci0/hci0:41/input7
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-3/5-3:1.0/bluetooth/hci0/hci0:41/input7
E: PRODUCT=5/5ac/30d/84
E: NAME="Apple Wireless Mouse"
E: PHYS="00:15:E9:65:36:E4"
E: UNIQ="34:15:9E:D3:C6:DA"
E: EV=f
E: KEY=20 0 70000 0 0 0 0 0 0 0 0
E: REL=103
E: ABS=2730000 0
E: MODALIAS=input:b0005v05ACp030De0084-e0,1,2,3,k110,111,112,145,r0,1,8,a30,31,34,35,36,39,mlsfw
E: SUBSYSTEM=input

-- 
Mike Mestnik
Technical Team
___
Nagios Enterprises, LLC
Email: mmestnik@nagios.com
Web: www.nagios.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Apple Magic Mouse a first stab.
  2010-03-06 20:05 Apple Magic Mouse a first stab Mike Mestnik
@ 2010-03-06 20:07 ` Mike Mestnik
  2010-03-07 16:35 ` Mike Mestnik
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Mestnik @ 2010-03-06 20:07 UTC (permalink / raw)
  To: linux-hotplug

I see one problem, should that be "=f" instead on "f"?

On Sat, Mar 6, 2010 at 2:05 PM, Mike Mestnik <cheako911@gmail.com> wrote:
> I need a little help with the syntax of a rules file.
>
> cheako@overrun:~$ cat /etc/udev/rules.d/65-xorg-synaptics-mestnik.rules
> ACTION!="add|change", GOTO="xorg_synaptics_mike_end"
> KERNEL!="event*", GOTO="xorg_synaptics_mike_end"
> SUBSYSTEM!="input", GOTO="xorg_synaptics_mike_end"
> PRODUCT!="5/5ac/30d/84", GOTO="xorg_synaptics_mike_end"
> EV!="f", GOTO="xorg_synaptics_mike_end"
>
> ENV{x11_driver}="synaptics"
> #ENV{x11_options.RTCornerButton}="2"
> #ENV{x11_options.HorizEdgeScroll}="true"
> RUN+="hcitool enc $UNIQ"
>
> LABEL="xorg_synaptics_mike_end"
>
> Here is the device information.  I would like to pass UNIQ to hcitool
> in the +RUN.  The two devices are for the Magic Mouse, the first is
> the Magic Mouse's two button mouse emulation.  The other is created by
> the hid-magicmouse kernel module and reports touch events.
>
> P: /devices/pci0000:00/0000:00:13.0/usb5/5-3/5-3:1.0/bluetooth/hci0/hci0:41/0005:05AC:030D.0003
> E: UDEV_LOG=3
> E: DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-3/5-3:1.0/bluetooth/hci0/hci0:41/0005:05AC:030D.0003
> E: DRIVER=magicmouse
> E: HID_ID\005:000005AC:0000030D
> E: HID_NAME=Apple Wireless Mouse
> E: HID_PHYS\0:15:E9:65:36:E4
> E: HID_UNIQ4:15:9E:D3:C6:DA
> E: MODALIAS=hid:b0005v000005ACp0000030D
> E: SUBSYSTEM=hid
>
> P: /devices/pci0000:00/0000:00:13.0/usb5/5-3/5-3:1.0/bluetooth/hci0/hci0:41/input6
> E: UDEV_LOG=3
> E: DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-3/5-3:1.0/bluetooth/hci0/hci0:41/input6
> E: PRODUCT=5/5ac/30d/84
> E: NAME="Apple Wireless Mouse"
> E: PHYS="00:15:E9:65:36:E4"
> E: UNIQ="34:15:9E:D3:C6:DA"
> E: EV=17
> E: KEY=30000 0 0 0 0 0 0 0 0
> E: REL=3
> E: MSC=10
> E: MODALIAS=input:b0005v05ACp030De0084-e0,1,2,4,k110,111,r0,1,am4,lsfw
> E: SUBSYSTEM=input
>
> P: /devices/pci0000:00/0000:00:13.0/usb5/5-3/5-3:1.0/bluetooth/hci0/hci0:41/input7
> E: UDEV_LOG=3
> E: DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-3/5-3:1.0/bluetooth/hci0/hci0:41/input7
> E: PRODUCT=5/5ac/30d/84
> E: NAME="Apple Wireless Mouse"
> E: PHYS="00:15:E9:65:36:E4"
> E: UNIQ="34:15:9E:D3:C6:DA"
> E: EV=f
> E: KEY=20 0 70000 0 0 0 0 0 0 0 0
> E: REL=103
> E: ABS=2730000 0
> E: MODALIAS=input:b0005v05ACp030De0084-e0,1,2,3,k110,111,112,145,r0,1,8,a30,31,34,35,36,39,mlsfw
> E: SUBSYSTEM=input
>
> --
> Mike Mestnik
> Technical Team
> ___
> Nagios Enterprises, LLC
> Email: mmestnik@nagios.com
> Web: www.nagios.com
>



-- 
Mike Mestnik
Technical Team
___
Nagios Enterprises, LLC
Email: mmestnik@nagios.com
Web: www.nagios.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Apple Magic Mouse a first stab.
  2010-03-06 20:05 Apple Magic Mouse a first stab Mike Mestnik
  2010-03-06 20:07 ` Mike Mestnik
@ 2010-03-07 16:35 ` Mike Mestnik
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Mestnik @ 2010-03-07 16:35 UTC (permalink / raw)
  To: linux-hotplug

# Another try, check this out...
ACTION!="add|change", GOTO="xorg_synaptics_mike_end"
KERNEL!="input*", GOTO="xorg_synaptics_mike_end"
SUBSYSTEM!="input", GOTO="xorg_synaptics_mike_end"
ATTRS{modalias}!="input:b0005v05ACp030De0084-e0,1,2,3*", \
	GOTO="xorg_synaptics_mike_end"

ENV{x11_driver}="synaptics"
#ENV{x11_options.RTCornerButton}="2"
#ENV{x11_options.HorizEdgeScroll}="true"
### Let's try this and see if we can break things ;)
##ENV{x11_driver}="evdev"
##ENV{x11_options.IgnoreAbsoluteAxes}="false"
RUN+="hcitool enc $(cat /sys/class/input/event%n/device/uniq)"

LABEL="xorg_synaptics_mike_end"

-- 
Mike Mestnik
Technical Team
___
Nagios Enterprises, LLC
Email: mmestnik@nagios.com
Web: www.nagios.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-07 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-06 20:05 Apple Magic Mouse a first stab Mike Mestnik
2010-03-06 20:07 ` Mike Mestnik
2010-03-07 16:35 ` Mike Mestnik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.