[Lenovo e320] Checkbox fails to detect the SD and SDHC - Manual test works fine

Bug #944939 reported by Greg Vallande
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
checkbox (Ubuntu)
Expired
High
Unassigned

Bug Description

Checkbox Version: 0.13.1~ppa19.12.04

After a run with Checkbox on the e320, the card reader test for both SD and SDHC fail but appear to work manually. I ran just that portion of the test in an effort to debug and found these results:

ubuntu@201106-8229:~$ /usr/share/checkbox/scripts/removable_storage_test sdio
No removable drives were detected, aborting

ubuntu@201106-8229:~$ /usr/share/checkbox/scripts/removable_storage_test usb
No removable drives were detected, aborting

That's with the card inserted and a window displaying the drive and it's contents; can copy files to the drive.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: checkbox 0.13.3
ProcVersionSignature: Ubuntu 3.2.0-12.21-generic-pae 3.2.2
Uname: Linux 3.2.0-12-generic-pae i686
ApportVersion: 1.91-0ubuntu1
Architecture: i386
Date: Fri Mar 2 11:15:44 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20120201.1)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: checkbox
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Greg Vallande (gvallande) wrote :
Revision history for this message
Greg Vallande (gvallande) wrote :
Revision history for this message
Greg Vallande (gvallande) wrote :
Revision history for this message
Greg Vallande (gvallande) wrote :

Update: I ran the following per roadmr's suggestion to try and narrow down what is going on here:

import dbus

bus = dbus.SystemBus()
umo=bus.get_object('org.freedesktop.UDisks','/org/freedesktop/UDisks')
um = dbus.Interface(umo,'org.freedesktop.UDisks')

for dev in um.EnumerateDevices():
    do = bus.get_object('org.freedesktop.UDisks',dev)
    dp = dbus.Interface(do,dbus.PROPERTIES_IFACE)
    print dp.Get('org.freedesktop.UDisks.Device',"DeviceMountPaths")
    print dp.Get('org.freedesktop.UDisks.Device',"DeviceIsDrive")
    print dp.Get('org.freedesktop.UDisks.Device', "DriveConnectionInterface")

Output:

ubuntu@201106-8229:~$ python test.py
dbus.Array([], signature=dbus.Signature('s'), variant_level=1)
0
ata
dbus.Array([], signature=dbus.Signature('s'), variant_level=1)
1
ata
dbus.Array([], signature=dbus.Signature('s'), variant_level=1)
1
usb
dbus.Array([], signature=dbus.Signature('s'), variant_level=1)
0
usb
dbus.Array([dbus.String(u'/')], signature=dbus.Signature('s'), variant_level=1)
0
ata
dbus.Array([], signature=dbus.Signature('s'), variant_level=1)
0
ata
dbus.Array([], signature=dbus.Signature('s'), variant_level=1)
1
scsi
dbus.Array([dbus.String(u'/media/0E66-714A')], signature=dbus.Signature('s'), variant_level=1)
0
scsi

^^^^
So as we see here - the output reflects that the card reader is a SCSI device.

Changed in checkbox (Ubuntu):
status: New → Triaged
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

I'm curious to know what kind of icon displays on the launcher when the card is inserted? Is it an SD card icon or a plain old disk icon? If it's an SD card icon that would be good, as at least *someone* knows how to tell that an SD card reader is on the SCSI bus. If it's a plain old disk then maybe we're scuppered and need to rethink this test.

Changed in checkbox (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Greg Vallande (gvallande) wrote :

Hi Brendan,

    I just tested this and yes it appears as a regular disk not on the USB or sdio bus.

Revision history for this message
Jeff Lane  (bladernr) wrote : Re: [Bug 944939] Re: [Lenovo e320] Checkbox fails to detect the SD and SDHC - Manual test works fine

On 03/03/2012 01:42 PM, Brendan Donegan wrote:
> I'm curious to know what kind of icon displays on the launcher when the
> card is inserted? Is it an SD card icon or a plain old disk icon? If
> it's an SD card icon that would be good, as at least *someone* knows how
> to tell that an SD card reader is on the SCSI bus. If it's a plain old
> disk then maybe we're scuppered and need to rethink this test.
>
> ** Changed in: checkbox (Ubuntu)
> Status: Triaged => Incomplete
>

I wonder if this is one of those systems that would cause other failures
like the storage_test script picking up the empty SD slot as a full
block device... we hates these machines... hates them we do.

--
Jeff Lane - Hardware Certification Engineer and Test Tools Developer
Ubuntu Ham: W4KDH
Freenode IRC: bladernr or bladernr_
gpg: 1024D/3A14B2DD 8C88 B076 0DD7 B404 1417 C466 4ABD 3635 3A14 B2DD

Revision history for this message
TienFu Chen (ctf) wrote :

This controller is
Realtek Semiconductor Co., Ltd.: RTS5116 PCI Express Card Reader
with module, sdhci-pci.
I like to give it a try but there's no system in Taipei adapted this controller.
This controller can be seen on several Lenovo systems as below.
https://hexr.canonical.com/device/18845/

I wonder if there's any UDisks property we can check to distinguish a persistent SCSI device and a removal one.

For now, we may consider adding "SCSI" category to the script, removable_storage_test. The testing in removable_storage_test won't take a long time, it's a file hash/copy test. I think it's ok to have an additional test running on the persistent SCSI device during the removable_storage_test test.

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

If we just add test for the scsi category then the test may pick up any hard disk, not necessarily one with an SD card reader on it. I want to have a look at the system to see if UDisks has some way of telling the difference, but currently it isn't accessible in the lab.

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

On 05/03/12 19:17, Jeff Lane wrote:
> On 03/03/2012 01:42 PM, Brendan Donegan wrote:
>> I'm curious to know what kind of icon displays on the launcher when the
>> card is inserted? Is it an SD card icon or a plain old disk icon? If
>> it's an SD card icon that would be good, as at least *someone* knows how
>> to tell that an SD card reader is on the SCSI bus. If it's a plain old
>> disk then maybe we're scuppered and need to rethink this test.
>>
>> ** Changed in: checkbox (Ubuntu)
>> Status: Triaged => Incomplete
>>
> I wonder if this is one of those systems that would cause other failures
> like the storage_test script picking up the empty SD slot as a full
> block device... we hates these machines... hates them we do.
>
Could be, but the storage_test was adapted to check the size before
running so this problem shouldn't occur anymore.

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Hi Greg,

When you get a chance can you run this script as well?

import dbus

bus = dbus.SystemBus()

ud_mgr_obj = bus.get_object("org.freedesktop.UDisks", "/org/freedesktop/UDisks")
ud_mgr = dbus.Interface(ud_mgr_obj, "org.freedesktop.UDisks")

for dev in ud_mgr.EnumerateDevices():
    try:
        device_obj = bus.get_object("org.freedesktop.UDisks", dev)
        device_props = dbus.Interface(device_obj, dbus.PROPERTIES_IFACE)
        if device_props.Get('org.freedesktop.UDisks.Device', "DeviceIsDrive"):
            print device_props.Get('org.freedesktop.UDisks.Device', "DeviceFile")
            print device_props.Get('org.freedesktop.UDisks.Device', "DriveConnectionInterface")
            print device_props.Get('org.freedesktop.UDisks.Device', "DeviceIsRemovable")
            print device_props.Get('org.freedesktop.UDisks.Device','DriveMediaCompatibility')

I'm hoping DriveMediaCompatibility isn't a fibber and we can use that.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for checkbox (Ubuntu) because there has been no activity for 60 days.]

Changed in checkbox (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.