LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-16-2021, 11:22 AM   #1
sairum
Member
 
Registered: Sep 2004
Location: Portugal
Distribution: Slackware
Posts: 118

Rep: Reputation: 56
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)
  1. 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
  2. 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
  3. USB device used (browsed). Unmount using ststem tray option (safely remove...)

    Code:
    [  271.492722] sdc: detected capacity change from 63406080 to 0
  4. Unplug USB stick

    Code:
    [  337.914167] usb 2-1: USB disconnect, device number 5
  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
  6. 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
  7. 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
  8. 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.
 
Old 09-16-2021, 11:42 AM   #2
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,413

Rep: Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149
Fixed in plasma 5.23

until then, here is the workaround

https://www.linuxquestions.org/quest...ml#post6281523
 
Old 09-16-2021, 11:51 AM   #3
sairum
Member
 
Registered: Sep 2004
Location: Portugal
Distribution: Slackware
Posts: 118

Original Poster
Rep: Reputation: 56
Merci! This seems to solve the problem!
 
Old 09-16-2021, 11:56 AM   #4
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,413

Rep: Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149
Quote:
Originally Posted by sairum View Post
Merci! This seems to solve the problem!
ta bom
 
Old 09-16-2021, 12:51 PM   #5
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,039

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Quote:
Originally Posted by marav View Post
Fixed in plasma 5.23

until then, here is the workaround

https://www.linuxquestions.org/quest...ml#post6281523
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.
 
1 members found this post helpful.
Old 09-16-2021, 01:04 PM   #6
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,413

Rep: Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149
Quote:
Originally Posted by ZhaoLin1457 View Post
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

Last edited by marav; 09-16-2021 at 01:07 PM.
 
Old 09-17-2021, 04:15 AM   #7
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 405

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by marav View Post
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.
 
1 members found this post helpful.
Old 09-17-2021, 04:19 AM   #8
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,413

Rep: Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149
Quote:
Originally Posted by BrunoLafleur View Post
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

Last edited by marav; 09-17-2021 at 04:24 AM.
 
Old 09-17-2021, 12:43 PM   #9
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,413

Rep: Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149Reputation: 4149
Patch applied :

Code:
kde/plasma-workspace-5.22.5-x86_64-2.txz:  Rebuilt.
  Patched to fix USB storage devices detected only once per session.
  Thanks to ctrlaltca.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The October Plasma5 prefers {systemd-,e}logind against ConsoleKit2, so SBo's skypeforlinux will broke the shutdown/reboot feature of Plasma5 LuckyCyborg Slackware 19 10-21-2019 09:49 AM
Unable to launch "cinnamon-session-cinnamon" X session "cinnamon-session-cinnamon" -found; Falling back to default "session." xxxindigo Linux Mint 22 09-01-2019 09:21 AM
crontab once per week and once per month? qwertyjjj Linux - Newbie 3 12-15-2011 04:54 AM
web page database access per page or per session? b0uncer Programming 6 01-13-2007 12:09 PM
How to minimize applications to sytem tray? JIV Linux - Software 3 11-10-2003 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration