Bug#812842: EnableLogging=1 doesn't have any effect

2016-01-27 Thread Josua Dietze

Am 27.01.2016 um 06:47 schrieb Jon Forsberg:


This is how I invoke it:

usb_modeswitch --default-vendor=0x12d1 --default-product=0x1446 -J -Q


There is a bit of a misunderstanding there.

The log is created during the automatic invocation of usb_modeswitch, when
the wrapper (usb_modeswitch_dispatcher) is triggered by the insertion of a
modem.

For extended output during a manual run, add the -W parameter and remove the
-Q parameter.

Note that a bug has been found in the wrapper only recently which prevented
logging of early problems, e.g. when the parameters passed to the wrapper are
not useable and it therefore exits.

This bug has been fixed in usb_modeswitch 2.3.0. There is a description in
the discussion of bug report #805512 (see message #40):
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805512


Best regards,
Josh



Bug#812842: EnableLogging=1 doesn't have any effect

2016-01-26 Thread Jon Forsberg
Package: usb-modeswitch
Version: 2.2.0+repack0-2

According to the comments in /etc/usb_modeswitch.conf, setting
EnableLogging=1 should make i
produce a logfile in /var/log. When I invoke usb_modeswitch it does work
(switches mode of
my 3G dongle) but no logfile is created in /var/log.

This is how I invoke it:

usb_modeswitch --default-vendor=0x12d1 --default-product=0x1446 -J -Q

This is the config file:

# cat /etc/usb_modeswitch.conf

# Configuration for the usb_modeswitch package, a mode switching tool for
# USB devices providing multiple states or modes
#
# Evaluated by the wrapper script /usr/sbin/usb_modeswitch_dispatcher
#
# To enable an option, set it to "1", "yes" or "true" (case doesn't matter)
# Everything else counts as "disable"


# Disable automatic mode switching globally (e.g. to access the original
# install storage)

DisableSwitching=0


# Enable logging (results in a extensive report file in /var/log, named
# "usb_modeswitch_" and probably others

EnableLogging=1


# Optional increase of "delay_use" for the usb-storage driver; there are
hints
# that a recent kernel default change to 1 sec. may lead to problems,
particu-
# larly with USB 3.0 ports. Set this to at least 3 (seconds) in that case.
# Does nothing if the current system value is same or higher

#SetStorageDelay=4