nemomobile-ux / main

Main repo for docs and issues of Nemomobile
8 stars 0 forks source link

usb_moded doesn't work #42

Closed jmlich closed 1 year ago

jmlich commented 1 year ago

It seems the modprobe g_ether is needed. Creating empty /etc/modprobe.d/g_ether.conf in https://github.com/nemomobile-ux/nemo-packaging/blob/master/usb-moded/PKGBUILD#L88 doesn't help.

for test run daemon manualy:

sudo -i
systemctl stop usb-moded
usb_moded -D

and switch mode from command line

usb_moded_cli -s developer_mode

Next step could be mtp_mode where is needed libcomposite or g_fss. The mtp_mode requires yet some adjustment in systemctl-user (which is on jolla and have lgpl license).

jmlich commented 1 year ago

I have found, that /etc/modules-load.d can be used to enforce load of some modules upon boot, but then it tries to deactivate MTP first which is not working properly. I am not sure if I understand logs correctly. Explanation could be different

jmlich commented 1 year ago

Fixed with

https://github.com/nemomobile-ux/nemo-packaging/commit/fedaca3921a2e7a201fc1fe1fd49821f975c9bf0 https://github.com/nemomobile-ux/nemo-packaging/commit/cee265903efdf944e880f0fb90997236fc1fc0e6 https://github.com/nemomobile-ux/nemo-packaging/commit/8235827b2551ef3f85c756bc962063d8f7ad849f https://github.com/nemomobile-ux/nemo-packaging/commit/16f43c74d76fc58580a581b2603e7f326c87e1cf https://github.com/nemomobile-ux/nemo-packaging/commit/8e0d19e25abc8bf8ba58bc850d71b29c5c09d970