Summary: | Device notifier shows SD card being inserted only once | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-solid | Reporter: | Oded Arbel <oded> |
Component: | general | Assignee: | Lukáš Tinkl <lukas> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | bkimerer, contacha, kdelibs-bugs, kokoko3k, mike.cloaked, nate, nucleo, null, xwaang1976 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Output from running journalctl while mounting a USB drive |
Description
Oded Arbel
2021-06-11 19:06:49 UTC
In case it wasn't very clear - after inserting the SD card a second time, I can open the device notifier applet and the SD card is not showing. I manually fixed the few QML error reported in the logs by adding `sdSource.data[udi] != undefined` in the appropriate places, but that did not fix the problem - so it is not caused by the QML issues. The problem also happens only for SD cards on my system - USB disk behave as expected. Can reproduce. (In reply to Oded Arbel from comment #1) > I manually fixed the few QML error reported in the logs by adding > `sdSource.data[udi] != undefined` in the appropriate places Ooh, that's nice. Would you mind submitting a merge request for it? (In reply to Nate Graham from comment #2) > (In reply to Oded Arbel from comment #1) > > I manually fixed the few QML error reported in the logs by adding > > `sdSource.data[udi] != undefined` in the appropriate places > Ooh, that's nice. Would you mind submitting a merge request for it? Done: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/937 The same issue occurs for plugging in an external usb drive - the system tray popup window only offers to mount it once - no other usb drive is offered a mount once a drive has been umounted via the right click menu option from the dolphin drive list. Logging out and logging back in, allows a single external usb drive that is then plugged in to be mounted once only again. In my case this bug appeared with Plasma 5.22.1-1 Frameworks 5.83.0-1 in Arch Linux. I have the same issue. (In reply to MikeC from comment #4) > The same issue occurs for plugging in an external usb drive - the system > tray popup window only offers to mount it once - no other usb drive is > offered a mount once a drive has been umounted via the right click menu > option from the dolphin drive list. If you are talking about seeing a mount option for a device that was just "ejected", then that is an old behavior - IIRC Plasma always ignored drives that were just ejected: you have to physically disconnect it and reconnect for it to show again. This report is that for SD cards, even taking them out of the slot and putting them back it, won't show the mount option. And I can't reproduce this with USB thumb drive - these work for me by taking them out and plugging them back in. (In reply to Oded Arbel from comment #7) > (In reply to MikeC from comment #4) > > The same issue occurs for plugging in an external usb drive - the system > > tray popup window only offers to mount it once - no other usb drive is > > offered a mount once a drive has been umounted via the right click menu > > option from the dolphin drive list. > > If you are talking about seeing a mount option for a device that was just > "ejected", then that is an old behavior - IIRC Plasma always ignored drives > that were just ejected: you have to physically disconnect it and reconnect > for it to show again. > > This report is that for SD cards, even taking them out of the slot and > putting them back it, won't show the mount option. And I can't reproduce > this with USB thumb drive - these work for me by taking them out and > plugging them back in. Up to some weeks ago, at least on my archlinux system, the sdcard was displayed and ready to be mounted again when I unmounted it without disconnecting it. IMHO this is the correct behaviour. You can unmount a device, but if it is still present, device notifier should show it and should permit to remount again. Both for sd card and USB. In my comment concerning usb drives - yes, it was selected to be unmounted, then physically disconnected, and then physically connected back in - no pop-up offered a mount, and indeed going to the Disks and Devices option in the system tray also said that no devices were available to mount despite physical removal and reconnection - also if a completely different usb drive is plugged in at that point, then it also is not offered a mount, and cannot be seen by the Disks and Devices - so this is a reversion since it behaved perfectly well and correctly prior to the last update to the plasma desktop. So this is a bug that need to be fixed. Prior to a commit to fix this bug, is there a work around that will allow more than one external drive to be mounted successively during a single login session? There are scenarios where it is highly desirable to be able to do so, such as running backups to several different external usn drives in succession. This seems related to https://bugs.kde.org/show_bug.cgi?id=438874 With the update to kde-applications 21.04.3-1 this seems to be fixed. I still have the issue with kde-applications 21.04.3-1 I was wrong - the bug is still there - but seems to depend on the partition structure of the drives being plugged in to usb. With two ssd usb drives, both with a single ext4 partition, the first is offered a mount via Disks & Devices that pops up when plugged in. Once unmounted, and physically removed, then when the second usb drive is plugged in the Disks & Devices does not pop-up and no mount is offered. However Dolphin sees the drive and it can be mounted from there. On the other hand a usb thumb drive with two partitions on it does seem to get recognised for a second Disks a& Devices mount offer. So the bug is still there for me and needs to be fixed. Created attachment 140380 [details]
Output from running journalctl while mounting a USB drive
I am seeing this on Mageia 9 development (Cauldron). For each login I get one notification, and after that the drives are ignored by the notifier. My inxi info System: Host: BSKMageia Kernel: 5.13.6-desktop-1.mga9 x86_64 bits: 64 Desktop: KDE Plasma 5.21.5 Distro: Mageia 9 mga9 Machine: Type: Desktop Mobo: ASUSTeK model: P5G41T-M LX PLUS v: Rev X.0x serial: <superuser required> BIOS: American Megatrends v: 0502 date: 10/21/2011 CPU: Info: Dual Core Intel Core2 Duo E7300 [MCP] speed: 2668 MHz Graphics: Device-1: NVIDIA G94 [GeForce 9600 GT] driver: nouveau v: kernel Display: x11 server: Mageia X.org 1.20.12 driver: loaded: nouveau,v4l resolution: 1920x1080~60Hz OpenGL: renderer: NV94 v: 3.3 Mesa 21.1.5 Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 Device-2: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter driver: 8139too Device-3: Qualcomm Atheros AR9271 802.11n type: USB driver: ath9k_htc Drives: Local Storage: total: 465.76 GiB used: 40.03 GiB (8.6%) Info: Processes: 179 Uptime: 1h 04m Memory: 3.84 GiB used: 1.25 GiB (32.5%) Shell: Bash inxi: 3.3.04 I ran "journalctl -af" while I performed the following sequence after a clean login. Inserted the drive - the device notifier popped up. Mounted the drive and accessed it Unmounted the drive Inserted the drive again - the device notifier did not pup up Mounted the drive using udisksctl Accessed the drive Unmounted the drive using udisksctl There are, errors in the log at the point where I unmounted the drive using the Device Notifier. The log reports qml errors coming out of devicenotifier around line 52 in the file. The file was attached in the previous post. Maybe those error messages can help chase this down. Seems to have the same root cause as Bug 438874. *** This bug has been marked as a duplicate of bug 438874 *** This is fixed in 5.23 Yes, the duplicate bug it's marked as is marked as fixed in 5.23. :) |