Connect your Haier ce100 modem to your computer. Check out if Ubuntu can read your modem by typing : lsusb in your terminal. Run the below command in your terminal :
Code:
sudo su
apt-get install linux-source linux-headers-generic build-essential
cd /usr/src
tar xjf linux-source-2.6.28.tar.bz2
cd linux-source-2.6.28
gedit /usr/src/linux-source-2.6.28/drivers/usb/serial/HAIER_info.c
Modify the file and add the below 2 lines in line 298:
Code:
+#define HAIER_VENDOR_ID 0x201e
+#define HAIER_PRODUCT_ID 0x2009
and add the below in line 516:
Code:
+ { USB_DEVICE(HAIER_VENDOR_ID, HAIER_PRODUCT_ID) },
Again, go to the terminal and run the below command:
Code:
cp /boot/config-$(uname -r) /usr/src/linux-source-2.6.28/.config
make menuconfig
make -C /lib/modules/$(uname -r)/build M=/usr/src/linux-source-2.6.28/drivers/usb/serial
cp /usr/src/linux-source-2.6.28/drivers/usb/serial/option.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/
depmod -a
gedit /usr/share/hal/fdi/information/10freedesktop/10-modem.fdi
Create a new file at /etc/udev/rules.d/99-haier-ce100.rules, and insert the below line to it :
Code:
SYSFS{idVendor}=="201e", SYSFS{idProduct}=="2010", RUN+="/usr/bin/eject %k"
Reboot your computer and you are done with the settings.
Bookmarks