You are not logged in.

#1 2009-06-04 19:54:27

friedrich
Member
Registered: 2009-05-07
Posts: 26

Problem mounting cd/dvd with hal

Hi,

I am following the wiki http://wiki.archlinux.org/index.php/HAL … zed_by_HAL, as its describes _exactly_ the problem that I have: Inserted CD/DVD don't get recognized by HAL.  The wiki suggests that there should be a file:

File: /etc/hal/fdi/information/media-check-disable-storage_model_$YOUR_DEVICE.fdi

with a content similar to:

<deviceinfo version="0.2">
   <device>
     <match key="info.udi" string="/org/freedesktop/Hal/devices/storage_model_DV$
       <merge key="storage.media_check_enabled" type="bool">false</merge>
     </match>
   </device>
</deviceinfo>

However, my directory /etc/hal/fdi/information/ is completely empty.  Now, I thought of simply to create this file and put the above in it.  (Is that correct?)  When I invoke the following, I get:

$ ls /dev/cd
cdrom-3:0:0:0  cdrw-3:0:0:0  dvd-3:0:0:0  dvdrw-3:0:0:0

Is $YOUR_DEVICE=cdrom-3:0:0:0, or $YOUR_DEVICE=cdrom?  Shall I create one such files, for each? (I don't have a dvdrw?  Why is this device listed?)  Or do these things have nothing to do with each other, and the device name is something completely different?

How do I find out which version I shall put in <deviceinfo version="...">.  The above suggests that it's 3:0:0:0, but again: Am I on the right track here?  Or do I look in the wrong spot?  Is the right format, 3:0:0:0, or 3.0.0.0 as the file suggests, or does it matter at all?  Is the rest of the above file content some default that would work for any device, or would I need to adjust this to some specifics of my dvd/cd-rw player?  If no cool, if yes how?

I am sometimes not sure, where to look for which information yet.  But I am willing to learn ;) Thanks so much for your help!

Cheers,
Thomas

Offline

#2 2009-06-05 16:50:17

Peanut
Member
From: Norway
Registered: 2009-05-24
Posts: 99

Re: Problem mounting cd/dvd with hal

I don't really think it matters, at least if you only have one CD-drive - in that case, all those files should be symbolic links pointing towards the same device. In my case:

$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 21 2009-06-05 15:30 /dev/cdrom -> /dev/cd/cdrom-2:0:0:0
$ ls -l /dev/cd/*
lrwxrwxrwx 1 root root 6 2009-06-05 15:30 /dev/cd/cdrom-2:0:0:0 -> ../sr0
lrwxrwxrwx 1 root root 6 2009-06-05 15:30 /dev/cd/cdrw-2:0:0:0 -> ../sr0
lrwxrwxrwx 1 root root 6 2009-06-05 15:30 /dev/cd/dvd-2:0:0:0 -> ../sr0
lrwxrwxrwx 1 root root 6 2009-06-05 15:30 /dev/cd/dvdrw-2:0:0:0 -> ../sr0

[EDIT]
After rereading your post, I believe that I might have misinterpreted your question... But I don't know the entire answer to your question, sorry.

Last edited by Peanut (2009-06-05 17:02:05)

Offline

#3 2009-06-05 20:19:33

friedrich
Member
Registered: 2009-05-07
Posts: 26

Re: Problem mounting cd/dvd with hal

I gave it a shot then.  I created a file

/etc/hal/fdi/information/media-check-disable-storage_model_cdrom.fdi

with the content:

<deviceinfo version="3.0.0.0">
  <device>
    <match key="info.udi" string="/org/freedesktop/Hal/devices/storage_model_DV$
      <merge key="storage.media_check_enabled" type="bool">true</merge>
    </match>
  </device>
</deviceinfo>

Well, it didn't work.  Also changing the version string around doesn't have any effect.

If any one has an idea, I'd be thankful.

Cheers,
Thomas

Offline

#4 2009-06-05 20:47:04

friedrich
Member
Registered: 2009-05-07
Posts: 26

Re: Problem mounting cd/dvd with hal

I thought that I might be wrong with the device name.  As,

~ $ ll /dev/cd/
total 0
lrwxrwxrwx 1 root root 6 2009-06-05 16:32 cdrom-3:0:0:0 -> ../sr0
lrwxrwxrwx 1 root root 6 2009-06-05 16:32 cdrw-3:0:0:0 -> ../sr0
lrwxrwxrwx 1 root root 6 2009-06-05 16:32 dvd-3:0:0:0 -> ../sr0
lrwxrwxrwx 1 root root 6 2009-06-05 16:32 dvdrw-3:0:0:0 -> ../sr0
~ $

seems to lead all to the device /sr0, I changed the name of the above file to

/etc/hal/fdi/information/media-check-disable-storage_model_sr0.fdi

and restarted dbus and hal.  Well, didn't work.

============

I found another post http://bbs.archlinux.org/viewtopic.php?id=55372 in the forum, which is somehow related to my problem, though restarting dbus and hal doesn't work for me.  They suggest to start the window-manager with dbus-launch instead of exec (What has the Window-Manager to do with this??).  So, I changed my .xinitrc to

ck-launch-session xfce4-session &
xfce4-panel -c &
dbus-launch xmonad

Well, didn't work.

Anyone has any idea?  A direction to point me towards?

Cheers,
Thomas

Offline

#5 2009-06-05 21:00:00

friedrich
Member
Registered: 2009-05-07
Posts: 26

Re: Problem mounting cd/dvd with hal

Maybe the following information will help to solve the problem(?).

~ $ dmesg | tail
Buffer I/O error on device sr0, logical block 0
Buffer I/O error on device sr0, logical block 1
Buffer I/O error on device sr0, logical block 2
Buffer I/O error on device sr0, logical block 3
sr 3:0:0:0: [sr0] Result: hostbyte=0x00 driverbyte=0x08
sr 3:0:0:0: [sr0] Sense Key : 0x5 [current] 
Info fld=0x0
sr 3:0:0:0: [sr0] ASC=0x64 ASCQ=0x0
end_request: I/O error, dev sr0, sector 0
Buffer I/O error on device sr0, logical block 0
~ $
~ $ pacman -Q {hal,dbus,hal-info}
hal 0.5.12git20090421.4fc367-2
dbus 1.2.14-1
hal-info 0.20090414-1
~ $

Cheers,
Thomas

Offline

#6 2009-06-10 21:30:41

friedrich
Member
Registered: 2009-05-07
Posts: 26

Re: Problem mounting cd/dvd with hal

No one has any ideas? sad

Offline

#7 2009-12-27 17:35:32

monotiz
Member
Registered: 2007-10-20
Posts: 140

Re: Problem mounting cd/dvd with hal

I have same problem...

Offline

Board footer

Powered by FluxBB