aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/usbhidaction
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-161-1/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* mixer: remove volume backwards compat, add % interpretationKyle Evans2022-06-181-7/+7
| | | | | | | | | | | | | | | | The current situation is fairly confusing, where an integer is interpreted as a percent until you slap a decimal on it and magically it becomes an absolute value. Let's have a flag day in 14.0 and remove this shim entirely. Setting with percent can still be useful, so allow a trailing '%' to indicate as such. As a side effect, we tighten down the format allowed in the volume a little bit by ensuring there's no trailing garbage after the value once it's separated into left and right components. Reviewed by: christos, hselasky, pauamma_gundo.com (manpages) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D35101
* Chase mixer(8) command-line interface changesHans Petter Selasky2022-03-141-2/+2
| | | | | | | Some more nits regarding mute feature. Differential revision: https://reviews.freebsd.org/D34545 Sponsored by: NVIDIA Networking
* Chase mixer(8) command-line interface changesMateusz Piotrowski2022-03-131-10/+9
| | | | | | | | | | | | | | | | | | FreeBSD 14.0 is going to ship with a new implementation of the mixer(8) command. Unfortunately, in order to support new features like mute, the command-line interface of the new implementation is not backwards compatible. Update all the remaining documentation and scripts in the src tree to use the new syntax. While here, document in usbhidaction.1 that the mute functionality is now supported. Reviewed by: christos, debdrup, hselasky Approved by: hselasky (src) Fixes: 903873ce1560 Implement and use new mixer(3) library for FreeBSD. Differential Revision: https://reviews.freebsd.org/D34545
* Correct USB HID item in examplesMateusz Piotrowski2020-10-281-3/+3
| | | | | | | | | | | | It turns out that examples were incorrectly referring to Volume_Up and Volume_Down, which are not defined at all. PR: 250683 Reported by: corvid%openmailbox.org MFC after: 2 weeks Notes: svn path=/head/; revision=367097
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Store PID after becoming a daemon() and not before to ensure theHans Petter Selasky2015-09-281-8/+6
| | | | | | | | | | | correct PID gets written to the PID file. Submitted by: Maxime Soule <btik-fbsd@scoubidou.com> PR: 203252 MFC after: 2 weeks Notes: svn path=/head/; revision=288335
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
|/ | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* Add missing static keywords to usbhidaction(1)Ed Schouten2011-11-061-1/+1
| | | | Notes: svn path=/head/; revision=227195
* MFprojects/hid:Alexander Motin2011-09-282-18/+28
| | | | | | | | | | | | | | | | | Import the rest of HID improvements from the branch: - improve report descriptor parser in libusbhid to handle several kinds of reports same time; - add to the libusbhid API two functions wrapping respective kernel IOCTLs for reading and writing reports; - tune uhid IOCTL interface to allow reading and writing arbitrary report, when multiple supported by the device; - teach usbhidctl to set output and feature reports; - make usbhidaction support all the same item names as bhidctl. Sponsored by: iXsystems, inc. Notes: svn path=/head/; revision=225839
* MFprojects/hid:Alexander Motin2011-07-301-5/+23
| | | | | | | | | | | | | | | - Fix usbhidctl and usbhidaction to handle HID devices with multiple report ids, such as multimedia keyboards. - Add collection type and report id to the `usbhidctl -r` output. They are important for proper device understanding and debugging. - Fix usbhidaction tool to properly handle items having report_count more then 1. Approved by: re (kib) MFC after: 2 weeks Notes: svn path=/head/; revision=224511
* For consistency, cast result of getpid() to longKevin Lo2010-08-311-1/+2
| | | | Notes: svn path=/head/; revision=212048
* The NetBSD Foundation has granted permission to remove clause 3 and 4Warner Losh2010-02-162-14/+0
| | | | | | | | | from their software. Obtained from: NetBSD Notes: svn path=/head/; revision=203971
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-0/+1
| | | | | | | needed. Notes: svn path=/head/; revision=200462
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-1/+0
| | | | | | | Tested with: make universe Notes: svn path=/head/; revision=200420
* Build fixups for the new USB stack.Andrew Thompson2009-02-231-1/+1
| | | | Notes: svn path=/head/; revision=188945
* src/usr.bin/usbhidaction/usbhidaction.cAlfred Perlstein2009-02-021-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/usr.bin/usbhidctl/usbhid.c src/sys/dev/usb2/include/usb2_hid.h src/sys/dev/usb2/input/uhid2.c src/lib/libusbhid/Makefile src/lib/libusbhid/descr.c src/lib/libusbhid/descr_compat.c src/lib/libusbhid/usbhid.3 src/lib/libusbhid/usbhid.h src/lib/libusbhid/usbvar.h Patches to make libusbhid and HID userland utilities compatible with the new USB stack. All HID ioctls should go through the libusbhid library to ensure compatibility. I have found at least one piece of software in /usr/ports which needs to get updated before USB HID devices will work. This is the X joystick input driver. Reported and tested by: Daichi GOTO and Masanori OZAWA. src/sys/dev/usb2/core/usb2_process.c Correct USB process names. Reported by: Andre Guibert de Bruet src/sys/dev/usb2/serial/uftdi2.c Integrate changes from old USB stack. Submitted by: hps Notes: svn path=/head/; revision=187994
* Add support using an alternate table file to usbhidaction(1).Warner Losh2007-06-302-3/+10
| | | | | | | | | Submitted by: Michael Haro PR: 61234 Approved by: re (bmah) Notes: svn path=/head/; revision=171101
* Let bsd.prog.mk set SRCS and MAN to their default values.Ruslan Ermilov2005-01-281-1/+0
| | | | Notes: svn path=/head/; revision=140941
* Misc fixes brought to light by WARNS=6:David Malone2004-03-091-14/+17
| | | | | | | | | | | 1) Constness, unusedness and size_tness. 2) Don't clobber the value returned by hid_report_size in the daemon case. 3) Don't misspell "sizeof buf" as 100. 4) Don't run off the end of a buffer if the pid is about a google. 5) Avoid shadowing the usage function. Notes: svn path=/head/; revision=126774
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).Ruslan Ermilov2004-02-051-2/+2
| | | | Notes: svn path=/head/; revision=125503
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-05-301-29/+41
| | | | Notes: svn path=/head/; revision=115419
* Fix debounce. I forgot these bits in my last commit.Matthew N. Dodd2003-04-101-1/+3
| | | | | | | Submitted by: Mathew Kanner <mat@cnd.mcgill.ca> Notes: svn path=/head/; revision=113328
* - Implement debounce support.Matthew N. Dodd2003-04-092-31/+86
| | | | | | | | | | - Clean up examples. - Call deamon(3) after we open the PID file. Submitted by: Mathew Kanner <mat@cnd.mcgill.ca> Notes: svn path=/head/; revision=113309
* Add usbhidaction(1).Matthew N. Dodd2003-04-093-0/+613
This allows actions to be bound to HID events. Obtained from: NetBSD Notes: svn path=/head/; revision=113288