WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Automount USB rules.d Query  (Read 7101 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11515
Re: Automount USB rules.d Query
« Reply #30 on: December 30, 2021, 12:04:14 AM »
Hi Rabie
Searching the site your computer is made by might be a good place to search for firmware.
No luck on the firmware yet, but there might be another way.

The vendor ID : product ID for your reader is 0bda:0153.
A search on that returns  Realtek 3-in-1 (SD/SDHC/SDXC) Card Reader.

If you are running TC11 or higher, your reader should be supported by the ums-realtek driver.
To see if the driver supports your card, run:
Code: [Select]
modinfo ums_realtekYou should see a line that matches this:
Quote
alias:          usb:v0BDAp0153d*dc*dsc*dp*ic*isc*ip*in*

If you get a match, we can try altering a driver parameter. Item 3 looks interesting:
Code: [Select]
parm:           ss_delay:seconds to delay before entering selective suspend
parm:           ss_en:enable selective suspend
parm:           auto_delink_en:auto delink mode (0=firmware, 1=software [default])

Unload then reload the driver with altered parameter:
Code: [Select]
sudo modprobe -r ums_realtek
sudo modprobe -v ums_realtek auto_delink_en=0

Test inserting, unmounting, and removing the SD card.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Automount USB rules.d Query
« Reply #31 on: December 30, 2021, 05:25:24 AM »
Hi Rich,
Quote
If you are running TC11 or higher, your reader should be supported by the ums-realtek drive

i am running TC10.1 but tried your suggestion anyway and no luck:
Code: [Select]
modinfo ums_realtek
filename:       /lib/modules/4.19.10-tinycore64/kernel/drivers/usb/storage/ums-realtek.ko.gz
author:         wwang <wei_wang@realsil.com.cn>
description:    Driver for Realtek USB Card Reader
license:        GPL
parm:           ss_delay:seconds to delay before entering selective suspend
parm:           ss_en:enable selective suspend
parm:           auto_delink_en:enable auto delink
alias:          usb:v0BDAp0184d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0177d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0159d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0158d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0138d*dc*dsc*dp*ic*isc*ip*in*
depends:
intree:         Y
vermagic:       4.19.10-tinycore64 SMP mod_unload

Code: [Select]
tc@box:~$ sudo modprobe -r ums_realtek
tc@box:~$
tc@box:~$ sudo modprobe -v ums_realtek auto_delink_en=0

Quote
Test inserting, unmounting, and removing the SD card.
i just need that UDEV detect it, when someone remove the sd card and the rest will the automount script do
« Last Edit: December 30, 2021, 09:51:53 AM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11515
Re: Automount USB rules.d Query
« Reply #32 on: December 30, 2021, 09:50:03 AM »
Hi Rabie
And in order for UDEV to detect it, the card reader needs to supply it.

The driver under TC10 does not support your reader. I thought you had TC11 or TC12 running.

By the way, you should not be quoting entire posts in your replies. If you are responding to a particular part of a
post, you can quote just that part if you feel it is necessary.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Automount USB rules.d Query
« Reply #33 on: December 30, 2021, 09:55:25 AM »
Hi Rich,
Quote
And in order for UDEV to detect it, the card reader needs to supply it.

The driver under TC10 does not support your reader. I thought you had TC11 or TC12 running
ok then like i said before in the other thread, i have to wait until TC13 is released, so i can upgrade my whole system.

Quote
By the way, you should not be quoting entire posts in your replies. If you are responding to a particular part of a
post, you can quote just that part if you feel it is necessary.
that was an accident   ;D

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11515
Re: Automount USB rules.d Query
« Reply #34 on: December 30, 2021, 09:59:23 AM »
Hi Rabie
... that was an accident   ;D
Repairs have been made.  :)