Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 476316

Summary: media-video/mplayer: RTC should be disabled
Product: Gentoo Linux Reporter: Nikoli <nikoli>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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