Compare commits

...
Author SHA1 Message Date
Giacomo Catenazzi b6a96a4dd3 Import Debian changes 1.9.5.3-5
g15daemon (1.9.5.3-5) unstable; urgency=low

  * Handle keyboard device with udev, so detecting detachement
    and attachment of keyboarda (Closes: #489978).
  * init.d LSB header: try to start before xorg, to be able
    to have full access to all extra keys.
  * Recent libg15 corrected strange behaviour in new G15 keyboard
    (Closes: #494180)
2009-08-13 08:20:02 +02:00
Giacomo Catenazzi c8d7f9138e Import Debian changes 1.9.5.3-4
g15daemon (1.9.5.3-4) unstable; urgency=low

  * Try to load uinput module, in order to have Gx key working
    (Closes: #475000).
  * Usual updates
2009-08-06 08:32:33 +02:00
6 changed files with 122 additions and 24 deletions

No files matched your search

+19
View File
@@ -1,3 +1,22 @@
g15daemon (1.9.5.3-5) unstable; urgency=low
* Handle keyboard device with udev, so detecting detachement
and attachment of keyboarda (Closes: #489978).
* init.d LSB header: try to start before xorg, to be able
to have full access to all extra keys.
* Recent libg15 corrected strange behaviour in new G15 keyboard
(Closes: #494180)
-- Giacomo Catenazzi <cate@debian.org> Thu, 13 Aug 2009 08:20:02 +0200
g15daemon (1.9.5.3-4) unstable; urgency=low
* Try to load uinput module, in order to have Gx key working
(Closes: #475000).
* Usual updates
-- Giacomo Catenazzi <cate@debian.org> Thu, 06 Aug 2009 08:32:33 +0200
g15daemon (1.9.5.3-3) unstable; urgency=low g15daemon (1.9.5.3-3) unstable; urgency=low
* Changing default in /etc/default/g15daemon: Use L1 key instead of MR * Changing default in /etc/default/g15daemon: Use L1 key instead of MR
+4 -4
View File
@@ -4,13 +4,13 @@ Priority: extra
Maintainer: Giacomo Catenazzi <cate@debian.org> Maintainer: Giacomo Catenazzi <cate@debian.org>
Build-Depends: cdbs, debhelper (>= 5), autotools-dev, automake1.9, libtool, Build-Depends: cdbs, debhelper (>= 5), autotools-dev, automake1.9, libtool,
libg15-dev, libg15render-dev (>=1.2.0.svn250-2), libusb-dev, libfreetype6-dev libg15-dev, libg15render-dev (>=1.2.0.svn250-2), libusb-dev, libfreetype6-dev
Standards-Version: 3.7.3 Standards-Version: 3.8.2
Homepage: http://www.g15tools.com/ Homepage: http://www.g15tools.com/
Package: g15daemon Package: g15daemon
Section: utils Section: utils
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, libg15daemon-client1 (=${binary:Version}) Depends: libg15daemon-client1 (=${binary:Version}), ${shlibs:Depends}, ${misc:Depends},
Recommends: xkb-data ( >= 0.9+cvs.20070428-1) Recommends: xkb-data ( >= 0.9+cvs.20070428-1)
Description: Screen multiplexer for Logitech G15 Keyboard Description: Screen multiplexer for Logitech G15 Keyboard
G15daemon provides multiple virtual screens for the LCD on the Logitech G15daemon provides multiple virtual screens for the LCD on the Logitech
@@ -22,14 +22,14 @@ Description: Screen multiplexer for Logitech G15 Keyboard
Package: libg15daemon-client1 Package: libg15daemon-client1
Section: libs Section: libs
Architecture: any Architecture: any
Depends: ${shlibs:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Development packages for libg15daemon-client Description: Development packages for libg15daemon-client
Includes the files needed for developing g15daemon clients Includes the files needed for developing g15daemon clients
Package: libg15daemon-client-dev Package: libg15daemon-client-dev
Section: libdevel Section: libdevel
Architecture: any Architecture: any
Depends: libg15daemon-client1 (= ${binary:Version}) Depends: libg15daemon-client1 (= ${binary:Version}), ${misc:Depends}
Description: Development packages for libg15daemon-client Description: Development packages for libg15daemon-client
Includes the files needed for developing g15daemon clients Includes the files needed for developing g15daemon clients
Vendored
-1
View File
@@ -1,4 +1,3 @@
FAQ
NEWS NEWS
README README
TODO TODO
+4
View File
@@ -0,0 +1,4 @@
FAQ
NEWS
README
TODO
+74 -19
View File
@@ -6,6 +6,7 @@
# Required-Stop: $local_fs # Required-Stop: $local_fs
# Should-Start: $remote_fs # Should-Start: $remote_fs
# Should-Stop: $remote_fs # Should-Stop: $remote_fs
# X-Start-Before: xdm kdm gdm ldm sdm
# Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6 # Default-Stop: 0 1 6
# Short-Description: load deamon for Logitech G15 keyboard lcd display # Short-Description: load deamon for Logitech G15 keyboard lcd display
@@ -18,7 +19,7 @@ DAEMON=/usr/sbin/g15daemon
NAME=g15daemon NAME=g15daemon
DESC=g15daemon DESC=g15daemon
test -x $DAEMON || exit 0 [ -x "$DAEMON" ] || exit 0
# Include g15daemon defaults if available # Include g15daemon defaults if available
if [ -f /etc/default/g15daemon ] ; then if [ -f /etc/default/g15daemon ] ; then
@@ -31,18 +32,61 @@ fi
set -e set -e
wait_for_file() {
local file=$1
local timeout=$2
[ "$timeout" ] || timeout=120
local count=$(($timeout * 10))
while [ $count != 0 ]; do
[ -e "$file" ] && return 0
sleep 0.1
count=$(($count - 1))
done
return 1
}
load_uinput() {
if [ ! -e /dev/input/uinput ] ; then
modprobe -q uinput || true
wait_for_file /dev/input/uinput 3 || return 1
fi
}
wait_usr_mount() {
if [ ! -e "$DAEMON" ] ; then
wait_for_file "$DAEMON" 7 || return 1
fi
}
is_running() {
start-stop-daemon --stop --test --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
}
do_start() {
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- $DAEMON_OPTS
}
do_stop() {
$DAEMON -k
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
--oknodo --retry 5 --exec $DAEMON
}
case "$1" in case "$1" in
start) start)
echo -n "Starting $DESC: " echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ load_uinput || echo -n ".../dev/input/uinput not found ..."
--exec $DAEMON -- $DAEMON_OPTS do_start
echo "$NAME." echo "$NAME."
;; ;;
stop) stop)
echo -n "Stopping $DESC: " echo -n "Stopping $DESC: "
$DAEMON -k do_stop
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
--oknodo --retry 5 --exec $DAEMON
echo "$NAME." echo "$NAME."
;; ;;
#reload) #reload)
@@ -56,7 +100,7 @@ case "$1" in
# echo "Reloading $DESC configuration files." # echo "Reloading $DESC configuration files."
# start-stop-daemon --stop --signal 1 --quiet --pidfile \ # start-stop-daemon --stop --signal 1 --quiet --pidfile \
# /var/run/$NAME.pid --exec $DAEMON # /var/run/$NAME.pid --exec $DAEMON
#;; #;;
force-reload) force-reload)
# #
# If the "reload" option is implemented, move the "force-reload" # If the "reload" option is implemented, move the "force-reload"
@@ -64,24 +108,35 @@ case "$1" in
# just the same as "restart" except that it does nothing if the # just the same as "restart" except that it does nothing if the
# daemon isn't already running. # daemon isn't already running.
# check wether $DAEMON is running. If so, restart # check wether $DAEMON is running. If so, restart
start-stop-daemon --stop --test --quiet --pidfile \ is_running && $0 restart || exit 0
/var/run/$NAME.pid --exec $DAEMON \ ;;
&& $0 restart \
|| exit 0
;;
restart) restart)
echo -n "Restarting $DESC: " echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \ do_stop
/var/run/$NAME.pid --exec $DAEMON # the device is slow to shut-down
sleep 1 sleep 0.5
start-stop-daemon --start --quiet --pidfile \ do_start
/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
echo "$NAME." echo "$NAME."
;; ;;
udev)
if [ "x$ACTION" = "xadd" ] ; then
load_uinput || true
wait_usr_mount || true
# it seems udev will not release a device if userspace is still
# connected
is_running && ( do_stop; sleep 0.5 )
do_start
elif [ "x$ACTION" = "xremove" ] ; then
do_stop
else
echo "unknow udev action '$ACTION'"
exit 1
fi
;;
*) *)
N=/etc/init.d/$NAME N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $N {start|stop|restart|force-reload|udev}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1 exit 1
;; ;;
esac esac
+21
View File
@@ -0,0 +1,21 @@
# udev rule to start g15daemon when logitech g15 keyboards are attached
#
# Recognized devices from libg15-1.2.7/libg15.c
#
# Logitech g11 -- extra keys, no LCD
SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c225", RUN+="/etc/init.d/g15daemon udev"
# Logitech G15 (blue) -- extra keys and LCD
SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c222", RUN+="/etc/init.d/g15daemon udev"
# Logitech G15 v2 (orange) -- extra keys and LCD
SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c227", RUN+="/etc/init.d/g15daemon udev"
# Logitech Z10 -- extra keys and LCD
SYSFS{idVendor}=="046d", SYSFS{idProduct}=="0a07", RUN+="/etc/init.d/g15daemon udev"
# Logitech G15 Gamepanel -- extra keys and LCD
SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c251", RUN+="/etc/init.d/g15daemon udev"