Change rfkill state if wlan is off at runtime #9

Closed
opened 2021-07-24 06:30:10 +02:00 by pranav · 1 comment
Owner

Sometimes, the wireless interface will be shown soft-blocked in the output of rfkill.
We need to turn it on to prevent errors like this:

Copying network config files
Working on ad-hoc
Operation failed
An error occured while communicating with iwd

IWD provides a way to do this by turning on the adapter in iwctl:

iwctl
[iwd]# adapter phy0 set-property Powered on
[iwd]# 

In iwd.py, we can use Adapter.power_on() to do this.

Sometimes, the wireless interface will be shown soft-blocked in the output of `rfkill`. We need to turn it on to prevent errors like this: ``` Copying network config files Working on ad-hoc Operation failed An error occured while communicating with iwd ``` IWD provides a way to do this by turning on the adapter in iwctl: ``` iwctl [iwd]# adapter phy0 set-property Powered on [iwd]# ``` In iwd.py, we can use `Adapter.power_on()` to do this.
pranav added the
enhancement
bug
labels 2021-07-24 06:30:10 +02:00
Author
Owner

Finished!

Finished!
pranav added a new dependency 2021-07-26 12:10:30 +02:00
pranav removed a dependency 2021-07-26 12:11:20 +02:00
pranav added a new dependency 2021-07-26 12:11:48 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Blocks
#10 rfkill support
pranav/pybatmesh
Reference: pranav/pybatmesh#9
No description provided.