We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

internet connection through usb-c

asked 2020-05-05 13:02:56 +0200

yajo gravatar image

updated 2020-05-08 15:30:35 +0200

Hi,

I read in this answer that's possible to connect the XA2 via usb-c to ethernet. I have a hub laying around and tested it. dmesg shows, that the connection is found as cdc_ether.

So according to the answer it should be possible. How I have to configure my phone, to use this connection? I guess, I need to configure connman to use this. But the nice connmanctl command is not available anymore. If I plug the cable into the phone, it's charging, but ifconfig does not show anything...

1.edit 2020/05/06

I guess my description is a bit misleading. I mean I wan't to use en ethernet cable with an USB adapter and connect this to my Jolla. With Jolla 1 and some Sailfish versions ago it was possible to do something similar (but with laptop due to missing USB-C). That worked with replacing the connman package with self compiled one.

2. edit 2020/05/08

I could compile the current connman 1.38 successful and get it running. I can connect to my laptop and share the internet connection from my laptop to my phone successful! Android apps won't see it. But that's okay. So it is still working in 3.3.0.14...

But I can't get it working with my ethernet adapter (usb-hub). So my main question is not answered yet. Does anybody have any idea on this? Any help or ideas are appreciated!

Thanks in advance!

edit retag flag offensive close delete

Comments

Is your device detected by connmanctl services | grep gadget? Mine isn't, but according to other answers, that's necessary, at least when using connman for managing the connection.

Sebix ( 2020-05-23 13:03:40 +0200 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2020-05-05 15:00:48 +0200

molan gravatar image

updated 2020-05-05 22:36:27 +0200

I hope I understood your question correctly. If you want to use Internet sharing over USB, have a look at this: https://jolla.zendesk.com/hc/en-us/articles/203548266

For SFOS 3.3.0 or higher:

devel-su
pkcon refresh
pkcon install usb-moded-connection-sharing-android-connman-config
systemctl restart usb-moded

else (only below SFOS 3.3.0!): https://together.jolla.com/question/191787/3005-usb-tethering-not-working-anymore/?answer=197756#post-id-197756

edit flag offensive delete publish link more

Comments

@molan delete this link post-id-197756, he doesn't have to do this anymore. Unless it has an older version

Chris_ ( 2020-05-05 19:00:18 +0200 )edit

@Chris_ I didn't delete the link, but added a warning/info. Since @yajo has a XA2 it can be assumed that he's using the latest Sailfish OS version. But the link might be helpful for people who are looking for the same answer but don't use the latest Sailfish OS release (devices by Jolla partners, unofficial ports etc.)

molan ( 2020-05-05 22:39:52 +0200 )edit
1

One more comment: it does not matter if the cable has the C connector or the micro connector. The significant thing is that the cable has the data lines connected (i.e., a charging-only cable would not do).

jovirkku ( 2020-05-06 09:29:30 +0200 )edit
2

Thanks for your reply! But this was not the way I wanted to share the ethernet. I don't want to use an lapotp ore samething else. I just want to plug the ethernet cable into an adapter and the usb into my Jolla. But nevertheless, I thought if I can not find any package I don't have to run pkcon refresh but obviously I was wrong.

yajo ( 2020-05-06 14:20:38 +0200 )edit

@yajo: Thanks for the clarification. Unfortunately I can't help you with your question.

molan ( 2020-05-11 14:45:45 +0200 )edit
3

answered 2020-05-05 16:46:32 +0200

nas gravatar image

@yalo hou have to install "connman-tools" package to have connmanctl . You can do it as root from command-line with the following command:

pkcon install connman-tools

Let me know if you want help with the syntax.

edit flag offensive delete publish link more

Comments

Yeah, it was not possible due to missing pkcon refresh

yajo ( 2020-05-06 14:21:01 +0200 )edit
1

But just using connman-tools did not solve this. I have no technology like gadget/usb/ethernet... I gues I have to edit some config files...

yajo ( 2020-05-06 14:28:16 +0200 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2020-05-05 13:02:56 +0200

Seen: 798 times

Last updated: May 08 '20