LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   getting my CDRW/DVD player combo t o work howto? (https://www.linuxquestions.org/questions/linux-hardware-18/getting-my-cdrw-dvd-player-combo-t-o-work-howto-380622/)

Lleb_KCir 11-06-2005 08:16 PM

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.

edong23 11-06-2005 08:42 PM

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.

Lleb_KCir 11-07-2005 12:48 AM

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?

Lleb_KCir 11-07-2005 11:45 PM

next

Electro 11-08-2005 12:03 AM

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.

Lleb_KCir 11-08-2005 12:30 AM

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.

Lleb_KCir 11-08-2005 11:17 PM

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.

Electro 11-09-2005 05:06 PM

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.

Lleb_KCir 11-09-2005 07:27 PM

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.


All times are GMT -5. The time now is 04:22 AM.