You are not logged in.
Hi all,
with release 157-1 of udev, modem-modeswitch seems to have been renamed to or replaced by mobile-action-modeswitch. I used modem-modeswitch to switch my Huawei E161 USB mobile broadband device to modem mode which used to work fine. Unfortunately, with the new udev release and mobile-action-modeswitch I'm not able to achieve that anymore.
Before updating udev this command worked:
# /lib/udev/modem-modeswitch -v 0x12d1 -p 0x1446 -t option-zerocd
Now with udev 157-1 I get the following error:
# /lib/udev/mobile-action-modeswitch -v 0x12d1 -p 0x1446 -t option-zerocd
E: unknown switch type 'option-zerocd'
All my attempts to find information about the switch types that mobile-action-modeswitch supports have been unsuccessful so far. The tool does not seem to have a manpage and even with Google I did not find a list of valid parameters for the -t option.
Does anyone know which switch type can be used with mobile-action-modeswitch instead of option-zerocd?
Or does anyone have a different approach to solve the problem?
Any help greatly appreciated.
Kind regards,
jamesbond007.
Last edited by jamesbond007 (2010-06-29 22:26:54)
Offline
pacman -Q udev
udev 157-1
I'm connected on mine now, but it's e160e. Are you using wvdial to connect? If not, the answer may lie in it's code, or in a dependency like ppp or wvstreams
Offline
Hi hume's doona,
thanks for your answer.
Are you using wvdial to connect?
No, I'm using umtsmon to establish the connection.
But as long as the device is not switched from virtual CD (storage) to modem device, umtsmon does not find a suitable device to use and aborts execution directly after being launched. Therefore I really need to find out the switch type for mobile-action-modeswitch. There must be a way to dig up this information...
Offline
Are you using a custom kernel? b/c modeswitch is automated in the vanilla kernel above 2.6.20 isn't it?
Offline
Are you using a custom kernel?
No, I'm using the standard kernel26 (2.6.34-2) from the core repository without any modifications.
b/c modeswitch is automated in the vanilla kernel above 2.6.20 isn't it?
Not to my knowledge. That's why I was using the modem-modeswitch command (see above) which was invoked by an udev rule.
Offline
Solution (thx to brain0):
1) install usb_modeswitch with pacman -S usb_modeswitch
2) udevadm control --reload-rules
3) re-insert stick
--> switching takes place automatically
Offline