sda, il 12/09/2009 16:11, scrisse:
> hope it helps or at least point you to the right direction. otherwise
> you need to review some hal's ".fdi" about removable devices
thanks, but I don't currently have policykit installed.
I am not even sure I should go through .fdi files to solve this, as it
looks to me that hal is missing a lot of information about my usb stick.
as gustavo said, hal-device (or lshal) shows a list of properties for
every device in the system, and these properties are taken into account
by apps in user space that will have to poke with them.
for what I've understood until now, a usb stick should have properties
in volume.* or storage.* namespace, but in my case this is not true :(
now the question is, what tells hal how to set these properties? it is
udev responsibility? but udev already recognizes the stick, assign it to
a device node, and I can mount it by hand.
I'll try the same stick on my brother's computer running gnome in
ubuntu, just to see the differences in lshal output.
just for completeness, what follows is what is added to lshal output
when I plug in the usb stick; as you can see there is nothing that could
tell e it's time to show a new device.
udi = '/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000'
info.linux.driver = 'usb' (string)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1f_2' (string)
info.product = 'FlashDrive with MP3 Player' (string)
info.subsystem = 'usb_device' (string)
info.udi =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000' (string)
info.vendor = 'AVID Electronics Corp.' (string)
linux.device_file = '/dev/bus/usb/001/009' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1'
(string)
usb_device.bus_number = 1 (0x1) (int)
usb_device.can_wake_up = false (bool)
usb_device.configuration_value = 1 (0x1) (int)
usb_device.device_class = 0 (0x0) (int)
usb_device.device_protocol = 0 (0x0) (int)
usb_device.device_revision_bcd = 4112 (0x1010) (int)
usb_device.device_subclass = 0 (0x0) (int)
usb_device.is_self_powered = false (bool)
usb_device.linux.device_number = 9 (0x9) (int)
usb_device.linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1' (string)
usb_device.max_power = 100 (0x64) (int)
usb_device.num_configurations = 1 (0x1) (int)
usb_device.num_interfaces = 1 (0x1) (int)
usb_device.num_ports = 0 (0x0) (int)
usb_device.product = 'FlashDrive with MP3 Player' (string)
usb_device.product_id = 41113 (0xa099) (int)
usb_device.serial = '000100000000' (string)
usb_device.speed = 12.0 (12) (double)
usb_device.vendor = 'AVID Electronics Corp.' (string)
usb_device.vendor_id = 4924 (0x133c) (int)
usb_device.version = 2.0 (2) (double)
udi = '/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0'
info.linux.driver = 'usb-storage' (string)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000' (string)
info.product = 'USB Mass Storage Interface' (string)
info.subsystem = 'usb' (string)
info.udi =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0'
(string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0' (string)
usb.bus_number = 1 (0x1) (int)
usb.can_wake_up = false (bool)
usb.configuration_value = 1 (0x1) (int)
usb.device_class = 0 (0x0) (int)
usb.device_protocol = 0 (0x0) (int)
usb.device_revision_bcd = 4112 (0x1010) (int)
usb.device_subclass = 0 (0x0) (int)
usb.interface.class = 8 (0x8) (int)
usb.interface.description = 'Mass Storage Class' (string)
usb.interface.number = 0 (0x0) (int)
usb.interface.protocol = 80 (0x50) (int)
usb.interface.subclass = 6 (0x6) (int)
usb.is_self_powered = false (bool)
usb.linux.device_number = 9 (0x9) (int)
usb.linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0' (string)
usb.max_power = 100 (0x64) (int)
usb.num_configurations = 1 (0x1) (int)
usb.num_interfaces = 1 (0x1) (int)
usb.num_ports = 0 (0x0) (int)
usb.product = 'USB Mass Storage Interface' (string)
usb.product_id = 41113 (0xa099) (int)
usb.serial = '000100000000' (string)
usb.speed = 12.0 (12) (double)
usb.vendor = 'AVID Electronics Corp.' (string)
usb.vendor_id = 4924 (0x133c) (int)
usb.version = 2.0 (2) (double)
udi =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0_scsi_host_0'
info.capabilities = {'scsi_host'} (string list)
info.category = 'scsi_host' (string)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0'
(string)
info.product = 'SCSI Host Adapter' (string)
info.subsystem = 'scsi_host' (string)
info.udi =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0_scsi_host_0'
(string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'scsi_host' (string)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0/host7' (string)
scsi_host.host = 7 (0x7) (int)
udi =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0_scsi_host_0_scsi_device_lun0'
info.linux.driver = 'sd' (string)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0_scsi_host_0'
(string)
info.product = 'SCSI Device' (string)
info.subsystem = 'scsi' (string)
info.udi =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0_scsi_host_0_scsi_device_lun0'
(string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'scsi' (string)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0/host7/target7:0:0/7:0:0:0'
(string)
scsi.bus = 0 (0x0) (int)
scsi.host = 7 (0x7) (int)
scsi.lun = 0 (0x0) (int)
scsi.model = 'NAND Flash' (string)
scsi.target = 0 (0x0) (int)
scsi.type = 'disk' (string)
scsi.vendor = 'AVID' (string)
udi =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0_scsi_host_0_scsi_device_lun0_scsi_generic'
info.capabilities = {'scsi_generic'} (string list)
info.category = 'scsi_generic' (string)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0_scsi_host_0_scsi_device_lun0'
(string)
info.product = 'SCSI Generic Interface' (string)
info.subsystem = 'scsi_generic' (string)
info.udi =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0_scsi_host_0_scsi_device_lun0_scsi_generic'
(string)
linux.device_file = '/dev/sg0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'scsi_generic' (string)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0/host7/target7:0:0/7:0:0:0/scsi_generic/sg0'
(string)
scsi_generic.device = '/dev/sg0' (string)
udi =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0_scsi_host'
info.capabilities = {'scsi_host'} (string list)
info.category = 'scsi_host' (string)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0'
(string)
info.product = 'SCSI Host Adapter' (string)
info.subsystem = 'scsi_host' (string)
info.udi =
'/org/freedesktop/Hal/devices/usb_device_133c_a099_000100000000_if0_scsi_host'
(string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'scsi_host' (string)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0/host7/scsi_host/host7'
(string)
scsi_host.host = 7 (0x7) (int)
--
Massimo Maiurana massimo<at>ragusa.linux.it
http://massimo.solira.org GPG keyID #7044D601
Articolo 33 - [...]Enti e privati hanno il diritto di istituire
scuole ed istituti di educazione, senza oneri per lo Stato.[...]
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users