Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476316 - media-video/mplayer: RTC should be disabled
Summary: media-video/mplayer: RTC should be disabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-09 20:33 UTC by Nikoli
Modified: 2013-07-29 20:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2013-07-09 20:33:06 UTC
Now mplayer ebuilds have +rtc in IUSE, which is completely nonsense.
From man mplayer:
-rtc (RTC only)
Turns on usage of the Linux RTC (realtime clock - /dev/rtc) as timing mechanism. This wakes up the process every 1/1024 seconds to check the current time. Useless with modern Linux kernels configured for desktop use as they already wake up the process with similar accuracy when using normal timed sleep.


$ mplayer -rtc -rtc-device /dev/rtc0 /usr/share/sounds/KDE-Im-Phone-Ring.wav
MPlayer 1.1-4.6.3 (C) 2000-2012 MPlayer Team
Failed to open /dev/rtc0: Permission denied (it should be readable by the user.)

$ ls -la /dev/rtc*
lrwxrwxrwx 1 root root      4 Jul  9 07:03 /dev/rtc -> rtc0
crw------- 1 root root 254, 0 Jul  9 07:03 /dev/rtc0

mplayer2 ebuilds have rtc disabled, mpv devs removed it:
https://github.com/mpv-player/mpv/commit/614f847516b7ed98784b8d491a417e037ff2f391
Comment 1 Alexis Ballier gentoo-dev 2013-07-29 20:16:52 UTC
   29 Jul 2013; Alexis Ballier <aballier@gentoo.org> mplayer-9999.ebuild:
+  do not default enable rtc, by Nikoli, bug #476316
+

thanks