I’m experimenting with vim3l and a fenix-built debian-lxde-4.9 image to save power while the user is inactive or selects suspend mode. (suspend by systemctl)
Although I was able to suspend my board, other services such as Bluetooth and WiFi continued to operate.
I looked for commands or APIs that would allow me to disable them. For manual operation, I discovered that the command below works nicely
-
WiFi
- turn off :
sudo nmcli radio wifi off
- turn on :
sudo nmcli radio wifi on
- turn off :
-
Bluetooth
- turn on :
sudo systemctl stop bluetooth-khadas.service
- turn off :
sudo systemctl stop bluetooth-khadas.service
- turn on :
but before creating a systemd script and placing it under suspend.target. I was hoping to find out whether there was a way to do it with the kernel, or if there was a more generic way to do it, such as using ‘linux/kernel/power/suspend.c’.
I’m a newbie BSP engineer who’s worked on a couple of Linux driver implementations. If at all feasible, I’d like to complete this action using the Linux kernel rather than systemd.
@Gouwa @numbqq
This feature is basic, so I’m assuming you’ve already tested it. Can you share any details on the feature, if it’s still in development, or suggestions based on your experience?