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

USB connection mode

asked 2014-01-17 12:36:10 +0200

manu007 gravatar image

updated 2014-03-13 11:55:16 +0200

I suggest the following, only when we connect a USB cable connected to a PC :

When the option "Developer mode" is enabled, the default plug mode can be "developer Mode".

When the option "Developer mode" is not enabled, the default plug mode can be "PC Mode".

edit retag flag offensive close delete

Comments

The question is a bit too terse to understand the feature requested.

If you mean:

Please, add a way to change the USB connection mode between Charge only/PC connection/Developer Mode at any time, instead of once when the device is connected

Then I agree that this is a feature I would like to have, if it is possible.

By the way, you can still change the question and improve the wording; it could get more votes this way.

mikelima ( 2014-01-17 15:44:47 +0200 )edit

Just set the defaults in the settings yourself. It is just one time.. Also please do not change your question like that, as it is clear from the answers/comments below it was originally a totally different question.

Philippe De Swert ( 2014-03-13 12:12:52 +0200 )edit

Sorry for the question.

Now, when you change the default connection mode to "developer mode", when we plug the USB, it always connect to "developer mode" and there is no way to change the mode.

Yes, this is new feauture ;-) , It is possible to add two options :

1) ask or default to developer mode, 2) ask or default to PC mode ?

Or, much better, give the option to change the connection mode.

manu007 ( 2014-03-13 12:58:54 +0200 )edit

How are we supposed to know what to select when? This is going to be some automagic thing that will be more often wrong than right.

And the option to change connection mode is the first answer below. Should not be hard to tie it into some qml. Or make a small script that does exactly what you want. Because to be honest going to settings->usb->... is pretty long.

Philippe De Swert ( 2014-03-14 16:44:42 +0200 )edit

4 Answers

Sort by » oldest newest most voted
3

answered 2014-01-17 14:53:04 +0200

Philippe De Swert gravatar image

updated 2014-01-17 14:56:22 +0200

On the command line use usb_moded_util -s <mode you want> (mode you want is one of pc_suite, developer_mode, charging_only)

You can do a lot more with usb_moded_util (use -h to get a list) The settings UI unfortunately does not support it.

edit flag offensive delete publish link more
2

answered 2014-01-17 13:22:18 +0200

nephros gravatar image

Go to

Settings -> System Settings -> USB

and set your USB connection mode to "Always ask".

This opens a prompt (charge only/PC connection) whenever USB is plugged in.

Does this do what you want?

edit flag offensive delete publish link more

Comments

Sometimes, (N900 experience) it's annoying to unplug / replug USB cable to set the mode. I think the question was sometinhg like that : is it possible to change USB mode without unplugging USB cable ? This is quite interesting regarding the expected USB mass storage mode.

TNZ ( 2014-01-17 13:26:52 +0200 )edit
2

Many thanks for your answer, but this is not what i wnat. The problem comes when you press the wrong option (Charge only when you want to be connected), you cannot change this situation unless you disconnect the connector. With the N900 you can change the USB connection mode.

manu007 ( 2014-01-17 13:27:56 +0200 )edit

On the N900, you can select a mode while you were in "charge only". After, it was not possible to switch from "mass storage" to "PC connection" or otherwise.

TNZ ( 2014-01-17 13:46:09 +0200 )edit
1

answered 2014-05-21 19:07:05 +0200

tokaru gravatar image

Check out the app "USB Switch" from the Jolla Store, it is a user interface for switching USB connection mode while the USB connector is already plugged.

edit flag offensive delete publish link more
0

answered 2014-05-21 19:34:25 +0200

manu007 gravatar image

YEAHH !! Many thank's, very useful for me. ;-)

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-01-17 12:36:10 +0200

Seen: 906 times

Last updated: May 21 '14