You are not logged in.

#1 2010-06-28 14:55:08

jamesbond007
Member
From: Germany
Registered: 2009-06-14
Posts: 150

[solved] Problem width udev: mobile-action-modeswitch

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

#2 2010-06-28 15:35:09

hume's doona
Member
Registered: 2009-12-11
Posts: 206

Re: [solved] Problem width udev: mobile-action-modeswitch

 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

#3 2010-06-28 17:34:44

jamesbond007
Member
From: Germany
Registered: 2009-06-14
Posts: 150

Re: [solved] Problem width udev: mobile-action-modeswitch

Hi hume's doona,

thanks for your answer.

hume's doona wrote:

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

#4 2010-06-29 04:15:43

hume's doona
Member
Registered: 2009-12-11
Posts: 206

Re: [solved] Problem width udev: mobile-action-modeswitch

Are you using a custom kernel? b/c modeswitch is automated in the vanilla kernel above 2.6.20 isn't it?

Offline

#5 2010-06-29 05:40:03

jamesbond007
Member
From: Germany
Registered: 2009-06-14
Posts: 150

Re: [solved] Problem width udev: mobile-action-modeswitch

hume's doona wrote:

Are you using a custom kernel?

No, I'm using the standard kernel26 (2.6.34-2) from the core repository without any modifications.

hume's doona wrote:

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

#6 2010-06-29 22:26:21

jamesbond007
Member
From: Germany
Registered: 2009-06-14
Posts: 150

Re: [solved] Problem width udev: mobile-action-modeswitch

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

Board footer

Powered by FluxBB