Drop fast wifi reconnection behavior
As this does not works for a long time, and this is mostly Pinephone specific, we drop this from Sxmo. If someone want to investigate futher to keep something similar, I would recomment to find a more global solution than this Sxmo specific trick. Signed-off-by: Willow Barraco <contact@willowbarraco.fr> Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
This commit is contained in:

committed by
Peter John Hartman

parent
e6c02e3bc3
commit
ee180f6e51
@@ -12,10 +12,4 @@ if [ -z "$MMCLI" ]; then
|
||||
sxmo_wakelock.sh lock sxmo_modem_crashed 30s
|
||||
fi
|
||||
|
||||
# see the comments in sxmo_hook_lock.sh
|
||||
# and https://todo.sr.ht/~mil/sxmo-tickets/150
|
||||
if [ 1 = "$SXMO_RTW_SCAN_INTERVAL" ]; then
|
||||
echo 1200 > "/sys/module/$SXMO_WIFI_MODULE/parameters/rtw_scan_interval_thr"
|
||||
fi
|
||||
|
||||
# Add here whatever you want to do
|
||||
|
@@ -25,15 +25,6 @@ sxmo_wm.sh inputevent touchscreen on
|
||||
sxmo_daemons.sh stop periodic_blink
|
||||
sxmo_daemons.sh stop periodic_wakelock_check
|
||||
|
||||
# see https://todo.sr.ht/~mil/sxmo-tickets/150
|
||||
# We set the scan interval threshold here to
|
||||
# 16000 (16s) the default, since in sxmo_hook_postwake.sh
|
||||
# we set it to 1200 (.12s) so that we can reconnect to wifi
|
||||
# quicker after resuming from suspend.
|
||||
if [ 1 = "$SXMO_RTW_SCAN_INTERVAL" ]; then
|
||||
echo 16000 > "/sys/module/$SXMO_WIFI_MODULE/parameters/rtw_scan_interval_thr"
|
||||
fi
|
||||
|
||||
# Go to lock after 120 seconds of inactivity
|
||||
if [ -e "$XDG_CACHE_HOME/sxmo/sxmo.noidle" ]; then
|
||||
sxmo_daemons.sh stop idle_locker
|
||||
|
@@ -89,10 +89,6 @@ SXMO_POWER_BUTTON | Power button "Identifier" from `swaymsg -t get
|
||||
SXMO_MONITOR | Display "Output" from `swaymsg -t get_outputs`. Should be the same as the output from the `xrandr` command when running dwm.
|
||||
|
||||
### General / Misc.
|
||||
SXMO_WIFI_MODULE | The wifi kernel module used when switching scan intervals
|
||||
|
||||
SXMO_RTW_SCAN_INTERVAL | Does the wifi kernel module offer a rtw_scan_interval_thr interface ? [default: 0]
|
||||
|
||||
SXMO_SYS_FILES | String of files for sxmo_setpermissions.sh to make +rw (see sxmo_setpermissions.sh)
|
||||
|
||||
SXMO_VIBRATE_DEV | Path to vibration device (see sxmo_vibrate.c and clickclack.c) [default: /dev/input/by-path/platform-vibrator-event]
|
||||
|
@@ -2,9 +2,7 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
# Copyright 2022 Sxmo Contributors
|
||||
|
||||
export SXMO_WIFI_MODULE=8723cs
|
||||
export SXMO_RTW_SCAN_INTERVAL=1
|
||||
export SXMO_SYS_FILES="/sys/module/$SXMO_WIFI_MODULE/parameters/rtw_scan_interval_thr /sys/power/state /sys/devices/platform/soc/1f00000.rtc/power/wakeup /sys/power/mem_sleep /dev/rtc0 /sys/devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/power/wakeup"
|
||||
export SXMO_SYS_FILES="/sys/power/state /sys/devices/platform/soc/1f00000.rtc/power/wakeup /sys/power/mem_sleep /dev/rtc0 /sys/devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/power/wakeup"
|
||||
export SXMO_TOUCHSCREEN_ID=8
|
||||
export SXMO_MONITOR="DSI-1"
|
||||
export SXMO_ALSA_CONTROL_NAME=PinePhone
|
||||
|
@@ -47,5 +47,4 @@ export SXMO_MONITOR='0:0:MELFAS_MMS345_Touchscreen'
|
||||
# /sys/devices/platform/soc@0/78b8000.i2c/i2c-5/5-0035/power_supply/rt5033-battery/wakeup6
|
||||
# /sys/devices/virtual/wakeup/wakeup4
|
||||
# /sys/devices/virtual/wakeup/wakeup5
|
||||
export SXMO_WIFI_MODULE='wcn36xx'
|
||||
export SXMO_SWAY_SCALE="2"
|
||||
|
Reference in New Issue
Block a user