Hi,
On Thu, 28 Mar 2019 08:35:09 +0100
Daniel Wagner <wagi(a)monom.org> wrote:
Alright, it doesn't depend on iwd or wpa_supplicant. So let's
see if
rfkill is enabled:
Mar 27 23:59:28 huit connmand[22082]: src/rfkill.c:rfkill_process()
Mar 27 23:59:28 huit connmand[22082]: src/rfkill.c:rfkill_process()
idx 0 type 1 op 0 soft 0 hard 0
Mar 27 23:59:28 huit connmand[22082]:
src/technology.c:__connman_technology_add_rfkill() index 0 type 3
soft 0 hard 0
Mar 27 23:59:28 huit connmand[22082]:
src/technology.c:technology_get() type 3
Mar 27 23:59:28 huit connmand[22082]:
src/technology.c:technology_find() type 3
Mar 27 23:59:28 huit connmand[22082]:
src/technology.c:technology_get() technology (nil) driver
0x561c8e6662a0 Mar 27 23:59:28 huit connmand[22082]:
src/technology.c:technology_get() technology (nil) driver
0x561c8e666740 Mar 27 23:59:28 huit connmand[22082]:
src/technology.c:technology_load() technology 0x561c8f69e6c0
Mar 27 23:59:28 huit connmand[22082]:
src/technology.c:technology_get() technology 0x561c8f69e6c0 WiFi
Mar 27 23:59:28 huit connmand[22082]:
src/technology.c:technology_apply_rfkill_change() technology
0x561c8f69e6c0 --> 0/0 vs 0/0
This looks okay, rfkill doesn't tell us to block anything. So what is
the 'iw list' tool telling you?
... the list was EMPTY :((( really sorry about that!!!
As my laptop does not have a wlan hardware switch, I am removing the
wlan kernel module to save energy.
I was always wondering if this is the best way to achieve that.
I think I asked the intel guys once and they had confirmed that this
works... but I can't clearly remember anymore...
So the wlan-modules where not loaded ;)
Funnily the "technologies" command still said:
/net/connman/technology/wifi
Name = WiFi
Type = wifi
Powered = True
Which is why I did not notice / think about it... because I thought
Powered means, well there is a wifi device and it's not rfkilled ...
Would be nice if the technologies command could list the number of
devices in each category that where found, no ?
Anyways: I am REAYLLY sorry!! And promise to try to make sure that this
won't happen again (iw list is easy enough to type ;))!!
So, here is what I did:
* ran a 'my-set wlan-on' (my command to disable / enable wifi)
((really simply handles rfkill + kernel modules you'll see the
commands ran below))
* checked with 'ip link', 'iw list': all good
* stopped wpa_supplicant, connman.service,
connman-vpn.service.
* exited cmst
* set the journalctl cursor and recordered all of the
following. Here is the resulting journalctl.log:
http://sprunge.us/QIenau
* started the wpa_supplicant.service
* ran: CONNMAN_SUPPLICANT_DEBUG=1 connmand -n -d
&>/root/connmand_-n_-d___wit_wpa_supplicant.log
-->
http://sprunge.us/PfwklC
* started cmst: Rescan button grayed out
* entered connmanctl, ran some commands, added a iw list and rfkill
-->
http://sprunge.us/vLh7Ve
It went further, but did not work!
- see the log: wifi scan gave a "no carrier" ?
* then I killed the connmand
* exited cmst
* systemctl restart connman.service
* started cmst
and /now/ cmst had a "Rescan" button and showed wireless networks
* ran my-set wlan-off
--> the rescan button grayed out in the still running cmst
* ran my-set wlan-on
--> the rescan button STAYED grayed out :(
* exited cmst
* restarted cmst
--> the rescan button was STILL grayed out !! :((
* systemctl restart connman.service
* started cmst
--> the rescan button was not grayed out anymore
So it seems to me that connman.service might not handle well the fact
that I remove and then add wlan kernel modules??
So I ran one more test to collect the connmand log for you while I
unload reload the wifi kernel modules.
It turns out that connman needs an extra push (manually) by
issuing connmanctl disable wifi, connmanctl enable wifi after reloading
the kernel modules, before connmanctl scan wifi works.
Even though connmanctl showed in "technologies" that wifi was Powered
off (when kernel modules unloaded) and showed it as Powered on after
kernel modules were reloaded!
Which seems to me to be a bug in connmand.
- But see for yourself, here is what I did:
* wlan is ON, iw list shows, rfkill: shows unblocked
* I kept cmst running (it showed the "Rescan" button + wlan
networks) this time to see if he handles well the restart of
connmand and it actually did :)
* systemctl stop connman.service
* systemctl stop wpa_supplicant.service
* set a journalctl cursor (as a marker in journalctl)
recorded all of the following
-->
http://sprunge.us/0HWp0j
* systemctl start wpa_supplicant.service
* CONNMAN_SUPPLICANT_DEBUG=1 connmand -n -d
-->
http://sprunge.us/jrXoWQ
* checked in cmst: it showed still "Rescan" and wlan-networks
* issued a bunch of connmanctl commands:
-->
http://sprunge.us/2OdDqz
Ok, I stop here :)
Tormen
> And issued a bunch of connmanctl commands, see cli.txt
> -->
>
http://sprunge.us/hJbZV3
Ah, okay the agent part needs an update. Thanks for the report. Added
to the TODO list.
This shouldn't be a problem right now.
Thanks,
Daniel