(sorry for my English) My Internet key Huawei E1550 (Vendor:Product before zerocd, usbmodeswitch is 12d1:1446, upon is 12d1:1001 and is acknowledge as E620) works in my Linux Pardus 2009.2 not very well.
I have set correctly Kppp (I'm an old Mandriva user) and if i try connect at boot it don't work. I must replug the Internet key and then it works fine. At boot time when Pardus tell me "populating /dev" i have a error about sr1 (CD rom of E1150). If Huawei is not plugged in i have none error at boot.
So the first work around is replugged the Internet key at boot.
(if i reboot the pc when internet works the key works fine) (when i replugged the /dev/ttyUSBx change and i must change the setting of Kppp)
The second work around is a software reset like this:
/* usbreset -- send a USB port reset to a USB device */
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <linux/usbdevice_fs.h>
int main(int argc, char **argv)
{
const char *filename;
int fd;
int rc;
if (argc != 2) {
fprintf(stderr, "Usage: usbreset device-filename (ex: /dev/bus/usb/$Bus/$Device, watch lsusb)\n");
return 1;
}
filename = argv[1];
fd = open(filename, O_WRONLY);
if (fd < 0) {
perror("Error opening output file");
return 1;
}
printf("Resetting USB device %s\n", filename);
rc = ioctl(fd, USBDEVFS_RESET, 0);
if (rc < 0) {
perror("Error in ioctl");
return 1;
}
printf("Reset successful\n");
close(fd);
return 0;
}
http://marc.info/?l=linux-usb&m=121459435621262&w=2 Alan Stern
compile the source code included (cc usbreset.c -o usbreset) (TY Alan Stern)
See lsusb and remember Bus number and Device number for huawei modem device.
execute the command usbreset (ex: usbreset /dev/bus/usb/002/003)
check the new device with dmesg (dmesg|grep "GSM modem") i select the last ttyUSBx with "1.0" port
set kppp with the ttyUSBx finded and start internet.
I have make a bash script that make this and is execute before KDE at start up. It works fine.
My internet key works fine with mandriva 2010 spring at boot, don't works with Pardus, i must replug or software reset. Have you any suggestion? Are there other with the same problem?
Tanks in advance.