LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   /dev/rtc problem with gmplayer on Slackware 10 (https://www.linuxquestions.org/questions/linux-software-2/dev-rtc-problem-with-gmplayer-on-slackware-10-a-290672/)

alagenchev 02-15-2005 05:23 PM

/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?

KingOfDreams 02-27-2005 06:34 AM

I have exactly the same problem. I havenīt found any solution yet. :(

acid_kewpie 02-27-2005 06:52 AM

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.

alagenchev 02-27-2005 03:54 PM

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.

alagenchev 02-27-2005 04:01 PM

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.

acid_kewpie 02-27-2005 04:28 PM

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...

synaptical 02-27-2005 04:38 PM

Re: /dev/rtc problem with gmplayer on Slackware 10
 
...<edited out rc.local suggestion>

perfect_circle 02-27-2005 04:38 PM

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..

alagenchev 02-27-2005 04:49 PM

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.

synaptical 02-27-2005 05:11 PM

what is your video driver set to? try changing it from xv to x11, or vice versa.

alagenchev 02-27-2005 05:33 PM

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?

:confused: :cry: :cry: :cry: :confused: :mad: :cry:

synaptical 02-27-2005 05:56 PM

try here:
http://www.mplayerhq.hu/DOCS/HTML-si...layer.html#rtc

alagenchev 02-27-2005 06:27 PM

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.
:eek: :confused: :mad: :cry:

synaptical 02-27-2005 06:46 PM

> 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.

alagenchev 02-27-2005 06:57 PM

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 :newbie: 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


All times are GMT -5. The time now is 03:32 PM.