[KDE Dot News]
 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                                                                                                                
  Related Links
 ·   Articles on Interviews
 ·   Also by Simon Edwards
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

  "If you have an itch not being scratched, you can scratch it, or pay someone to scratch it for you." -- Eric Laffoon
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]