Coder Social home page Coder Social logo

Comments (28)

Flohack74 avatar Flohack74 commented on August 29, 2024 1

A How-To for 15.04 to make the change permanent: https://forums.ubports.com/topic/1015/howto-opo-fix-mtp-driver-permissions

from ubuntu-touch.

tomoqv avatar tomoqv commented on August 29, 2024

Seems related to my bug here: #11

from ubuntu-touch.

tomoqv avatar tomoqv commented on August 29, 2024

Yes, and I should add that my OPO is only visible to a PC with developer mode off, but it still doesn't mount. Turning developer mode on, it is not even visible through lsusb.

from ubuntu-touch.

tomoqv avatar tomoqv commented on August 29, 2024

On 15.04/devel r10 I can finally mount my OPO, but only if I have developer mode set to disabled. When enabling developer mode, the device can't mount again. Seems like the dev mode settings button is inverted.
Regardless of developer mode setting, the device does not expose an adb interface.

from ubuntu-touch.

mariogrip avatar mariogrip commented on August 29, 2024

Fix released: ubports/device-files@2d65b59 and ubports/device-builds@9c0f535

from ubuntu-touch.

tomoqv avatar tomoqv commented on August 29, 2024

This bug appears to have resurfaced lately. I noticed it today on devel r146. Reboot didn't fix it. Last time I connected my OPO to this PC it worked, but it may have been a couple of weeks ago.

from ubuntu-touch.

tomoqv avatar tomoqv commented on August 29, 2024

What is happening with this? Unfortunate regression of a function that is rather essential. I would very much like to have it back.

from ubuntu-touch.

tomoqv avatar tomoqv commented on August 29, 2024

Just to further some information on this issue.
Following shows in terminal when OPO (developer mode on) connected to my PC:

...:~$ lsusb
Bus 001 Device 002: ID 8087:8001 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 8087:0a2a Intel Corp. 
Bus 002 Device 004: ID 04f2:0111 Chicony Electronics Co., Ltd KU-9908 Keyboard
Bus 002 Device 003: ID 05c6:6765 Qualcomm, Inc. 
Bus 002 Device 002: ID 045e:00d2 Microsoft Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Dito with developer mode off:

...:~$ lsusb
Bus 001 Device 002: ID 8087:8001 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 8087:0a2a Intel Corp. 
Bus 002 Device 004: ID 04f2:0111 Chicony Electronics Co., Ltd KU-9908 Keyboard
Bus 002 Device 006: ID 05c6:6764 Qualcomm, Inc. A0001 Phone [OnePlus One]
Bus 002 Device 002: ID 045e:00d2 Microsoft Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Below still with developer mode off:

...:~$ adb devices
List of devices attached
 
...:~$ adb shell
error: device not found

And with developer mode on:

...:~$ adb devices
List of devices attached 
d9a48603	offline

from ubuntu-touch.

tomoqv avatar tomoqv commented on August 29, 2024

I have checked all the steps from this bug report: #11

from ubuntu-touch.

tomoqv avatar tomoqv commented on August 29, 2024

Yeah, and once in a while I get:

...:~$ adb devices
List of devices attached 
d9a48603	device

Then I can do adb pull /home/phablet/whatever_file, but MTP still doesn't work.

from ubuntu-touch.

tomoqv avatar tomoqv commented on August 29, 2024

With devel r170 (today) there is some progress. Still no MTP, but I can now adb shell into the device again.

from ubuntu-touch.

tomoqv avatar tomoqv commented on August 29, 2024

I can see that this is still marked as "needs confirmation". Does that mean it works on other OPOs? The problem persists for me in devel r203.

from ubuntu-touch.

Voltcab avatar Voltcab commented on August 29, 2024

Hello, yes, I have the same problem. My phone is recognized but it is impossible to open it on my PC. I can't transfer my files. I will follow with you the evolution. I hope there will be a quick solution...

from ubuntu-touch.

stekalb avatar stekalb commented on August 29, 2024

Also an issue on my bacon. (r204)

from ubuntu-touch.

BlueKenny avatar BlueKenny commented on August 29, 2024

Same issue on my phone

from ubuntu-touch.

andybleaden avatar andybleaden commented on August 29, 2024

I can confirm this is still a bug. Not how I can help but happy to try. This has been fixed previously I know but keeps cropping up. Not sure why

from ubuntu-touch.

chakare avatar chakare commented on August 29, 2024

current build number: 118
device name: bacon
channel: ubports-touch/16.04/devel

upstart detect USB connected, try to start the mtp-server but fails to open RW the /dev/mtp_usb device

ll /dev/mtp_usb
crw-rw---- 1 root root 10, 53 Aug 13 1972 /dev/mtp_usb

cat .cache/upstart/mtp-server.log
I0125 09:00:51.533848 12688 server.cpp:421] MTP server starting...
E0125 09:00:51.534528 12688 server.cpp:426] Error opening /dev/mtp_usb, aborting now...

so, this device needs root:phablet permissions.

from ubuntu-touch.

 avatar commented on August 29, 2024

Is there any solution to the problem? I flashed today an OnePlusOne with Ubuntu Touch (stable) and I get the same problem. I see the device "bacon" in Nautilus file manager, but clicking on it leads to an MTP error.

from ubuntu-touch.

Flohack74 avatar Flohack74 commented on August 29, 2024

I can confirm the issue is gone with changing the group permissions. While looking for a permanent solution a sudo chown root:phablet /dev/mtp_usb makes a temporary fix ;)

from ubuntu-touch.

andybleaden avatar andybleaden commented on August 29, 2024

from ubuntu-touch.

 avatar commented on August 29, 2024

Thanks flohack for the workaround.

What am I doing wrong? After "sudo chown root:phablet /dev/mtp_usb" I get following error message:
"chown: invalid group: ‘root:phablet’ "

Thanks!

from ubuntu-touch.

Flohack74 avatar Flohack74 commented on August 29, 2024

@Pete413 try root:plugdev plz

from ubuntu-touch.

 avatar commented on August 29, 2024

Dear Flohack. Thanks, this solved half of the issue, but I unfortunately is not the full solution:

The following command accepts plugdev, but does not find the mtp_usb device:

sudo chown root:plugdev /dev/mtp_usb
chown: cannot access '/dev/mtp_usb': No such file or directory

I tried several devices in /dev, but could not find any practicable solution. Only the following command did not give an error message, but it also did not solve my problem, unfortunately.

sudo chown root:plugdev /dev/bus/usb/003/017

Thanks.

from ubuntu-touch.

Flohack74 avatar Flohack74 commented on August 29, 2024

@Pete413 Can you check for me if you got original bacon or A0001 as device identifier? There are several OPO models obviously out there...

from ubuntu-touch.

 avatar commented on August 29, 2024

@Flohack74 On the device paper box, it says OnePlus One A0001 (Sandstone Black). In UBPorts "About the phone" is simply says OnePlus bacon. In syslog (after plugging in the USB cable), it says idVendor=05c6, idProduct=6765, Product: bacon, Manufacturer: OnePlus, SerialNumber: 8e244882.

By the way: My system is Ubuntu 16.04 and USB/MTP connections with the devices BQ M10 and BQ 4.5 work without any problems.

from ubuntu-touch.

Flohack74 avatar Flohack74 commented on August 29, 2024

@Pete413 Intersting, I also got the A0001 version. I got this device :) - I will investigate with @mariogrip what his opinion is ;)

from ubuntu-touch.

 avatar commented on August 29, 2024

@Flohack74 Thanks for your help and the patch. Will this new udev rule also "create" the /dev/mtp_usb device in dev when plugging in the smartphone? (Currently, without this udev rule I get the error "No such file or directory" indicating the missing /dev/mtp_usb)

from ubuntu-touch.

Flohack74 avatar Flohack74 commented on August 29, 2024

@Pete413 that sounds interesting, no, this should be there already. Dunno why it would not.

from ubuntu-touch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.