Debian Bug report logs - #635756
unknown: Improved useability for ExpressCard to CompactFlash adaptors

Package: hal; Maintainer for hal is Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>; Source for hal is src:hal.

Reported by: Jean-Marc Ranger <jmranger@hotmail.com>

Date: Thu, 28 Jul 2011 15:03:13 UTC

Severity: wishlist

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, unknown-package@qa.debian.org:
Bug#635756; Package unknown. (Thu, 28 Jul 2011 15:03:16 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jean-Marc Ranger <jmranger@hotmail.com>:
New Bug report received and forwarded. Copy sent to unknown-package@qa.debian.org. (Thu, 28 Jul 2011 15:03:41 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Jean-Marc Ranger <jmranger@hotmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: unknown: Improved useability for ExpressCard to CompactFlash adaptors
Date: Thu, 28 Jul 2011 11:00:53 -0400
Package: unknown
Severity: wishlist
Tags: patch

Reporting this after reading Martin Zobel-Helas's "How YOU can help Debian!" blog post [0].

For quite some time, I've been using an ExpressCard CompactFlash card reader. It did however require manual operations:
sudo modprobe pciehp pciehp_force=1
sudo mount /dev/sdc1 /mnt

and for a long time, I've been wondering how to make this as simple as reacting to events reported by KDE's device notifier, like what happens for USB thumb drives or CD.

First part was fixed by adding
---
pciehp pciehp_force=1
---
to /etc/modules

Second part was fixed by creating /etc/hal/fdi/information/CompactFlash.fdi with the following content:
---
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>                                                                                                                                                                          
    <match key="info.product" string="CF Card">
      <merge key="storage.removable" type="bool">true</merge>
    </match>
  </device>
</deviceinfo>
---

In case you have to debug a similar issue, some friends:
---
hal-device |less
sudo hald --daemon=no --verbose=yes 2>&1 | tee hal.log
---
and [1].

HTH,

Jean-Marc Ranger

[0] http://blog.zobel.ftbfs.de/2011/06/how-you-can-help-debian-1.html
[1] http://people.freedesktop.org/~dkukawka/hal-spec-git/hal-spec.html

-- System Information:
Debian Release: 6.0.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash




Bug reassigned from package 'unknown' to 'general'. Request was from Gergely Nagy <algernon@madhouse-project.org> to control@bugs.debian.org. (Thu, 28 Jul 2011 17:36:07 GMT) Full text and rfc822 format available.

Bug reassigned from package 'general' to 'hal'. Request was from Holger Levsen <holger@layer-acht.org> to control@bugs.debian.org. (Mon, 28 May 2012 09:17:18 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#635756; Package hal. (Sat, 12 Jan 2013 05:39:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Jean-Marc Ranger test123" <jmranger@hotmail.com>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Sat, 12 Jan 2013 05:39:03 GMT) Full text and rfc822 format available.

Message #14 received at 635756@bugs.debian.org (full text, mbox):

From: "Jean-Marc Ranger test123" <jmranger@hotmail.com>
To: 635756@bugs.debian.org
Subject: Wheezy update
Date: Sat, 12 Jan 2013 00:27:52 -0500
Some updates on this topic. The solution that I proposed was bad then, and is now worse:
- it assumed that all CF cards report the same "CF Card" string, which is not the case.
- it doesn't work on Wheezy - apparently, KDE no longer uses hal.

New proposed solution:
- create /etc/udev/rules.d/99-pciehp.rules with the following content:
DEVPATH=="/devices/pci0000:00/0000:00:1c.4/*/host*/target*/*/block/*", ENV{UDISKS_SYSTEM_INTERNAL}="0"
The line must be updated based on your specific computer. Helpful command:
  find /sys/devices/ -name sdb
assuming the card is assigned /dev/sdb.
Apply with
  udevadm control --reload-rules
The change to /etc/modules isn't required anymore.

Credits and useful material:
- http://lamarque-lvs.blogspot.ca/2011/07/e-sata-solid-and-udisks-part-2.html
- https://bugs.freedesktop.org/show_bug.cgi?id=22879
- http://www.kernel.org/doc/Documentation/filesystems/sysfs-pci.txt

The present bug may need to be reassigned to a different package, now that the problem and the solution
seems to be independent of HAL.

Thanks,

JMR



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 13:28:18 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.