Hello community, here is the log from the commit of package linuxconsoletools for openSUSE:Factory checked in at 2019-01-26 22:22:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/linuxconsoletools (Old) and /work/SRC/openSUSE:Factory/.linuxconsoletools.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "linuxconsoletools" Sat Jan 26 22:22:59 2019 rev:8 rq:668737 version:1.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/linuxconsoletools/linuxconsoletools.changes 2017-06-05 18:49:50.509449043 +0200 +++ /work/SRC/openSUSE:Factory/.linuxconsoletools.new.28833/linuxconsoletools.changes 2019-01-26 22:22:59.698827558 +0100 @@ -1,0 +2,9 @@ +Fri Jan 25 20:44:01 UTC 2019 - Mathias Homann <[email protected]> + +- update to 1.6.0 + * inputattach supports the Pulse-Eight HDMI CEC dongle (this requires kernel 4.8 or later; thanks to Hans Verkuil <[email protected]>). + * evdev-joystick can set the minimum and maximum axis values (thanks to Jon Sangster <[email protected]>). + * The udev rules are installed without executable permissions. + * The evdev-joystick manpage is installed along with the other manpages. + +------------------------------------------------------------------- Old: ---- linuxconsoletools-1.5.1.tar.bz2 New: ---- linuxconsoletools-1.6.0.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ linuxconsoletools.spec ++++++ --- /var/tmp/diff_new_pack.4ILw7w/_old 2019-01-26 22:23:00.098827235 +0100 +++ /var/tmp/diff_new_pack.4ILw7w/_new 2019-01-26 22:23:00.102827231 +0100 @@ -1,7 +1,7 @@ # # spec file for package linuxconsoletools # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,15 +12,15 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: linuxconsoletools -Version: 1.5.1 +Version: 1.6.0 Release: 0 Summary: A set of utilities for joysticks -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Hardware/Joystick Url: http://sourceforge.net/projects/linuxconsole/ Source0: http://sourceforge.net/projects/linuxconsole/files/%{name}-%{version}.tar.bz2 @@ -31,7 +31,7 @@ BuildRequires: udev # moved in 13.2 Provides: input-utils = 2007.06.22 -Obsoletes: input-utils <= 2007.06.22 +Obsoletes: input-utils < 2007.06.22 %description This package contains the following utilities and associated @@ -39,11 +39,11 @@ * joystick utilities - calibrate and test joysticks and joypads The following utilities are provided to calibrate and test joysticks: +* evdev-joystick - test & calibrate joysticks using evdev devices * ffcfstress, ffmvforce, fftest - test force-feedback devices * ffset - set force-feedback device parameters * jscal - calibrate joystick devices, reconfigure the axes and buttons -* jscal-store, jscal-restore - store and retrieve joystick device - settings as configured using jscal +* jscal-store, jscal-restore - store and retrieve joystick device settings as configured using jscal * jstest - test joystick devices %prep @@ -62,7 +62,6 @@ install # fix permissions chmod 644 %{buildroot}%{_mandir}/man1/* -chmod 644 %{buildroot}/lib/udev/rules.d/80-stelladaptor-joystick.rules # Fix udev dirs mkdir -p %{buildroot}%{_libexecdir}/udev mv %{buildroot}/lib/udev/js-set-enum-leds %{buildroot}%{_libexecdir}/udev/js-set-enum-leds @@ -91,6 +90,7 @@ %{_mandir}/man1/jscal-store.1%{ext_man} %{_mandir}/man1/jscal.1%{ext_man} %{_mandir}/man1/jstest.1%{ext_man} +%{_mandir}/man1/evdev-joystick.1%{ext_man} %{_datadir}/joystick/ %{_libexecdir}/udev/js-set-enum-leds %{_udevrulesdir}/80-stelladaptor-joystick.rules ++++++ linuxconsoletools-1.5.1.tar.bz2 -> linuxconsoletools-1.6.0.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxconsoletools-1.5.1/Makefile new/linuxconsoletools-1.6.0/Makefile --- old/linuxconsoletools-1.5.1/Makefile 2016-04-19 22:22:59.000000000 +0200 +++ new/linuxconsoletools-1.6.0/Makefile 2016-10-08 12:42:02.000000000 +0200 @@ -19,7 +19,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 USA. -VERSION := 1.5.1 +VERSION := 1.6.0 PACKAGE := linuxconsoletools-$(VERSION) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxconsoletools-1.5.1/NEWS new/linuxconsoletools-1.6.0/NEWS --- old/linuxconsoletools-1.5.1/NEWS 2016-04-19 22:22:06.000000000 +0200 +++ new/linuxconsoletools-1.6.0/NEWS 2016-10-08 12:40:22.000000000 +0200 @@ -1,3 +1,17 @@ +Version 1.6.0 +------------- + +* inputattach supports the Pulse-Eight HDMI CEC dongle (this requires + kernel 4.8 or later; thanks to Hans Verkuil <[email protected]>). + +* evdev-joystick can set the minimum and maximum axis values (thanks + to Jon Sangster <[email protected]>). + +* The udev rules are installed without executable permissions. + +* The evdev-joystick manpage is installed along with the other + manpages. + Version 1.5.1 ------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxconsoletools-1.5.1/README new/linuxconsoletools-1.6.0/README --- old/linuxconsoletools-1.5.1/README 2016-04-19 22:21:45.000000000 +0200 +++ new/linuxconsoletools-1.6.0/README 2016-10-08 12:41:35.000000000 +0200 @@ -219,6 +219,8 @@ * Böszörményi Zoltán: eGalaxTouch support, Hampshire support, systemd notification. * Stephen Anthony: evdev-joystick (based on G25manage). +* Hans Verkuil: Pulse-Eight HDMI CEC dongle support. +* Jon Sangster: min/max axis control in evdev-joystick. License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxconsoletools-1.5.1/docs/Makefile new/linuxconsoletools-1.6.0/docs/Makefile --- old/linuxconsoletools-1.5.1/docs/Makefile 2016-01-09 16:31:28.000000000 +0100 +++ new/linuxconsoletools-1.6.0/docs/Makefile 2016-04-19 23:45:26.000000000 +0200 @@ -2,7 +2,7 @@ # # Makefile for Linux input utilities # -# © 2011 Stephen Kitt <[email protected]> +# © 2011, 2016 Stephen Kitt <[email protected]> # # 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 @@ -21,7 +21,7 @@ MANPAGES = inputattach.1 jstest.1 jscal.1 fftest.1 \ ffmvforce.1 ffset.1 ffcfstress.1 jscal-store.1 \ - jscal-restore.1 + jscal-restore.1 evdev-joystick.1 PREFIX ?= /usr/local diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxconsoletools-1.5.1/docs/evdev-joystick.1 new/linuxconsoletools-1.6.0/docs/evdev-joystick.1 --- old/linuxconsoletools-1.5.1/docs/evdev-joystick.1 2016-04-19 21:45:37.000000000 +0200 +++ new/linuxconsoletools-1.6.0/docs/evdev-joystick.1 2016-08-26 11:29:47.000000000 +0200 @@ -11,6 +11,10 @@ .B evdev\-joystick \-\-evdev \fR\fIdevice\(hypath\fP> .RB [ \-\-axis .RI < axis >] +.RB [ \-\-minimum +.RI < value >] +.RB [ \-\-maximum +.RI < value >] .RB [ \-\-deadzone .RI < value >] .RB [ \-\-fuzz @@ -38,6 +42,12 @@ Specify the \fIaxis\fP to modify (by default, all axes are calibrated). .TP +.BR \-\-m ", " \-\-minimum " <" \fIvalue\fP > +Change the minimum for the current joystick. +.TP +.BR \-\-M ", " \-\-maximum " <" \fIvalue\fP > +Change the maximum for the current joystick. +.TP .BR \-\-d ", " \-\-deadzone " <" \fIvalue\fP > Change the deadzone for the current joystick. .TP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxconsoletools-1.5.1/docs/evdev-joystick.txt new/linuxconsoletools-1.6.0/docs/evdev-joystick.txt --- old/linuxconsoletools-1.5.1/docs/evdev-joystick.txt 2016-04-19 20:55:22.000000000 +0200 +++ new/linuxconsoletools-1.6.0/docs/evdev-joystick.txt 2016-08-26 11:29:47.000000000 +0200 @@ -44,9 +44,9 @@ 'evdev-joystick --s <NAME_OF_DEVICE>' Again, for me, this will output the following: - Absolute axis 0x00 (0) (X Axis) (min: 0, max: 4095, flatness: 128 (=0.00%), fuzz: 15) - Absolute axis 0x01 (1) (Y Axis) (min: 0, max: 4095, flatness: 128 (=0.00%), fuzz: 15) - Absolute axis 0x02 (2) (Z Axis) (min: 0, max: 15, flatness: 0 (=0.00%), fuzz: 0) + Absolute axis 0x00 (0) (X Axis) (value: 132, min: 0, max: 4095, flatness: 128 (=0.00%), fuzz: 15) + Absolute axis 0x01 (1) (Y Axis) (value: 127, min: 0, max: 4095, flatness: 128 (=0.00%), fuzz: 15) + Absolute axis 0x02 (2) (Z Axis) (value: 0, min: 0, max: 15, flatness: 0 (=0.00%), fuzz: 0) 6) Notice that the flatness/deadzone for axes 0 & 1 is 128. @@ -55,9 +55,9 @@ 8) Now check the current deadzone again by typing: 'evdev-joystick --s <NAME_OF_DEVICE>' - Absolute axis 0x00 (0) (X Axis) (min: 0, max: 4095, flatness: 0 (=0.00%), fuzz: 15) - Absolute axis 0x01 (1) (Y Axis) (min: 0, max: 4095, flatness: 0 (=0.00%), fuzz: 15) - Absolute axis 0x02 (2) (Z Axis) (min: 0, max: 15, flatness: 0 (=0.00%), fuzz: 0) + Absolute axis 0x00 (0) (X Axis) (value: 132, min: 0, max: 4095, flatness: 0 (=0.00%), fuzz: 15) + Absolute axis 0x01 (1) (Y Axis) (value: 127, min: 0, max: 4095, flatness: 0 (=0.00%), fuzz: 15) + Absolute axis 0x02 (2) (Z Axis) (value: 0, min: 0, max: 15, flatness: 0 (=0.00%), fuzz: 0) 9) Note that the 'flatness' has changed to 0? If so, then the program is working as intended. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxconsoletools-1.5.1/docs/inputattach.1 new/linuxconsoletools-1.6.0/docs/inputattach.1 --- old/linuxconsoletools-1.5.1/docs/inputattach.1 2016-01-09 16:29:35.000000000 +0100 +++ new/linuxconsoletools-1.6.0/docs/inputattach.1 2016-10-08 12:47:14.000000000 +0200 @@ -111,6 +111,9 @@ .BR \-ps2ser ", " \-\-ps2serkbd PS/2 via serial keyboard. .TP +.BR \-pulse8\-cec ", " \-\-pulse8\-cec +Pulse Eight HDMI CEC dongle. +.TP .BR \-sbl ", " \-\-spaceball SpaceBall 2003 / 3003 / 4000 FLX. .TP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxconsoletools-1.5.1/utils/Makefile new/linuxconsoletools-1.6.0/utils/Makefile --- old/linuxconsoletools-1.5.1/utils/Makefile 2016-04-19 22:20:50.000000000 +0200 +++ new/linuxconsoletools-1.6.0/utils/Makefile 2016-04-19 23:28:36.000000000 +0200 @@ -86,6 +86,6 @@ install extract filter ident $(DESTDIR)$(PREFIX)/share/joystick install -d $(DESTDIR)/lib/udev/rules.d install js-set-enum-leds $(DESTDIR)/lib/udev - install 80-stelladaptor-joystick.rules $(DESTDIR)/lib/udev/rules.d + install -m 644 80-stelladaptor-joystick.rules $(DESTDIR)/lib/udev/rules.d .PHONY: compile clean distclean install diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxconsoletools-1.5.1/utils/evdev-joystick.c new/linuxconsoletools-1.6.0/utils/evdev-joystick.c --- old/linuxconsoletools-1.5.1/utils/evdev-joystick.c 2016-04-19 20:49:19.000000000 +0200 +++ new/linuxconsoletools-1.6.0/utils/evdev-joystick.c 2016-08-26 11:29:47.000000000 +0200 @@ -8,6 +8,7 @@ #include <stdio.h> #include <stdlib.h> +#include <limits.h> #include <getopt.h> #include <unistd.h> #include <sys/stat.h> @@ -43,6 +44,8 @@ " --listdevs, --l List all joystick devices found\n" " --showcal, --s [path] Show current calibration for joystick device\n" " --evdev, --e [path] Set the joystick device to modify\n" + " --minimum, --m [val] Change minimum for current joystick\n" + " --maximum, --M [val] Change maximum for current joystick\n" " --deadzone, --d [val] Change deadzone for current joystick\n" " --fuzz, --f [val] Change fuzz for current joystick\n" " --axis, --a [val] The axis to modify for current joystick (by default, all axes)\n" @@ -53,18 +56,21 @@ "To set the deadzone values:\n" " evdev-joystick [ --e /path/to/event/device/file --d deadzone_value [ --a axis_index ] ]\n" "\n" + "To set the minimum and maximum range values:\n" + " evdev-joystick [ --e /path/to/event/device/file --m minimum_value --M maximum_value [ --a axis_index ] ]\n" + "\n" "Example:\n" "\n" "I want to see the calibration values of my event managed joystick:\n" " evdev-joystick --s /dev/input/event6\n" "\n" "Supported Absolute axes:\n" - " Absolute axis 0x00 (0) (X Axis) (min: 0, max: 16383, flatness: 1023 (=6.24%), fuzz: 63)\n" - " Absolute axis 0x01 (1) (Y Axis) (min: 0, max: 255, flatness: 15 (=5.88%), fuzz: 0)\n" - " Absolute axis 0x02 (2) (Z Axis) (min: 0, max: 255, flatness: 15 (=5.88%), fuzz: 0)\n" - " Absolute axis 0x05 (5) (Z Rate Axis) (min: 0, max: 255, flatness: 15 (=5.88%), fuzz: 0)\n" - " Absolute axis 0x10 (16) (Hat zero, x axis) (min: -1, max: 1, flatness: 0 (=0.00%), fuzz: 0)\n" - " Absolute axis 0x11 (17) (Hat zero, y axis) (min: -1, max: 1, flatness: 0 (=0.00%), fuzz: 0)\n" + " Absolute axis 0x00 (0) (X Axis) (value: 387, min: 0, max: 16383, flatness: 1023 (=6.24%), fuzz: 63)\n" + " Absolute axis 0x01 (1) (Y Axis) (value: 216, min: 0, max: 255, flatness: 15 (=5.88%), fuzz: 0)\n" + " Absolute axis 0x02 (2) (Z Axis) (value: 0, min: 0, max: 255, flatness: 15 (=5.88%), fuzz: 0)\n" + " Absolute axis 0x05 (5) (Z Rate Axis) (value: 101, min: 0, max: 255, flatness: 15 (=5.88%), fuzz: 0)\n" + " Absolute axis 0x10 (16) (Hat zero, x axis) (value: 0, min: -1, max: 1, flatness: 0 (=0.00%), fuzz: 0)\n" + " Absolute axis 0x11 (17) (Hat zero, y axis) (value: 0, min: -1, max: 1, flatness: 0 (=0.00%), fuzz: 0)\n" "\n" "I want to get rid of the deadzone on all axes on my joystick:\n" " evdev-joystick --e /dev/input/event6 --d 0\n" @@ -160,9 +166,9 @@ perror("evdev EVIOCGABS ioctl"); percent_deadzone = (float)abs_features.flat * 100 / (float)abs_features.maximum; - printf("(min: %d, max: %d, flatness: %d (=%.2f%%), fuzz: %d)\n", - abs_features.minimum, abs_features.maximum, abs_features.flat, - percent_deadzone, abs_features.fuzz); + printf("(value: %d, min: %d, max: %d, flatness: %d (=%.2f%%), fuzz: %d)\n", + abs_features.value, abs_features.minimum, abs_features.maximum, + abs_features.flat, percent_deadzone, abs_features.fuzz); } } @@ -171,7 +177,8 @@ } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -int setDeadzoneAndFuzz(const char* evdev, int axisindex, +int setAxisInfo(const char* evdev, int axisindex, + __s32 minvalue, __s32 maxvalue, __s32 deadzonevalue, __s32 fuzzvalue) { int fd = -1; @@ -210,7 +217,19 @@ return 1; } - if(deadzonevalue != -1) + if(minvalue != INT_MIN) + { + printf("Setting min value to : %d\n", minvalue); + abs_features.minimum = minvalue; + } + + if(maxvalue != INT_MIN) + { + printf("Setting max value to : %d\n", maxvalue); + abs_features.maximum = maxvalue; + } + + if(deadzonevalue != INT_MIN) { if(deadzonevalue < abs_features.minimum || deadzonevalue > abs_features.maximum ) @@ -224,7 +243,7 @@ abs_features.flat = deadzonevalue; } - if(fuzzvalue != -1) + if(fuzzvalue != INT_MIN) { if(fuzzvalue < abs_features.minimum || fuzzvalue > abs_features.maximum ) @@ -249,9 +268,9 @@ return 1; } percent_deadzone = (float)abs_features.flat * 100 / (float)abs_features.maximum; - printf(" (min: %d, max: %d, flatness: %d (=%.2f%%), fuzz: %d)\n", - abs_features.minimum, abs_features.maximum, abs_features.flat, - percent_deadzone, abs_features.fuzz); + printf(" (value: %d, min: %d, max: %d, flatness: %d (=%.2f%%), fuzz: %d)\n", + abs_features.value, abs_features.minimum, abs_features.maximum, + abs_features.flat, percent_deadzone, abs_features.fuzz); } } @@ -264,7 +283,7 @@ { char* evdevice = NULL; int c, axisindex = -1; - __s32 flat = -1, fuzz = -1; + __s32 min = INT_MIN, max = INT_MIN, flat = INT_MIN, fuzz = INT_MIN; // Show help by default if(argc == 1) @@ -281,6 +300,8 @@ { "listdevs", no_argument, 0, 'l' }, { "showcal", required_argument, 0, 's' }, { "evdev", required_argument, 0, 'e' }, + { "minimum", required_argument, 0, 'm' }, + { "maximum", required_argument, 0, 'M' }, { "deadzone", required_argument, 0, 'd' }, { "fuzz", required_argument, 0, 'f' }, { "axis", required_argument, 0, 'a' }, @@ -289,7 +310,7 @@ // getopt_long stores the option index here int option_index = 0; - c = getopt_long(argc, argv, "h:l:s:e:d:f:a:", long_options, &option_index); + c = getopt_long(argc, argv, "h:l:s:e:d:m:M:f:a:", long_options, &option_index); // Detect the end of the options if(c == -1) @@ -330,6 +351,16 @@ printf("New dead zone value: %d\n", flat); break; + case 'm': + min = atoi(optarg); + printf("New min value: %d\n", min); + break; + + case 'M': + max = atoi(optarg); + printf("New max value: %d\n", max); + break; + case 'f': fuzz = atoi(optarg); printf("New fuzz value: %d\n", fuzz); @@ -358,7 +389,7 @@ putchar('\n'); } - if(flat != -1 || fuzz != -1) + if(min != INT_MIN || max != INT_MIN || flat != INT_MIN || fuzz != INT_MIN) { if(evdevice == NULL) { @@ -369,20 +400,28 @@ { if(axisindex == -1) { - if(flat != -1) + if(min != INT_MIN) + printf( "Trying to set all axes minimum to: %d\n", min); + if(max != INT_MIN) + printf( "Trying to set all axes maximum to: %d\n", max); + if(flat != INT_MIN) printf( "Trying to set all axes deadzone to: %d\n", flat); - if(fuzz != -1) + if(fuzz != INT_MIN) printf( "Trying to set all axes fuzz to: %d\n", fuzz); } else { - if(flat != -1) + if(min != INT_MIN) + printf( "Trying to set axis %d minimum to: %d\n", axisindex, min); + if(max != INT_MIN) + printf( "Trying to set axis %d maximum to: %d\n", axisindex, max); + if(flat != INT_MIN) printf( "Trying to set axis %d deadzone to: %d\n", axisindex, flat); - if(fuzz != -1) + if(fuzz != INT_MIN) printf( "Trying to set axis %d fuzz to: %d\n", axisindex, fuzz); } - setDeadzoneAndFuzz(evdevice, axisindex, flat, fuzz); + setAxisInfo(evdevice, axisindex, min, max, flat, fuzz); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxconsoletools-1.5.1/utils/inputattach.c new/linuxconsoletools-1.6.0/utils/inputattach.c --- old/linuxconsoletools-1.5.1/utils/inputattach.c 2016-01-14 20:35:56.000000000 +0100 +++ new/linuxconsoletools-1.6.0/utils/inputattach.c 2016-08-09 13:04:05.000000000 +0200 @@ -864,6 +864,9 @@ { "--wacom_iv", "-wacom_iv", "Wacom protocol IV tablet", B9600, CS8 | CRTSCTS, SERIO_WACOM_IV, 0x00, 0x00, 0, wacom_iv_init }, +{ "--pulse8-cec", "-pulse8-cec", "Pulse Eight HDMI CEC dongle", + B9600, CS8, + SERIO_PULSE8_CEC, 0x00, 0x00, 0, NULL }, { NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL } }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/linuxconsoletools-1.5.1/utils/serio-ids.h new/linuxconsoletools-1.6.0/utils/serio-ids.h --- old/linuxconsoletools-1.5.1/utils/serio-ids.h 2015-04-26 18:29:42.000000000 +0200 +++ new/linuxconsoletools-1.6.0/utils/serio-ids.h 2016-08-09 13:04:05.000000000 +0200 @@ -131,5 +131,8 @@ #ifndef SERIO_EASYPEN # define SERIO_EASYPEN 0x3f #endif +#ifndef SERIO_PULSE8_CEC +# define SERIO_PULSE8_CEC 0x40 +#endif #endif
