Commit 44ebf5d7 authored by Philippe De Swert's avatar Philippe De Swert

[usb-moded] Add experimental host mode switching support

Signed-off-by: default avatarPhilippe De Swert <>
parent aff2bd24
name = host_mode
module = none
sysfs_path = /sys/class/power_supply/usb/scope
sysfs_value = 1
sysfs_reset_value = 2
......@@ -180,6 +180,19 @@ system bus.
This package contains the android at modem port mode config.
%package host-mode-jolla
Summary: USB mode controller - host mode switch for Jolla
Group: Config
%description host-mode-jolla
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.
This package contains the config to switch the first Jolla phone
in host mode.
%package defaults
Summary: USB mode controller - default configuration
Group: Config
......@@ -363,3 +376,7 @@ systemctl daemon-reload || :
%files host-mode-jolla
......@@ -29,4 +29,5 @@
#define MODE_DEVELOPER "developer_mode"
#define MODE_MTP "mtp_mode"
#define MODE_CHARGER "dedicated_charger"
#define MODE_HOST "host_mode"
#define MODE_CONNECTION_SHARING "connection_charing"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment