Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 144334

Summary: sys-apps/hal-0.5.7.1 isn't properly detecting my sata cdrom properties
Product: Gentoo Linux Reporter: Travis Hansen <travisghansen>
Component: Current packagesAssignee: Project Gentopia <gentopia>
Status: VERIFIED NEEDINFO    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Travis Hansen 2006-08-18 10:10:20 UTC
Portage 2.1.1_pre5-r2 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 Genuine Intel(R) CPU           T2400  @ 1.83GHz
Gentoo Base System version 1.12.4
Last Sync: Fri, 18 Aug 2006 15:00:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -ffast-math -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -pipe -ffast-math -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LC_ALL="en_US.UTF-8"
LINGUAS=""
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/gentopia /usr/local/overlays/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa amr apache2 asf avahi avi bash-completion beagle berkdb bitmap-fonts bluetooth bonobo bzip2 cairo cdb cddb cdr cli composite compositor crypt cups daap dbus directfb dlloader dmi dri dv dvd dvdr eds elibc_glibc emboss encode esd evo exif expat fam fbcon ffmpeg firefox flac font-server foomaticdb fortran freetype ftp gaim galago gd gdbm gif glitz gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl i8x0 idn ieee1394 imagemagick imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics ipod ipv6 isdnlog jack java jpeg kernel_linux lcd lcms ldap libcaca libg++ libgda libnotify libsexy libwww mad mikmod mmx mng mono mp3 mp4 mpeg mysql mythtv ncurses network nfs nls nptl nptlonly nsplugin offensive ogg oggvorbis openal opengl oss pam pcmcia pcre pdf pdflib perl php png pnp postgres ppds pppd python quicktime readline real reflection samba sdl session slp smp sndfile spell spl sqlite sse sse2 ssl svg svga tcl tcltk tcpd theora tiff tk transcode truetype truetype-fonts trusted type1-fonts udev unicode usb userland_GNU utf8 v4l v4l2 video_cards_fbdev video_cards_i810 video_cards_vesa vorbis widescreen wifi win32codecs wmf x264 xcomposite xine xinerama xml xml2 xorg xv xvid xvidinfo xvmc zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


lshal with 5.7 reports 97 devices on my laptop including the sr0 device.  With 5.7.1 this is gone and only 96 devices are reported.
Comment 1 Steev Klimaszewski (RETIRED) gentoo-dev 2006-08-18 11:07:13 UTC
#
udi = '/org/freedesktop/Hal/devices/storage_model_DVD__RW_DW_Q58A'
#
  info.addons = {'hald-addon-storage'} (string list)
#
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model_DVD__RW_DW_Q58A'  (string)
#
  info.udi = '/org/freedesktop/Hal/devices/storage_model_DVD__RW_DW_Q58A'  (string)
#
  storage.cdrom.write_speeds = {'4234'} (string list)
#
  storage.cdrom.write_speed = 4234  (0x108a)  (int)
#
  storage.cdrom.read_speed = 4234  (0x108a)  (int)
#
  storage.cdrom.support_media_changed = true  (bool)
#
  storage.cdrom.hddvdrw = false  (bool)
#
  storage.cdrom.hddvdr = false  (bool)
#
  storage.cdrom.hddvd = false  (bool)
#
  storage.cdrom.bdre = false  (bool)
#
  storage.cdrom.bdr = false  (bool)
#
  storage.cdrom.bd = false  (bool)
#
  storage.cdrom.dvdplusrdl = true  (bool)
#
  storage.cdrom.dvdplusrw = true  (bool)
#
  storage.cdrom.dvdplusr = true  (bool)
#
  storage.cdrom.dvdram = false  (bool)
#
  storage.cdrom.dvdrw = false  (bool)
#
  storage.cdrom.dvdr = true  (bool)
#
  storage.cdrom.dvd = true  (bool)
#
  storage.cdrom.cdrw = true  (bool)
#
  storage.cdrom.cdr = true  (bool)
#
  storage.requires_eject = true  (bool)
#
  storage.hotpluggable = false  (bool)
#
  info.capabilities = {'storage', 'block', 'storage.cdrom'} (string list)
#
  info.category = 'storage'  (string)
#
  info.product = 'DVD+-RW DW-Q58A'  (string)
#
  info.vendor = 'SONY'  (string)
#
  storage.removable = true  (bool)
#
  storage.physical_device = '/org/freedesktop/Hal/devices/pci_8086_27c4_scsi_host_scsi_device_lun0'  (string)
#
  storage.lun = 0  (0x0)  (int)
#
  storage.firmware_version = 'UDS2'  (string)
#
  storage.vendor = 'SONY'  (string)
#
  storage.model = 'DVD+-RW DW-Q58A'  (string)
#
  storage.drive_type = 'cdrom'  (string)
#
  storage.automount_enabled_hint = true  (bool)
#
  storage.media_check_enabled = true  (bool)
#
  storage.no_partitions_hint = true  (bool)
#
  storage.bus = 'scsi'  (string)
#
  block.is_volume = false  (bool)
#
  block.minor = 0  (0x0)  (int)
#
  block.major = 11  (0xb)  (int)
#
  block.device = '/dev/sr0'  (string)
#
  linux.hotplug_type = 3  (0x3)  (int)
#
  info.parent = '/org/freedesktop/Hal/devices/pci_8086_27c4_scsi_host_scsi_device_lun0'  (string)
#
  linux.sysfs_path_device = '/sys/block/sr0'  (string)
#
  linux.sysfs_path = '/sys/block/sr0'  (string)
#

Pastebin of hal 0.5.7 dvd-rw drive

#
udi = '/org/freedesktop/Hal/devices/pci_8086_27c4_scsi_host_scsi_device_lun0'
#
  info.udi = '/org/freedesktop/Hal/devices/pci_8086_27c4_scsi_host_scsi_device_lun0'  (string)
#
  linux.subsystem = 'scsi'  (string)
#
  linux.hotplug_type = 1  (0x1)  (int)
#
  scsi.type = 'cdrom'  (string)
#
  scsi.vendor = 'SONY'  (string)
#
  scsi.model = 'DVD+-RW DW-Q58A'  (string)
#
  info.product = 'SCSI Device'  (string)
#
  info.linux.driver = 'sr'  (string)
#
  scsi.lun = 0  (0x0)  (int)
#
  scsi.target = 0  (0x0)  (int)
#
  scsi.bus = 0  (0x0)  (int)
#
  scsi.host = 1  (0x1)  (int)
#
  info.parent = '/org/freedesktop/Hal/devices/pci_8086_27c4_scsi_host'  (string)
#
  info.bus = 'scsi'  (string)
#
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0'  (string)
#
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0'  (string)

Pastebin from 0.5.7.1
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2006-09-26 14:02:06 UTC
It's a CD-ROM only correct? No write capabilities?
Comment 3 Travis Hansen 2006-09-27 23:11:41 UTC
(In reply to comment #2)
> It's a CD-ROM only correct? No write capabilities?
> 

DVD-RW

See the first couple lines from comment #1 (which is from the working 5.7)
Comment 4 Steev Klimaszewski (RETIRED) gentoo-dev 2007-02-08 17:35:37 UTC
Is this resolved with -r3 and latest udev 104-r9 ?
Comment 5 Travis Hansen 2007-02-08 17:41:25 UTC
It's working ok with hal-0.5.7.1-r4 and udev-104-r9.