please help..hal dont' mount dvd with new dbus
arandamandi
meskalamdug at tiscalinet.it
Sat Nov 4 07:33:22 PST 2006
arandamandi wrote:
>
> Hi,i try to use hal
> with new dbus(0.95)
> usb sticks mount
> but when i insert a dvd
> nothing happens..
> lshal --monitor display nothing
> i try also this patch
>
> --- hal-0.5.8.1/hald/linux/probing/probe-volume.c 2006-09-19
> 22:23:25.000000000 +0200
> +++ hal-0.5.8.1/hald/linux/probing/probe-volume.c 2006-11-04
> 03:10:17.000000000 +0100
> @@ -535,24 +535,24 @@
> */
>
> /* check if last track is a data track */
> - if (ioctl (fd, CDROMREADTOCHDR, &toc_hdr) == 0) {
> - struct cdrom_tocentry toc_entr;
> - unsigned int vol_session_count = 0;
> -
> - vol_session_count = toc_hdr.cdth_trk1;
> - HAL_DEBUG(("volume_session_count = %u", vol_session_count));
> +// if (ioctl (fd, CDROMREADTOCHDR, &toc_hdr) == 0) {
> +// struct cdrom_tocentry toc_entr;
> +// unsigned int vol_session_count = 0;
> +//
> +// vol_session_count = toc_hdr.cdth_trk1;
> +// HAL_DEBUG(("volume_session_count = %u", vol_session_count));
>
> - /* read session header */
> - memset (&toc_entr, 0x00, sizeof (toc_entr));
> - toc_entr.cdte_track = vol_session_count;
> - toc_entr.cdte_format = CDROM_LBA;
> - if (ioctl (fd, CDROMREADTOCENTRY, &toc_entr) == 0) {
> - if (toc_entr.cdte_ctrl & CDROM_DATA_TRACK) {
> - HAL_DEBUG (("last session starts at block = %u",
> toc_entr.cdte_addr.lba));
> - vol_probe_offset = toc_entr.cdte_addr.lba * block_size;
> - }
> - }
> - }
> +// /* read session header */
> +// memset (&toc_entr, 0x00, sizeof (toc_entr));
> +// toc_entr.cdte_track = vol_session_count;
> +// toc_entr.cdte_format = CDROM_LBA;
> +// if (ioctl (fd, CDROMREADTOCENTRY, &toc_entr) == 0) {
> +// if (toc_entr.cdte_ctrl & CDROM_DATA_TRACK) {
> +// HAL_DEBUG (("last session starts at block = %u",
> toc_entr.cdte_addr.lba));
> +// vol_probe_offset = toc_entr.cdte_addr.lba * block_size;
> +// }
> +// }
> +// }
>
> /* try again, to get last session that way */
> if (vol_probe_offset == 0) {
> But nothing
> :(
>
Forgot my post
probably i have pc problems(hw)
and sometimes hdc is not polled by hal
:(
--
View this message in context: http://www.nabble.com/please-help..hal-dont%27-mount-dvd-with-new-dbus-tf2572418.html#a7175732
Sent from the Free Desktop - hal mailing list archive at Nabble.com.
More information about the hal
mailing list