Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Docking station for Dell latitude D420 notebook
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
Davido02



Joined: Sun Jun 26, 2005 8:54 pm
Posts: 31

PostPosted: Wed Apr 03, 2013 10:28 pm    Post subject: Docking station for Dell latitude D420 notebook Reply with quote

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??
Back to top
View user's profile Send private message
ferrari
LXF regular


Joined: Tue May 03, 2005 12:09 pm
Posts: 111

PostPosted: Fri Apr 05, 2013 12:57 am    Post subject: Reply with quote

Does it show up in the device list?
Code:
ls -l /dev/sr*
Back to top
View user's profile Send private message
Davido02



Joined: Sun Jun 26, 2005 8:54 pm
Posts: 31

PostPosted: Fri Apr 05, 2013 10:16 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
ferrari
LXF regular


Joined: Tue May 03, 2005 12:09 pm
Posts: 111

PostPosted: Sat Apr 06, 2013 6:52 am    Post subject: Reply with quote

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:
ls -l /dev/dvd
lrwxrwxrwx 1 root root 3 Apr  6 14:37 /dev/dvd -> sr0
Back to top
View user's profile Send private message
Davido02



Joined: Sun Jun 26, 2005 8:54 pm
Posts: 31

PostPosted: Sun Apr 07, 2013 10:10 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8367
Location: Warrington, UK

PostPosted: Sun Apr 07, 2013 12:05 pm    Post subject: Reply with quote

Do you have a /dev/dvd device/symlink? If not, create it for now with
Code:
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)
Back to top
View user's profile Send private message
Davido02



Joined: Sun Jun 26, 2005 8:54 pm
Posts: 31

PostPosted: Sun Apr 07, 2013 10:25 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8367
Location: Warrington, UK

PostPosted: Sun Apr 07, 2013 10:44 pm    Post subject: Reply with quote

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

Code:
ls -l /dev/dvd

_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
ferrari
LXF regular


Joined: Tue May 03, 2005 12:09 pm
Posts: 111

PostPosted: Mon Apr 08, 2013 12:27 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8367
Location: Warrington, UK

PostPosted: Mon Apr 08, 2013 12:33 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
ferrari
LXF regular


Joined: Tue May 03, 2005 12:09 pm
Posts: 111

PostPosted: Mon Apr 08, 2013 12:56 am    Post subject: Reply with quote

For sure, as I hinted to a couple of posts ago Smile
Back to top
View user's profile Send private message
Davido02



Joined: Sun Jun 26, 2005 8:54 pm
Posts: 31

PostPosted: Tue Apr 09, 2013 9:49 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8367
Location: Warrington, UK

PostPosted: Tue Apr 09, 2013 10:18 pm    Post subject: Reply with quote

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:
mplayer dvd://1

_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
ferrari
LXF regular


Joined: Tue May 03, 2005 12:09 pm
Posts: 111

PostPosted: Wed Apr 10, 2013 3:56 am    Post subject: Reply with quote

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
Quote:
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...?
Back to top
View user's profile Send private message
Davido02



Joined: Sun Jun 26, 2005 8:54 pm
Posts: 31

PostPosted: Wed Apr 10, 2013 9:35 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast