LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-22-2008, 10:09 AM   #16
McSlack
Member
 
Registered: Jul 2006
Location: Grand Rapids, MI
Distribution: Slackware
Posts: 32

Rep: Reputation: 15

Thanks for the tips on mplayer. I'm going to check them out.

Tip of the hat to T3slider the latest ATI "fglrx" driver fixed my video issues. Previously my xorg.conf was using the "radeon" driver.

Since /dev/dvd1 is just a symbolic link to your DVD can't you just make /dev/dvd a symbolic link to the same drive? All my /dev/dvd* are symbolic links to /dev/hda.
 
Old 10-22-2008, 02:06 PM   #17
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Original Poster
Rep: Reputation: 196Reputation: 196
Frankly I'm not accustomed to all those magical devices in kernel 2.6. Slackware 12.1 is my first system with such kernel. Kernel prepares all devices during boot procedures. Almost all of them have the same date and time of creation. I don't know if I can put in /dev directory my own permanent links. Of course I can put there anything but I don't know if it's a proper way to handle 2.6 kernel's devices.

To manage with both T40 (/dev/dvd) and T60 (/dev/dvd1) I wrote simple script named dvd...

dvd:
Code:
#!/bin/sh

echo "dvd [title slang alang]"

if [ -e /dev/dvd ]
then
    DVD=/dev/dvd
elif [ -e /dev/dvd1 ]
then
    DVD=/dev/dvd1
fi

if [ "$DVD" == "" ]
then
    echo "There is no /dev/dvd nor /dev/dvd1 device..."
    exit
fi

if [ "$1" == "" ]
then
    mplayer -dvd-device $DVD -dvd-speed 1 dvd://1
elif [ "$2" == "" ]
then
    mplayer -dvd-device $DVD -dvd-speed 1 dvd://$1
elif [ "$3" == "" ]
then
    mplayer -slang $2 -dvd-device $DVD -dvd-speed 1 dvd://$1
elif [ "$4" == "" ]
then
    mplayer -alang $3 -slang $2 -dvd-device $DVD -dvd-speed 1 dvd://$1
fi
To play movie I run the command dvd. To play third title from DVD with English subtitles and French audio language I use the command dvd 3 en fr. On most DVDs movie is the first title but on some it's the second, the third, etc. title.

Last edited by w1k0; 10-22-2008 at 03:26 PM.
 
Old 10-22-2008, 02:33 PM   #18
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Original Poster
Rep: Reputation: 196Reputation: 196
I just simplified my script...

dvd-new:
Code:
#!/bin/sh

echo "$0 [title slang alang]"

for device in dvd dvd1
do
    if [ -e /dev/$device ]; then DEVICE="-dvd-device /dev/$device"; fi
done

if [ "$DEVICE" == "" ]
then
    echo "There is no /dev/dvd* device..."
    exit
fi

if [ "$1" != "" ]; then TITLE=$1; fi

if [ "$2" != "" ]; then SUBTITLES="-slang $2"; fi

if [ "$3" != "" ]; then LANGUAGE="-alang $3"; fi

mplayer $LANGUAGE $SUBTITLES $DEVICE -dvd-speed 1 dvd://$TITLE

Last edited by w1k0; 10-22-2008 at 02:44 PM.
 
  


Reply

Tags
ahci, ati, bios, device, dma, dvd, fglrx, liloconf, mplayer, radeon, sata, subtitles, t60, thinkpad


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
firefox colors - buttons, text fields, etc & dark gnome theme wet Linux - Newbie 3 12-09-2007 01:32 PM
Change colors - XFCE icon text and text background bgryderclock Linux - Software 5 08-17-2007 02:29 AM
boot colors in kernel ( text font and background) drkstr Linux - Kernel 7 07-27-2006 04:59 PM
I get psychedelic colors while using MandrivaLE2005 Altheastronut Linux - Hardware 8 09-13-2005 02:11 PM
Black background/white text = bad aesthetics? vharishankar General 7 01-04-2005 06:19 PM


All times are GMT -5. The time now is 05:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration