usbhidctl(1) and usbhidaction(1)

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

usbhidctl(1) and usbhidaction(1)

ludovic coues
hello,

I wanted to know if anyone get either usbhidctl(1) or usbhidaction(1)
working and if so for which usage.

--

Cordialement, Coues Ludovic
+336 148 743 42

Reply | Threaded
Open this post in threaded view
|

Re: usbhidctl(1) and usbhidaction(1)

Benjamin Baier
On Thu, 7 May 2015 14:40:59 +0200
ludovic coues <[hidden email]> wrote:

> I wanted to know if anyone get either usbhidctl(1) or usbhidaction(1)
> working and if so for which usage.

I use it for volume control and for locking the screen.

got this in my .xinitrc
usbhidaction -d -c ~/.usbhid.conf -f /dev/uhid1 >/dev/console 2>&1

and here is my ~/.usbhid.conf
Consumer:Volume_Increment 1
  mixerctl outputs.master=+15
Consumer:Volume_Decrement 1
  mixerctl outputs.master=-15
Consumer:Mute 1
  mixerctl outputs.master.mute=toggle
Consumer:AL_Calculator 1
  zzzlock
Consumer:AC_Back 1
  xlock
Consumer:AC_Forward 1
 true

Reply | Threaded
Open this post in threaded view
|

Re: usbhidctl(1) and usbhidaction(1)

Theo Buehler-2
In reply to this post by ludovic coues
On Thu, May 07, 2015 at 02:40:59PM +0200, ludovic coues wrote:
> I wanted to know if anyone get either usbhidctl(1) or usbhidaction(1)
> working and if so for which usage.

I use usbhidctl(1) for giving presentations.  My laptop is shipped with
an IR remote control:

uhidev3 at uhub3 port 2 configuration 1 interface 0 "Apple Computer, Inc. IR Receiver" rev 2.00/1.10 addr 2

which I use for pdf presentations so I don't have to be near my laptop
all the time.  I do

$ usbhidctl -f 3 -l

and pipe the output (there are 4 bytes of interest) to a simple-minded
parser which then sends key strokes to mupdf(1) for navigating the pdf
via xdotool(1).

Reply | Threaded
Open this post in threaded view
|

Re: usbhidctl(1) and usbhidaction(1)

Martin Pieuchot
In reply to this post by ludovic coues
On 07/05/15(Thu) 14:40, ludovic coues wrote:
> hello,
>
> I wanted to know if anyone get either usbhidctl(1) or usbhidaction(1)
> working and if so for which usage.

If you're using any of these tools, please do not hesitate to explain
how ;)

Ludovic is currently working on our base USB tools as part of a GSoC,
so any piece of information would be much appreciated.

Thanks,
Martin

Reply | Threaded
Open this post in threaded view
|

Re: usbhidctl(1) and usbhidaction(1)

Anthony J. Bentley-3
Martin Pieuchot writes:

> On 07/05/15(Thu) 14:40, ludovic coues wrote:
> > hello,
> >
> > I wanted to know if anyone get either usbhidctl(1) or usbhidaction(1)
> > working and if so for which usage.
>
> If you're using any of these tools, please do not hesitate to explain
> how ;)
>
> Ludovic is currently working on our base USB tools as part of a GSoC,
> so any piece of information would be much appreciated.

I use usbhidaction to activate the volume/mute keys on my USB keyboard.

Consumer:Volume_Increment                                          1
 mixerctl outputs.master=+8 && mixerctl outputs.master.mute=off
Consumer:Volume_Decrement                                          1
 mixerctl outputs.master=-8 && mixerctl outputs.master.mute=off
Consumer:Mute                                                      1
 mixerctl outputs.master.mute=toggle

--
Anthony J. Bentley

Reply | Threaded
Open this post in threaded view
|

Re: usbhidctl(1) and usbhidaction(1)

413x
In reply to this post by ludovic coues
On 05/07/15 14:40, ludovic coues wrote:
> hello,
Hi Ludovic,

> I wanted to know if anyone get either usbhidctl(1) or usbhidaction(1)
> working and if so for which usage.
>
I have some issues with Logitech wireless keyboards (Wave 2.4 and K400r)
on -current.

Consumer:Mute and Consumer:Volume_Decrement have no effect and
Consumer:Volume_Increment actually decrements.

$ cat ~/.usbhid.conf
Consumer:Volume_Increment 1
   mixerctl outputs.master=+15
Consumer:Volume_Decrement 1
   mixerctl outputs.master=-15
Consumer:Mute 1
   mixerctl outputs.master.mute=toggle

With a Logitech K200 (with cable) and a Cherry KW 3000 (wireless),
everything is working fine.

Let me know if you need more information.

Regards,

--
Alexis de BRUYN