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

[udev] Improve PD charger detection. Fixes JB#60160 #16

Merged
merged 4 commits into from
Mar 1, 2024

Conversation

spiiroin
Copy link
Contributor

USB mode selector pops up when USB-PD charger is connected. This
happens because in case of PD connection usb charger power_supply
device does not provide enough information for telling apart pc
from charger.

Enable tracking of /sys/class/extcon device nodes. For phones that
report USB=1 state only on pc connection, this is enough information
for pc or charger decision.

In case of phone that report USB=1 both for pc and charger connections,
enabling also tracking of /sys/class/android_usb device nodes can help.
However this should be done via device specific configuration files as
it can cause jitter and notification noise before reaching stable state.

There are Doxygen warnings about unknown "credential" command.

These credentals were used by Nokia N9/N950 Aegis security system.
They are no longer relevant in any way and can simply be removed.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
Documenting return value for a function that does not return
anything is causing doxygen warnings.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
USB mode selector pops up when USB-PD charger is connected. This
happens because in case of PD connection usb charger power_supply
device does not provide enough information for telling apart pc
from charger.

Enable tracking of /sys/class/extcon device nodes. For phones that
report USB=1 state only on pc connection, this is enough information
for pc or charger decision.

In case of phone that report USB=1 both for pc and charger connections,
enabling also tracking of /sys/class/android_usb device nodes can help.
However this should be done via device specific configuration files as
it can cause jitter and notification noise before reaching stable state.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
@spiiroin spiiroin requested review from jusa and mlehtima February 28, 2024 08:03
Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
@spiiroin spiiroin merged commit aaa239e into sailfishos:master Mar 1, 2024
@spiiroin spiiroin deleted the jb60160_extcon_tracking branch March 1, 2024 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants