LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2007, 09:59 AM   #1
silencestone
Member
 
Registered: Mar 2006
Location: USA
Distribution: [Current: Ubuntu, openSUSE, Arch] | {Past: Vector, Deli, Mint, Wolvix, OpenSUSE, Slackware, Puppy}
Posts: 71

Rep: Reputation: 15
Question hwclock error: "select() to /dev/rtc to wait for clock tick timed out"


After any unexpected loss of power, the hardware and system clocks on my laptop need resetting. I do this with date -s and hwclock --systohc. The last time I did this, hwclock spat an error at me:
Code:
root@wolvix# hwclock --systohc
hwclock: select() to /dev/rtc to wait for clock tick timed out
And of course, the hardware clock doesn't change. I can't access it in the BIOS, and I get the same failure on any Live-cd tried so far. What could be the problem? How do I fix it?
 
Old 02-04-2007, 12:13 PM   #2
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
looks like the rtc device driver is not up and functioning properly.
look at cat /proc/interrupts
try the option --directisa in the hwclock command

possible APIC problem ?
 
Old 02-04-2007, 06:21 PM   #3
silencestone
Member
 
Registered: Mar 2006
Location: USA
Distribution: [Current: Ubuntu, openSUSE, Arch] | {Past: Vector, Deli, Mint, Wolvix, OpenSUSE, Slackware, Puppy}
Posts: 71

Original Poster
Rep: Reputation: 15
Smile

This is the output of cat /proc/interrupts:
Code:
01:53:28|~#: cat /proc/interrupts
           CPU0
  0:    1999964          XT-PIC  timer
  1:      13538          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  8:          0          XT-PIC  rtc
  9:          7          XT-PIC  acpi
 10:          6          XT-PIC  ohci_hcd:usb1, ohci_hcd:usb2, ehci_hcd:usb3
 11:    1665559          XT-PIC  yenta, yenta, Intel 82801CA-ICH3, wifi0, radeon@pci:0000:01:00.0
 12:      71638          XT-PIC  i8042
 14:      19339          XT-PIC  ide0
 15:         11          XT-PIC  ide1
NMI:          0
ERR:          0
rtc is listed at least...Then this:
Code:
06:53:08|~#: hwclock --directisa
Fri Jan  4 00:00:00 1980  -0.976821 seconds
06:53:17|~#: hwclock --directisa --systohc
06:53:31|~#: hwclock
Sun Feb  4 18:53:35 2007  -0.105998 seconds
06:53:34|~#: date
Sun Feb  4 18:54:02 EST 2007
So that seemed to work. Thank you, studioj!

Hopefully it sticks through a reboot: hwclock runs at every boot. If there's still something wrong with rtc or what have you, well I'll probably be back here.
 
Old 02-04-2007, 10:43 PM   #4
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
yea your rtc IRQ 8 says it has gotten 0 interupts.
that just ain't right.

don't know a solution for you though sorry.
you can change your boot/shutdown scripts to include --directisa
still a nasty hack to cover up the problem but it will work the clock anyway.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
Error message "do_ypcall: clnt_call: RPC: Timed out" mks_jangra Linux - Networking 4 10-24-2006 06:29 AM
Error: "Could not connect data socket, Connection timed out." tigerflag Linux - Software 5 01-17-2006 01:26 AM
gmplayer message at start-"echo 1024 > /proc/sys/dev/rtc/max-user-freq" Mutation_1101 Slackware 7 01-11-2006 07:46 PM
Error.. I got during Restart Linux System is " [drm-i830-wait-ring] *Error*Lookup" zameer_india Linux - Networking 0 09-29-2004 04:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration