View previous topic :: View next topic |
Author |
Message |
Larcen Apprentice
Joined: 21 Mar 2004 Posts: 174
|
Posted: Sun Apr 17, 2005 2:39 pm Post subject: Error trying to stream using Streamtuner + XMMS + XMPLayer.. |
|
|
I get this rtc error..
Code: |
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
|
Anyone know why this is or how to resolve it? I'm not even sure what rtc is. I can stream fine using mplayer from the command line, and xine as well. Just not Streamtuner, XMMS, and XMPlayer. |
|
Back to top |
|
|
inode77 Veteran
Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Sun Apr 17, 2005 4:19 pm Post subject: |
|
|
rtc is the realtimeclock:
Code: | ~ # ls -la /dev/rtc
lrwxrwxrwx 1 root root 8 Apr 17 17:58 /dev/rtc -> misc/rtc
~ # ls -la /dev/misc/rtc
crw-rw-r-- 1 root root 10, 135 Apr 17 17:58 /dev/misc/rtc |
And unixrights on my machine are indicating that user read is no problem. |
|
Back to top |
|
|
Larcen Apprentice
Joined: 21 Mar 2004 Posts: 174
|
Posted: Sun Apr 17, 2005 5:46 pm Post subject: |
|
|
Code: |
(root@shell)[~]-> ls -la /dev/rtc
lr-xr-xr-x 1 root root 8 Apr 5 21:17 /dev/rtc -> misc/rtc
(root@shell)[~]-> ls -la /dev/misc/rtc
crw-r----- 1 root root 10, 135 Dec 31 1969 /dev/misc/rtc
(root@shell)[~]->
|
Is there a safe way to correct this? |
|
Back to top |
|
|
inode77 Veteran
Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Sun Apr 17, 2005 6:14 pm Post subject: |
|
|
This should be done automatically by udev/devfsd.
Manual correction (next reboot will probably overwrite the changes): Code: |
cd /dev/misc/rtc
chmod g+w rtc
chmod o+rw rtc |
Check "/etc/udev/permissions.d/50-udev.permissions" it should have a section like this:
Code: | # misc devices
misc/nvram:root:root:0660
misc/rtc:root:root:0664
misc/inotify:root:root:0666
|
|
|
Back to top |
|
|
Larcen Apprentice
Joined: 21 Mar 2004 Posts: 174
|
Posted: Sun Apr 17, 2005 6:54 pm Post subject: |
|
|
Hm.. I don't seem to have a /etc/udev/ directory, and applying the chmod changes to misc/rtc gives me this new error.
Code: | Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied |
|
|
Back to top |
|
|
inode77 Veteran
Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Sun Apr 17, 2005 7:25 pm Post subject: |
|
|
Make sure you compile rtc support into kernel and look for something called devfsd.d or similar in /etc.
I don't use devfsd because is marked deprecated. |
|
Back to top |
|
|
|