[SOLVED] USB storage devices are detected only once per session in plasma5 sytem tray
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
USB storage devices are detected only once per session in plasma5 sytem tray
This is a behaviour that appeared after last week's upgrades, but I'm not sure which. I'm running -current64 multilib. After starting X from runlevel 3, plasma detects any USB storage device the first time I insert it in any USB port (see corresponding dmesg output)
USB stick inserted
Code:
[ 135.114748] usb 2-1: new high-speed USB device number 5 using xhci_hcd
[ 135.317801] usb 2-1: New USB device found, idVendor=fafa, idProduct=fafa, bcdDevice=32.76
[ 135.317810] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 135.317813] usb 2-1: SerialNumber: AA210C4800000076
[ 135.336129] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 135.336330] scsi host6: usb-storage 2-1:1.0
[ 135.336404] usbcore: registered new interface driver usb-storage
[ 135.337680] usbcore: registered new interface driver uas
[ 137.002418] scsi 6:0:0:0: Direct-Access 3276 PQ: 0 ANSI: 0 CCS
[ 137.003026] sd 6:0:0:0: [sdc] 63406080 512-byte logical blocks: (32.5 GB/30.2 GiB)
[ 137.003791] sd 6:0:0:0: [sdc] Write Protect is off
[ 137.003793] sd 6:0:0:0: [sdc] Mode Sense: 43 00 00 00
[ 137.004376] sd 6:0:0:0: [sdc] No Caching mode page found
[ 137.004377] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 137.013903] sdc: sdc1 sdc2
[ 137.017187] sd 6:0:0:0: [sdc] Attached SCSI removable disk
Mount dialog popup in system tray appears. Select "mount this device". USB is mounted
Code:
[ 210.368403] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 210.369634] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 210.372396] ISO 9660 Extensions: RRIP_1991A
USB device used (browsed). Unmount using ststem tray option (safely remove...)
Code:
[ 271.492722] sdc: detected capacity change from 63406080 to 0
Unplug USB stick
Code:
[ 337.914167] usb 2-1: USB disconnect, device number 5
Plug it again in same USB port
Code:
[ 381.008775] usb 2-1: new high-speed USB device number 6 using xhci_hcd
[ 381.211701] usb 2-1: New USB device found, idVendor=fafa, idProduct=fafa, bcdDevice=32.76
[ 381.211714] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 381.211718] usb 2-1: SerialNumber: AA210C4800000076
[ 381.213086] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 381.213398] scsi host6: usb-storage 2-1:1.0
[ 382.890007] scsi 6:0:0:0: Direct-Access 3276 PQ: 0 ANSI: 0 CCS
[ 382.890473] sd 6:0:0:0: [sdc] 63406080 512-byte logical blocks: (32.5 GB/30.2 GiB)
[ 382.891286] sd 6:0:0:0: [sdc] Write Protect is off
[ 382.891289] sd 6:0:0:0: [sdc] Mode Sense: 43 00 00 00
[ 382.891924] sd 6:0:0:0: [sdc] No Caching mode page found
[ 382.891926] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 382.910186] sdc: sdc1 sdc2
[ 382.912967] sd 6:0:0:0: [sdc] Attached SCSI removable disk
Wait a few seconds. No dialog popup in system tray. It's still possible to mount USB disk manually in bash ("mount -t auto ...") or by clicking in the appropriate option in Dolphin's "Removable Devices" left side bar. USB stick mounted using Dolphin's "Removable Devices" option in left side bar.
Code:
[ 665.338497] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 665.339802] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 665.340809] ISO 9660 Extensions: RRIP_1991A
A different USB stick in a different port summons the popup in system tray again!
Code:
[ 717.846814] usb 2-11: new high-speed USB device number 7 using xhci_hcd
[ 717.975679] usb 2-11: New USB device found, idVendor=0951, idProduct=1665, bcdDevice= 1.00
[ 717.975689] usb 2-11: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 717.975694] usb 2-11: Product: DataTraveler 2.0
[ 717.975697] usb 2-11: Manufacturer: Kingston
[ 717.975700] usb 2-11: SerialNumber: 60A44C4250F7F3B0762072EE
[ 717.977097] usb-storage 2-11:1.0: USB Mass Storage device detected
[ 717.977318] scsi host7: usb-storage 2-11:1.0
[ 719.210069] scsi 7:0:0:0: Direct-Access Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 4
[ 719.210454] sd 7:0:0:0: [sdd] 120845300 512-byte logical blocks: (61.9 GB/57.6 GiB)
[ 719.210658] sd 7:0:0:0: [sdd] Write Protect is off
[ 719.210661] sd 7:0:0:0: [sdd] Mode Sense: 45 00 00 00
[ 719.211090] sd 7:0:0:0: [sdd] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 719.224503] sdd: sdd1
[ 719.225721] sd 7:0:0:0: [sdd] Attached SCSI removable disk
[ 784.150391] FAT-fs (sdd1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 790.855362] sdc: detected capacity change from 63406080 to 0
[ 797.125164] usb 2-11: USB disconnect, device number 7
But it fails to the second time the device is re-plugged.
This is obviously a KDE (plasma5) thing. Creating a new user account with a fresh new plasma configuration does not solve the problem. I suspect this has something to do with the interaction between KDE and device mounting rules. Is anyone experiencing the same problem? I know at least one person also using -current that does. Actually he warmed me right away, but I only updated my -current installation yesterday.
You should propose this workaround to be merged to the current build of Plasma5, because I understand that Plasma 5.23 will not be available on Slackware 15.0, but on the next development cycle.
I think is quite probably that Slackware 15.0 will ship Plasma 5.22.5
Last edited by ZhaoLin1457; 09-16-2021 at 12:53 PM.
You should propose this workaround to be merged to the current build of Plasma5, because I understand that Plasma 5.23 will not be available on Slackware 15.0, but on the next development cycle.
I think is quite probably that Slackware 15.0 will ship Plasma 5.22.5
This workaround has already been proposed in "All Things KDE5/Plasma for Slackware Users." by the author himself (Fabio)
And I'm pretty sure M. Volkerding has seen it
Maybe I'm wrong, but as far as I remember, he never (or as an exception) touches the upstream code.
And there must be prabably a lot of reasons why KDE devs didn't put it in the 5.22.5 patch set
This workaround has already been proposed in "All Things KDE5/Plasma for Slackware Users." by the author himself (Fabio)
And I'm pretty sure M. Volkerding has seen it
Maybe I'm wrong, but as far as I remember, he never (or as an exception) touches the upstream code.
And there must be prabably a lot of reasons why KDE devs didn't put it in the 5.22.5 patch set
But this patch is just some config files and you don't need to compile again anything.
I have tested those 3 config files in a new latest Slackware current I have put on an old machine I have reinstalled from scratch and which had the KDE5 bug with USB sticks.
With those files, all is working again. All you have to do is to put them on the right place. They could be put in the package easily.
This bug is annoying. For me being able to load USB devices quickly is important for non geek users or even for geeks.
But this patch is just some config files and you don't need to compile again anything.
I have tested those 3 config files in a new latest Slackware current I have put on an old machine I have reinstalled from scratch and which had the KDE5 bug with USB sticks.
With those files, all is working again. All you have to do is to put them on the right place. They could be put in the package easily.
This bug is annoying. For me being able to load USB devices quickly is important for non geek users or even for geeks.
I agree a thousand times
But I'm not the one to say that to :-)
I for one, I copied the files and I'm fine with that
If someone wants to make the report, go on
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.