From owner-freebsd-gnome@FreeBSD.ORG Sun Feb 17 20:43:20 2008 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D59116A418; Sun, 17 Feb 2008 20:43:20 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id 0323D13C448; Sun, 17 Feb 2008 20:43:19 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.2/8.14.2) with ESMTP id m1HKhGwO095520; Sun, 17 Feb 2008 15:43:16 -0500 (EST) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Andriy Gapon In-Reply-To: <47B81244.9090802@icyb.net.ua> References: <47B81244.9090802@icyb.net.ua> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-VL9mtbPjdaauYakoYbme" Organization: MarcusCom, Inc. Date: Sun, 17 Feb 2008 15:43:15 -0500 Message-Id: <1203280995.33462.4.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on creme-brulee.marcuscom.com Cc: freebsd-gnome@freebsd.org, Thomas Quinot Subject: Re: hal and "criss-crossed" atapicam X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Feb 2008 20:43:20 -0000 --=-VL9mtbPjdaauYakoYbme Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2008-02-17 at 12:53 +0200, Andriy Gapon wrote: > [Disclaimer: yes, I've read BUGS section of atapicam(4) (should probably > be named "CAVEATS"), but this is life.] >=20 > I have a system with two IDE CD/DVD drives. atapicam and atapicd are > enabled and for some reason cd(4) unit numbers are criss-crossed > compared to the acd(4) numbers: > acd0 -> cd1 > acd1 -> cd0 >=20 > acd0: CDRW at ata0-master UDMA33 > acd1: DVDR at ata1-master UDMA33 > cd0: Removable CD-ROM SCSI-0 device > cd1: Removable CD-ROM SCSI-0 device >=20 > These devices are both masters on different IDE channels. >=20 > Maybe this or maybe something else seems to confuse HAL a little bit. > Relevant snippets from lshal are pasted at the end. > As you can see, the net result is that HAL sees 3 non-ignored devices: > cd1 ("light-on"), cd0 ("dvdram"), acd1 ("dvdram" again). > For some reason, acd1 was not recognized as having a paired atapicam > device and situation is quite messy in general. > And in konqueror, for instance, I see 3 devices if I put disks into both > drives. >=20 > I would appreciate any advice on how to resolve this, either in atapicam > or in hald, either via configuration or via code. You need to provide the entire lshal output first. Joe >=20 > There is another interesting issue, but maybe it's a KDE problem rather > than HAL. > I have a DVD-RAM disk formatted for FAT32 (I did disklabel on cd0 and > then newfs_msdos on cd0a). Here's a small snippet at how hald sees that > disk: > udi =3D '/org/freedesktop/Hal/devices/volume_size_4580769792' > volume.mount.valid_options =3D {'ro', 'noexec', 'noatime', 'longnames', > 'shortnames', 'nowin95', '-u=3D', '-g=3D', '-m=3D', '-M=3D', '-L=3D', '-D= =3D'} > (string list) > org.freedesktop.Hal.Device.Volume.method_execpaths =3D > {'hal-storage-mount', 'hal-system-storage-unmount', > 'hal-system-storage-eject'} (string list) > org.freedesktop.Hal.Device.Volume.method_signatures =3D {'ssas', 'as', > 'as'} (string list) > org.freedesktop.Hal.Device.Volume.method_names =3D {'Mount', 'Unmount', > 'Eject'} (string list) > info.interfaces =3D {'org.freedesktop.Hal.Device.Volume'} (string list) > block.storage_device =3D > '/org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_4163B' (string) > info.product =3D 'Volume (vfat)' (string) > ... > volume.fsversion =3D 'FAT32' (string) > volume.fstype =3D 'vfat' (string) > volume.fsusage =3D 'filesystem' (string) > volume.ignore =3D false (bool) > volume.is_partition =3D false (bool) > volume.is_disc =3D true (bool) > volume.disc.capacity =3D 4580769792 (0x111090000) (uint64) > volume.disc.type =3D 'dvd_ram' (string) > volume.disc.is_rewritable =3D true (bool) > ... > I can manually mount the disk via mount -t msdosfs /dev/cd0a /mnt > If I double-click in konqueror on acd1 view of this disk there is a > failed attempt to mount it as cd9660. > If I double-click on cd0 view, then there is an attempt to mount > /dev/cd0 as msdosfs, this is closer but is still incorrect, the device > should be cd0a. >=20 > P.S. it's a different issue why I wasn't able to newfs_msdos the whole > disk and had to use disklabel on it. I think that shouldn't be required. >=20 > =3D=3D=3D=3D=3D=3D=3D lshal.out for atapicam issue =3D=3D=3D=3D=3D=3D=3D= =3D > udi =3D '/org/freedesktop/Hal/devices/storage_model_LTR_40125W' > info.addons =3D {'hald-addon-storage'} (string list) > block.storage_device =3D > '/org/freedesktop/Hal/devices/storage_model_LTR_40125W' (string) > info.udi =3D '/org/freedesktop/Hal/devices/storage_model_LTR_40125W' > (string) > block.is_volume =3D false (bool) > block.freebsd.cam_path =3D '0,0,0' (string) > storage.lun =3D 0 (0x0) (int) > storage.firmware_revision =3D 'WS03' (string) > info.product =3D 'LTR-40125W' (string) > info.vendor =3D 'LITE-ON' (string) > storage.cdrom.write_speed =3D 0 (0x0) (int) > storage.cdrom.read_speed =3D 8448 (0x2100) (int) > storage.cdrom.support_media_changed =3D false (bool) > storage.cdrom.hddvdrw =3D false (bool) > storage.cdrom.hddvdr =3D false (bool) > storage.cdrom.hddvd =3D false (bool) > storage.cdrom.bdre =3D false (bool) > storage.cdrom.bdr =3D false (bool) > storage.cdrom.bd =3D false (bool) > storage.cdrom.dvdplusrwdl =3D false (bool) > storage.cdrom.dvdplusrdl =3D false (bool) > storage.cdrom.dvdplusrw =3D false (bool) > storage.cdrom.dvdplusr =3D false (bool) > storage.cdrom.dvdram =3D false (bool) > storage.cdrom.dvdrw =3D false (bool) > storage.cdrom.dvdr =3D false (bool) > storage.cdrom.dvd =3D false (bool) > storage.cdrom.cdrw =3D true (bool) > storage.cdrom.cdr =3D true (bool) > storage.vendor =3D 'LITE-ON' (string) > storage.model =3D 'LTR-40125W' (string) > storage.physical_device =3D > '/org/freedesktop/Hal/devices/ide_host_0_scsi_host_scsi_device_lun0' > (string) > storage.no_partitions_hint =3D true (bool) > storage.automount_enabled_hint =3D true (bool) > storage.media_check_enabled =3D true (bool) > storage.hotpluggable =3D false (bool) > storage.requires_eject =3D true (bool) > storage.removable =3D true (bool) > storage.drive_type =3D 'cdrom' (string) > storage.bus =3D 'scsi' (string) > block.minor =3D 120 (0x78) (int) > block.major =3D 0 (0x0) (int) > block.device =3D '/dev/cd1' (string) > info.category =3D 'storage.cdrom' (string) > info.bus =3D 'block' (string) > info.capabilities =3D {'block', 'storage', 'storage.cdrom'} (string lis= t) > freebsd.unit =3D 1 (0x1) (int) > freebsd.driver =3D 'cd' (string) > info.parent =3D > '/org/freedesktop/Hal/devices/ide_host_0_scsi_host_scsi_device_lun0' > (string) >=20 > udi =3D '/org/freedesktop/Hal/devices/storage_model_LITE_ON_LTR_40125W' > info.ignore =3D true (bool) > block.freebsd.cam_path =3D '1,0,0' (string) > block.freebsd.atapi_cam_device =3D '/dev/cd0' (string) > block.storage_device =3D > '/org/freedesktop/Hal/devices/storage_model_LITE_ON_LTR_40125W' (string) > info.udi =3D '/org/freedesktop/Hal/devices/ignored-device' (string) > block.is_volume =3D false (bool) > storage.firmware_revision =3D 'WS03' (string) > storage.cdrom.write_speed =3D 0 (0x0) (int) > storage.cdrom.read_speed =3D 0 (0x0) (int) > storage.cdrom.support_media_changed =3D false (bool) > storage.cdrom.hddvdrw =3D false (bool) > storage.cdrom.hddvdr =3D false (bool) > storage.cdrom.hddvd =3D false (bool) > storage.cdrom.bdre =3D false (bool) > storage.cdrom.bdr =3D false (bool) > storage.cdrom.bd =3D false (bool) > storage.cdrom.dvdplusrwdl =3D false (bool) > storage.cdrom.dvdplusrdl =3D false (bool) > storage.cdrom.dvdplusrw =3D false (bool) > storage.cdrom.dvdplusr =3D false (bool) > storage.cdrom.dvdram =3D false (bool) > storage.cdrom.dvdrw =3D false (bool) > storage.cdrom.dvdr =3D false (bool) > storage.cdrom.dvd =3D false (bool) > storage.cdrom.cdrw =3D false (bool) > storage.cdrom.cdr =3D false (bool) > info.vendor =3D 'LITE' (string) > info.product =3D 'Ignored Device' (string) > storage.vendor =3D 'LITE' (string) > storage.model =3D 'LITE-ON LTR-40125W' (string) > storage.physical_device =3D '/org/freedesktop/Hal/devices/ide_0_0' (st= ring) > storage.no_partitions_hint =3D true (bool) > storage.automount_enabled_hint =3D true (bool) > storage.media_check_enabled =3D true (bool) > storage.hotpluggable =3D false (bool) > storage.requires_eject =3D true (bool) > storage.removable =3D true (bool) > storage.drive_type =3D 'cdrom' (string) > storage.bus =3D 'ide' (string) > block.minor =3D 80 (0x50) (int) > block.major =3D 0 (0x0) (int) > block.device =3D '/dev/acd0' (string) > info.bus =3D 'block' (string) > freebsd.unit =3D 0 (0x0) (int) > freebsd.driver =3D 'acd' (string) > info.parent =3D '/org/freedesktop/Hal/devices/ide_0_0' (string) >=20 >=20 > udi =3D '/org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_4163B' > info.addons =3D {'hald-addon-storage'} (string list) > storage.cdrom.write_speeds =3D {'4155'} (string list) > block.storage_device =3D > '/org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_4163B' (string) > info.udi =3D > '/org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_4163B' (string) > block.is_volume =3D false (bool) > block.freebsd.cam_path =3D '1,0,0' (string) > storage.lun =3D 0 (0x0) (int) > storage.firmware_revision =3D 'A105' (string) > info.product =3D 'DVDRAM GSA-4163B' (string) > info.vendor =3D 'HL-DT-ST' (string) > storage.cdrom.write_speed =3D 4155 (0x103b) (int) > storage.cdrom.read_speed =3D 4155 (0x103b) (int) > storage.cdrom.support_media_changed =3D false (bool) > storage.cdrom.hddvdrw =3D false (bool) > storage.cdrom.hddvdr =3D false (bool) > storage.cdrom.hddvd =3D false (bool) > storage.cdrom.bdre =3D false (bool) > storage.cdrom.bdr =3D false (bool) > storage.cdrom.bd =3D false (bool) > storage.cdrom.dvdplusrwdl =3D false (bool) > storage.cdrom.dvdplusrdl =3D true (bool) > storage.cdrom.dvdplusrw =3D true (bool) > storage.cdrom.dvdplusr =3D true (bool) > storage.cdrom.dvdram =3D true (bool) > storage.cdrom.dvdrw =3D false (bool) > storage.cdrom.dvdr =3D true (bool) > storage.cdrom.dvd =3D true (bool) > storage.cdrom.cdrw =3D true (bool) > storage.cdrom.cdr =3D true (bool) > storage.vendor =3D 'HL-DT-ST' (string) > storage.model =3D 'DVDRAM GSA-4163B' (string) > storage.physical_device =3D > '/org/freedesktop/Hal/devices/ide_host_1_scsi_host_scsi_device_lun0' > (string) > storage.no_partitions_hint =3D true (bool) > storage.automount_enabled_hint =3D true (bool) > storage.media_check_enabled =3D true (bool) > storage.hotpluggable =3D false (bool) > storage.requires_eject =3D true (bool) > storage.removable =3D true (bool) > storage.drive_type =3D 'cdrom' (string) > storage.bus =3D 'scsi' (string) > block.minor =3D 117 (0x75) (int) > block.major =3D 0 (0x0) (int) > block.device =3D '/dev/cd0' (string) > info.category =3D 'storage.cdrom' (string) > info.bus =3D 'block' (string) > info.capabilities =3D {'block', 'storage', 'storage.cdrom'} (string lis= t) > freebsd.unit =3D 0 (0x0) (int) > freebsd.driver =3D 'cd' (string) > info.parent =3D > '/org/freedesktop/Hal/devices/ide_host_1_scsi_host_scsi_device_lun0' > (string) >=20 > udi =3D '/org/freedesktop/Hal/devices/storage_serial_K5E4BMF5437' > info.addons =3D {'hald-addon-storage'} (string list) > storage.cdrom.write_speeds =3D {'4155'} (string list) > block.storage_device =3D > '/org/freedesktop/Hal/devices/storage_serial_K5E4BMF5437' (string) > info.udi =3D '/org/freedesktop/Hal/devices/storage_serial_K5E4BMF5437' > (string) > block.is_volume =3D false (bool) > storage.firmware_revision =3D 'A105' (string) > storage.serial =3D 'K5E4BMF5437' (string) > storage.cdrom.write_speed =3D 4155 (0x103b) (int) > storage.cdrom.read_speed =3D 4155 (0x103b) (int) > storage.cdrom.support_media_changed =3D false (bool) > storage.cdrom.hddvdrw =3D false (bool) > storage.cdrom.hddvdr =3D false (bool) > storage.cdrom.hddvd =3D false (bool) > storage.cdrom.bdre =3D false (bool) > storage.cdrom.bdr =3D false (bool) > storage.cdrom.bd =3D false (bool) > storage.cdrom.dvdplusrwdl =3D false (bool) > storage.cdrom.dvdplusrdl =3D true (bool) > storage.cdrom.dvdplusrw =3D true (bool) > storage.cdrom.dvdplusr =3D true (bool) > storage.cdrom.dvdram =3D true (bool) > storage.cdrom.dvdrw =3D false (bool) > storage.cdrom.dvdr =3D true (bool) > storage.cdrom.dvd =3D true (bool) > storage.cdrom.cdrw =3D true (bool) > storage.cdrom.cdr =3D true (bool) > info.vendor =3D 'HL' (string) > info.product =3D 'HL-DT-ST DVDRAM GSA-4163B' (string) > storage.vendor =3D 'HL' (string) > storage.model =3D 'HL-DT-ST DVDRAM GSA-4163B' (string) > storage.physical_device =3D '/org/freedesktop/Hal/devices/ide_1_0' (st= ring) > storage.no_partitions_hint =3D true (bool) > storage.automount_enabled_hint =3D true (bool) > storage.media_check_enabled =3D true (bool) > storage.hotpluggable =3D false (bool) > storage.requires_eject =3D true (bool) > storage.removable =3D true (bool) > storage.drive_type =3D 'cdrom' (string) > storage.bus =3D 'ide' (string) > block.minor =3D 81 (0x51) (int) > block.major =3D 0 (0x0) (int) > block.device =3D '/dev/acd1' (string) > info.category =3D 'storage.cdrom' (string) > info.bus =3D 'block' (string) > info.capabilities =3D {'block', 'storage', 'storage.cdrom'} (string lis= t) > freebsd.unit =3D 1 (0x1) (int) > freebsd.driver =3D 'acd' (string) > info.parent =3D '/org/freedesktop/Hal/devices/ide_1_0' (string) >=20 >=20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-VL9mtbPjdaauYakoYbme Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEABECAAYFAke4nGEACgkQb2iPiv4Uz4dkwwCdHxLIiE+bAQ5Ythic2qA3DDKa gmQAnRbKxhijS+e1+0/5CfcHsyxIgqb4 =3ogd -----END PGP SIGNATURE----- --=-VL9mtbPjdaauYakoYbme--