Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rtc advantages?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Sat Sep 04, 2004 12:50 pm    Post subject: rtc advantages? Reply with quote

can somebody enlighten on advantages of using rtc?? preferably some tutorial or some info links.

thnx in adv
Saurabh
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
bennettp
Guru
Guru


Joined: 22 Feb 2004
Posts: 335
Location: on my back and tumbling

PostPosted: Sat Sep 04, 2004 1:29 pm    Post subject: Reply with quote

Umm you might want to be a little more specific with your question. Are you talking about using the rtc in mplayer?

If you are, then using the rtc as the timer has the following advantages:
1. Its accurate to 1ms IIRC (which I'm told is very accurate).
2. It uses very little cpu time.

The alternative is "softsleep", which is just as accurate as the rtc, but uses lots of cpu time, or the default timer, which is not very accurate, but uses very little cpu time.

The rtc can be enabled (for normal users) in two steps:

1. "echo 1024 > /proc/sys/dev/rtc/max-user-freq". Add this line to your startup scripts (/etc/conf.d/local.start or something similar).

2. "chmod o+r /dev/misc/rtc". Add this to your startup script as well, or modify your udev.permissions or devfs.conf to do this automatically.

Alternatively, just run mplayer as root. This is generally a bad idea, as it poses a security risk.

Hope this helps.
_________________
Registered Linux User #363420
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Sat Sep 04, 2004 7:17 pm    Post subject: Reply with quote

thanx...........what about something of RTC in alsa???
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum