LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   HP Compaq 6710 - Strange network problems (http://www.linuxquestions.org/questions/showthread.php?t=4175435764)

wakatana 11-05-2012 01:31 PM

HP Compaq 6710 - Strange network problems
 
Hi gurus, I am experiencing strange networks problems. I am trying to teather internet from HTC Desire S with Android. Basicly I followed those instructions: https://wiki.archlinux.org/index.php...ring#Procedure

1.) Enable USB Debugging - Phone: Settings --> Applications --> Development --> USB debugging
2.) Disconnect computer from any wireless or wired networks
3.) Enable the tethering option from phone - Phone: Settings --> Wireless & Networks --> Internet tethering (or Tethering & portable hotspot, for more recent versions)

This worked as epxected first time I have tried it. But when I executed same sets of commands second time it did not worked (usb0 interface did not goes up and thus is not capable to obtain IP address), no system changes was done.


Code:

[root@HP-PC ~]# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr 0B:16:21:2C:37:42 
          BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@HP-PC ~]# ifconfig usb0 up
SIOCSIFFLAGS: Cannot assign requested address

In the past I posted problem which enabling wlan0 interface which still preserves http://www.linuxquestions.org/questi...bg-4175429962/ today while I disconected wired network (for purposs described above) wlan0 interface goes imediatelly up.


Code:

#LAN CABLE IS UNPLUGGED:
[pista@HP-PC ~]$ ifconfig
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4732 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4732 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:355920 (347.5 KiB)  TX bytes:355920 (347.5 KiB)

p3p1      Link encap:Ethernet  HWaddr 00:1A:4B:76:8A:B3 
          inet6 addr: fe80::21a:4bff:fe76:8ab3/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:177056 errors:0 dropped:0 overruns:0 frame:0
          TX packets:98720 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:235463377 (224.5 MiB)  TX bytes:7864682 (7.5 MiB)
          Interrupt:18

wlan0    Link encap:Ethernet  HWaddr 00:1C:BF:2F:9D:E1 
          UP BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


#LAN CABLE IS PLUGGED:
[pista@HP-PC ~]$ ifconfig
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:5296 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5296 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:398788 (389.4 KiB)  TX bytes:398788 (389.4 KiB)

p3p1      Link encap:Ethernet  HWaddr 00:1A:4B:76:8A:B3 
          inet addr:192.168.1.139  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21a:4bff:fe76:8ab3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:234962 errors:1 dropped:0 overruns:0 frame:1
          TX packets:133222 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:318050150 (303.3 MiB)  TX bytes:11134161 (10.6 MiB)
          Interrupt:18

But in spite of this I am unable to connect to wifi access point (No encryption or MAC filter)

Code:

# works as expected and shows avaliable wireless network with approporiate channels
iwlist wlan0 scan

# echo $? return code 0
iwconfig wlan0 mode managed essid HTC channel 1


# But when i issue iwconfig I get Not-Associated under Acess point
[root@HP-PC ~]# iwconfig wlan0
wlan0    IEEE 802.11abg  ESSID:"HTC" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated 
          Tx-Power=off 
          Retry  long limit:7  RTS thr:off  Fragment thr:off
          Encryption key:off
          Power Management:off

I think those problems could be related somehow, can something hold the network interfaces and not allowing system to use it ? I tried disable NetworkManager.service but no luck.

Code:

systemctl disable NetworkManager.service
systemctl stop NetworkManager.service


Configuration:
Code:

[root@HP-PC ~]# lsb_release -d
Description:        Fedora release 16 (Verne)
[root@HP-PC ~]# uname -a
Linux HP-PC 3.6.2-1.fc16.x86_64 #1 SMP Wed Oct 17 05:30:01 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@HP-PC ~]# lspci | grep -i wireless
10:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)

Many thanks.

hunternet93 11-05-2012 03:21 PM

Are you tethering using WiFi and Portable Hotspot or through USB? I'm a little confused by your post. Can you connect to anything from WiFi?

wakatana 11-05-2012 05:25 PM

First problem is related to usb0 interface, I set up phone to USB tethering, but in Linux I cannot do anything with usb0 (newly interface that appears, it did not goes up).
Second (totally independed) problem is related to wlan0, I can set interface up but I am unable to connect to anything (AP or phone with tethering).

hunternet93 11-05-2012 06:48 PM

You might want to make sure you have the latest version of all relevant drivers. If possible, compile and install the latest stable kernel. I had a similar issue with a Ralink wireless card, updating the drivers fixed the issue. If you've never compiled a kernel before, don't worry, it's pretty easy. It takes some time, however. There are plenty of tutorials that can be found on Google, the latest kernel's source code can be found on http://kernel.org.

wakatana 11-05-2012 07:18 PM

Hope that I have latest drivers system update is periodically scheduled, i would prefer less painfull method if it would be possible than compiling kernel.

hunternet93 11-05-2012 07:46 PM

After re-reading your original post, I see you're running kernel 3.6.2, so you probably don't need to compile a later one. Do you have a physical wireless on/off switch on your laptop? Also, try running the following command and posting the output:
Code:

rfkill list
(you might need to install the rfkill package.)

You can try some of the suggestions here as well.

business_kid 11-06-2012 08:49 AM

I have the HP Compaq 6715S (Same deal, just AMD chips).

There's a 2011 BIOS update which is needed for 3.x kernels on the HP site, and would probably help for this.
There's a BIOS option "Fast Ethernet Switching," which disables the wifi if the lan is configured, and vice versa. Make sure it is set in the negative. I would get NetworkManager out of it, because it knows better than you do what you want :-//.

The device not reappearing can probably be solved by unloading the appropriate module. I have slackware-14.0 here (XFCE, no NetworkManagetr) and an ante-delluvian HTC Android running CM-6.0, so I can probably duplicate and try here if you get stuck.

EDIT: If you need to insert a udev rule, most distros have /etc/udev for your personal scripts.

wakatana 11-06-2012 05:20 PM

Thank you very much, "Fast Ethernet Switching" was the key, never heard of "feature" like this, people always learns something new. Now wireless (wlan0) is working as expected, however I still have problem with android usb tethering (usb0). I tried two phones HTC Desire C and HTC Desire S. With Desire C everything works as expected, usb0 automatically goes up and gains IP address (output bellow)

DESIRE C:
Code:

Nov  6 23:32:36 HP-PC kernel: [ 8858.599122] usb 2-1: new high-speed USB device number 24 using ehci_hcd
Nov  6 23:32:36 HP-PC kernel: [ 8858.714582] usb 2-1: New USB device found, idVendor=0bb4, idProduct=0ff9
Nov  6 23:32:36 HP-PC kernel: [ 8858.714593] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Nov  6 23:32:36 HP-PC kernel: [ 8858.714601] usb 2-1: Product: Android Phone
Nov  6 23:32:36 HP-PC kernel: [ 8858.714607] usb 2-1: Manufacturer: HTC
Nov  6 23:32:36 HP-PC kernel: [ 8858.714613] usb 2-1: SerialNumber: SH28LW501667
Nov  6 23:32:36 HP-PC kernel: [ 8858.718716] scsi16 : usb-storage 2-1:1.0
Nov  6 23:32:36 HP-PC mtp-probe: checking bus 2, device 24: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
Nov  6 23:32:36 HP-PC mtp-probe: bus: 2, device: 24 was not an MTP device
Nov  6 23:32:37 HP-PC kernel: [ 8859.721079] scsi 16:0:0:0: Direct-Access    HTC      Android Phone    0000 PQ: 0 ANSI: 2
Nov  6 23:32:37 HP-PC kernel: [ 8859.721654] scsi 16:0:0:1: Direct-Access    HTC      Android Phone    0000 PQ: 0 ANSI: 2
Nov  6 23:32:37 HP-PC kernel: [ 8859.722277] scsi 16:0:0:2: CD-ROM            HTC      Android Phone    0000 PQ: 0 ANSI: 2
Nov  6 23:32:37 HP-PC kernel: [ 8859.723863] sd 16:0:0:0: Attached scsi generic sg2 type 0
Nov  6 23:32:37 HP-PC kernel: [ 8859.724311] sd 16:0:0:1: Attached scsi generic sg3 type 0
Nov  6 23:32:37 HP-PC kernel: [ 8859.730737] sr1: scsi-1 drive
Nov  6 23:32:37 HP-PC kernel: [ 8859.731271] sr 16:0:0:2: Attached scsi generic sg4 type 5
Nov  6 23:32:37 HP-PC kernel: [ 8859.733615] sd 16:0:0:0: [sdb] Attached SCSI removable disk
Nov  6 23:32:37 HP-PC kernel: [ 8859.734259] sd 16:0:0:1: [sdc] Attached SCSI removable disk
Nov  6 23:32:52 HP-PC kernel: [ 8875.041562] usb 2-1: USB disconnect, device number 24
Nov  6 23:32:53 HP-PC kernel: [ 8875.408119] usb 2-1: new high-speed USB device number 25 using ehci_hcd
Nov  6 23:32:53 HP-PC kernel: [ 8875.523775] usb 2-1: New USB device found, idVendor=0bb4, idProduct=0cf5
Nov  6 23:32:53 HP-PC kernel: [ 8875.523786] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Nov  6 23:32:53 HP-PC kernel: [ 8875.523794] usb 2-1: Product: Android Phone
Nov  6 23:32:53 HP-PC kernel: [ 8875.523800] usb 2-1: Manufacturer: HTC
Nov  6 23:32:53 HP-PC kernel: [ 8875.523806] usb 2-1: SerialNumber: SH28LW501667
Nov  6 23:32:53 HP-PC kernel: [ 8875.527356] scsi17 : usb-storage 2-1:1.0
Nov  6 23:32:53 HP-PC mtp-probe: checking bus 2, device 25: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
Nov  6 23:32:53 HP-PC mtp-probe: bus: 2, device: 25 was not an MTP device
Nov  6 23:32:54 HP-PC kernel: [ 8876.532756] scsi 17:0:0:0: Direct-Access    HTC      Android Phone    0000 PQ: 0 ANSI: 2
Nov  6 23:32:54 HP-PC kernel: [ 8876.534111] scsi 17:0:0:1: Direct-Access    HTC      Android Phone    0000 PQ: 0 ANSI: 2
Nov  6 23:32:54 HP-PC kernel: [ 8876.535444] scsi 17:0:0:2: CD-ROM            HTC      Android Phone    0000 PQ: 0 ANSI: 2
Nov  6 23:32:54 HP-PC kernel: [ 8876.536156] sd 17:0:0:0: Attached scsi generic sg2 type 0
Nov  6 23:32:54 HP-PC kernel: [ 8876.536395] sd 17:0:0:1: Attached scsi generic sg3 type 0
Nov  6 23:32:54 HP-PC kernel: [ 8876.557557] sr1: scsi-1 drive
Nov  6 23:32:54 HP-PC kernel: [ 8876.557797] sr 17:0:0:2: Attached scsi generic sg4 type 5
Nov  6 23:32:54 HP-PC kernel: [ 8876.563288] sd 17:0:0:1: [sdc] Attached SCSI removable disk
Nov  6 23:32:54 HP-PC kernel: [ 8876.597050] sd 17:0:0:0: [sdb] Attached SCSI removable disk
Nov  6 23:33:09 HP-PC kernel: [ 8891.384194] usb 2-1: USB disconnect, device number 25
Nov  6 23:33:09 HP-PC kernel: [ 8892.055141] usb 2-1: new high-speed USB device number 26 using ehci_hcd
Nov  6 23:33:09 HP-PC kernel: [ 8892.170830] usb 2-1: New USB device found, idVendor=0bb4, idProduct=0ff8
Nov  6 23:33:09 HP-PC kernel: [ 8892.170841] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Nov  6 23:33:09 HP-PC kernel: [ 8892.170848] usb 2-1: Product: Android Phone
Nov  6 23:33:09 HP-PC kernel: [ 8892.170855] usb 2-1: Manufacturer: HTC
Nov  6 23:33:09 HP-PC kernel: [ 8892.170861] usb 2-1: SerialNumber: SH28LW501667
Nov  6 23:33:09 HP-PC kernel: [ 8892.173527] cdc_ether 2-1:1.0: usb0: register 'cdc_ether' at usb-0000:00:1d.7-1, CDC Ethernet Device, e2:59:0b:e7:4d:e7
Nov  6 23:33:09 HP-PC mtp-probe: checking bus 2, device 26: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
Nov  6 23:33:09 HP-PC mtp-probe: bus: 2, device: 26 was not an MTP device
Nov  6 23:33:09 HP-PC NetworkManager[977]: <warn> failed to allocate link cache: (-12) Netlink Error (errno = Operation not supported)
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): carrier is OFF
Nov  6 23:33:09 HP-PC NetworkManager[977]: <error> [1352241189.870136] [nm-device-ethernet.c:456] real_update_permanent_hw_address(): (usb0): unable to read permanent MAC address (error 0)
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): new Ethernet device (driver: 'cdc_ether' ifindex: 14)
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): exported as /org/freedesktop/NetworkManager/Devices/10
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): now managed
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): bringing up device.
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): carrier now ON (device state 20)
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): preparing device.
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): deactivating device (reason 'managed') [2]
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Auto-activating connection 'Wired connection 1'.
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) starting connection 'Wired connection 1'
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 1 of 5 (Device Prepare) scheduled...
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 1 of 5 (Device Prepare) started...
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) scheduled...
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 1 of 5 (Device Prepare) complete.
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) starting...
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): device state change: prepare -> config (reason 'none') [40 50 0]
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) successful.
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 3 of 5 (IP Configure Start) scheduled.
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 2 of 5 (Device Configure) complete.
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 3 of 5 (IP Configure Start) started...
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): device state change: config -> ip-config (reason 'none') [50 70 0]
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> dhclient started with pid 5597
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) Beginning IP6 addrconf.
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 3 of 5 (IP Configure Start) complete.
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): carrier now OFF (device state 70, deferring action for 4 seconds)
Nov  6 23:33:09 HP-PC dhclient[5597]: Internet Systems Consortium DHCP Client 4.2.4-P2
Nov  6 23:33:09 HP-PC dhclient[5597]: Copyright 2004-2012 Internet Systems Consortium.
Nov  6 23:33:09 HP-PC dhclient[5597]: All rights reserved.
Nov  6 23:33:09 HP-PC dhclient[5597]: For info, please visit https://www.isc.org/software/dhcp/
Nov  6 23:33:09 HP-PC dhclient[5597]:
Nov  6 23:33:09 HP-PC NetworkManager[977]: <info> (usb0): DHCPv4 state changed nbi -> preinit
Nov  6 23:33:09 HP-PC dhclient[5597]: Listening on LPF/usb0/e2:59:0b:e7:4d:e7
Nov  6 23:33:09 HP-PC dhclient[5597]: Sending on  LPF/usb0/e2:59:0b:e7:4d:e7
Nov  6 23:33:09 HP-PC dhclient[5597]: Sending on  Socket/fallback
Nov  6 23:33:09 HP-PC dhclient[5597]: DHCPREQUEST on usb0 to 255.255.255.255 port 67
Nov  6 23:33:10 HP-PC NetworkManager[977]: <info> (usb0): carrier now ON (device state 70)
Nov  6 23:33:11 HP-PC avahi-daemon[990]: Registering new address record for fe80::e059:bff:fee7:4de7 on usb0.*.
Nov  6 23:33:13 HP-PC dhclient[5597]: DHCPREQUEST on usb0 to 255.255.255.255 port 67
Nov  6 23:33:13 HP-PC dhclient[5597]: DHCPNAK from 192.168.42.129
Nov  6 23:33:13 HP-PC NetworkManager[977]: <info> (usb0): DHCPv4 state changed preinit -> expire
Nov  6 23:33:13 HP-PC dhclient[5597]: DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 5
Nov  6 23:33:13 HP-PC NetworkManager[977]: <info> (usb0): DHCPv4 state changed expire -> preinit
Nov  6 23:33:16 HP-PC dhclient[5597]: DHCPREQUEST on usb0 to 255.255.255.255 port 67
Nov  6 23:33:16 HP-PC dhclient[5597]: DHCPOFFER from 192.168.42.129
Nov  6 23:33:16 HP-PC dhclient[5597]: DHCPACK from 192.168.42.129
Nov  6 23:33:16 HP-PC NetworkManager[977]: <info> (usb0): DHCPv4 state changed preinit -> bound
Nov  6 23:33:16 HP-PC NetworkManager[977]: <info>  address 192.168.42.215
Nov  6 23:33:16 HP-PC NetworkManager[977]: <info>  prefix 24 (255.255.255.0)
Nov  6 23:33:16 HP-PC NetworkManager[977]: <info>  gateway 192.168.42.129
Nov  6 23:33:16 HP-PC NetworkManager[977]: <info>  hostname 'HP-PC'
Nov  6 23:33:16 HP-PC NetworkManager[977]: <info>  nameserver '192.168.42.129'
Nov  6 23:33:16 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Nov  6 23:33:16 HP-PC dhclient[5597]: bound to 192.168.42.215 -- renewal in 1589 seconds.
Nov  6 23:33:16 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 5 of 5 (IPv4 Commit) started...
Nov  6 23:33:16 HP-PC avahi-daemon[990]: Joining mDNS multicast group on interface usb0.IPv4 with address 192.168.42.215.
Nov  6 23:33:16 HP-PC avahi-daemon[990]: New relevant interface usb0.IPv4 for mDNS.
Nov  6 23:33:16 HP-PC avahi-daemon[990]: Registering new address record for 192.168.42.215 on usb0.IPv4.
Nov  6 23:33:17 HP-PC NetworkManager[977]: <info> Policy set 'domacnost2' (wlan0) as default for IPv4 routing and DNS.
Nov  6 23:33:17 HP-PC NetworkManager[977]: <info> (usb0): device state change: ip-config -> activated (reason 'none') [70 100 0]
Nov  6 23:33:17 HP-PC NetworkManager[977]: <info> Policy set 'Wired connection 1' (usb0) as default for IPv4 routing and DNS.
Nov  6 23:33:17 HP-PC NetworkManager[977]: <info> Activation (usb0) successful, device activated.
Nov  6 23:33:17 HP-PC dbus[1018]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Nov  6 23:33:17 HP-PC dbus-daemon[1018]: dbus[1018]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Nov  6 23:33:17 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 5 of 5 (IPv4 Commit) complete.
Nov  6 23:33:17 HP-PC dbus-daemon[1018]: dbus[1018]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov  6 23:33:17 HP-PC dbus[1018]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov  6 23:33:17 HP-PC dbus-daemon[1018]: Starting iscsi (via systemctl):  [  OK  ]
Nov  6 23:33:17 HP-PC dbus-daemon[1018]: Mounting other filesystems:  [  OK  ]
Nov  6 23:33:29 HP-PC NetworkManager[977]: <info> (usb0): IP6 addrconf timed out or failed.
Nov  6 23:33:29 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Nov  6 23:33:29 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Nov  6 23:33:29 HP-PC NetworkManager[977]: <info> Activation (usb0) Stage 4 of 5 (IPv6 Configure Timeout) complete.

Nov  6 23:34:52 HP-PC kernel: [ 8994.884377] usb 2-1: USB disconnect, device number 26
Nov  6 23:34:52 HP-PC kernel: [ 8994.886682] cdc_ether 2-1:1.0: usb0: unregister 'cdc_ether' usb-0000:00:1d.7-1, CDC Ethernet Device
Nov  6 23:34:52 HP-PC avahi-daemon[990]: Interface usb0.IPv4 no longer relevant for mDNS.
Nov  6 23:34:52 HP-PC avahi-daemon[990]: Leaving mDNS multicast group on interface usb0.IPv4 with address 192.168.42.215.
Nov  6 23:34:52 HP-PC dhclient[5597]: receive_packet failed on usb0: Network is down
Nov  6 23:34:52 HP-PC NetworkManager[977]: <info> (usb0): carrier now OFF (device state 100, deferring action for 4 seconds)
Nov  6 23:34:52 HP-PC avahi-daemon[990]: Withdrawing address record for fe80::e059:bff:fee7:4de7 on usb0.
Nov  6 23:34:52 HP-PC avahi-daemon[990]: Withdrawing address record for 192.168.42.215 on usb0.
Nov  6 23:34:52 HP-PC avahi-daemon[990]: Withdrawing workstation service for usb0.
Nov  6 23:34:52 HP-PC lldpad[1204]: netlink: 20 bytes leftover after parsing attributes.
Nov  6 23:34:52 HP-PC lldpad[1204]: netlink: 20 bytes leftover after parsing attributes.
Nov  6 23:34:52 HP-PC NetworkManager[977]: <info> (usb0): now unmanaged
Nov  6 23:34:52 HP-PC NetworkManager[977]: <info> (usb0): device state change: activated -> unmanaged (reason 'removed') [100 10 36]
Nov  6 23:34:52 HP-PC NetworkManager[977]: <info> (usb0): deactivating device (reason 'removed') [36]
Nov  6 23:34:52 HP-PC NetworkManager[977]: <info> (usb0): canceled DHCP transaction, DHCP client pid 5597
Nov  6 23:34:52 HP-PC NetworkManager[977]: <warn> (14) failed to find interface name for index
Nov  6 23:34:52 HP-PC NetworkManager[977]: nm_system_iface_flush_routes: assertion `iface != NULL' failed
Nov  6 23:34:52 HP-PC NetworkManager[977]: <warn> (14) failed to find interface name for index
Nov  6 23:34:52 HP-PC NetworkManager[977]: <info> Policy set 'domacnost2' (wlan0) as default for IPv4 routing and DNS.
Nov  6 23:34:52 HP-PC NetworkManager[977]: <info> Policy set 'domacnost2' (wlan0) as default for IPv4 routing and DNS.
Nov  6 23:34:52 HP-PC NetworkManager[977]: <info> (usb0): cleaning up...
Nov  6 23:34:52 HP-PC NetworkManager[977]: <warn> (14) failed to find interface name for index
Nov  6 23:34:52 HP-PC NetworkManager[977]: (nm-system.c:685):nm_system_iface_get_flags: runtime check failed: (iface != NULL)
Nov  6 23:34:52 HP-PC NetworkManager[977]: <error> [1352241292.900407] [nm-system.c:687] nm_system_iface_get_flags(): (unknown): failed to get interface link object
Nov  6 23:34:52 HP-PC dbus-daemon[1018]: dbus[1018]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Nov  6 23:34:52 HP-PC dbus[1018]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Nov  6 23:34:53 HP-PC dbus[1018]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov  6 23:34:53 HP-PC dbus-daemon[1018]: dbus[1018]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'


[pista@HP-PC ~]$ ifconfig
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1812 (1.7 KiB)  TX bytes:1812 (1.7 KiB)

p3p1      Link encap:Ethernet  HWaddr 00:1A:4B:76:8A:B3 
          UP BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:18

usb0      Link encap:Ethernet  HWaddr E2:59:0B:E7:4D:E7 
          inet addr:192.168.42.215  Bcast:192.168.42.255  Mask:255.255.255.0
          inet6 addr: fe80::e059:bff:fee7:4de7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2137 (2.0 KiB)  TX bytes:13676 (13.3 KiB)

wlan0    Link encap:Ethernet  HWaddr 00:1C:BF:2F:9D:E1 
          inet addr:192.168.1.77  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21c:bfff:fe2f:9de1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:184571 errors:0 dropped:0 overruns:0 frame:0
          TX packets:103126 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:262045584 (249.9 MiB)  TX bytes:11968276 (11.4 MiB)


But if I am connecting Desire S (which first time worked like a charm) usb0 interface is still down which means also IP addr. cannot be asigned to this interface (output bellow)

DESIRE S:
Code:

Nov  6 23:36:15 HP-PC kernel: [ 9077.614124] usb 2-1: new high-speed USB device number 27 using ehci_hcd
Nov  6 23:36:15 HP-PC kernel: [ 9077.739259] usb 2-1: New USB device found, idVendor=0bb4, idProduct=0cab
Nov  6 23:36:15 HP-PC kernel: [ 9077.739271] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov  6 23:36:15 HP-PC kernel: [ 9077.739278] usb 2-1: Product: Android Phone
Nov  6 23:36:15 HP-PC kernel: [ 9077.739285] usb 2-1: Manufacturer: HTC
Nov  6 23:36:15 HP-PC kernel: [ 9077.739291] usb 2-1: SerialNumber: SH149TJ03604
Nov  6 23:36:15 HP-PC kernel: [ 9077.741738] scsi18 : usb-storage 2-1:1.0
Nov  6 23:36:15 HP-PC mtp-probe: checking bus 2, device 27: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
Nov  6 23:36:15 HP-PC mtp-probe: bus: 2, device: 27 was not an MTP device
Nov  6 23:36:16 HP-PC kernel: [ 9078.747200] scsi 18:0:0:0: Direct-Access    HTC      Android Phone    0100 PQ: 0 ANSI: 2
Nov  6 23:36:16 HP-PC kernel: [ 9078.748374] sd 18:0:0:0: Attached scsi generic sg2 type 0
Nov  6 23:36:16 HP-PC kernel: [ 9078.754161] sd 18:0:0:0: [sdb] Attached SCSI removable disk
Nov  6 23:36:31 HP-PC kernel: [ 9093.726941] usb 2-1: USB disconnect, device number 27
Nov  6 23:36:31 HP-PC kernel: [ 9094.118082] usb 2-1: new high-speed USB device number 28 using ehci_hcd
Nov  6 23:36:31 HP-PC kernel: [ 9094.246182] usb 2-1: New USB device found, idVendor=0bb4, idProduct=0ff8
Nov  6 23:36:31 HP-PC kernel: [ 9094.246194] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov  6 23:36:31 HP-PC kernel: [ 9094.246201] usb 2-1: Product: Android Phone
Nov  6 23:36:31 HP-PC kernel: [ 9094.246208] usb 2-1: Manufacturer: HTC
Nov  6 23:36:31 HP-PC kernel: [ 9094.246214] usb 2-1: SerialNumber: SH149TJ03604
Nov  6 23:36:31 HP-PC kernel: [ 9094.252616] cdc_ether 2-1:1.0: usb0: register 'cdc_ether' at usb-0000:00:1d.7-1, CDC Ethernet Device, 0b:16:21:2c:37:42
Nov  6 23:36:31 HP-PC mtp-probe: checking bus 2, device 28: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
Nov  6 23:36:31 HP-PC mtp-probe: bus: 2, device: 28 was not an MTP device
Nov  6 23:36:31 HP-PC NetworkManager[977]: <warn> failed to allocate link cache: (-12) Netlink Error (errno = Operation not supported)
Nov  6 23:36:31 HP-PC NetworkManager[977]: <info> (usb0): carrier is OFF
Nov  6 23:36:31 HP-PC NetworkManager[977]: <error> [1352241391.965867] [nm-device-ethernet.c:456] real_update_permanent_hw_address(): (usb0): unable to read permanent MAC address (error 0)
Nov  6 23:36:31 HP-PC NetworkManager[977]: <info> (usb0): new Ethernet device (driver: 'cdc_ether' ifindex: 15)
Nov  6 23:36:31 HP-PC NetworkManager[977]: <info> (usb0): exported as /org/freedesktop/NetworkManager/Devices/11
Nov  6 23:36:31 HP-PC NetworkManager[977]: <info> (usb0): now managed
Nov  6 23:36:31 HP-PC NetworkManager[977]: <info> (usb0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Nov  6 23:36:31 HP-PC NetworkManager[977]: <info> (usb0): bringing up device.
Nov  6 23:36:31 HP-PC NetworkManager[977]: <info> (usb0): deactivating device (reason 'managed') [2]



[pista@HP-PC rules.d]$ sudo ifconfig usb0 up
SIOCSIFFLAGS: Cannot assign requested address
[pista@HP-PC rules.d]$ sudo modprobe -fr usbnet
FATAL: Module usbnet is in use.
[pista@HP-PC rules.d]$

Also tried to reload usbnet module according your suggestion but no luck. What could be wrong ?

business_kid 11-07-2012 03:43 AM

Quote:

NetworkManager[977]: <info> (usb0): exported as /org/freedesktop/NetworkManager/Devices/11
Nov 6 23:36:31 HP-PC NetworkManager[977]: <info> (usb0): now managed
Nov 6 23:36:31 HP-PC NetworkManager[977]: <info> (usb0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Nov 6 23:36:31 HP-PC NetworkManager[977]: <info> (usb0): bringing up device.
Nov 6 23:36:31 HP-PC NetworkManager[977]: <info> (usb0): deactivating device (reason 'managed') [2]
Looks to me like NetworkManager is getting in there and screwing things up because it knows better than you do what you are trying to do.

The 'server' in the tethering arrangement should be mode 'Master', whereas the 'client' is mode managed. I think NewtorkManager is purely a client control, but may be proved wrong.

hunternet93 11-07-2012 06:59 AM

You could try turning off NetworkManager and seeing if you can connect manually. Run these commands:

Code:

su
systemctl stop NetworkManager.service
ifconfig usb0 up
dhclient -v usb0

What this does:
1. Logs you in as root
2. Stops NetworkManager (you might lose your internet connection temporarily)
3. Enables the usb0 interface
4. Tries to get an IP address via DHCP. You should see a line like "bound to x.x.x.x -- renewal in xxx seconds". If it gives an error message, or it just repeats the line "DHCPDISCOVER on usb0..." repeatedly, then press Ctrl-C to stop dhclient.

To resume NetowrkManager:
Code:

systemctl start NetworkManager.service
If you get an IP address with command #4, then NetworkManager is probably the issue. You can set NetworkManager to not manage usb0 if that's the case.

business_kid 11-07-2012 11:54 AM

In addition, if the pc is the master, you just might need an iwconfig line specifying the mode
man iwconfig.

One is server, one is client, or relay, and I'm not sure which way you're doing it. A Caveat on that is that if you have the same broadcom b43xx card as I have, not all modes are/were supported in all drivers :-/. I tried to do something like this with an iMac, but that only had Wep, and the driver wouldn't handle Wep.

hunternet93 11-07-2012 11:56 AM

Quote:

Originally Posted by business_kid (Post 4824322)
In addition, if the pc is the master, you just might need an iwconfig line specifying the mode
man iwconfig.

One is server, one is client, or relay, and I'm not sure which way you're doing it. A Caveat on that is that if you have the same broadcom b43xx card as I have, not all modes are/were supported in all drivers :-/. I tried to do something like this with an iMac, but that only had Wep, and the driver wouldn't handle Wep.

I think the wifi issue has been resolved, the current issue is USB tethering not working.

wakatana 11-08-2012 11:28 AM

Hi gurus, tried suggested commands but no luck at all :(

Code:

[root@HP-PC ~]# systemctl stop NetworkManager.service
[root@HP-PC ~]# ifconfig usb0 up
SIOCSIFFLAGS: Cannot assign requested address
[pista@HP-PC ]# ip link set usb0 up
RTNETLINK answers: Cannot assign requested address
[root@HP-PC ~]# rmmod cdc_ether && rmmod usbnet
[root@HP-PC ~]# lsmod | egrep 'cdc_ether|usbnet'
[root@HP-PC ~]# modprobe usbnet && modprobe cdc_ether
[root@HP-PC ~]# lsmod | egrep 'cdc_ether|usbnet'
cdc_ether              14180  0
usbnet                31141  1 cdc_ether
mii                    13527  1 usbnet
[root@HP-PC ~]# ifconfig usb0 up
SIOCSIFFLAGS: Cannot assign requested address
[pista@HP-PC ]# ip link set usb0 up
RTNETLINK answers: Cannot assign requested address


Code:

Nov  8 16:05:16 HP-PC NetworkManager[950]: <info> exiting (success)
Nov  8 16:05:25 HP-PC kernel: [17349.166149] usb 2-3: new high-speed USB device number 3 using ehci_hcd
Nov  8 16:05:25 HP-PC kernel: [17349.294247] usb 2-3: New USB device found, idVendor=0bb4, idProduct=0cab
Nov  8 16:05:25 HP-PC kernel: [17349.294257] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov  8 16:05:25 HP-PC kernel: [17349.294265] usb 2-3: Product: Android Phone
Nov  8 16:05:25 HP-PC kernel: [17349.294272] usb 2-3: Manufacturer: HTC
Nov  8 16:05:25 HP-PC kernel: [17349.294278] usb 2-3: SerialNumber: SH149TJ03604
Nov  8 16:05:26 HP-PC mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3"
Nov  8 16:05:26 HP-PC mtp-probe: bus: 2, device: 3 was not an MTP device
Nov  8 16:05:26 HP-PC kernel: [17350.179152] Initializing USB Mass Storage driver...
Nov  8 16:05:26 HP-PC kernel: [17350.179374] scsi2 : usb-storage 2-3:1.0
Nov  8 16:05:26 HP-PC kernel: [17350.179476] usbcore: registered new interface driver usb-storage
Nov  8 16:05:26 HP-PC kernel: [17350.179478] USB Mass Storage support registered.
Nov  8 16:05:27 HP-PC kernel: [17351.183272] scsi 2:0:0:0: Direct-Access    HTC      Android Phone    0100 PQ: 0 ANSI: 2
Nov  8 16:05:27 HP-PC kernel: [17351.185056] sd 2:0:0:0: Attached scsi generic sg2 type 0
Nov  8 16:05:27 HP-PC kernel: [17351.190856] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Nov  8 16:06:06 HP-PC kernel: [17389.533685] usb 2-3: USB disconnect, device number 3
Nov  8 16:06:06 HP-PC kernel: [17389.927161] usb 2-3: new high-speed USB device number 4 using ehci_hcd
Nov  8 16:06:06 HP-PC kernel: [17390.055252] usb 2-3: New USB device found, idVendor=0bb4, idProduct=0ff8
Nov  8 16:06:06 HP-PC kernel: [17390.055261] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov  8 16:06:06 HP-PC kernel: [17390.055269] usb 2-3: Product: Android Phone
Nov  8 16:06:06 HP-PC kernel: [17390.055275] usb 2-3: Manufacturer: HTC
Nov  8 16:06:06 HP-PC kernel: [17390.055282] usb 2-3: SerialNumber: SH149TJ03604
Nov  8 16:06:06 HP-PC mtp-probe: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3"
Nov  8 16:06:06 HP-PC mtp-probe: bus: 2, device: 4 was not an MTP device
Nov  8 16:06:06 HP-PC kernel: [17390.167394] cdc_ether 2-3:1.0: usb0: register 'cdc_ether' at usb-0000:00:1d.7-3, CDC Ethernet Device, 0b:16:21:2c:37:42
Nov  8 16:13:45 HP-PC kernel: [17848.668202] usbcore: registered new interface driver cdc_ether
Nov  8 16:14:34 HP-PC avahi-daemon[969]: Withdrawing workstation service for usb0.
Nov  8 16:14:34 HP-PC kernel: [17897.834142] usbcore: deregistering interface driver cdc_ether
Nov  8 16:14:34 HP-PC kernel: [17897.834189] cdc_ether 2-3:1.0: usb0: unregister 'cdc_ether' usb-0000:00:1d.7-3, CDC Ethernet Device
Nov  8 16:14:34 HP-PC lldpad[1232]: netlink: 20 bytes leftover after parsing attributes.
Nov  8 16:14:42 HP-PC kernel: [17905.736328] cdc_ether 2-3:1.0: usb0: register 'cdc_ether' at usb-0000:00:1d.7-3, CDC Ethernet Device, 0b:16:21:2c:37:42

Is there a way how to debug "deeper" what is going on, or what you suggest ? Many thanks

hunternet93 11-08-2012 11:30 AM

Have you tried assigning usb0 an address? Maybe the driver doesn't support up/down? Try:
Code:

ifconfig usb0 192.168.0.1

wakatana 11-08-2012 11:42 AM

NO way :(
Code:

[root@HP-PC ~]# systemctl stop NetworkManager.service
[root@HP-PC ~]# ifconfig usb0 192.168.0.1
SIOCSIFFLAGS: Cannot assign requested address

However this should be done automatically, PC should obtain IP, GW, DNS etc. from phone. I dont understand wtah is going on.


All times are GMT -5. The time now is 11:29 AM.