faq
flatforty
contribute
subscribe
configure
search
rdf
main
parent
thread
|
Re: Just give me a break.
by Simon Edwards on Wednesday 06/Oct/2004, @23:58
|
| about that hal stuff. from what i understand the linux kernel have
| a hal in only the strictest sense if at all. the "hal" i belive is
| that you will find a cdrom under /dev/cdrom if you have the system
| set up nicely, or under /dev/hd** if you dont...
...or under /dev/pcd* if it is a parallel port cdrom, or under /dev/cm206cd if
it is a Philips LMS CM-206 cdrom, but for the Philips LMS CM-205 you need to
look out for /dev/cm205cd... and so on and so on. The (Linux) kernel exposes
devices as a loose bag of drivers, device nodes and buses. For the
application developer is it a nightmare to make sense of, and it keeps on
changing as new hardware support is added. HAL solves this problem by
organising and reporting all of the hardware that you have in a form designed
with applications in mind. This is how HAL reports my cdrom:
udi = '/org/freedesktop/Hal/devices/block_22_0'
info.udi = '/org/freedesktop/Hal/devices/block_22_0' (string)
storage.hotpluggable = false (bool)
storage.cdrom.write_speed = 2816 (0xb00) (int)
storage.cdrom.read_speed = 7040 (0x1b80) (int)
storage.cdrom.support_media_changed = true (bool)
storage.cdrom.dvdplusrw = false (bool)
storage.cdrom.dvdplusr = false (bool)
storage.cdrom.dvdram = false (bool)
storage.cdrom.dvdr = false (bool)
storage.cdrom.dvd = false (bool)
storage.cdrom.cdrw = true (bool)
storage.cdrom.cdr = true (bool)
storage.removable = true (bool)
storage.firmware_version = 'OS0B' (string)
storage.drive_type = 'cdrom' (string)
info.product = 'LITE-ON LTR-16102B' (string)
block.storage_device = '/org/freedesktop/Hal/devices/block_22_0' (string)
storage.physical_device = '/org/freedesktop/Hal/devices/ide_1_0' (string)
storage.vendor = '' (string)
storage.model = 'LITE-ON LTR-16102B' (string)
storage.automount_enabled_hint = true (bool)
storage.no_partitions_hint = true (bool)
storage.media_check_enabled = true (bool)
storage.bus = 'ide' (string)
block.minor = 0 (0x0) (int)
block.major = 22 (0x16) (int)
info.capabilities = 'block storage.cdrom storage' (string)
info.category = 'storage' (string)
info.parent = '/org/freedesktop/Hal/devices/ide_1_0' (string)
block.device = '/dev/hdc' (string)
block.is_volume = false (bool)
block.have_scanned = false (bool)
block.no_partitions = true (bool)
linux.sysfs_path_device = '/sys/block/hdc' (string)
linux.sysfs_path = '/sys/block/hdc' (string)
info.bus = 'block' (string)
All of the vitial information is broken down and organised reguardless of where exactly it came from.
--
Simon |
|
|