View Full Version : Install usb_modeswitch from source code

September 20th, 2010, 01:34 PM
Installing usb_modeswitch (http://www.draisberghof.de/usb_modeswitch/) from source code:
The latest version now is 1.4.4 for usb_modeswitch & the latest data package released 2010-08-26 , so check usb_modeswitch website for the latest release.

1- Install dependencies:

sudo aptitude install libusb-dev
2- Download usb_modeswitch & extract:

wget http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.1.4.tar.bz2
tar -xvf usb-modeswitch-1.1.4.tar.bz2
3- Install usb_modeswitch:

cd usb-modeswitch-1.1.4
sudo make install
4- Download & extract usb_modeswitch-data:

wget http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20100826.tar.bz2
tar -xvf usb-modeswitch-data-20100826.tar.bz2
5- Edit Make file:

cd usb-modeswitch-data-20100826
sudo gedit Makefile
add the following two lines after RULESDIR = $(DESTDIR)/lib/udev/rules.d :

UDEVDIR = $(DESTDIR)/lib/udev
UDEVDIR = $(DESTDIR)/etc/udev
6- Install usb_modeswitch-data:

sudo make files-install

October 24th, 2011, 07:31 AM
baaska@ubuntu:~/usb-modeswitch-1.1.4$ cd usb-modeswitch-data-20111023
baaska@ubuntu:~/usb-modeswitch-1.1.4/usb-modeswitch-data-20111023$ sudo gedit Makefile
baaska@ubuntu:~/usb-modeswitch-1.1.4/usb-modeswitch-data-20111023$ sudo make files-install
install -d /usr/share/usb_modeswitch
install -d /etc/usb_modeswitch.d
install -D --mode=644 40-usb_modeswitch.rules /lib/udev/rules.d/40-usb_modeswitch.rules

now how to run
mak@ubuntu:~$ sudo usb_modeswitch -I -c /etc/usb_modeswitch.d/0e8d:7109

this is not running