Re: stopping modem manager STARTING AUTOMATICALLY
Hello! I have exactly the opposite problem: the Network Manager doesn't start the Modem Manager. I have the pertinent files: org.freedesktop.ModemManager.service under /usr/share/dbus-1/system-service and org.freedesktop.ModemManager.conf under /etc/dbus-1/system.d. And also an apropriate configuration for the connection under /etc/NetworkManager/system-connection (it works when I start it manually). Why does my NM not start my MM? What distro and NM and MM versions? Could you grab syslogs from /var/log/messages or /var/log/daemon.log (or similar)? Normally, there should be something like this there: ... NetworkManager[1312]: info trying to start the modem manager... Jan 23 23:01:40 gromit modem-manager: ModemManager (version 0.4-4.git20100720.fc14) starting... ... Jirka ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: stopping modem manager STARTING AUTOMATICALLY
Hi have the same problem. i use debian squeeze (on armel) and tried the network-manager and modemmanager versions from debian squeeze. I also tried nm and mm from ubuntu natty (re-cross-compiled on debian squeeze) and still have this problem. Output from NetworkManager is: # NetworkManager --no-daemon NetworkManager[804]: info NetworkManager (version 0.8.3) is starting... NetworkManager[804]: info Read config file /etc/NetworkManager/nm-system-settings.conf NetworkManager[804]: info trying to start the modem manager... NetworkManager[804]: info monitoring kernel firmware directory '/lib/firmware'. NetworkManager[804]:SCPlugin-Ifupdown: init! ... ... I had the same output with the debian versions. There is no problem when i start modem-manager manually: # modem-manager --debug ** Message: ModemManager (version 0.4) starting... ** Message: Loaded plugin Option ** Message: Loaded plugin Ericsson MBM ** Message: Loaded plugin Sierra ** Message: Loaded plugin AnyData ** Message: Loaded plugin Longcheer ** Message: Loaded plugin Novatel ** Message: Loaded plugin SimTech ... ... i have the file /usr/share/dbus-1/system-services/org.freedesktop.ModemManager.service installed and content is: [D-BUS Service] Name=org.freedesktop.ModemManager Exec=/usr/sbin/modem-manager User=root Any ideas? Cheers, Tom 2011/1/24 Jirka Klimes jkli...@redhat.com Hello! I have exactly the opposite problem: the Network Manager doesn't start the Modem Manager. I have the pertinent files: org.freedesktop.ModemManager.service under /usr/share/dbus-1/system-service and org.freedesktop.ModemManager.conf under /etc/dbus-1/system.d. And also an apropriate configuration for the connection under /etc/NetworkManager/system-connection (it works when I start it manually). Why does my NM not start my MM? What distro and NM and MM versions? Could you grab syslogs from /var/log/messages or /var/log/daemon.log (or similar)? Normally, there should be something like this there: ... NetworkManager[1312]: info trying to start the modem manager... Jan 23 23:01:40 gromit modem-manager: ModemManager (version 0.4-4.git20100720.fc14) starting... ... Jirka ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: stopping modem manager STARTING AUTOMATICALLY
hong sheng hong022011 at gmail.com writes: Hi Jikra,I am new to networkmanager open source and need your help.For networkmanager 0.80, do you mean networkmanager will also bring up modem-manager? But I didn't see it. Is it because networkmanager doesn't detect the modem in udev? Also, I have questions of relationship between networkmanager and modem-manager. I read the code of networkmanager 0.8.0, and modem-manager is part of it. When we do compile or build, install, will modem-manager exe-file automatically be generated? But it seems there is no main() function in the folder of modem-manager. And I didn't see modem-manager exe file be generated when I do make install networkmanager. Or we need to download a separate packet to build and install modem-manager?Also, if I want to set modem in linux terminal instead of through graphic applet, how can I do it? Currently, I put org.freedesktop.ModemManager.service under /usr/share/dbus-1/system-service and org.freedesktop.ModemManager.conf under /etc/dbus-1/system.d. In addition, I put a keyfile TestMode under /etc/NetworkManager/system-connection. However, I am still not able to make the modem run. Do I miss something? thanks a lot for the helpXiaohong On Fri, Aug 27, 2010 at 12:45 AM, Jirka Klimes jklimes at redhat.com wrote:On Thursday 26 of August 2010 23:52:05 X.H. Sheng wrote: Hi Jirka, Could you send the file of org.freedesktop.ModemManager.service? I have one as follows in my ubuntu machine: [D-BUS Service] Name=org.freedesktop.ModemManager Exec=/usr/sbin/modem-manager User=root Yes, that's the right content of the file. However, you don't have to and should not do anything with this file. The above suggestion about removing it is just a workaround to disable modem- manager to be started via NetworkManager daemon. Should I must run modem-manager to start modem in the embedded system rather than pc? I looked into the networkmanager 0.8 open source and noticed modem-manager is part of NetworkManager, then, instead of starting a separate modem-manager daemon, can I just run NetworkManger and let NetworkManager handles the modem? If I can do so, how can I set the configuration and system-settting? modem-manager is complementary program to NetworkManager and it is used to manage modems. You don't have to execute it manually. It is run automatically by NetworkManager. So, you just have to plug your modem and that's it. As far as configuration is concerned, you should set up a connection using nm-connection-editor. You can run it from terminal or just right-click on nm-applet in systray and choose Edit Connections Then select Mobile Broadband tab and add your connection. See also:https://help.ubuntu.com/10.04/internet/C/connecting-mobile.html Jirka ___ networkmanager-list mailing listnetworkmanager-list at gnome.orghttp://mail.gnome.org/mailman/listinfo/networkmanager-list ___ networkmanager-list mailing list networkmanager-list at gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list Hello! I have exactly the opposite problem: the Network Manager doesn't start the Modem Manager. I have the pertinent files: org.freedesktop.ModemManager.service under /usr/share/dbus-1/system-service and org.freedesktop.ModemManager.conf under /etc/dbus-1/system.d. And also an apropriate configuration for the connection under /etc/NetworkManager/system-connection (it works when I start it manually). Why does my NM not start my MM? Thank you, Ana ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: stopping modem manager
On Sat, 2010-09-25 at 21:12 -0300, José Queiroz wrote: 2010/9/25 Dan Williams d...@redhat.com On Mon, 2010-08-23 at 17:31 +0100, Rune Gellein wrote: Hi, I tried to just kill the modem manager, but Network manager started it again, so if you remove it, network manager will continue to try to start it in the background. And because of these dependencies, when you update the system again, the modem manager will be pulled back in (at least in gentoo). So what I am looking for is a setting in the Network manager configuration to stop it from loading the modem manager at all. Anything like that available? At this time, you either remove the modem-manager package, or you remove the dbus auto-activation file referenced earlier in this thread. I have various ideas how to only run ModemManager on-demand, which basically revolve around using udev to spawn ModemManager if it's not already running when a new serial port appears, and have MM quit if it's not managing any modems. NM would then stop poking MM automatically, and just rely on its presence. The one thing that doesn't solve is if MM crashes, it wouldn't necessarily get restarted automatically, which is quite useful to recover from bugs for users that don't know how to manually restart it. Dan And what about creating a [modem-manager] section on NetworkManager.conf? This way we could have a disabled=true directive to avoid loading MM, and a debug=level to easy debugging it. Maybe, but I'd like to solve this the right way instead of adding more and more config options; there are already a bunch. However, I'd entertain a patch which did this as long as it also correctly returned an error back to the caller when ModemManager isn't running and a mobile broadband connection was requested. For debugging, that's something that needs to be fixed in ModemManager itself, and debugging options should be tunable via SIGHUP or a D-Bus method. MM gets autospawned so callers don't have an opportunity to specify --debug on the command line unless it's run manually by the user. Dan ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: stopping modem manager
On Fri, 2010-08-27 at 11:00 -0700, hong sheng wrote: Hi Jikra, I am new to networkmanager open source and need your help. For networkmanager 0.80, do you mean networkmanager will also bring up modem-manager? But I didn't see it. Is it because networkmanager doesn't detect the modem in udev? Yes, NM will poke MM via D-Bus service activation when NM starts. D-Bus service activation is a great facility but it has historically been a bit difficult for people to setup if they are building everything themselves. Basically, dbus-daemon listens for requests from clients (like NM) and if the client requests a service that is not yet running, dbus-daemon looks in /usr/share/dbus-1/system-services/ for a special file that contains launch parameters. If one exists for that service, dbus-daemon will then queue the client's request, start that service, and deliver the client's request when the service is alive. Also, I have questions of relationship between networkmanager and modem-manager. I read the code of networkmanager 0.8.0, and modem-manager is part of it. When we do compile or build, install, Not entirely; what you're seeing is the NM glue code to take user-provided configuration and tell ModemManager to start the 3G connection using that configuration, and device management to fit modems into the NM device model that any NM-aware client already uses. will modem-manager exe-file automatically be generated? But it seems there is no main() function in the folder of modem-manager. And I didn't see modem-manager exe file be generated when I do make install networkmanager. Or we need to download a separate packet to build and install modem-manager? It's a separate project available on Freedesktop like NetworkManager: http://cgit.freedesktop.org/ModemManager/ModemManager/ Also, if I want to set modem in linux terminal instead of through graphic applet, how can I do it? If you mean telling NetworkManager to bring up a predefined 3G connection then you can use nmcli (available in NM 0.8.1 and later) to do so, or for ealier NM versions you might be able to use cnetworkmanager. You can also use ModemManager without NetworkManager too, there are various examples of getting the list of recognized modems, scanning for providers, and connecting the modem in the test/ directory in ModemManager git. Dan Xiaohong On Fri, Aug 27, 2010 at 12:45 AM, Jirka Klimes jkli...@redhat.com wrote: On Thursday 26 of August 2010 23:52:05 X.H. Sheng wrote: Hi Jirka, Could you send the file of org.freedesktop.ModemManager.service? I have one as follows in my ubuntu machine: [D-BUS Service] Name=org.freedesktop.ModemManager Exec=/usr/sbin/modem-manager User=root Yes, that's the right content of the file. However, you don't have to and should not do anything with this file. The above suggestion about removing it is just a workaround to disable modem- manager to be started via NetworkManager daemon. Should I must run modem-manager to start modem in the embedded system rather than pc? I looked into the networkmanager 0.8 open source and noticed modem-manager is part of NetworkManager, then, instead of starting a separate modem-manager daemon, can I just run NetworkManger and let NetworkManager handles the modem? If I can do so, how can I set the configuration and system-settting? modem-manager is complementary program to NetworkManager and it is used to manage modems. You don't have to execute it manually. It is run automatically by NetworkManager. So, you just have to plug your modem and that's it. As far as configuration is concerned, you should set up a connection using nm-connection-editor. You can run it from terminal or just right-click on nm-applet in systray and choose Edit Connections Then select Mobile Broadband tab and add your connection. See also: https://help.ubuntu.com/10.04/internet/C/connecting-mobile.html Jirka ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: stopping modem manager
2010/9/25 Dan Williams d...@redhat.com On Mon, 2010-08-23 at 17:31 +0100, Rune Gellein wrote: Hi, I tried to just kill the modem manager, but Network manager started it again, so if you remove it, network manager will continue to try to start it in the background. And because of these dependencies, when you update the system again, the modem manager will be pulled back in (at least in gentoo). So what I am looking for is a setting in the Network manager configuration to stop it from loading the modem manager at all. Anything like that available? At this time, you either remove the modem-manager package, or you remove the dbus auto-activation file referenced earlier in this thread. I have various ideas how to only run ModemManager on-demand, which basically revolve around using udev to spawn ModemManager if it's not already running when a new serial port appears, and have MM quit if it's not managing any modems. NM would then stop poking MM automatically, and just rely on its presence. The one thing that doesn't solve is if MM crashes, it wouldn't necessarily get restarted automatically, which is quite useful to recover from bugs for users that don't know how to manually restart it. Dan And what about creating a [modem-manager] section on NetworkManager.conf? This way we could have a disabled=true directive to avoid loading MM, and a debug=level to easy debugging it. ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: stopping modem manager
On Mon, 2010-08-23 at 17:31 +0100, Rune Gellein wrote: Hi, I tried to just kill the modem manager, but Network manager started it again, so if you remove it, network manager will continue to try to start it in the background. And because of these dependencies, when you update the system again, the modem manager will be pulled back in (at least in gentoo). So what I am looking for is a setting in the Network manager configuration to stop it from loading the modem manager at all. Anything like that available? At this time, you either remove the modem-manager package, or you remove the dbus auto-activation file referenced earlier in this thread. I have various ideas how to only run ModemManager on-demand, which basically revolve around using udev to spawn ModemManager if it's not already running when a new serial port appears, and have MM quit if it's not managing any modems. NM would then stop poking MM automatically, and just rely on its presence. The one thing that doesn't solve is if MM crashes, it wouldn't necessarily get restarted automatically, which is quite useful to recover from bugs for users that don't know how to manually restart it. Dan Rune On Fri, Aug 20, 2010 at 3:00 PM, Alexander Sack a...@ubuntu.com wrote: On Fri, Aug 20, 2010 at 01:42:58PM +0100, Rune Gellein wrote: Hi, I just upgraded from Network manager 0.7.2 to 0.8.1 and I noticed it now automatically starts the modem manager. I am using wireless lan (using ndiswrapper). So I don't need the modem manager which also seem to load lots of modem specific plugins into memory. Is it anyway to stop Network Manager from loading modem manager on startup? If not, any plans to add this? For ubuntu my answer would be to remove the modemmanager package ... that would do the trick. - Alexander ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: stopping modem manager
On Thursday 26 of August 2010 23:52:05 X.H. Sheng wrote: Hi Jirka, Could you send the file of org.freedesktop.ModemManager.service? I have one as follows in my ubuntu machine: [D-BUS Service] Name=org.freedesktop.ModemManager Exec=/usr/sbin/modem-manager User=root Yes, that's the right content of the file. However, you don't have to and should not do anything with this file. The above suggestion about removing it is just a workaround to disable modem- manager to be started via NetworkManager daemon. Should I must run modem-manager to start modem in the embedded system rather than pc? I looked into the networkmanager 0.8 open source and noticed modem-manager is part of NetworkManager, then, instead of starting a separate modem-manager daemon, can I just run NetworkManger and let NetworkManager handles the modem? If I can do so, how can I set the configuration and system-settting? modem-manager is complementary program to NetworkManager and it is used to manage modems. You don't have to execute it manually. It is run automatically by NetworkManager. So, you just have to plug your modem and that's it. As far as configuration is concerned, you should set up a connection using nm-connection-editor. You can run it from terminal or just right-click on nm-applet in systray and choose Edit Connections Then select Mobile Broadband tab and add your connection. See also: https://help.ubuntu.com/10.04/internet/C/connecting-mobile.html Jirka ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: stopping modem manager
On Monday 23 of August 2010 18:31:57 Rune Gellein wrote: Hi, I tried to just kill the modem manager, but Network manager started it again, so if you remove it, network manager will continue to try to start it in the background. And because of these dependencies, when you update the system again, the modem manager will be pulled back in (at least in gentoo). So what I am looking for is a setting in the Network manager configuration to stop it from loading the modem manager at all. Anything like that available? Rune modem-manager is implemented as a D-Bus service and it's autostarted by D-Bus when a call is made on it. NetworkManager pokes it every 2 minutes and thus restarts it. You can disable modem-manager by removing D-Bus service file /usr/share/dbus-1/system-services/org.freedesktop.ModemManager.service Jirka ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: stopping modem manager
Hi Jirka, Could you send the file of org.freedesktop.ModemManager.service? I have one as follows in my ubuntu machine: [D-BUS Service] Name=org.freedesktop.ModemManager Exec=/usr/sbin/modem-manager User=root Should I must run modem-manager to start modem in the embedded system rather than pc? I looked into the networkmanager 0.8 open source and noticed modem-manager is part of NetworkManager, then, instead of starting a separate modem-manager daemon, can I just run NetworkManger and let NetworkManager handles the modem? If I can do so, how can I set the configuration and system-settting? thanks Xiaohong On Thu, Aug 26, 2010 at 5:56 AM, Jirka Klimes jkli...@redhat.com wrote: On Monday 23 of August 2010 18:31:57 Rune Gellein wrote: Hi, I tried to just kill the modem manager, but Network manager started it again, so if you remove it, network manager will continue to try to start it in the background. And because of these dependencies, when you update the system again, the modem manager will be pulled back in (at least in gentoo). So what I am looking for is a setting in the Network manager configuration to stop it from loading the modem manager at all. Anything like that available? Rune modem-manager is implemented as a D-Bus service and it's autostarted by D-Bus when a call is made on it. NetworkManager pokes it every 2 minutes and thus restarts it. You can disable modem-manager by removing D-Bus service file /usr/share/dbus-1/system-services/org.freedesktop.ModemManager.service Jirka ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: stopping modem manager
Hi, I tried to just kill the modem manager, but Network manager started it again, so if you remove it, network manager will continue to try to start it in the background. And because of these dependencies, when you update the system again, the modem manager will be pulled back in (at least in gentoo). So what I am looking for is a setting in the Network manager configuration to stop it from loading the modem manager at all. Anything like that available? Rune On Fri, Aug 20, 2010 at 3:00 PM, Alexander Sack a...@ubuntu.com wrote: On Fri, Aug 20, 2010 at 01:42:58PM +0100, Rune Gellein wrote: Hi, I just upgraded from Network manager 0.7.2 to 0.8.1 and I noticed it now automatically starts the modem manager. I am using wireless lan (using ndiswrapper). So I don't need the modem manager which also seem to load lots of modem specific plugins into memory. Is it anyway to stop Network Manager from loading modem manager on startup? If not, any plans to add this? For ubuntu my answer would be to remove the modemmanager package ... that would do the trick. - Alexander ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: stopping modem manager
On Fri, Aug 20, 2010 at 01:42:58PM +0100, Rune Gellein wrote: Hi, I just upgraded from Network manager 0.7.2 to 0.8.1 and I noticed it now automatically starts the modem manager. I am using wireless lan (using ndiswrapper). So I don't need the modem manager which also seem to load lots of modem specific plugins into memory. Is it anyway to stop Network Manager from loading modem manager on startup? If not, any plans to add this? For ubuntu my answer would be to remove the modemmanager package ... that would do the trick. - Alexander ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: stopping modem manager
2010/8/20 Alexander Sack a...@ubuntu.com For ubuntu my answer would be to remove the modemmanager package ... that would do the trick. - Alexander Won't it cause any dependency problem? ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list