LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-06-2005, 08:16 PM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
getting my CDRW/DVD player combo t o work howto?


i have tried RH9, FC1,2, 3, Debian testing, stable, unstable, and currently have CentOS 4.2 installed.

none of them have given me access to my DVD portion of my combo drive. i know it works as it works under win2k pro and winXP Pro.

what information do you need and how do i get it so i can help you help me?

Thank you.
 
Old 11-06-2005, 08:42 PM   #2
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
well run the following and tell me what you get.


ls -l /dev/dvd
ls -l /dev/cdrom
ls -l /dev/hdc
ls -l /dev/hdd

that is an L, just lowercase. teh first should point at your dvd device. if it is /dev/hdc, then you might not have permissions to it, and you need to run soemthin glike;

su
password
chmod 666 /dev/hdc

to get access to it. also, you need to look into the config of the player, make sure that it is looking for /dev/dvd and make sure it is present. if you dont see a /dev/dvd, then make one. figure out what your combo drive is on, it will be the same as the cdrom, and if it is the first cd device, then it will be hdc. so, if so run:

su
password
ln -s /dev/hdc /dev/dvd

and that will create a symlink to the drive. the player wont know the difference, then you need to edit the /etc/fstab (ok that is optional, but makes for mounting things easier.)

also, if you are trying to play a dvd you need libdvdcss, libdvdread, libdvdnav, and sometimes libdvdplay installed.
 
Old 11-07-2005, 12:48 AM   #3
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
Code:
[ray@ssmahome ~]$ ls -l /dev/dvd
ls: /dev/dvd: No such file or directory
[ray@ssmahome ~]$ ls -l /dev/cdrom
lrwxrwxrwx  1 root root 3 Oct 28 20:38 /dev/cdrom -> hdc
[ray@ssmahome ~]$ ls -l /dev/hdc
brw-------  1 ray disk 22, 0 Oct 28 20:38 /dev/hdc
[ray@ssmahome ~]$ ls -l /dev/hdd
ls: /dev/hdd: No such file or directory
[ray@ssmahome ~]$
does not seem to want to see my CDRW/DVD combo drive as a combo drive, just wants to look at it as a CDRW.

also so far as those codec go, if that is what they are, they do not exsist so far as CentOS yum repositories are concerned... boy do i miss debian with those codec packs.

Code:
[ray@ssmahome ~]$ su -
Password:
[root@ssmahome ~]# yum install libdvdcss
Repository update is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Setting up Install Process
Setting up repositories
kde-redhat-stable-all     100% |=========================|  951 B    00:00
kde-redhat-stable         100% |=========================|  951 B    00:00
update                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libdvdcss
Nothing to do
[root@ssmahome ~]# yum install libdvdread
Repository update is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Setting up Install Process
Setting up repositories
kde-redhat-stable-all     100% |=========================|  951 B    00:00
kde-redhat-stable         100% |=========================|  951 B    00:00
update                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libdvdread
Nothing to do
[root@ssmahome ~]# yum install libdvdnav
Repository update is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Setting up Install Process
Setting up repositories
kde-redhat-stable-all     100% |=========================|  951 B    00:00
kde-redhat-stable         100% |=========================|  951 B    00:00
update                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libdvdnav
Nothing to do
[root@ssmahome ~]# yum install libdvdplay
Repository update is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Setting up Install Process
Setting up repositories
kde-redhat-stable-all     100% |=========================|  951 B    00:00
kde-redhat-stable         100% |=========================|  951 B    00:00
update                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libdvdplay
Nothing to do

next step?
 
Old 11-07-2005, 11:45 PM   #4
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
next
 
Old 11-08-2005, 12:03 AM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
As a test insert a DVD movie disc in the drive and type 'mplayer -dvd-device /dev/hdc dvd://'. If this works then you have to make a symbolic link that is named /dev/dvd and it is pointing to /dev/hdc. If mplayer gives you an error that it does not have read/write access, then you have to chmod /dev/hdc to 666.
 
Old 11-08-2005, 12:30 AM   #6
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
added a repository to yum so i could install mplayer (i normaly use kaffeine), then ran your command for mplayer. got a read error so i chmod 666 /dev/hdc as root then ran the command again, still getting the following error:

Code:
[ray@ssmahome ~]$ mplayer -dvd-device /dev/hdc dvd://
MPlayer dev-CVS-051010-00:11-3.4.3 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Celeron D Northwood/Xeon Prestonia/Gallatin (Family: 15, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Playing dvd://.
libdvdread: Could not open /dev/hdc with libdvdcss.
libdvdread: Can't open /dev/hdc for reading
Couldn't open DVD device: /dev/hdc
[file] No filename
Failed to open dvd://


Exiting... (End of file)
next step?

fyi, all of the help is greatly appreciated.

[edit to add] get the exact same error even as root.

Last edited by Lleb_KCir; 11-08-2005 at 12:31 AM.
 
Old 11-08-2005, 11:17 PM   #7
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
shameless bump, hoping for more help.

here is some more info that might help:

Quote:
> A dump of "dmesg" might help.

how do i dump that into a file that i can post?

> And "hdparm -i /dev/hdc" wouldn't hurt either.

hdparm -i /dev/hdc

/dev/hdc:

Model=UJDA340, FwRev=1.50, SerialNo=
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs
nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes,
LBAsects=0
IORDY=yes, tPIO={min:240,w/IORDY:120},
tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 *mdma2
AdvancedPM=no

* signifies the current active mode


>
> After you attempt to run mplayer, are there any
> additional
> entries in "/var/log/messages"?

loads of messages like this:

Nov 8 23:01:01 ssmahome crond(pam_unix)[15827]:
session opened for user root by (uid=0)
Nov 8 23:01:01 ssmahome crond(pam_unix)[15827]:
session closed for user root
Nov 9 00:01:01 ssmahome crond(pam_unix)[15831]:
session opened for user root by (uid=0)


>You should probably
> open
> another terminal logged in as root and run "tail -f
> /var/log/messages" and watch what is spit out when
> you run
> your mplayer command.
ail -f /var/log/messages
Nov 8 21:01:02 ssmahome crond(pam_unix)[15819]:
session opened for user root by (uid=0)
Nov 8 21:01:02 ssmahome crond(pam_unix)[15819]:
session closed for user root
Nov 8 22:01:01 ssmahome crond(pam_unix)[15823]:
session opened for user root by (uid=0)
Nov 8 22:01:01 ssmahome crond(pam_unix)[15823]:
session closed for user root
Nov 8 23:01:01 ssmahome crond(pam_unix)[15827]:
session opened for user root by (uid=0)
Nov 8 23:01:01 ssmahome crond(pam_unix)[15827]:
session closed for user root
Nov 9 00:01:01 ssmahome crond(pam_unix)[15831]:
session opened for user root by (uid=0)
Nov 9 00:01:01 ssmahome crond(pam_unix)[15831]:
session closed for user root
Nov 9 00:10:43 ssmahome su(pam_unix)[15910]: session
opened for user root by ray(uid=500)
Nov 9 00:13:59 ssmahome su(pam_unix)[15974]: session
opened for user root by ray(uid=500)
Nov 9 00:14:26 ssmahome kernel: cdrom: open failed.



>
> It seems that MPlayer is trying to open /dev/hdc to
> read the
> DVD. Why it's not working is beyond me, although
> /var/log/messages might hold a clue. You clearly
> seem to
> have access to the device.
thanks.
 
Old 11-09-2005, 05:06 PM   #8
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Did you place a DVD movie in your drive because the error:
Quote:
libdvdread: Could not open /dev/hdc with libdvdcss.
libdvdread: Can't open /dev/hdc for reading
Couldn't open DVD device: /dev/hdc
[file] No filename
Failed to open dvd://
Only relates to user stupidity that he or she did not insert a disc in the drive. Mplayer is a CLI not GUI, so it begins to play the media when it is executed.

Remove mplayer package file and install by source code. Package based distributions are not predictable as much as installing programs by source code.
 
Old 11-09-2005, 07:27 PM   #9
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
yes, have one of the harry potter movies in the drive now. when i run kaffeine it gives me a wrong media type error.

sadly, installing things from source is not something i am good enough to do yet, thus my dependancy on apt or yum.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb mouse scroll, about making dvd/cdrw combo work, printers, network... what a n00b! Timmy_DM Slackware 7 05-28-2005 09:10 PM
Play DVD on CDRW/DVD Combo Drive?? halo14 Linux - Laptop and Netbook 13 09-21-2004 09:21 AM
cdrw/dvd combo + xine t_caplette Linux - General 1 02-24-2004 07:54 AM
Trouble with DVD/CDRW combo drive jenna_h Linux - Hardware 4 10-01-2003 08:59 AM
DVD/CDRW combo drive toySOILDer Linux - Hardware 0 08-12-2003 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration