View previous topic :: View next topic |
Author |
Message |
sobers_2002 Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/83391048742c9f4cf11ba5.jpg)
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Sat Sep 04, 2004 12:50 pm Post subject: rtc advantages? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
bennettp Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/272902448427ca532a7644.png)
Joined: 22 Feb 2004 Posts: 335 Location: on my back and tumbling
|
Posted: Sat Sep 04, 2004 1:29 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
sobers_2002 Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/83391048742c9f4cf11ba5.jpg)
Joined: 16 Mar 2004 Posts: 1128
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|