New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb_modeswitch-data and udev rules missing #11647

Closed
spinus opened this Issue Dec 12, 2015 · 13 comments

Comments

Projects
None yet
5 participants
@spinus
Contributor

spinus commented Dec 12, 2015

According to that: #11197

I found that usb-modeswitch is provided with usb-modeswitch-data (on http://www.draisberghof.de/usb_modeswitch/). usb-modeswitch-data package contains data for modems and udev rules as well to activate modems (switch usb from usb-storage mode to modem-mode).

usb-modeswitch-data package is missing from nixos. I think would be nice to add this :-)

@spinus

This comment has been minimized.

Contributor

spinus commented Mar 24, 2016

I create pull request with udev rules for modems #14133.
But there is one issue there, I have no idea how to expose udev rules from a package.

Do I need to create some system glue/system service/system module in nixos to do that? Or there is a way to expose those rules from a package level?

@zimbatm

This comment has been minimized.

Member

zimbatm commented May 10, 2016

Once master goes to nixpkgs-unstable you will be able to use services.udev.packages = with pkgs; [ usb-modeswitch-data ];. It will install the udev rules on the next nixos-rebuild switch.

@zimbatm zimbatm closed this May 10, 2016

@spinus

This comment has been minimized.

Contributor

spinus commented May 10, 2016

huh, interesting. Do you think it's better to do it that way rather than create let's say "modem" service which inject this package to udev.packages?

@zimbatm

This comment has been minimized.

Member

zimbatm commented May 10, 2016

Not necessarily but it's one available option.

Do you know if this package cover all the modems ?

Adding more abstraction always has a cost and I don't understand the specific modem domain space enough to know what is the best option to be honest.

@spinus

This comment has been minimized.

Contributor

spinus commented May 10, 2016

Definitely not cover all, but it's what debian is using, I think ubuntu may use this + they add some extra stuff usually to cover corner cases. I think this package should cover most stuff.

@zimbatm

This comment has been minimized.

Member

zimbatm commented May 11, 2016

Before building a module around this I think it would be worth testing the udev rules to see if they work with nixos properly. Do you have any modems at hand you could use for that ?

@zimbatm zimbatm reopened this May 11, 2016

@spinus

This comment has been minimized.

Contributor

spinus commented May 11, 2016

@zimbatm yes, I have one which requires that (that's why I started that). I'll test over the weekend to make sure it works properly and report here.

@zimbatm

This comment has been minimized.

Member

zimbatm commented May 11, 2016

Okay great. Feel free to ping me on irc if you hit any snag. I might be there but not guaranteed :)

@Profpatsch

This comment has been minimized.

Member

Profpatsch commented Jun 23, 2018

triage: any updates?

@spinus

This comment has been minimized.

Contributor

spinus commented Jun 24, 2018

Unfortunately not, I left that topic. I don't know if that was fixed by someone else.

@Profpatsch

This comment has been minimized.

Member

Profpatsch commented Jun 24, 2018

@spinus

This comment has been minimized.

Contributor

spinus commented Jul 29, 2018

Looks like that is done and now you can enable udev rules with hardware.usbWwan.enable=true;.

@spinus spinus closed this Jul 29, 2018

@nyanloutre

This comment has been minimized.

Contributor

nyanloutre commented Dec 2, 2018

Hello, the rules doesn't seems to work. I am using a Logitech G920 which is configured by usb_modeswitch.

I added usb-modeswitch-data to the udev rules, it shows up in /etc/udev but nothing gets applied.

It look like the package is missing something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment