LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-15-2005, 05:23 PM   #1
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Rep: Reputation: 30
/dev/rtc problem with gmplayer on Slackware 10


I installed mplayer from source, but I have a few problems. When I try to start gmplayer from user, I get:

vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.

when I try to run it from root:

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

Also when I play videos in mplayer I do not have any sound, the same is with Xine. I had the same problem with xmms and found out that xmms outputs to my modem instead of the soundcard and fixed. i do not have an idea how to fix mplayer or Xine. Any suggestions on how to fix gmplayer and get the sound working?
 
Old 02-27-2005, 06:34 AM   #2
KingOfDreams
LQ Newbie
 
Registered: Jan 2005
Location: East of Eden
Distribution: Slackware
Posts: 27

Rep: Reputation: 15
I have exactly the same problem. I havenīt found any solution yet.
 
Old 02-27-2005, 06:52 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's not a problem, just some advice... mplayer should be working fine.

the 1024 section, means add that command to /etc/rc.local or such like, something that will be executed once on bootup. as for rtc permissions, just use "chmod a+r /dev/rtc". if this does not persst between boots, you need to modify either /etc/devfsd.conf or /etc/udev/permissions.d/50-udev.permissions to make /dev/rtc have mode 664 permissions.
 
Old 02-27-2005, 03:54 PM   #4
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 30
KIngOfDreams do you have problem with the sound as well? If you do ,I fixed it, and I can post the solution here. I was going to do it anyways , but I wanted to wait until I find a solution to both problems.
 
Old 02-27-2005, 04:01 PM   #5
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 30
Acid_KewPie, here is my /etc/rc.d/rc.local I already had it changed like this:


#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
echo 1024>/proc/sys/dev/rtc/max-user-freq
~


Still no result. Any other suggestions? I have the sound fixed , but I still cannot get gmplayer. Do you think recompiling the kernel and adding an extra module would fix the problem? In other words could it be because of the kernel?

Here is the wrror I get now:

vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.

Oh and also I have full permitions on /dev/rtc and they persist after boot.

Last edited by alagenchev; 02-27-2005 at 04:03 PM.
 
Old 02-27-2005, 04:28 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it really doesn't matter if you're getting that message, there's nothing wrong with that being like that. maybe your kernel is too old to support it? i doubt it personally, but i think it was around 2.4.10 that functionality came in...
 
Old 02-27-2005, 04:38 PM   #7
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Re: /dev/rtc problem with gmplayer on Slackware 10

...<edited out rc.local suggestion>

Last edited by synaptical; 07-03-2005 at 09:58 AM.
 
Old 02-27-2005, 04:38 PM   #8
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
that's strange... It worked fine for me from day one i tried it, and i use the default kernel.
my rc.local looks like this:
Code:
#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local setup commands in here:

# This is for mplayer
echo "Making max-user-freq 1024"
echo 1024 > /proc/sys/dev/rtc/max-user-freq
The messege i get when i run gmplayer is
Code:
MPlayer 1.0pre6-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2



vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
77 audio & 188 video codecs
But i used mplayer for ages with the warning you had and never had any problem at all. So don't worry..

Last edited by perfect_circle; 02-27-2005 at 04:41 PM.
 
Old 02-27-2005, 04:49 PM   #9
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 30
Acid_kewpie, I am running 2.4.26. I couldn't find anything on mplayer website as to what kernel is needed. But perfect circle says he's running the default kernel

P.S.:
I understand that it dowsn't matter that I am getting the message for mplayer, but I am trying to get the GUI working, since I prefer it much more. Does anyone have any other suggestions. I have been trying to find a solution for the problem for the last 3 weeks with no success whatsoever.

Last edited by alagenchev; 02-27-2005 at 04:52 PM.
 
Old 02-27-2005, 05:11 PM   #10
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
what is your video driver set to? try changing it from xv to x11, or vice versa.
 
Old 02-27-2005, 05:33 PM   #11
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 30
Unhappy

Quote:
what is your video driver set to? try changing it from xv to x11, or vice versa.
It was set to xv, changed it to X11, no result, so I changed it back and there's still no result.

Now I am getting :

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

This thing is changing the error messages all the time. This is weird.Any other help?

 
Old 02-27-2005, 05:56 PM   #12
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
try here:
http://www.mplayerhq.hu/DOCS/HTML-si...layer.html#rtc
 
Old 02-27-2005, 06:27 PM   #13
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 30
Synaptical, thank you for sticking with me. I read the DOC and My kernel is 2.4.26, so I figured I don't need a kernel recompile. I issued the comman at the console and at first I thought it worked, because I didn't get a warning. however gmplayer did not start, and I had to do ctrl-z to get back to prompt. Then I got:

MPlayer interrupted by signal 15 in module: unknown

When I tried to run gmplayer again I got teh same old error:

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

I am about to give up on this thing. I have never had such a problem with linux before, usually almost everything is fixable. This gets me so frustrated.
 
Old 02-27-2005, 06:46 PM   #14
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
> MPlayer interrupted by signal 15 in module: unknown

that's just the message telling you ctrl+c shut it down.


if you built RTC as a module, are you sure it's loading? (do "# modprobe rtc" to load it)

when you say you issued the command after reading the doc and at first you thought it worked, what did you try that you thought worked?


* dumb question: you did enable the gui when you built it, right? (./configure --enable-gui?) i'm probably showing my own ignorance as you might get a totally different error if you didn't, but i thought i'd ask just in case.
 
Old 02-27-2005, 06:57 PM   #15
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 30
This is what I get when I do gmplayer -v -v :

alagenchev@Necromancer:~$ gmplayer -v -v
MPlayer 1.0pre6-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium M Banias (Family: 6, Stepping: 5)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
CommandLine: '-v' '-v'
init_freetype
get_path('font/font.desc') -> '/home/alagenchev/.mplayer/font/font.desc'
font: can't open file: /home/alagenchev/.mplayer/font/font.desc
font: Reading section: [info]
font: Reading section: [files]
RAW: /usr/local/share/mplayer/font//cp1250-a.raw 4800 x 32, 256 colors
RAW: /usr/local/share/mplayer/font//cp1250-b.raw 4800 x 32, 256 colors
font: Reading section: [characters]
font: Reading section: [files]
RAW: /usr/local/share/mplayer/font//osd-mplayer-a.raw 416 x 27, 256 colors
RAW: /usr/local/share/mplayer/font//osd-mplayer-b.raw 416 x 27, 256 colors
font: Reading section: [characters]
font: resampling alpha by factor 0.750 (192) DONE!
font: resampling alpha by factor 0.750 (192) DONE!
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (233 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Device or resource busy (it should be readable by the user.)
Using nanosleep() timing
get_path('input.conf') -> '/home/alagenchev/.mplayer/input.conf'
Can't open input config file /home/alagenchev/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
vo: X11 truecolor visual 0x21, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x23, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x24, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x25, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x26, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x27, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x28, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x29, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x2a, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x2b, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x2c, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x2d, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x2e, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x2f, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x30, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x31, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x32, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x33, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x34, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x35, depth 24, R:FF0000 G:FF00 B:FF
[ws] Screen depth: 32
[ws] size: 1024x768
[ws] origin: +0+0
[ws] red mask: 0xff0000
[ws] green mask: 0xff00
[ws] blue mask: 0xff
[ws] XShm version is 1.1
[ws] XShape version is 1.0
get_path('Skin') -> '/home/alagenchev/.mplayer/Skin'
SKIN dir 1: '/home/alagenchev/.mplayer/Skin'
SKIN dir 2: '/usr/local/share/mplayer/Skin'

Quote:
when you say you issued the command after reading the doc and at first you thought it worked, what did you try that you thought worked?
I just typed gmplayer and I didn't get any errors, so I thought the GUI would come up , but I was wrong.

Quote:
* dumb question: you did enable the gui when you built it, right? (./configure --enable-gui?) i'm probably showing my own ignorance as you might get a totally different error if you didn't, but i thought i'd ask just in case.
Yes, I did that

When I did modprobe rtc, I get :
modprobe: Can't locate module rtc
BTW I haven't built any modules, I am running the default kernel, and I don't know anything about modules or kernel compilation. I am just learning I was planning on doing kernel compilation right after I fix gmplayer(one thing at a time), but it looks like I need to recompile to fix gmplayer. What do you think? BTW Do I lose my configurations if I do kernel recompilation? BTW
gmplayer -v -v, says:

get_path('input.conf') -> '/home/alagenchev/.mplayer/input.conf'
Can't open input config file /home/alagenchev/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
get_path('input.conf') -> '/home/alagenchev/.mplayer/input.conf'
Can't open input config file /home/alagenchev/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config

What does that mean
 
  


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
missing /dev/rtc meres Linux - General 7 10-17-2005 01:37 PM
Not unknown problem with /dev/rtc carbono Linux - Newbie 1 10-13-2005 08:04 AM
mplayer: failed to open /dev/rtc no such device darkleaf Linux - Software 2 02-18-2005 05:07 PM
Share interrupts with /dev/rtc (IRQ 8) godOfThunder Linux - Software 1 08-03-2004 12:36 AM
/dev/rtc not currently available in VMWARE, Mandrake 9.2 Guitarist88 Linux - Software 1 04-11-2004 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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