trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: August 2012

Re: [trinity-devel] Tim: TDEHWLIB

From: Darrell Anderson <humanreadable@...>
Date: Thu, 30 Aug 2012 11:17:57 -0700 (PDT)
> I recently pushed patches that should restore the majority
> of the mount backend functionality when compiled with TDEHWLib instead of
> HAL.  These patches affect tdelibs, tdebase, and tdegraphics, so you
> will need to recompile all three from the latest GIT before trying out
> the patches.
> 
> Please let me know which areas are still regressed compared
> to HAL after this patchset has been applied.

Here are my latest test results:

========================================
Digital camera

Powering on the camera while connected to a USB port shows a desktop icon almost immediately.
When disconnecting or powering off the camera, the icon disappears almost immediately.
I have Trinity configured to autostart digikam when the camera is detected and with TDEHW digikam now starts automatically.

As far as I can tell, camera support now works as expected.

========================================
Inserting a DVD

Nothing happens. No desktop icon, no dialog.

========================================
Floppy drive

When configured in Configure Desktop -> Behavior -> Device icons, an icon appears on the desktop for unmounted floppy.
Using the desktop popup menu, the device mounts in /media/fd0, although configured in mediamanagerrc as /media/floppy.
The device does unmount when using the popup menu.

========================================
USB flash drives

After about 30 seconds an icon appears on the desktop. This is much longer than with HAL.
The device does not automount, per my configuration.
The device icon label changes when I use a different physical port.
Using the desktop popup menu, the device mounts to /media/sdf1 and not the mount point I configured.
Using the desktop popup menu, the device unmounts.
Using the desktop popup menu, selecting Safely Remove, the icon does not disappear.

========================================
Summary

Needing attention:

* Using the desktop popup menu, selecting Properties does not show the Mounting tab in the dialog for any of the removable devices.

* TDEHW does not honor the mount points used in mediamanagerrc.

* For USB flash drives, the device icon label changes when the physical port is different. The icon label is not the same as when connected under HAL.

Proposal:

Here is a snippet from my mediamanagerrc:

[UserLabels]
/org/freedesktop/Hal/devices/platform_floppy_0_storage=Floppy
/org/freedesktop/Hal/devices/volume_uuid_3D46_02C4=Cruzer 16GB USB
/org/freedesktop/Hal/devices/volume_uuid_4840_B9DA=Buffalo 1GB USB
/org/freedesktop/Hal/devices/volume_uuid_4CAB_C505=Kingston 8GB USB
/org/freedesktop/Hal/devices/volume_uuid_4CAF_CC9B=Cruzer 8GB USB
/sys/devices/pci0000:00/0000:00:0b.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdf/sdf1//dev/sdf1=Cruzer 16GB USB
/sys/devices/pci0000:00/0000:00:0b.1/usb1/1-5/1-5:1.0/host8/target8:0:0/8:0:0:0/block/sdf/sdf1//dev/sdf1=Cruzer 16GB USB

Notice that under HAL, after using the GUI to rename the icon label, the volume_uuid_3D46_02C4 icon label is "Cruzer 16GB USB." I can insert the device to any physical port and the icon label remains the same because the label is related to the device UUID.

Under TDEHW the default icon label for that device is CRUZER because TDEHW is not using UUID. After I use the GUI to change the icon label to "Cruzer 16GB USB," the first "sdf1" entry above is created. When I insert the device into a different USB port, the default name once again is CRUZER. Once again I use the GUI to change the icon label to "Cruzer 16GB USB," but a another entry is created in mediamanagerrc. This behavior will irritate users. :-)

To be seamless ("just works") TDEHW should use the existing mediamanagerrc information. How TDEHW detects devices need not match the group key labels in mediamanagerrc. Users will not enjoy needing to rename the icon labels. They will not enjoy needing to rename the label again when they use a different physical port.

I recommend using the same identity scheme used under HAL by using the device UUID and using the same key labels and values. That would resolve both the icon label and mount point problems.

Darrell