| Summary: | Media manager detects /dev/mmcblk0 as internal harddisk | ||
|---|---|---|---|
| Product: | TDE | Reporter: | hauke |
| Component: | tdelibs | Assignee: | Slávek Banko <slavek.banko> |
| Status: | REOPENED --- | ||
| Severity: | normal | CC: | ac586133, bugwatch, hauke, martinhodges479, michele.calgaro, slavek.banko |
| Priority: | P5 | ||
| Version: | R14.0.x [Trinity] | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Bug Depends on: | |||
| Bug Blocks: | 2540 | ||
| Attachments: |
Popup shown if USB stick inserted
Screenshot from the hardware information in control center 2nd screenshot from the hardware information in control center 3rd screenshot from the hardware information in control center Screenshot after inserting an SD card Screenshot after inserting an SD card Hardware Devide Manager with all devices matching "mm" Screenshot after inserting an SD card Screenshot after inserting an SD card |
||
Hi, I just want to add the following info: -On some laptops, the sd card slot treats sd cards as a normal ''mass storage device'' aka USB key or usb hdd. -On some others, the slot treats sd cards as ''Secure Digital interface''. This mode was made to implement rights management and it also has a drawback: You can't have more than 1 partition on a sd card used in a sd card slot that usees the secure digital mode. Thank you! -Alexandre Please, you can post here output from "udevadm info -a -n /dev/mmcblk0" ? On a Sagem Spiga
agem@sagem-M-BOOK:~$ udevadm info -a -n /dev/mmcblk0
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1e.1/mmc_host/mmc1/mmc1:59b4/block/mmcblk0':
KERNEL=="mmcblk0"
SUBSYSTEM=="block"
DRIVER==""
ATTR{alignment_offset}=="0"
ATTR{capability}=="10"
ATTR{discard_alignment}=="0"
ATTR{ext_range}=="8"
ATTR{force_ro}=="0"
ATTR{inflight}==" 0 0"
ATTR{range}=="8"
ATTR{removable}=="0"
ATTR{ro}=="0"
ATTR{size}=="30537728"
ATTR{stat}==" 13893 8450 829610 502460 2377 11542 180648 835644 0 79408 1338432"
looking at parent device '/devices/pci0000:00/0000:00:1e.1/mmc_host/mmc1/mmc1:59b4':
KERNELS=="mmc1:59b4"
SUBSYSTEMS=="mmc"
DRIVERS=="mmcblk"
ATTRS{cid}=="824a545344313647307c217ddd00f200"
ATTRS{csd}=="400e00325b590000747d7f800a400000"
ATTRS{date}=="02/2015"
ATTRS{erase_size}=="512"
ATTRS{fwrev}=="0x0"
ATTRS{hwrev}=="0x3"
ATTRS{manfid}=="0x000082"
ATTRS{name}=="SD16G"
ATTRS{oemid}=="0x4a54"
ATTRS{preferred_erase_size}=="4194304"
ATTRS{scr}=="0235800300000000"
ATTRS{serial}=="0x7c217ddd"
ATTRS{type}=="SD"
looking at parent device '/devices/pci0000:00/0000:00:1e.1/mmc_host/mmc1':
KERNELS=="mmc1"
SUBSYSTEMS=="mmc_host"
DRIVERS==""
looking at parent device '/devices/pci0000:00/0000:00:1e.1':
KERNELS=="0000:00:1e.1"
SUBSYSTEMS=="pci"
DRIVERS=="sdhci-pci"
ATTRS{broken_parity_status}=="0"
ATTRS{class}=="0x080501"
ATTRS{consistent_dma_mask_bits}=="32"
ATTRS{d3cold_allowed}=="0"
ATTRS{device}=="0x811d"
ATTRS{dma_mask_bits}=="32"
ATTRS{driver_override}=="(null)"
ATTRS{enable}=="1"
ATTRS{irq}=="17"
ATTRS{local_cpulist}=="0-1"
ATTRS{local_cpus}=="3"
ATTRS{msi_bus}=="1"
ATTRS{subsystem_device}=="0x8119"
ATTRS{subsystem_vendor}=="0x8086"
ATTRS{vendor}=="0x8086"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
sagem@sagem-M-BOOK:~$
Great, thank you. Can I also ask about the next output from "grep 'UNCLASSIFIED DEVICE' ~/.xsession-errors | sort -u" ? The command gives no output... Can I also ask about the next one output? udevadm info --query=property --name=/dev/mmcblk0 sagem@sagem-M-BOOK:~$ udevadm info --query=property --name=/dev/mmcblk0 DEVLINKS=/dev/disk/by-id/mmc-SD16G_0x7c217ddd /dev/disk/by-uuid/f4f65186-2b7c-45bd-bae0-06ae62728b1e DEVNAME=/dev/mmcblk0 DEVPATH=/devices/pci0000:00/0000:00:1e.1/mmc_host/mmc1/mmc1:59b4/block/mmcblk0 DEVTYPE=disk ID_DRIVE_FLASH_SD=1 ID_DRIVE_MEDIA_FLASH_SD=1 ID_FS_TYPE=ext4 ID_FS_USAGE=filesystem ID_FS_UUID=f4f65186-2b7c-45bd-bae0-06ae62728b1e ID_FS_UUID_ENC=f4f65186-2b7c-45bd-bae0-06ae62728b1e ID_FS_VERSION=1.0 ID_NAME=SD16G ID_SERIAL=0x7c217ddd MAJOR=179 MINOR=0 SUBSYSTEM=block TAGS=:systemd: USEC_INITIALIZED=5442760 sagem@sagem-M-BOOK:~$ Hi, I might add as details that it is on a Sagem Spiga, which is a rebranded Umid Mbook. The palmtop-laptop has its boot partition on the internal 8gb SSD, and the rest of the system on the microsd slot. It currently runs Xubuntu 15.10 and Win XP. Alexandre Problem should be fixed by commit 68102d50 (master), ad6b5add (r14.0.x). Packages for test will be soon available in the Preliminary stable builds repository. If the problem persists, do not hesitate to reopen this bug report. Hi, I've updated my system with the packages from "deb http://mirror.xcer.cz/trinity-sb jessie deps-r14 main-r14" two days ago. If the patch (commit 68102d50 (master), ad6b5add (r14.0.x)) is included in these package, it makes it even worse :-( After installing these packages, there is no icon in the media manager mini programm for kicker (before the update, the SD card was shown as HDD). I got the same result with differend SD cards inserted in the card reader. The SD cards can be mounted from command line without problem. Could you please have a look at the patch or do you know, if there are other changes that could make the icon disappear? Thank you for your time, Hauke Please, can you attach screenshot of the second tab with information about SD/MMC disk from Trinity Control Center / Hardware Device Manager? I have now examined the problem closely, and it appears that it is a combination of problems in tdelibs and tdebase. I hope that the proper patches could be soon. Created attachment 2614 [details]
Screenshot from the hardware information in control center
Created attachment 2615 [details]
2nd screenshot from the hardware information in control center
Created attachment 2616 [details]
3rd screenshot from the hardware information in control center
I've found three places where the SD card reader is listed in the control center.
I hope it helps :-)
Thank you!
(In reply to hauke from comment #15) > Created attachment 2616 [details] > 3rd screenshot from the hardware information in control center > > I've found three places where the SD card reader is listed in the control > center. > > I hope it helps :-) > > Thank you! Please attach also screenshot of information about block device /dev/mmcblk0 itself. Created attachment 2617 [details]
Screenshot after inserting an SD card
Created attachment 2618 [details]
Screenshot after inserting an SD card
Without an inserted SD card there is no entry in the "Hardware Device Manager" under the "Disk" section.
I hope that are the screenshots you need :-)
(In reply to hauke from comment #18) > Created attachment 2618 [details] > Screenshot after inserting an SD card > > Without an inserted SD card there is no entry in the "Hardware Device > Manager" under the "Disk" section. > > I hope that are the screenshots you need :-) Thank you. Yes, these are precisely those screenshots that I wanted to see. Please, you can now update (tdelibs 14.0.3~pre17) and attach new screenshots of how the disc is presented now? Created attachment 2619 [details]
Hardware Devide Manager with all devices matching "mm"
Created attachment 2620 [details]
Screenshot after inserting an SD card
Created attachment 2621 [details]
Screenshot after inserting an SD card
After the update the SD card is detected in the Device Manager as Secure Digital :-)
In the SD card is shown in the "media mini programm" as HDD. There is no popup with possible actions after inserting the SD card.
I expect that in Konqueror on url "media:/" is also an icon HDD instead of SD/MMC? This will solve the subsequent patch for tdebase.
The problem with missing popup window is worse. By udev this device is not removable. See listing "udevadm info -a -n /dev/mmcblk0" above.
ATTR{removable}=="0"
It seems to be necessary for all these devices force that they are removable, regardless of udev information.
Konqueror shows the inserted SD card as "Fixed Disk" with HDD symbol under "media:/".
Maybe you could mark all
ATTRS{type}=="SD"
as removable?
(In reply to hauke from comment #24) > Konqueror shows the inserted SD card as "Fixed Disk" with HDD symbol under > "media:/". > I suppose that after updating (tdebase 14.0.3~pre4) disc icon in "media:/" would be correct - SD/MMC. However, there remains the fact that the disc is considered as fixed == due to incorrect information from the udev. > Maybe you could mark all > > ATTRS{type}=="SD" > > as removable? Yes, I was thinking something like this - that whatever the information from the udev would all SD / MMC were considered as removable. Please perform the test again with the tdelibs >= 14.0.3~pre18 and tdebase >= 14.0.3~pre4. After updating, an inserted SD card is shown in konqueror as "Removable Device", but it has an empty paper sheet as symbol. There is no popup with actions. In a previous version of TDE (where hal was used) the SD card had a SD card symbol. Would be nice, to have the symbol back too :-) (In reply to hauke from comment #27) > After updating, an inserted SD card is shown in konqueror as "Removable > Device", but it has an empty paper sheet as symbol. There is no popup with > actions. > > In a previous version of TDE (where hal was used) the SD card had a SD card > symbol. Would be nice, to have the symbol back too :-) Hauke, please test again with the tdelibs >= 14.0.3~pre23 and tdebase >= 14.0.3~pre6. I hope that now everything should be resolved - icon in media:/ and also popup window after inserting the SD card. Thank you Slávek :-) Correct icon and the popup window are now shown :-) (In reply to hauke from comment #29) > Thank you Slávek :-) > > Correct icon and the popup window are now shown :-) Great, thank you for the good news! Lenovo T500 with Devuan 3. i.e no systemd or udev, but their eudev clone. I use pmount and the mmcblk0p1 is mountable with that from a terminal. No icons appear on the desktop either before or after mounting. This machine uses the Ricoh Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21). The device is reported as non-removable by the kernel. Read in the /sys/block/mmcblk0 folder. I use elogind and no policykit. Anything I can report? Hi Martin, what version of TDE are you using (R14.0.x or R14.1.0-dev)? R14.0.10 vanilla debian 10/ devuan 3 pacakges. The desktop install is cherry picked, but I use tdm, ksmserver konqueror, kicker, kdesktop, kate, kontact, konsole and their dependancies. (amongst others) /opt/trinity/bin/tde_dbus_hardwarecontrol is running as is dbus and eudev. This is a listy of the active processes for a typical minimal desktop session. ps ux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND martin 2141 0.0 0.0 2388 1756 ? Ss 23:07 0:00 /bin/sh /opt/trinity/bin/starttde martin 2173 0.0 0.0 8608 2224 ? S 23:07 0:00 /usr/bin/dbus-launch --exit-with-session --sh-synta martin 2174 0.0 0.0 6284 2228 ? Ss 23:07 0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 5 martin 2183 0.0 0.0 5852 472 ? Ss 23:07 0:00 /usr/bin/ssh-agent /opt/trinity/bin/starttde martin 2235 0.0 0.1 71016 10620 ? S 23:07 0:00 dcopserver [tdeinit] --nosid --suicide martin 2240 0.1 0.4 88456 33856 ? SL 23:07 0:00 kded [tdeinit] --new-startup martin 2250 0.0 0.1 71280 8268 ? Ss 23:07 0:00 [tdeinit] tdeinit Running... martin 2253 0.0 0.2 73144 17860 ? S 23:07 0:00 tdelauncher [tdeinit] --new-startup martin 2259 0.0 0.2 61636 17708 ? S 23:07 0:00 /opt/trinity/bin/tdeinit_phase1 martin 2260 0.0 0.0 2388 760 ? S 23:07 0:00 sh -c kwrapper ksmserver martin 2261 0.0 0.0 2280 684 ? S 23:07 0:00 kwrapper ksmserver martin 2263 0.0 0.2 74316 19600 ? S 23:07 0:00 ksmserver [tdeinit] martin 2265 0.1 0.2 79976 22588 ? S 23:07 0:00 twin [tdeinit] -session 101a713f11314f0001369823777 martin 2268 0.6 0.5 171492 44792 ? Sl 23:07 0:04 /opt/trinity/bin/kdesktop martin 2270 0.0 0.2 74292 23952 ? S 23:07 0:00 /opt/trinity/bin/kdesktop_lock --internal 2268 martin 2272 0.6 0.4 89828 33008 ? S 23:07 0:03 kicker [tdeinit] martin 2274 0.0 0.1 71588 12720 ? S 23:07 0:00 tdeio_file [tdeinit] file /tmp/tdesocket-martin/tde martin 2280 0.0 0.1 75780 15932 ? S 23:07 0:00 khotkeys [tdeinit] martin 2290 0.2 0.1 20516 12796 ? S 23:07 0:01 /opt/trinity/bin/artsd -F 8 -S 2048 -d -b 16 -s 2 - martin 2297 0.0 0.4 345740 36228 ? Sl 23:07 0:00 /usr/sbin/wpa_gui -session 10d375737300016205801980 martin 2302 0.0 0.0 312548 6532 ? Sl 23:07 0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher --launch- martin 2303 0.0 0.3 91788 25232 ? S 23:07 0:00 knotify [tdeinit] martin 2313 0.0 0.0 6284 3092 ? S 23:07 0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defau martin 2314 0.0 0.3 85516 28080 ? S 23:07 0:00 kmix [tdeinit] -caption KMix -icon kmix -miniicon k martin 2317 0.6 0.2 81756 22428 ? S 23:07 0:03 tdepowersave [tdeinit] martin 2328 0.0 0.3 120716 30812 ? S 23:08 0:00 korgac --miniicon korganizer martin 2608 0.7 0.3 82644 25952 ? S 23:17 0:00 konsole [tdeinit] martin 2609 0.0 0.0 9852 3864 pts/1 Ss 23:17 0:00 /bin/bash martin 2617 0.0 0.0 9068 2500 pts/1 R+ 23:17 0:00 ps ux Thanks for the feedback. Currently there is no support for eudev in TDE, although there is support for pmount in tdehw dbus daemon. I suspect that is the reason why you don't see any icon showing up in the desktop after you mount the device. A couple of more questions. 1) do you see icons on the desktop for hard drives/usb drive? 2) I assume the options to show mounted device is enable in your settings (just making sure) 3) is the mediamanager installed and running in your cherry picked system? If yes, what device do you see in KDCOP -> kded -> mediamanager -> fullList()? Usb pendrives and CF drives in the pcmcia adapter show up as expected. There are three KDED change notification services running and the media notifier daemon. Output from KDCOP -> kded -> mediamanager -> fulllist only listed the three fixed hard disk partitions. A pendrive showed up as expected. I would have posted the output but the pane in kdcop would not allow text copying in the usual manner. The relavent lines from ls -l /dev show that eudev assigns the wrong group. It should be plugdev. brw-rw---- 1 root disk 179, 0 May 18 08:40 mmcblk0 brw-rw---- 1 root disk 179, 1 May 18 08:40 mmcblk0p1 Would that make a difference to tde? Doh, /dev/mmcblk* group is probably correct as 'disk'. eudev only assigns plugdev to hidraw and camera devices as far as I can see from the scripts in /lib/udev. Hi Martin, thanks for the info. I will need to try on my computer once I find a SD card :-) The fact that MMC does not show up in KDCOP is quite telling. One more thing you could try. In R14.1.0-dev we did quite a bit of work on media(disk) support, so in case you are able/willing to give it a try, you could see if you get the same behavior or not. If you don't want to update to R14.1.0-dev it's fine, just let us know. Update: Buster/ Beowulf: SDcard appears in KDCOP if libpam-elogind is installed. This also means that krusader finds the disk and can call on pmount. This solves my immediate need. I have a ceres laptop which I moved to the trinity-updates packages. I like the new drive manager in the dock. Even if the icon does not appear on the desktop, the notifications still pop up. This may well be the fault of the kernel flagging the disk as not removeable. KDCOP does not start up at the moment though. http://lkml.iu.edu/hypermail/linux/kernel/0501.1/0167.html is the end of a discussion about the /sys/block....removeable flag. They conclude that the MMC block driver is a function of the controller which is on the card, rather like an ATA hard disk. It is not like floppy or CDrom where the actual media is removeable but the controller is permanent. Go figure. I have another strange case of a SONY A850 camera with USB mass storage cable. The two card slots turn up as /dev/sdb (memory stick) and /dev/sdc (compact flash). I use a compact flash which turns up as /dev/sdc1. The node in /dev is owner:root, group:disk with the same rights/properties as my main hard disk. It is not listed in KDCOP but sda partitions are. ?? Hi Martin, thanks for the additional info (I had actually missed your previous commnet :-( ). Regarding your camera, you get the device in /dev but not in KDCOP and no icons on desktop? Is my understanding correct?What does lsblk return? Just trying to collect more info. FYI, we want to add support for eudev in future (R14.2.0 release) but that is no where in the near future given the resources available (think at least 2 years away...). Hi Michele, Your understanding is correct. martin@stuegrisen:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 74,5G 0 disk ├─sda1 8:1 0 9,7G 0 part / ├─sda2 8:2 0 55,4G 0 part /home └─sda3 8:3 0 9,5G 0 part [SWAP] sdc 8:32 1 14,9G 0 disk └─sdc1 8:33 1 14,9G 0 part sr0 11:0 1 1024M 0 rom KDCOP devices are:- /sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda1//dev/sda1 /sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda2//dev/sda2 Swap is not mentioned. dmesg output after plugging is:- [ 674.174870] usb 2-1.2: new high-speed USB device number 3 using ehci-pci [ 674.284555] usb 2-1.2: New USB device found, idVendor=054c, idProduct=02e6, bcdDevice= 1.01 [ 674.284559] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Luckily, eudev tries to present the same interfaces to other services just without systemd. [ 674.284562] usb 2-1.2: Product: DSLR-A850 [ 674.284564] usb 2-1.2: Manufacturer: Sony [ 674.284567] usb 2-1.2: SerialNumber: 5E01F01C3F8B [ 674.411877] usb-storage 2-1.2:1.0: USB Mass Storage device detected [ 674.412281] scsi host6: usb-storage 2-1.2:1.0 [ 674.412470] usbcore: registered new interface driver usb-storage [ 675.424501] scsi 6:0:0:0: Direct-Access Sony DSLR-A850 1.00 PQ: 0 ANSI: 0 CCS [ 675.425397] scsi 6:0:0:1: Direct-Access Sony DSLR-A850 1.00 PQ: 0 ANSI: 0 CCS [ 675.425818] sd 6:0:0:0: Attached scsi generic sg2 type 0 [ 675.426092] sd 6:0:0:1: Attached scsi generic sg3 type 0 [ 675.429882] sd 6:0:0:1: [sdc] 31277232 512-byte logical blocks: (16.0 GB/14.9 GiB) [ 675.431503] sd 6:0:0:1: [sdc] Write Protect is off [ 675.431507] sd 6:0:0:1: [sdc] Mode Sense: 00 32 00 00 [ 675.433012] sd 6:0:0:0: [sdb] Attached SCSI removable disk [ 675.434502] sd 6:0:0:1: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 675.448914] sdc: sdc1 [ 675.458784] sd 6:0:0:1: [sdc] Attached SCSI removable disk Hmmm. The disk is listed in Trinity Control Center:Device Manager and is listed as :- /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/host6/target6:0:0/6:0:0:1/block/sdc/sdc1/ usb:v054Cp02E6d0101dc00dsc00dp00ic08isc05ip50in00 It is also mountable from here. :-) |
Created attachment 2526 [details] Popup shown if USB stick inserted Hi, the media manager detects /dev/mmcblk0 as internal harddisk. /dev/mmcblk0 is the device (used in many laptops) of the internal SD card reader. No popup (with selections what I want to do with the new found device) is shown, if I insert a SD card. For USB sticks it works fine. In addition the media manager mini programm for kicker shows an internal harddisk too. Would be nice, if /dev/mmcblk0 would be accepted as card reader device as in 3.5.13 :-)