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

Notices


Reply
  Search this Thread
Old 01-18-2005, 08:17 PM   #1
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Rep: Reputation: 23
mplayer GUI problem


well, i installed the mplayer with GUI interface on my machine, installation went ok

but when i tried to run gmplayer command, i got msg below

any idea?

i'm running Xandros 3.0 Deluxe on a IBM Thinkpad T23 machine.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>

erdos@xandros:~$ gmplayer
MPlayer 1.0pre6-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE


vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Failed to open /dev/rtc: No such file or directory (it should be readable by the user.)

[1]+ Stopped gmplayer
erdos@xandros:~$ su
Password:
xandros:/home/erdos# gmplayer
MPlayer 1.0pre6-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE


Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

vo: couldn't open the X11 display (:0.0)!
MPlayer GUI requires X11.
Usage: mplayer [options] [url|path/]filename

Basic options: (complete list in the man page)
-vo <drv[:dev]> select video output driver & device ('-vo help' for a list)
-ao <drv[:dev]> select audio output driver & device ('-ao help' for a list)
vcd://<trackno> play (S)VCD (Super Video CD) track (raw device, no mount)
dvd://<titleno> play DVD title from device instead of plain file
-alang/-slang select DVD audio/subtitle language (by 2-char country code)
-ss <timepos> seek to given (seconds or hh:mm:ss) position
-nosound do not play sound
-fs fullscreen playback (or -vm, -zoom, details in the man page)
-x <x> -y <y> set display resolution (for use with -vm or -zoom)
-sub <file> specify subtitle file to use (also see -subfps, -subdelay)
-playlist <file> specify playlist file
-vid x -aid y select video (x) and audio (y) stream to play
-fps x -srate y change video (x fps) and audio (y Hz) rate
-pp <quality> enable postprocessing filter (details in the man page)
-framedrop enable frame dropping (for slow machines)

Basic keys: (complete list in the man page, also check input.conf)
<- or -> seek backward/forward 10 seconds
up or down seek backward/forward 1 minute
pgup or pgdown seek backward/forward 10 minutes
< or > step backward/forward in playlist
p or SPACE pause movie (press any key to continue)
q or ESC stop playing and quit program
+ or - adjust audio delay by +/- 0.1 second
o cycle OSD mode: none / seekbar / seekbar + timer
* or / increase or decrease PCM volume
z or x adjust subtitle delay by +/- 0.1 second
r or t adjust subtitle position up/down, also see -vf expand

* * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *

xandros:/home/erdos#
 
Old 01-18-2005, 09:39 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
This may not be an exact answer to your problem, but might point you into the right direction:

At first, you can't access /dev/rtc because you don't have the access rights for that. The quick and dirty solution to that is to chmod the device to 666. The correct solution is to create a special group. The group should have access to that device. Add yourself to that group.

The chmod 666 is fine for testing.

The next thing which goes wrong is that you do 'su'.

Once you are 'su', you can't open a window (display) in X anymore. That is the second error message.

You can workaround this to Alt-F2 to start the app. Then you as user opens the display, but the app is run with 'su' credentials. That should overcome any access errors to devices. Once it runs here, you know what to look for.

jlinkels
 
Old 01-19-2005, 03:43 PM   #3
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
you can also download sux which is a smart su and lets you run x apps from console as super user. Cheers
 
Old 01-21-2005, 10:34 AM   #4
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Quote:
Originally posted by bobbens
you can also download sux which is a smart su and lets you run x apps from console as super user. Cheers
DONT DO THIS, it is a very bad idea to just start working with superuser privileges. The right way to solve your problem is, as stated above, to make a group that can rw to /dev/rtc.

$ su
$ groupadd rtc
$ chmod g+rw /dev/rtc

You should check out the man page for usermod, but I think this does the trick:
$ usermod -g `groups <username>` rtc <username>

then log off, log in and mplayer will work...
 
  


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
mplayer gui launch problem Pwcca Linux - Software 8 07-18-2005 01:21 PM
Problem with MPlayer gui KTLiberty Linux - Software 10 07-06-2004 02:55 AM
mplayer-gui installing problem..... avols143 Linux - Software 2 02-16-2004 03:14 PM
Mplayer Gui Problem!!!!!! bluedude2288 Linux - Software 4 11-04-2003 12:54 PM
Problem with gmplayer (GUI of mplayer) Killah Linux - Software 1 09-14-2003 03:22 PM

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

All times are GMT -5. The time now is 02:54 PM.

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