pktcdvd devices not recognized by hal
Thomas Bächler
thomas at archlinux.org
Sun Oct 7 12:58:33 PDT 2007
I use pktcdvd on Linux to write on dvd-ram media. I successfully
convinced hal to enable pktcdvd when I insert a DVD-RAM, then a new
device is created (/dev/pktcdvd/dvdram-sr0).
Hal receives an event from udev, but discards it because it cannot find
a parent for the device:
05:05:36.637 [I] osspec.c:232: SEQNUM=1526, ACTION=add,
SUBSYSTEM=pktcdvd, DEVPATH=/sys/class/pktcdvd/pktcdvd0,
DEVNAME=/dev/pktcdvd/pktcdvd0, IFINDEX=0
05:05:36.637 [I] hotplug.c:134: /sys/class/pktcdvd/pktcdvd0 is a device
(subsystem)
05:05:36.638 [I] device.c:3319: add_dev: subsys=pktcdvd
sysfs_path=/sys/class/pktcdvd/pktcdvd0 dev=/dev/pktcdvd/pktcdvd0
parent_dev=0x00000000
05:05:36.637 [I] osspec.c:232: SEQNUM=1526, ACTION=add,
SUBSYSTEM=pktcdvd, DEVPATH=/sys/class/pktcdvd/pktcdvd0,
DEVNAME=/dev/pktcdvd/pktcdvd0, IFINDEX=0
05:05:36.637 [I] hotplug.c:134: /sys/class/pktcdvd/pktcdvd0 is a device
(subsystem)
05:05:36.638 [I] device.c:3319: add_dev: subsys=pktcdvd
sysfs_path=/sys/class/pktcdvd/pktcdvd0 dev=/dev/pktcdvd/pktcdvd0
parent_dev=0x00000000
05:05:36.653 [I] access-check.c:67: uid for caller is 0
05:05:36.653 [D] hald_dbus.c:1550:
udi=/org/freedesktop/Hal/devices/volume_uuid_10142e34_29eb_4d8f_8223_4e3a659b00dd,
key=volume.ignore
05:05:36.655 [I] ci-tracker.c:119: Removing CICallerInfo object for :1.93
05:05:36.655 [I] device.c:1811: Removing locks from ':1.93'
[12461]: 05:05:37.567 [I] addon-storage.c:346: Checking whether device
/dev/sr0 is locked on HAL
[12461]: 05:05:37.567 [I] addon-storage.c:354: ... device /dev/sr0 is
not locked on HAL
05:05:38.863 [I] osspec.c:232: SEQNUM=1525, ACTION=add, SUBSYSTEM=block,
DEVPATH=/sys/block/pktcdvd0, DEVNAME=/dev/pktcdvd/pktcdvd0, IFINDEX=0
05:05:38.863 [I] blockdev.c:645: block_add:
sysfs_path=/sys/block/pktcdvd0 dev=/dev/pktcdvd/pktcdvd0 is_part=0,
parent=0x00000000
05:05:38.863 [I] blockdev.c:679: Looking in /sys/block/pktcdvd0/slaves
05:05:38.863 [I] blockdev.c:690: /sys/block/pktcdvd0/slaves/. ->
/sys/block/pktcdvd0/slaves
05:05:38.863 [I] blockdev.c:690: /sys/block/pktcdvd0/slaves/.. ->
/sys/block/pktcdvd0
05:05:38.864 [I] blockdev.c:726: Done looking in /sys/block/pktcdvd0/slaves
05:05:38.864 [I] blockdev.c:732: Ignoring hotplug event - no parent
05:05:38.864 [W] blockdev.c:1151: Not adding device object
[x86_64][05:06:31][thomas at artin ~]$ ls -lFR /sys/block/pktcdvd0/
/sys/block/pktcdvd0/:
insgesamt 0
-r--r--r-- 1 root root 4096 7. Okt 05:06 capability
-r--r--r-- 1 root root 4096 7. Okt 05:05 dev
drwxr-xr-x 2 root root 0 7. Okt 05:06 holders/
-r--r--r-- 1 root root 4096 7. Okt 05:05 range
-r--r--r-- 1 root root 4096 7. Okt 05:06 removable
-r--r--r-- 1 root root 4096 7. Okt 05:06 size
drwxr-xr-x 2 root root 0 7. Okt 05:05 slaves/
-r--r--r-- 1 root root 4096 7. Okt 05:05 stat
lrwxrwxrwx 1 root root 0 7. Okt 05:06 subsystem -> ../../block/
--w------- 1 root root 4096 7. Okt 05:06 uevent
/sys/block/pktcdvd0/holders:
insgesamt 0
/sys/block/pktcdvd0/slaves:
insgesamt 0
[x86_64][05:06:40][thomas at artin ~]$
I need a way to make hal recognize the device, what would be the right
way to do it?
More information about the hal
mailing list