Bug 495516 - device notifier only lists android phone under non removable devices
Summary: device notifier only lists android phone under non removable devices
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Disks & Devices widget (show other bugs)
Version: 6.2.2
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-29 04:44 UTC by George Seaton
Modified: 2024-11-01 17:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Seaton 2024-10-29 04:44:28 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
android phone Motorola G14 is not classed as a removable device (this is changed behaviour)

STEPS TO REPRODUCE
1.  Attach phone to USB and select file transfer
2.
3. 

OBSERVED RESULT
 Does not popup in device notifier unless change setting to non reovable devices

EXPECTED RESULT
popup in device notifier removable devices

SOFTWARE/OS VERSIONS

Linux/KDE Plasma:  Fedora 40
KDE Plasma Version:  Plasma 6.2.2
KDE Frameworks Version: 6.7
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Was working under plasma 6.1.5 although device name was wrong
Comment 1 Filip 2024-10-29 12:41:13 UTC
*** Bug 495518 has been marked as a duplicate of this bug. ***
Comment 2 Filip 2024-10-29 12:41:16 UTC
*** Bug 495517 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2024-10-29 17:26:48 UTC
When I plug my phone into my computer, it appears under the "Portable Media Player" group. Does it need to be in some special USB file transfer mode to experience this bug?
Comment 4 George Seaton 2024-10-30 05:34:35 UTC
Yes it does appear under "Portable Media Player", but on my system (Fedora 40 and now 41) only if non-removable devices OR all devices are selected.
Like a USB stick OR an external USB drive I would expect a phone to be a removable device, which is the original behavior for the phones I've used in the past with KDE/plasma.
Comment 5 Nate Graham 2024-10-30 14:59:47 UTC
Huh, I'm also using Fedora KDE 41, and I see the phone listed as a "Portable Media Player" even when the widget is set to its default setting of showing only removable devices. Are you saying that with its default settings, the Portable Media Player section and anything in it are not visible?
Comment 6 George Seaton 2024-11-01 01:09:55 UTC
Yes with default settings I will not see my phone, I have to choose "non-removable devices" or "all devices" to see it as a "Portable Media Player".
I have tested also with 2 of my old phones and I get the same result.
This appears to be changed behavior since upgrading to 6.2. (for me anyway!!)
Comment 7 Nate Graham 2024-11-01 14:35:25 UTC
Well that's certainly strange. Not sure why I can't reproduce the issue on git master. Maybe a recent change in Solid already fixed it.
Comment 8 TraceyC 2024-11-01 17:09:57 UTC
Using these steps:

- Disks & Devices is set to show "Removable Devices" (not non-removable)
- Connected phone (Sony Xperia 1 III) to computer with USB. File transfer is selected.
- Checked Disks & Devices
- Checked Dolphin

I have the same results in Plasma 6.2.2 (Solus) as in git-master (Dolphin also built from master)

Here are my results:
  - Phone appears in Disks & Devices pop up as expected under Portable Media Player
  - The actions in the pop up do *not* include the ability to eject
  - In Dolphin, it is listed under "Devices" with system disks and partitions rather than Removable Devices. (A USB drive is listed there as expected). Notably, this prevents the use of "Safely remove".
  - The device name in Dolphin is not using the "Device name" setting from the phone. It's using the model name. When I unplugged it, I noticed Dolphin referred to it as "'mtp:/Xperia 1 III' is no longer accessible" so this may be due to the name being sent by the phone.

So, while I see the device in the pop-up when set to only show removable devices, it is being treated as a non-removable device.
It is not listed in `lsblk` (OK)
It is listed in `lsusb` (OK)

So it seems that the system is not properly treating an mtp device as removable
Comment 9 Nate Graham 2024-11-01 17:56:11 UTC
So what you're seeing is broadly what's expected, and what I see as well.