Docking station for Dell latitude D420 notebook

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Docking station for Dell latitude D420 notebook

Postby Davido02 » Wed Apr 03, 2013 9:28 pm

Hi, Ive got myself a docking station for the notebook running Puppy. The docking station has a RW DVD. Im wondering how I can get the notebook to recognise the drive when the pc is on the dock??
Davido02
 
Posts: 31
Joined: Sun Jun 26, 2005 7:54 pm

Postby ferrari » Thu Apr 04, 2013 11:57 pm

Does it show up in the device list?
Code: Select all
ls -l /dev/sr*
ferrari
LXF regular
 
Posts: 142
Joined: Tue May 03, 2005 11:09 am

Postby Davido02 » Fri Apr 05, 2013 9:16 pm

Hi,

The output is as follows

# ls -l /dev/sr*
brw-rw---- 1 root cdrom 11, 0 Apr 3 22:29 /dev/sr0
brw-rw---- 1 root cdrom 11, 1 Feb 14 2001 /dev/sr1
brw-rw---- 1 root cdrom 11, 2 Feb 14 2001 /dev/sr2
brw-rw---- 1 root cdrom 11, 3 Feb 14 2001 /dev/sr3
Davido02
 
Posts: 31
Joined: Sun Jun 26, 2005 7:54 pm

Postby ferrari » Sat Apr 06, 2013 5:52 am

Okay, well that output shows 4 device nodes present. How many CD/DVD drive units do you actually have connected? Other hardware devices can present these as well. (For example, some USB storage hardware present themselves as SCSI CDROM devices).

Now, when you have your docking station attached, what software are you running that does not recognise your 'docking station' DVD unit? It might be more a case of tweaking udev to symlink /dev/dvd with the preferred drive to for example.

For reference, I have
Code: Select all
ls -l /dev/dvd
lrwxrwxrwx 1 root root 3 Apr  6 14:37 /dev/dvd -> sr0
ferrari
LXF regular
 
Posts: 142
Joined: Tue May 03, 2005 11:09 am

Postby Davido02 » Sun Apr 07, 2013 9:10 am

Theres no additional drives attached or any other things like external mice pen drives etc but I suppose it is possible something like the touchpad or the mouse pointer in the middle of the keyb could be seen as a device.

If I take the notebook off the dock the top line of the four

brw-rw---- 1 root cdrom 11, 0 Apr 3 22:29 /dev/sr0

disappears

So Id imagine there is a it of tweaking needed somewhere?

Thanks

D
Davido02
 
Posts: 31
Joined: Sun Jun 26, 2005 7:54 pm

Postby nelz » Sun Apr 07, 2013 11:05 am

Do you have a /dev/dvd device/symlink? If not, create it for now with
Code: Select all
ln -s sr0 /dev/dvd

and see if DVDs now work.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8532
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby Davido02 » Sun Apr 07, 2013 9:25 pm

Trying to add the symlink gives

ln: failed to create symbolic link ' /dev/DVD': File exists

Could this be to do with the other devices although I have tried adding symlinks with the other three sr* lines and they all exist

Sorry to be a pain!

D
Davido02
 
Posts: 31
Joined: Sun Jun 26, 2005 7:54 pm

Postby nelz » Sun Apr 07, 2013 9:44 pm

So you do have the symlink? Where does it point to?

Code: Select all
ls -l /dev/dvd
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8532
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby ferrari » Sun Apr 07, 2013 11:27 pm

Those symlinks are created by udev. The udev rules of interest are located in

/etc/udev/rules.d/70-persistent-cd.rules

It is possible to edit this file to make sure that your preferred DVD device (which is not really persistent) gets sym-linked as you'd like.
ferrari
LXF regular
 
Posts: 142
Joined: Tue May 03, 2005 11:09 am

Postby nelz » Sun Apr 07, 2013 11:33 pm

Yes, but first we need to establish whether the symlink already exists, and which device it points to.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8532
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby ferrari » Sun Apr 07, 2013 11:56 pm

For sure, as I hinted to a couple of posts ago :)
ferrari
LXF regular
 
Posts: 142
Joined: Tue May 03, 2005 11:09 am

Postby Davido02 » Tue Apr 09, 2013 8:49 pm

Ok sorry I didn't get things right first time round.

The output from ls -l /dev/dvd is
lrwxrwxrwx 1 root root 8 Apr 9 21:15 /dev/dvd -> /dev/sr0

which I think is pointing to the right thing?

I checked in /etc/udev/rules.d but 70-persistent-cd.rules isnt in there. Reading about UDEV I see mention that it should automatically create this file at bootup but it can be generated by hand. However Im now not sure if it should be generating but isnt for some reason and if I do go to create it myself what has to go into it.

So any help on this would be great!

Many thanks again

David
Davido02
 
Posts: 31
Joined: Sun Jun 26, 2005 7:54 pm

Postby nelz » Tue Apr 09, 2013 9:18 pm

The link is already there, you don't need any extra udev rules.

What actually happens when you try to use a DVD in the drive, for example, what does mplayer say when you try to play a video DVD

Code: Select all
mplayer dvd://1
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8532
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby ferrari » Wed Apr 10, 2013 2:56 am

As Nelz mentioned already, the required symlink already exists.

FWIW, recent udev versions have done away with the /etc/udev/rules.d/70-persistent-cd.rules, and symlink only the first device detected (via /lib/udev/rules.d/60-cdrom_id.rules).

Returning to your original question
Im wondering how I can get the notebook to recognise the drive when the pc is on the dock??

are you referring to notification of DVD media, auto-mounting of data DVDs, or...?
ferrari
LXF regular
 
Posts: 142
Joined: Tue May 03, 2005 11:09 am

Postby Davido02 » Wed Apr 10, 2013 8:35 pm

Hi,

It would be to mount the drive. For example if a add a pen drive to the system this shows up as SDB1 which I can then click on and see the content of the pen drive.

Rgds

David
Davido02
 
Posts: 31
Joined: Sun Jun 26, 2005 7:54 pm

Next

Return to Help!

Who is online

Users browsing this forum: sadpanda and 0 guests