error: couldn't close device: Transaction timed out

Joe joe.on.list at
Wed Jun 3 09:19:20 PDT 2015

On Monday 01 June 2015 10:39:07 you wrote:
> On Mon, Jun 1, 2015 at 10:14 AM, Joe <joe.on.list at> wrote:
> >
> > What do you think about the fact that it works good
> > on Slackware-14.0 (kernel updated to 3.19.4) and fails on Debian Jessie
> > (kernel updated to 4.0.4)?
> Hard to say without looking at debug logs in both systems and comparing... 

Finally upgraded libmbim to 1.13.0 development version also on Debian
I've also created a littl bash script to produce a log of commands

$ cat 
set -x
mbimcli --verbose -d /dev/cdc-wdm0 --query-radio-state
mbimcli --verbose -d /dev/cdc-wdm0 --set-radio-state on
mbimcli --verbose -d /dev/cdc-wdm0 --register-automatic
mbimcli --verbose -d /dev/cdc-wdm0 --no-close

I launched it as follows:

# &> olicard-debian.log

Log file "olicard-debian.log" is attached to this message.

As regard same test under slackware I had to edit the script a little:

- $DEV var introduced cause olicard dongle is linked to /dev/cdc-wdm1
  instead of cdc-wdm0. Same commands as above anyway...

"-slackware" Log generated in the same way of debian system:

# &> olicard-slackware.log

And attached to this message.

Hope you could say something more by compare these to logs.

> > Possible som trouble with usb drivers?
> Hard to say... Not sure if there were many changes in those drivers
> between 3.19 and 4.0.

Or perahps some different lower level package as libusb for example...
Anyway I can immagine it was not easy di say...

I'll waiting for your answer!
Thank again,
See you


> > Almost-OT:
> > An other question... I'm not a debian user, how can I try your
> > patched git version building a debian like package?
> > (I know well enough slackbuilds but I'm at first experience on
> > a debian like system).
> I think it should be something like "apt-get source libmbim", then
> adding the patch file in the proper place of the debian/ directory
> there. It's been a long time since I've done debian packaging tasks...
> you can likely get better help googling about it.

Yes, I understand your hint just now, after have read something about
debian packages:

1. Obtain libmbim development sources tarball from git:
git clone git://
cd libmbim
./configure --enable-gtk-doc
make distcheck

2. Obtain last (unstable) libmbim debian source package:
# pwd
# apt-get build-dep libmbim
# apt-get source libmbim
# ls
libmbim-1.12.2  libmbim_1.12.2-2.debian.tar.xz  libmbim_1.12.2-2.dsc

3. Copy "debian" subdirectory from debian sources to new vanilla sources
/build/libmbim# ls -F *
libmbim-1.12.2/  libmbim_1.12.2-2.debian.tar.xz  libmbim_1.12.2-2.dsc


/build/libmbim/1.13.0# cd 1.13.0

/build/libmbim/1.13.0# tar xvJf /build/git/libmbim/libmbim-1.13.0.tar.xz

/build/libmbim/1.13.0# ls

/build/libmbim/1.13.0# cp ../1.12.2/libmbim-1.12.2/debian libmbim-1.13.0/

/build/libmbim/1.13.0# cd libmbim-1.13.0/

3. Change package version editing "debian/changelog".. I've edited it by
hand but there was a command to do that:

/build/libmbim/1.13.0/libmbim-1.13.0# debchange -v 1.13.0

4. Rebuild debian binary packages

/build/libmbim/1.13.0/libmbim-1.13.0# fakeroot debian/rules clean
/build/libmbim/1.13.0/libmbim-1.13.0# fakeroot debian/rules binary

/build/libmbim/1.13.0/libmbim-1.13.0# ls ..
libmbim-1.13.0                      libmbim-glib-doc_1.13.0-1_all.deb
libmbim-glib4_1.13.0-1_i386.deb  libmbim-utils_1.13.0-1_i386.deb
libmbim-glib-dev_1.13.0-1_i386.deb  libmbim-glib4-dbg_1.13.0-1_i386.deb

5. Finally install them and solve some deps if needed:
/build/libmbim/1.13.0/# dpkg -i *deb
/build/libmbim/1.13.0/# apt-get install -f
# dpkg -l |grep libmbim

Last to verify packages installed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: olicard-debian.log
Type: text/x-log
Size: 14664 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: olicard-slackware.log
Type: text/x-log
Size: 19666 bytes
Desc: not available
URL: <>

More information about the libmbim-devel mailing list