LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-13-2014, 12:59 PM   #46
Ifeyegnuhow
Member
 
Registered: May 2014
Location: Pa.
Distribution: Win 7 64 / Linux Mint Rafaela
Posts: 91

Original Poster
Rep: Reputation: Disabled
More still


Quote:
Originally Posted by qlue View Post
You have to disable the daemon that asks what want to do with the disk.

That's the only way I got it working. (note: you may have to reboot for a change in settings to take effect)
glue,

In the attached .png's you can see that without a reboot but with the daemon disabled, the OS could find the optical drive and movie. But choosing any of the VOB's ( video objects ) results in an error as you can see.

With a reboot, the optical drive is invisible to the OS and of course I cannot choose it in the videos player.

Thanks,
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2014-06-13 13:47:08.png
Views:	22
Size:	184.7 KB
ID:	15718   Click image for larger version

Name:	Screenshot from 2014-06-13 13:52:46.png
Views:	12
Size:	27.6 KB
ID:	15719  
 
Old 06-13-2014, 02:46 PM   #47
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
Well, trying to play a file directly from the DVD is not likely to work on a commercial product. You would need to open the disk as a DVD. I haven't used totem in years, so I'll have to get back to you on that one.

Ok, to mount the DVD, we'll need to make a directory to use as a mount point.
Open a terminal and type;
Code:
sudo mkdir /media/testdvd/
Then try mounting the optical drive to that directory by typing;
Code:
sudo mount /dev/sr0/ /media/testdvd/
You should get a warning message about the device being write protected. like this;
Code:
mount: block device /dev/sr0 is write-protected, mounting read-only
Now try running totem from the command line with /media/testdvd/ as an argument.
Code:
totem /media/testdvd/
note: you can try this with vlc instead of totem if you prefer.

I'm not sure if totem accepts arguments on the command line, but most media players do and should be able to play the dvd when invoked this way.

See if that works, then come back here and give us feedback so we can see how we might make this less arduous.

P.S: When you're finished testing, you should eject the DVD and remove the dir as this is only for testing purposes.
Code:
sudo eject /dev/sr0/
sudo rmdir /media/testdvd/
 
1 members found this post helpful.
Old 06-13-2014, 03:37 PM   #48
Ifeyegnuhow
Member
 
Registered: May 2014
Location: Pa.
Distribution: Win 7 64 / Linux Mint Rafaela
Posts: 91

Original Poster
Rep: Reputation: Disabled
That worked!

Quote:
Originally Posted by qlue View Post
Well, trying to play a file directly from the DVD is not likely to work on a commercial product. You would need to open the disk as a DVD. I haven't used totem in years, so I'll have to get back to you on that one.

Ok, to mount the DVD, we'll need to make a directory to use as a mount point.
Open a terminal and type;
Code:
sudo mkdir /media/testdvd/
Then try mounting the optical drive to that directory by typing;
Code:
sudo mount /dev/sr0/ /media/testdvd/
You should get a warning message about the device being write protected. like this;
Code:
mount: block device /dev/sr0 is write-protected, mounting read-only
Now try running totem from the command line with /media/testdvd/ as an argument.
Code:
totem /media/testdvd/
note: you can try this with vlc instead of totem if you prefer.

I'm not sure if totem accepts arguments on the command line, but most media players do and should be able to play the dvd when invoked this way.

See if that works, then come back here and give us feedback so we can see how we might make this less arduous.

P.S: When you're finished testing, you should eject the DVD and remove the dir as this is only for testing purposes.
Code:
sudo eject /dev/sr0/
sudo rmdir /media/testdvd/

hi glue,

Following your commands I was able to get the dvd to play, just as you thought it might.

Here is what I got in the terminal window:

fred@fred-CAUS:~$ sudo mkdir /media/testdvd/
sudo: unable to resolve host fred-CAUS
[sudo] password for fred:
fred@fred-CAUS:~$ sudo mount /dev/sr0/ /media/testdvd/
sudo: unable to resolve host fred-CAUS
mount: block device /dev/sr0 is write-protected, mounting read-only
fred@fred-CAUS:~$ totem /media/testdvd/
libdvdread: Attempting to use device /dev/sr0 mounted on /media/testdvd for CSS authentication
libdvdnav: Using dvdnav version 4.2.1
libdvdread: Attempting to use device /dev/sr0 mounted on /media/testdvd for CSS authentication
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: Unable to find map file '/home/fred/.dvdnav/.map'
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
libdvdnav: Suspected RCE Region Protection!!!
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: ��
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: ��
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: ��

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001de
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x000105d9
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0

I ejected the disc using the command line but was unable to remove the folder:
rmdir: failed to remove ‘/media/testdvd/’: Device or resource busy

I need to try and run the dvd again without remaking the directory...that didn't work because the CD tray is locked, I can't run it a second time. Editing your command to point to /dev/sr1 didn't work it still points to /sr0.

Thanks as always, should I re-install vlc or keep using totem since the results seem to be the same?
 
Old 06-13-2014, 04:38 PM   #49
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
You first mounted the disk with this command:

Quote:
sudo mount /dev/sr0/ /media/testdvd/
You got the 'Device or resource busy' message because you did not unmount it.

Quote:
sudo umount /media/testdvd
Did you notice the below message. Region 1 includes the US but the line below that shows English language not found??

Quote:
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
libdvdnav: Suspected RCE Region Protection!!!
 
Old 06-13-2014, 07:11 PM   #50
Ifeyegnuhow
Member
 
Registered: May 2014
Location: Pa.
Distribution: Win 7 64 / Linux Mint Rafaela
Posts: 91

Original Poster
Rep: Reputation: Disabled
OK

Quote:
Originally Posted by yancek View Post
You first mounted the disk with this command:

You got the 'Device or resource busy' message because you did not unmount it.

Did you notice the below message. Region 1 includes the US but the line below that shows English language not found??
hi yancek,

No I didn't see that one....... but I am in region 1 and the menus displayed in us english no worries there and of course the disc played fine in English. It's all new to me after being a windows user since v3.0 and DOS before that, its mind boggling.

Ok that I should have unmounted and then remounted before having a second go at it. The testdvd folder is still there, obivously,. I thought maybe I could simply remove it but didn't see an option to do it using the GUI. Sorry....MS has me blind! lol

Why is the tray locked on the drive I used, never saw that until recently, that's one thing vlc DIDN'T do! <sigh>

Puzzled me that it said "sudo: unable to resolve host fred-CAUS"

I got rid of the test folder, but the tray is still locked.

fred@fred-CAUS:~$ sudo eject /dev/sr0/
sudo: unable to resolve host fred-CAUS
eject: unable to eject, last error: Inappropriate ioctl for device
fred@fred-CAUS:~$ sudo rmdir /media/testdvd/
sudo: unable to resolve host fred-CAUS

Cheers

Last edited by Ifeyegnuhow; 06-13-2014 at 07:21 PM. Reason: More info to help fix the problem!
 
Old 06-13-2014, 07:50 PM   #51
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
The testdvd folder is still there, obivously,. I thought maybe I could simply remove it but didn't see an option to do it using the GUI
Having the 'testdvd' directory there or not won't change anything. It's just a mount point. You mount something there to access it, then unmount to remove access. If you want to delete a file/directory in Ubuntu, left-click the directory/file and then hold down the Shift+Delete keys. You will get a prompt asking if you want to delete.

I have no idea about the tray lock. Have you run the install-css.sh, command below? I imagine you have if you've played a video.


Code:
 sudo /usr/share/doc/libdvdread4/install-css.sh
Have you changed your host name on Ubuntu? Take a look at the link below at the Ubuntu forums.

http://ubuntuforums.org/showthread.php?t=2179919
 
Old 06-14-2014, 10:11 AM   #52
Ifeyegnuhow
Member
 
Registered: May 2014
Location: Pa.
Distribution: Win 7 64 / Linux Mint Rafaela
Posts: 91

Original Poster
Rep: Reputation: Disabled
Yes I did

Quote:
Originally Posted by yancek View Post
Having the 'testdvd' directory there or not won't change anything. It's just a mount point. You mount something there to access it, then unmount to remove access. If you want to delete a file/directory in Ubuntu, left-click the directory/file and then hold down the Shift+Delete keys. You will get a prompt asking if you want to delete.

I have no idea about the tray lock. Have you run the install-css.sh, command below? I imagine you have if you've played a video.


Code:
 sudo /usr/share/doc/libdvdread4/install-css.sh
Have you changed your host name on Ubuntu? Take a look at the link below at the Ubuntu forums.

http://ubuntuforums.org/showthread.php?t=2179919
yancek,

Yes I changed the host name :: I have since corrected it so no error is displayed.

I ran the
Code:
 sudo /usr/share/doc/libdvdread4/install-css.sh
right after I installed the necessary libraries for media play.

Had to reboot to have access to the sr0 drive. Once I did that I used all the commands and remounted the disc and it played fine in totem. I ejected it using the commands above. Upon ejecting the disc the icon in the launcher stayed visible with an indication that the disc was being ejected, but didn't show the icon as DVD. Ihave to manually remove it from the launcher, or else it stays there.

I wanted to try and run it again and of course the drive tray was locked again. I know a reboot will fix that part but why? ;/

I have also tried to change the drive in the command from sr0 to sr1 ( my other drive ) but for some reason it defaults to sr0:

fred@fred-CAUS:~$ sudo mount /dev/sr1/ /media/testdvd/
mount: block device /dev/sr1 is write-protected, mounting read-only
fred@fred-CAUS:~$ totem /media/testdvd/
libdvdread: Attempting to use device /dev/sr0 mounted on /media/testdvd for CSS authentication

It does this why? I wanted to see if it locked that drive after I played the movie, but as you can see I never got that far. I'm assuming that ubuntu sees sr0 as the default. But when I look at the /media/testdvd it shows the correct title and info for the dvd in the sr1 tray. <grrr!>


Thanks

Last edited by Ifeyegnuhow; 06-14-2014 at 07:33 PM.
 
Old 06-14-2014, 07:46 PM   #53
Ifeyegnuhow
Member
 
Registered: May 2014
Location: Pa.
Distribution: Win 7 64 / Linux Mint Rafaela
Posts: 91

Original Poster
Rep: Reputation: Disabled
This is what I get with the tray locked

I ran this

Code:
sudo lshw -C disk
to try and open the cd tray on sr0 but of course it didn't do anything but give me the resulting message in the screenshot.

Also I found a reference to a bug that seems very similiar to what I am experiencing with the tray locking after one play.

https://bugs.launchpad.net/ubuntu/+s...ux/+bug/437809

I didn't report mine as I am not sure of the protocol to do so, but it's annoying to say the least!

UPDATE:

VLC player is now installed again and with the daemon enabled it plays a dvd fine once, using /dev/sr0. But once it's ejected the tray is locked and won't open no matter what.

But if I put the dvd in /dev/sr1 it will play it repeatedly with no problem as long as I close VLC from the launcher.

Why is it locking that tray on the first /sr0 ?? Before it wouldn't play twice but the tray was unlocked now it plays once then locks it, but the other drive is useable.

Now I get no prompt asking me what to do with a dvd/cd when it's inserted. The daemon is enabled in settings | details |removeable media. Seems that the more it gets used the worse it gets. Tried to toggele it off and reboot and try it, then turn it back on and reboot.Still nada. I prefer to have it ask me what program I want to use when I insert a disc or usb or whatever.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2014-06-14 20:31:50.png
Views:	22
Size:	19.9 KB
ID:	15721  

Last edited by Ifeyegnuhow; 06-23-2014 at 12:09 PM. Reason: More info
 
Old 07-03-2014, 03:15 PM   #54
Ifeyegnuhow
Member
 
Registered: May 2014
Location: Pa.
Distribution: Win 7 64 / Linux Mint Rafaela
Posts: 91

Original Poster
Rep: Reputation: Disabled
As a final note to the misery I had with the Sony DVD player locking the tray after one play, the problem is solved.

I opened the case and switched the sr0 and sr1 drives and made one the master and the other the slave. Prior to that both were set to 'cable select' using one ribbon cable.

What I discovered is that the problem followed the drive change, that is to say that even though sr0 is really now sr1, after one play it's tray is locked shut. For whatever reason Ubuntu doesn't seem to like the old Sony dvd drive. Really I am amazed it lasted this long, it's as old as dirt!

So thanks to everyone who tried to help me solve the problem, if I thought that it was related to the drive itself and not vlc or Ubuntu I'd have changed them a long time ago.

Regards and thanks to all!
 
  


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
LXer: VLC not allowed to support Blu-ray disc playback in France LXer Syndicated Linux News 1 04-12-2013 08:09 PM
I am running ubuntu 10.4, I downloaded VLC player, but when I try to wacht a DVD, it pocasluces Linux - Newbie 12 10-24-2010 08:22 PM
VLC - works in Unbuntu but not in Kubuntu? phreakshew Ubuntu 3 06-29-2009 12:03 PM
eth0 detected, no interenet on knoppix live dvd but works on ubuntu smokespliffz Linux - Networking 1 01-08-2007 02:01 PM
DVD-Video burned on DVD-RW works but not on DVD-R iccananea Linux - Software 2 06-28-2004 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:18 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