Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Airplane mode not working #3

Open
Herrie82 opened this issue Jan 25, 2022 · 2 comments
Open

Airplane mode not working #3

Herrie82 opened this issue Jan 25, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Herrie82
Copy link
Collaborator

Describe the bug
Airplane mode doesn't turn off wifi, bt and radio yet.

To Reproduce
Turn on airplane mode in the system menu and observe that wifi, bt and radio remain active.

Expected behavior
Toggling airplane mode should power off/on wifi, radio and BT

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: All devices
  • OS: LuneOS
  • Version: 20220125

Additional context
Add any other context about the problem here.

@Herrie82 Herrie82 added the bug Something isn't working label Jan 25, 2022
@Herrie82
Copy link
Collaborator Author

Herrie82 commented Dec 8, 2023

Seems to be handled in /usr/lib/libPmWsfWanBlade.so

Need to decompile the VBox binary to see what it does

@Herrie82
Copy link
Collaborator Author

Herrie82 commented Dec 22, 2023

Seems there are basically 3 calls that need to happen according to webOS 2.x Doctor files:

https://paste.ubuntu.com/p/sHVxpzR3pp/

if (this.btRadio || this.btRadioTurningOn) {
	this.btRadio = false;
	Mojo.Log.info("SystemUI - BT is on. Turning it off");
	this.btservicedisablereq = BtService.radiooff(null, btRadioFailure);		
}
else {
	Mojo.Log.info("SystemUI - BT is off.");
	this.updateAirplaneModeProgress('bluetooth');		
}

Mojo.Log.info("SystemUI - Phone is on. Turning it off");	
this.telephonyservicepoweroffreq = TelephonyService.powerSet('off',true, phoneRadioFailure,phoneRadioFailure);

if (this.wifiRadio) {
	Mojo.Log.info("SystemUI - WiFi is on. Turning it off");
	this.wifiservicedisablereq = WiFiService.setState("disabled", null, wifiRadioFailure);
}
else {
	Mojo.Log.info("SystemUI - WiFi is off");
	this.updateAirplaneModeProgress('wifi');
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants