差别
这里会显示出您选择的修订版和当前版本之间的差别。
tips:blocking_wifi_from_starting [2022/04/16 09:20] baolitoumu 创建 |
— (当前版本) | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== Blocking WiFi from starting ====== | ||
- | Since codex 1.2.0.344, the reMarkable has developed an annoying habit of turning Wifi back on after you start it, even if you had manually turned it off before. | ||
- | |||
- | **Edit: the tip has been obsolete since this issue was solved with the version 1.5.1 of codex, released on 17 September 2018** | ||
- | |||
- | This is a quick hack to try and block Wifi on start up using rfkill in / | ||
- | |||
- | - Create a file called / | ||
- | < | ||
- | remarkable: ~/ cat / | ||
- | #!/bin/bash | ||
- | exec 2> / | ||
- | exec 1>&2 | ||
- | echo " | ||
- | set -x | ||
- | | ||
- | mount /home # need /home mounted to be able to look through the metadata files | ||
- | WIFI_STATE=" | ||
- | rfkill list | ||
- | if [[ " | ||
- | then | ||
- | rfkill block 0 # disable wifi | ||
- | else | ||
- | rfkill unblock 0 # re-enable wifi | ||
- | fi | ||
- | | ||
- | echo " | ||
- | exit 0 | ||
- | </ | ||
- | - Mark the rc.local file as executable | ||
- | < | ||
- | remarkable: ~/ chmod +x / | ||
- | remarkable: ~/ ls -la / | ||
- | -rwxr-xr-x | ||
- | </ | ||
- | - Create an object in the reMarkable files to use as a control. I created a top-level folder called " | ||
- | - Reboot the reMarkable and see if the Wifi remains off. | ||
- | |||
- | To re-enable Wifi, rename the control object through the UI to Wifi on (or anything really as long as it doesn' | ||
- | |||
- | This seems to work for me. I don't use Wifi at all except to search for reMarkable firmware updates, or when backing the device up, in which case I am happy to go through a bit of awkwardness to turn it back on. | ||
- | |||
- | The script should write to / | ||
- | < | ||
- | remarkable: ~/ systemctl status rc-local | ||
- | ● rc-local.service - / | ||
- | | ||
- | | ||
- | Process: 178 ExecStart=/ | ||
- | |||
- | May 07 14:12:06 remarkable systemd[1]: Starting / | ||
- | May 07 14:12:07 remarkable systemd[1]: Started / | ||
- | </ |