Homebrew WiFi Switcher overlay

  • Thread starter Thread starter masagrator
  • Start date Start date
  • Views Views 388
  • Replies Replies 3
  • Likes Likes 3

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
7,229
Solutions
1
Reaction score
7,425
Trophies
3
XP
14,600
Country
Poland
It seems that nobody made an overlay for switching between saved WiFis, so here it is.

https://github.com/masagrator/Wifi-Switcher


2026042613383600.jpg2026042613421200.jpg
 
Last edited by masagrator,
Great thanks.
Honestly I feel there is an opportunity to make this overlay broader and customisable: call it something like "Quick Settings Overlay" (and provide a config file to the user to toggle which system settings they want to have quick access to through this overlay).
I have a use case as example: Bluetooth audio management. Switching the device to airplane mode (my default mode) will disable bluetooth. Bluetooth needs to be reenabled manually in the airplane mode settings, then the user needs to go to the bluetooth audio settings menu, then select the bluetooth device they want to output to. Every time the device is put to sleep, it disconnects from bluetooth audio (which is OK), but when waking the device, the user needs to again go to the bluetooth audio menu to manually reconnect. Having easier access to the bluetooth toggle, and also to the paired bluetooth audio devices through the overlay would be fantastic.
Even better is if the user could tick a bluetooth audio device to have the module try to "reconnect" automatically (so the user doesn't have to do it manually, especially when waking the console).

This would help a heck of a lot alleviate common horizonOS UX pain points.
 
What you are talking about requires two things that have issues:
- Auto reconnection requires sysmodule, not overlay
- Disaling/Enabling bluetooth requires access to service that has very few sessions and would easily conflict with MissionControl. Introducing such thing would definitely increase amount of worthless issue reports in MissionControl repository. Discussed this topic with ndeadly and came to the conclusion that it's not worth it.

As for simple Bluetooth audio overlay, it already exists
https://github.com/masagrator/BT_Audio-ovl
So you can use that as base for sysmodule.

What needs to be done:
  • On start reconnect with last audio device
  • In loop:
    • use pdmqry to check when Switch just woke up from sleep mode (PowerStateChange play event type)
    • Check if bluetooth is enabled with setsys and if it is, use btdrv to send request for audio connection with last device.
 
Last edited by masagrator,
  • Like
Reactions: ikynx
What you are talking about requires two things that have issues:
- Auto reconnection requires sysmodule, not overlay
- Disaling/Enabling bluetooth requires access to service that has very few sessions and would easily conflict with MissionControl. Introducing such thing would definitely increase amount of worthless issue reports in MissionControl repository. Discussed this topic with ndeadly and came to the conclusion that it's not worth it.

As for simple Bluetooth audio overlay, it already exists
https://github.com/masagrator/BT_Audio-ovl
So you can use that as base for sysmodule.

What needs to be done:
  • On start reconnect with last audio device
  • In loop:
    • use pdmqry to check when Switch just woke up from sleep mode (PowerStateChange play event type)
    • Check if bluetooth is enabled with setsys and if it is, use btdrv to send request for audio connection with last device.
Interesting insight!
If only I had switch programming knowledge....
 

Site & Scene News

Popular threads in this forum