Re: PATCH: Auto-Enable WWAN after PIN entry



Den 27. juli 2012 16:13, skrev Marius Kotsbak:
Den 27. juli 2012 15:07, skrev richter ecos de:



Program received signal SIGSEGV, Segmentation fault.
gsm_add_menu_item (device=0x811d380, n_devices=1, active=0x0, menu=0x81b72e8, applet=0x80e6038) at applet-device-gsm.c:463
463 text = mobile_helper_get_connection_label (NULL,

*//*

*/[[GR]] As far as I can see, this seems not to be related to my patch. At least I do not change anything during menu update. Maybe you did not correctly recompile nm-applet, because the applet.h changes and if not every file gets recompiled, that might be the reason for the crash. So I suggest to make a make clean first and retry. If it still persists, that I would need more information about when it occurs./*


Okay, I can try to build the packages without your patch to see if it is actually caused by it.

Sorry, I must have mixed in a newer version of NM installed in /usr/local. It does not crash now, but in my case (with a modem with ethernet interface usb0), it seems like the patch does not work, probably because the ethernet interface is picked up as a wired ethernet interface:

Jul 30 23:36:01 marius-T1005 mtp-probe: checking bus 1, device 13: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8" Jul 30 23:36:01 marius-T1005 mtp-probe: bus: 1, device: 13 was not an MTP device Jul 30 23:36:01 marius-T1005 kernel: [ 6449.543012] generic-usb: probe of 0003:0BDB:1912.0005 failed with error -71 Jul 30 23:36:01 marius-T1005 kernel: [ 6449.543242] usb 1-8: USB disconnect, device number 13 Jul 30 23:36:02 marius-T1005 kernel: [ 6451.072123] usb 1-8: new high-speed USB device number 14 using ehci_hcd Jul 30 23:36:03 marius-T1005 mtp-probe: checking bus 1, device 14: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8" Jul 30 23:36:03 marius-T1005 kernel: [ 6451.246827] cdc_acm 1-8:1.1: ttyACM0: USB ACM device Jul 30 23:36:03 marius-T1005 kernel: [ 6451.249595] cdc_acm 1-8:1.3: ttyACM1: USB ACM device Jul 30 23:36:03 marius-T1005 kernel: [ 6451.257644] cdc_wdm 1-8:1.5: cdc-wdm0: USB WDM device Jul 30 23:36:03 marius-T1005 kernel: [ 6451.276886] usb 1-8: MAC-Address: 0x02:0x80:0x37:0xec:0x02:0x00 Jul 30 23:36:03 marius-T1005 kernel: [ 6451.279619] cdc_ncm 1-8:1.6: usb0: register 'cdc_ncm' at usb-0000:00:1d.7-8, CDC NCM, 02:80:37:ec:02:00 Jul 30 23:36:03 marius-T1005 kernel: [ 6451.281473] cdc_wdm 1-8:1.8: cdc-wdm1: USB WDM device Jul 30 23:36:03 marius-T1005 kernel: [ 6451.282202] cdc_acm 1-8:1.9: ttyACM2: USB ACM device Jul 30 23:36:03 marius-T1005 mtp-probe: bus: 1, device: 14 was not an MTP device Jul 30 23:36:03 marius-T1005 NetworkManager[6332]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.6/net/usb0, iface: usb0) Jul 30 23:36:03 marius-T1005 NetworkManager[6332]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.6/net/usb0, iface: usb0): no ifupdown configuration found. Jul 30 23:36:03 marius-T1005 NetworkManager[6332]: <warn> failed to allocate link cache: (-10) Operation not supported Jul 30 23:36:03 marius-T1005 NetworkManager[6332]: <info> (usb0): carrier is OFF Jul 30 23:36:03 marius-T1005 NetworkManager[6332]: <error> [1343684163.228195] [nm-device-ethernet.c:456] real_update_permanent_hw_address(): (usb0): unable to read permanent MAC address (error 0) Jul 30 23:36:03 marius-T1005 NetworkManager[6332]: <info> (usb0): new Ethernet device (driver: 'cdc_ncm' ifindex: 10) Jul 30 23:36:03 marius-T1005 NetworkManager[6332]: <info> (usb0): exported as /org/freedesktop/NetworkManager/Devices/6 Jul 30 23:36:03 marius-T1005 NetworkManager[6332]: <info> (usb0): now managed Jul 30 23:36:03 marius-T1005 NetworkManager[6332]: <info> (usb0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2] Jul 30 23:36:03 marius-T1005 NetworkManager[6332]: <info> (usb0): bringing up device. Jul 30 23:36:03 marius-T1005 NetworkManager[6332]: <info> (usb0): preparing device. Jul 30 23:36:03 marius-T1005 NetworkManager[6332]: <info> (usb0): deactivating device (reason 'managed') [2] Jul 30 23:36:03 marius-T1005 kernel: [ 6451.389234] ADDRCONF(NETDEV_UP): usb0: link is not ready Jul 30 23:36:03 marius-T1005 kernel: [ 6451.389342] cdc_ncm: usb0: network connection: disconnected Jul 30 23:36:03 marius-T1005 kernel: [ 6451.390737] ADDRCONF(NETDEV_UP): usb0: link is not ready

Which modem(s) have you tested with? Are they just using the old AT devices like /dev/acmX?

--
Marius



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]