NetworkManager does not see 3G Modem

2010-10-19 Thread Ma Begaj
Hi,

I have here an another modem, Option Globetrotter GX0301 PCMCIA. It
uses hso module and it is not visible by NetworkManager.
My user is in dialout group (/dev/ttyHS* devices belong to dialout).

Am I missing something here? Here is the data I have ...

Thanks


r...@x22:/home/mb# ls -l /dev/ttyHS*
crw-rw 1 root dialout 250, 0 2010-10-19 14:55 /dev/ttyHS0
crw-rw 1 root dialout 250, 1 2010-10-19 14:55 /dev/ttyHS1
crw-rw 1 root dialout 250, 2 2010-10-19 14:55 /dev/ttyHS2
crw-rw 1 root dialout 250, 3 2010-10-19 14:55 /dev/ttyHS3

log when I start NetworkManager:
Oct 19 15:03:03 localhost NetworkManager[2869]: info NetworkManager
(version 0.8.1) is starting...
Oct 19 15:03:03 localhost NetworkManager[2869]: info Read config
file /etc/NetworkManager/nm-system-settings.conf
Oct 19 15:03:03 localhost NetworkManager[2869]: info trying to start
the modem manager...
Oct 19 15:03:04 localhost NetworkManager[2869]: info Loaded plugin
keyfile: (c) 2007 - 2008 Red Hat, Inc.  To report bugs please use the
NetworkManager mailing list.
Oct 19 15:03:04 localhost NetworkManager[2869]: info found WWan
radio killswitch rfkill1 (at
/sys/devices/pci:00/:00:1e.0/:02:00.0/:03:00.0/usb2/2-1/rfkill/rfkill1)
(driver usb)
Oct 19 15:03:04 localhost NetworkManager[2869]: info found WiFi
radio killswitch rfkill2 (at
/sys/devices/pci:00/:00:1e.0/:02:02.0/ieee80211/phy0/rfkill2)
(driver unknown)
Oct 19 15:03:04 localhost NetworkManager[2869]: info WiFi enabled by
radio killswitch; enabled by state file
Oct 19 15:03:04 localhost NetworkManager[2869]: info WWAN enabled by
radio killswitch; enabled by state file
Oct 19 15:03:04 localhost NetworkManager[2869]: info WiMAX enabled
by radio killswitch; enabled by state file
Oct 19 15:03:04 localhost NetworkManager[2869]: info Networking is
enabled by state file


r...@x22:/home/mb# ls -l
/sys/devices/pci:00/:00:1e.0/:02:00.0/:03:00.0/usb2/2-1/rfkill/rfkill1/
-rw-r--r-- 1 root root 4096 2010-10-19 15:04 claim
lrwxrwxrwx 1 root root0 2010-10-19 15:04 device - ../../../2-1/
-r--r--r-- 1 root root 4096 2010-10-19 15:04 index
-r--r--r-- 1 root root 4096 2010-10-19 14:55 name
-r--r--r-- 1 root root 4096 2010-10-19 15:04 persistent
drwxr-xr-x 2 root root0 2010-10-19 15:04 power/
-rw-r--r-- 1 root root 4096 2010-10-19 14:55 state
lrwxrwxrwx 1 root root0 2010-10-19 14:55 subsystem -
../../../../../../../../../class/rfkill/
-r--r--r-- 1 root root 4096 2010-10-19 14:55 type
-rw-r--r-- 1 root root 4096 2010-10-19 14:55 uevent

r...@x22:/sys/devices/pci:00/:00:1e.0/:02:00.0/:03:00.0/usb2/2-1/rfkill/rfkill1#
cat type
wwan

r...@x22:/sys/devices/pci:00/:00:1e.0/:02:00.0/:03:00.0/usb2/2-1/rfkill/rfkill1#
cat uevent
RFKILL_NAME=hso-0
RFKILL_TYPE=wwan
RFKILL_STATE=1

r...@x22:/# ifconfig hso0
hso0  Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1486  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:10
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

r...@x22:/# cd /sys/class/net/hso0
r...@x22:/sys/class/net/hso0# ls -l
insgesamt 0
-r--r--r-- 1 root root 4096 2010-10-19 14:55 address
-r--r--r-- 1 root root 4096 2010-10-19 14:55 addr_len
-r--r--r-- 1 root root 4096 2010-10-19 15:08 broadcast
-r--r--r-- 1 root root 4096 2010-10-19 15:08 carrier
lrwxrwxrwx 1 root root0 2010-10-19 15:08 device - ../../../2-1:1.0/
-r--r--r-- 1 root root 4096 2010-10-19 15:08 dev_id
-r--r--r-- 1 root root 4096 2010-10-19 15:08 dormant
-r--r--r-- 1 root root 4096 2010-10-19 15:08 duplex
-r--r--r-- 1 root root 4096 2010-10-19 15:08 features
-rw-r--r-- 1 root root 4096 2010-10-19 14:55 flags
-rw-r--r-- 1 root root 4096 2010-10-19 15:08 ifalias
-r--r--r-- 1 root root 4096 2010-10-19 14:55 ifindex
-r--r--r-- 1 root root 4096 2010-10-19 15:08 iflink
-r--r--r-- 1 root root 4096 2010-10-19 15:08 link_mode
-rw-r--r-- 1 root root 4096 2010-10-19 15:08 mtu
-r--r--r-- 1 root root 4096 2010-10-19 15:08 operstate
drwxr-xr-x 2 root root0 2010-10-19 15:08 power/
-r--r--r-- 1 root root 4096 2010-10-19 15:08 speed
drwxr-xr-x 2 root root0 2010-10-19 15:08 statistics/
lrwxrwxrwx 1 root root0 2010-10-19 14:55 subsystem -
../../../../../../../../../../class/net/
-rw-r--r-- 1 root root 4096 2010-10-19 15:08 tx_queue_len
-r--r--r-- 1 root root 4096 2010-10-19 14:55 type
-rw-r--r-- 1 root root 4096 2010-10-19 14:55 uevent

r...@x22:/sys/class/net/hso0# cat type
65534
r...@x22:/sys/class/net/hso0# cat uevent
DEVTYPE=wwan
INTERFACE=hso0
IFINDEX=4

r...@x22:/sys/class/net/hso0/device# cat uevent
DEVTYPE=usb_interface
DRIVER=hso
DEVICE=/proc/bus/usb/002/003
PRODUCT=af0/7011/0
TYPE=255/255/255
INTERFACE=255/255/255
MODALIAS=usb:v0AF0p7011ddcFFdscFFdpFFicFFiscFFipFF
___
networkmanager-list mailing 

Re: Is it possible that a command line interface to the network-manager functionality could be added?

2010-10-19 Thread Tassilo Horn
Darren Albers dalb...@gmail.com writes:

Hi Darren,

 nmcli might be what you are looking for:

I once looked at nmcli, but I couldn't figure out how to use it.  To be
more specific, how do I tell it to connect to the WIFI with SSID foo
using WPA2 with user jon and password secret?  Currently, I use
cnetworkmanager for that.

Do I understand it correctly, that currently nmcli only supports
connections you have previously setup using nm-applet?  But I even
cannot see those.  Is that because I use knetworkmanager instead of
nm-applet, and thus my credentials are stored in kwallet instead of the
Gnome keyring?  Or do I need to start a DBUS session bus somehow first?
(I guess that's normally done as soon as you login your
Gnome/KDE/XFCE..., but not when logging in at a console...)

Bye,
Tassilo

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


SMS with modemmanager and Nokia N900

2010-10-19 Thread tom
Hi,

i tried to use the testscript test/mm-send-sms.py to send a sms with my
Nokia N900 phone. 
I got the following exception when i try to use the script with:

$ python mm-send-sms.py 0123456789 mytext
Sending message failed.
Exception is: org.freedesktop.ModemManager.Modem.Gsm.Unknown: Unknown
error

I tried the same with d-feet and the dict:
{'number':'123456789', 'text':'my text'}

same result.

Any ideas why sending sms doesn't work? And how to fix this problem?


Cheers,

Tom


p.s.
I had to fix the script to output the exception. See patch attachment
and please apply the patch to git master. 


diff --git a/test/mm-send-sms.py b/test/mm-send-sms.py
index 55d453c..fad33fa 100755
--- a/test/mm-send-sms.py
+++ b/test/mm-send-sms.py
@@ -46,7 +46,8 @@ msg_dict = dbus.Dictionary({ dbus.String('number') : dbus.String(number),
 sms_iface = dbus.Interface(proxy, dbus_interface='org.freedesktop.ModemManager.Modem.Gsm.SMS')
 try:
 sms_iface.Send(msg_dict)
-except:
-print Sending message failed
+except Exception, e:
+print Sending message failed.
+print Exception is: %s % str(e)
 finally:
 modem.Enable(False)
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


[Patch][nm-applet] Fix: scope change from system to user will lose VPN secrets

2010-10-19 Thread cee1
Hi all,

This patch covers a problem of losing VPN secrets when switching connection
from system scope to user scope, the detailed traceback is in this thread:
http://mail.gnome.org/archives/networkmanager-list/2010-October/msg00083.html

nm-applet deletes a connection and then calls delete_cb to clear VPN
plugin-specific data in user scope. delete_cb calls
nm_connection_get_scope to detect a user scope connection, this is not
correct when updating a connection from system scope to user scope(nma will
set scope to new_scope first).


-- 
Regards,

- cee1


0001-Fix-scope-change-system-user-will-lost-VPN-specific-.patch
Description: Binary data
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Patch for nm-openvpn: fix incompatible change of NMVpnPluginUiInterface

2010-10-19 Thread cee1
Hi Dan,

I found these changes have already in repo, but:
  nm-openvpn: applied and then reverted:
http://git.gnome.org/browse/network-manager-openvpn/commit/?id=fd508820f42448e43b921d9e1e3353ba11ba3a17
  nm-pptp: in master
branchhttp://git.gnome.org/browse/network-manager-pptp/commit/?id=738426ebc4b3bf0bd40e02a093df814ff570a920
but
hasn't synchronized to NM_0_8

2010/10/13 cee1 fykc...@gmail.com

 Found the same problem for nm-pptp, attachment is the patch.

 2010/10/12 cee1 fykc...@gmail.com

 Hi Dan,

 From NM0.8.1 to 0.8.2, two members of NMVpnPluginUiInterface renamed.
 File 
 properties/nm-openvpn.chttp://git.gnome.org/browse/network-manager-openvpn/tree/properties/nm-openvpn.c#n778
  of
 nm-openvpn should upgrade for this.



-- 
Regards,

- cee1
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list