Re: SOLVED: Re: [opensuse-factory] Re: [opensuse-kernel] ZTE MF626 on openSUSE 11.3 Milestone 6
On Mon, 10 May 2010 14:23:17 +0200 Rafał Miłecki <zajec5@gmail.com> wrote:
2010/5/10 Andi Sugandi <andisugandi@gmail.com>:
On 5/10/10, Stefan Seyfried <stefan.seyfried@googlemail.com> wrote:
can't you just "eject sr0" to switch the device? Definitely worth trying.
Wonderful, it works! =)
I guess it's kernel's module that switches device to modem mode. That's why userspace tool usb_modeswitch should not be needed anymore.
Not anymore...
However I think it should switch device to modem mode by default, right after plugging it. You still need to execute "eject /dev/sr0", don't you? Maybe you could create such a feature request on kernel's bugzilla?
That depends. Opinions on this change about every week. During even weeks, the "kernel driver makes the device useful" approach is chosen. During odd weeks, the "we need userspace crap like usb_modeswitch to make the device useful" approach is chosen. I learned that when I tried to make a device useful for all users (a USB WLAN stick) half a year ago and I finally gave up on the issue. Packaging a udev rule that does "eject" automatically would be a simple solution for Andi. -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Mon, May 10, 2010 at 03:22:07PM +0200, Stefan Seyfried wrote:
However I think it should switch device to modem mode by default, right after plugging it. You still need to execute "eject /dev/sr0", don't you? Maybe you could create such a feature request on kernel's bugzilla?
That depends. Opinions on this change about every week. During even weeks, the "kernel driver makes the device useful" approach is chosen. During odd weeks, the "we need userspace crap like usb_modeswitch to make the device useful" approach is chosen.
No, the kernel developers responsible for this driver, and the usb-storage driver have a very clear approach, that does not change per-week. It is: Existing kernel quirks to automatically handle these types of devices will be left alone in the kernel. Any new tweaks like this, that can be done in userspace, should be done in userspace. The "usb-modeswitch" program is the recommended way to resolve this, and is part of the default udev rules, so perhaps you just need to add your device id to it. thanks, greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Mon, 2010-05-10 at 08:02 -0700, Greg KH wrote:
The "usb-modeswitch" program is the recommended way to resolve this, and is part of the default udev rules, so perhaps you just need to add your device id to it.
It's all maintained in the usb_modeswitch package. Udev has no rules for 3G modems anymore, just one weird cable modem thing. There have only been a few for 3G modems, but they all moved to usb_modeswitch. Kay -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Mon, May 10, 2010 at 05:29:36PM +0200, Kay Sievers wrote:
On Mon, 2010-05-10 at 08:02 -0700, Greg KH wrote:
The "usb-modeswitch" program is the recommended way to resolve this, and is part of the default udev rules, so perhaps you just need to add your device id to it.
It's all maintained in the usb_modeswitch package. Udev has no rules for 3G modems anymore, just one weird cable modem thing. There have only been a few for 3G modems, but they all moved to usb_modeswitch.
Ah, good, that makes it even easier. So, see, it's all solved :) thanks, greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Mon, 10 May 2010 08:02:33 -0700 Greg KH <gregkh@suse.de> wrote:
On Mon, May 10, 2010 at 03:22:07PM +0200, Stefan Seyfried wrote:
That depends. Opinions on this change about every week. During even weeks, the "kernel driver makes the device useful" approach is chosen. During odd weeks, the "we need userspace crap like usb_modeswitch to make the device useful" approach is chosen.
No, the kernel developers responsible for this driver, and the usb-storage driver have a very clear approach, that does not change per-week. It is: Existing kernel quirks to automatically handle these types of devices will be left alone in the kernel. Any new tweaks like this, that can be done in userspace, should be done in userspace.
It certainly feels like it changes quite often ;) Anyway, I had the problem that my device was (wrongly) claimed by the zd1211 driver, which wanted to switch it but couldn't. I was neither allowed to implement switching into zd1211 (which is of course wrong, but at least fixes the problem), so that ar97something could drive the stick, ("no new quirks, and it is generally wrong!!") nor to remove it from zd1211 ("will break existing users!!"), so I wandered off into the sunset, especially since I now have different hardware ;)
The "usb-modeswitch" program is the recommended way to resolve this, and is part of the default udev rules, so perhaps you just need to add your device id to it.
If eject will do perfectly fine, why mess around with usb-modeswitch? The last time I had looked at this fine piece of software engineering, I was not willing to have this run as root on my machines. That's also why I did refuse to maintain it for openSUSE and drop it. -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Mon, May 10, 2010 at 05:31:27PM +0200, Stefan Seyfried wrote:
On Mon, 10 May 2010 08:02:33 -0700 Greg KH <gregkh@suse.de> wrote:
On Mon, May 10, 2010 at 03:22:07PM +0200, Stefan Seyfried wrote:
That depends. Opinions on this change about every week. During even weeks, the "kernel driver makes the device useful" approach is chosen. During odd weeks, the "we need userspace crap like usb_modeswitch to make the device useful" approach is chosen.
No, the kernel developers responsible for this driver, and the usb-storage driver have a very clear approach, that does not change per-week. It is: Existing kernel quirks to automatically handle these types of devices will be left alone in the kernel. Any new tweaks like this, that can be done in userspace, should be done in userspace.
It certainly feels like it changes quite often ;)
Anyway, I had the problem that my device was (wrongly) claimed by the zd1211 driver, which wanted to switch it but couldn't.
I was neither allowed to implement switching into zd1211 (which is of course wrong, but at least fixes the problem), so that ar97something could drive the stick, ("no new quirks, and it is generally wrong!!") nor to remove it from zd1211 ("will break existing users!!"), so I wandered off into the sunset, especially since I now have different hardware ;)
That's up to the zd1211 driver developers, sorry.
The "usb-modeswitch" program is the recommended way to resolve this, and is part of the default udev rules, so perhaps you just need to add your device id to it.
If eject will do perfectly fine, why mess around with usb-modeswitch? The last time I had looked at this fine piece of software engineering, I was not willing to have this run as root on my machines. That's also why I did refuse to maintain it for openSUSE and drop it.
usb-modeswitch handles more complex situations where a simple 'eject' command will not switch the device into modem mode. This type of device is becoming more popular these days for some reason :( thanks, greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Am Montag, 10. Mai 2010 17:31:27 schrieb Stefan Seyfried: [...]
The "usb-modeswitch" program is the recommended way to resolve this, and is part of the default udev rules, so perhaps you just need to add your device id to it.
If eject will do perfectly fine, why mess around with usb-modeswitch? The last time I had looked at this fine piece of software engineering, I was not willing to have this run as root on my machines. That's also why I did refuse to maintain it for openSUSE and drop it.
Please consider: Dropping usb_modeswitch means: openSUSE has no Support for approx 80 % of all _current_ hardware for UMTS/3G-Connection. It seems a bad idea to me and even worse for openSUSE. -- Mit freundlichen Grüßen, Marcel Hilzinger Linux New Media AG, Putzbrunner Str. 71, 81739 München, Germany Tel: +49 89 99 34 110, Fax: +49 89 99 34 1199 mhilzinger@linuxnewmedia.de - http://www.linuxnewmedia.de ---------------------------------------------------------- Linux New Media, the Pulse of Open Source: Lawrence, KS - Málaga Manchester - München - São Paulo - Warszawa ---------------------------------------------------------- Sitz der Gesellschaft: Putzbrunner Str. 71, 81739 München Amtsgericht München: HRB 129161 Vorstand: Brian Osborn, Hermann Plank Aufsichtsratsvorsitzender: Rudolf Strobl -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue, 11 May 2010 19:46:51 +0200 Marcel Hilzinger <mhilzinger@linuxnewmedia.de> wrote:
Am Montag, 10. Mai 2010 17:31:27 schrieb Stefan Seyfried:
The last time I had looked at this fine piece of software engineering, I was not willing to have this run as root on my machines. That's also why I did refuse to maintain it for openSUSE and drop it.
Please consider: Dropping usb_modeswitch means: openSUSE has no Support for approx 80 % of all _current_ hardware for UMTS/3G-Connection.
I don't have the hardware anymore and I have not much interest in stuff that I don't personally use. (Well, if it was an interesting problem, it might happen that I'd be interested in it, but maintaining usb_modeswitch is about the most boring stuff one can do. So it's not for me :) For usb_modeswitch, it's not only boring, but looking at the code was really not funny. To say it politely. (maybe that changed since I looked) So it's not something I'd do vouluntarily in my spare time.
It seems a bad idea to me and even worse for openSUSE.
Then go ahead and maintain it. That's a community distribution. Everyone can help. -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (4)
-
Greg KH
-
Kay Sievers
-
Marcel Hilzinger
-
Stefan Seyfried