LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-17-2008, 08:22 PM   #1
longus
LQ Newbie
 
Registered: Dec 2008
Posts: 12

Rep: Reputation: 0
rtc - not such thing


Hello! After upgrading to 12.2 and the kernel to new one i got an interesting issue. With boot up there is not an rtc probe, nor in /proc the rtc exist. I have a line in rc.local pleced there for mplayer: "echo 1024 > /proc/sys/dev/rtc/max-user-freq", which return something like "not such file or directory" and does not creates that.
This issue occures with generic-smp-2.6.27.7 kernel (recommended), as well as with self compiled 2.6.27.8 and 2.6.27.9 compiled by generic-smp config with minor changes.
rtc compiled as modules in the kernel are not loaded in boot time. "modprobe rtc-core" doesn't create /proc/sys/dev/rtc/.
The old kernel - 2.6.24.7 self compiled (by generic-smp-2.6.24.4) works well and with no problems in 12.2. The only issue with 12.1 was a boot worrning about rtc-core error, may be something about the hardware, but i had rtc loaded and this settings in /proc (well with the old kernel the mashine makes more noise then with some of the 2.6.27.*)
Is it a normal change in the 2.6.27.* kernels, replaceing rtc/max-user-freq with another function or there is a problem with them.
 
Old 12-18-2008, 12:50 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 64
Try creating the file in /proc with "touch" before "echo"ing to it - it shouldn't need to be, but just to play it safe:
Code:
...in /etc/rc.d/rc.local...
MAX_USER_FREQ=/proc/sys/dev/rtc/max-user-freq
echo -n "Doing stuff with $MAX_USER_FREQ..."
touch $MAX_USER_FREQ && echo "1024" > $MAX_USER_REQ && echo "DONE" || echo "FAILED"
 
Old 12-19-2008, 06:18 AM   #3
longus
LQ Newbie
 
Registered: Dec 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Well, i found it! The new kernel exports that in /sys/class/rtc/rtc0/max-user-freq" But, as rtc are campiled as modules, rtc-cmos module must be loaded, it shoudn't be loaded automatically.
rc.modules: modprobe rtc-cmos
rc.local: echo 1024 > /sys/class/rtc/rtc0/max-user-freq
However mplayer gurus suggest it is needed only in old mashines.
It was strange to me, the 2.6.24.7 kernel has option CONFIG_RTC, loads every rtc modules and exports rtc/max-user-freq anywhere, but the new 2.6.27.* doesn't have that option. Modprobe rtc-core doesn't loads rtc-cmos and doesn't exports that in /sys.
 
Old 12-19-2008, 06:38 AM   #4
arny
Bluewhite64
 
Registered: Jun 2006
Location: Baia Mare, Maramures, Romania
Distribution: Bluewhite
Posts: 87

Rep: Reputation: 17
Until udev 132 the rtc-core module was loaded at boot time. With udev 133 it does not load it anymore and you have to load the rtc-cmos manually or add to rc.modules, like you noticed longus

Last edited by arny; 12-19-2008 at 06:40 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RTC Alarm wakes up, even while BIOS has RTC alarm disabled mastermind2501 Linux - Newbie 2 12-22-2008 03:32 PM
About RTC of PXA270 xuhuang Linux - Embedded 1 01-14-2008 11:16 PM
Problem with rtc rogerscuall Linux - Software 0 08-09-2007 10:40 AM
Proc-rtc HeatSeaker Linux - Software 3 10-31-2004 08:50 AM
How to read the RTC ? oskernel Programming 3 10-17-2003 07:38 AM


All times are GMT -5. The time now is 06:41 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration