Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mplayer and /dev/dvd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2586
Location: Heidelberg - Germany

PostPosted: Sat Apr 26, 2008 8:02 pm    Post subject: mplayer and /dev/dvd Reply with quote

Hi all,

per default my system has a /dev/dvd1 and /dev/cdrom1 device. I guess this is an udev issue. When i try to open a dvd with kmplayer, kmplayer expects a /dev/dvd device even i have /dev/dvd1 specified in the configuration. Creating a symlink /dev/dvd pointing to /dev/dvd1 fixes this issue until the next reboot but afterthat the device is not created by udev. How can i tell kmplayer to use /dev/dvd1 instead of /dev/dvd ? Or vice versa, how can i make the symlink /dev/dvd permanent?

-Erdie
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
OmSai
l33t
l33t


Joined: 30 Sep 2007
Posts: 605
Location: Manchester, CT, USA

PostPosted: Sat Apr 26, 2008 10:24 pm    Post subject: Re: mplayer and /dev/dvd Reply with quote

Erdie wrote:
How can i tell kmplayer to use /dev/dvd1 instead of /dev/dvd
KMplayer > Settings > Source > DVD > DVD Device

Maybe you have to upgrade your kmplayer?
I'm using media-video/kmplayer-0.10.0c
_________________
Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2586
Location: Heidelberg - Germany

PostPosted: Sat Apr 26, 2008 10:56 pm    Post subject: Re: mplayer and /dev/dvd Reply with quote

OmSai wrote:
Erdie wrote:
How can i tell kmplayer to use /dev/dvd1 instead of /dev/dvd
KMplayer > Settings > Source > DVD > DVD Device

Maybe you have to upgrade your kmplayer?
I'm using media-video/kmplayer-0.10.0c


Kmplayer ignores this setting here - but in the meantime i thought about to enable the tarball setting in /etc/conf.d/rc and create a dvd symlink manually. this could be a solution. I will try it.

thanks
Erdie
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
OmSai
l33t
l33t


Joined: 30 Sep 2007
Posts: 605
Location: Manchester, CT, USA

PostPosted: Sat Apr 26, 2008 11:05 pm    Post subject: Re: mplayer and /dev/dvd Reply with quote

Erdie wrote:
Kmplayer ignores this setting here
Erdie,
Could you please file a bug for that when you get the time? :D
There isn't a related bug at Gentoo or KDE
_________________
Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Sat Apr 26, 2008 11:15 pm    Post subject: Re: mplayer and /dev/dvd Reply with quote

Erdie wrote:
Or vice versa, how can i make the symlink /dev/dvd permanent?

-Erdie
You could try to write the udev rule yourself. You will need to tell udev to make a symlink in this case.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
beandog
Bodhisattva
Bodhisattva


Joined: 04 May 2003
Posts: 2072
Location: /usa/utah

PostPosted: Sun Apr 27, 2008 1:23 am    Post subject: Reply with quote

Try setting dvd-device=/dev/dvd1 in your ~/.mplayer/config
_________________
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Mon Apr 28, 2008 4:56 am    Post subject: Reply with quote

I updated the kernel and probably removed IDE cdrom support. So at present my cdrom is at /dev/sr0 and udev creates cdrom1,dvd1, etc symlinks. So, here is the udev rule which creates cdrom,dvd,.. etc symlinks. It is extracted from /etc/udev/rules.d/70-persistent-cd.rules. Create the following file named /etc/udev/rules.d/90-self.rules. You should keep the 90-, but you can replace 'self' with any string you like.
Code:
ENV{ID_CDROM}=="1", ENV{ID_PATH}=="pci-0000:00:1f.1-scsi-0:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
ENV{ID_CDROM}=="1", ENV{ID_PATH}=="pci-0000:00:1f.1-scsi-0:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
ENV{ID_CDROM}=="1", ENV{ID_PATH}=="pci-0000:00:1f.1-scsi-0:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
ENV{ID_CDROM}=="1", ENV{ID_PATH}=="pci-0000:00:1f.1-scsi-0:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"

The pci-0000:00:1f.1-scsi-0:0:0:0 string can be obtained by looking at
Code:
ls -lR /dev/disks
and finding out which node corresponds to your cdrom1. In my case this string exactly matches the string used in the corresponding 70-persistent-cd.rules.


Next run the following two lines:
Code:
udevcontrol reload_rules
udevtrigger
and your device nodes should be created.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2586
Location: Heidelberg - Germany

PostPosted: Mon Apr 28, 2008 3:24 pm    Post subject: Reply with quote

thanks a lot :)
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
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