View previous topic :: View next topic |
Author |
Message |
Erdie Advocate
Joined: 20 May 2004 Posts: 2586 Location: Heidelberg - Germany
|
Posted: Sat Apr 26, 2008 8:02 pm Post subject: mplayer and /dev/dvd |
|
|
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 |
|
|
OmSai l33t
Joined: 30 Sep 2007 Posts: 605 Location: Manchester, CT, USA
|
Posted: Sat Apr 26, 2008 10:24 pm Post subject: Re: mplayer and /dev/dvd |
|
|
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 |
|
|
Erdie Advocate
Joined: 20 May 2004 Posts: 2586 Location: Heidelberg - Germany
|
Posted: Sat Apr 26, 2008 10:56 pm Post subject: Re: mplayer and /dev/dvd |
|
|
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 |
|
|
OmSai l33t
Joined: 30 Sep 2007 Posts: 605 Location: Manchester, CT, USA
|
Posted: Sat Apr 26, 2008 11:05 pm Post subject: Re: mplayer and /dev/dvd |
|
|
Erdie wrote: | Kmplayer ignores this setting here | Erdie,
Could you please file a bug for that when you get the time?
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 |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Sat Apr 26, 2008 11:15 pm Post subject: Re: mplayer and /dev/dvd |
|
|
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 |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Sun Apr 27, 2008 1:23 am Post subject: |
|
|
Try setting dvd-device=/dev/dvd1 in your ~/.mplayer/config _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Mon Apr 28, 2008 4:56 am Post subject: |
|
|
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 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 |
|
|
Erdie Advocate
Joined: 20 May 2004 Posts: 2586 Location: Heidelberg - Germany
|
Posted: Mon Apr 28, 2008 3:24 pm Post subject: |
|
|
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 |
|
|
|