- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Getting aroudn RTC interrupt trouble with hwclock ...
Operating System - Linux
1821061
Members
2904
Online
109631
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2007 02:47 AM
тАО02-06-2007 02:47 AM
Getting aroudn RTC interrupt trouble with hwclock locking system
Not sure if someone else had a lot of trouble with hwclock not been able to detect the interrupt signal from RTC (the test example from the Linux documentation does work). I have had quite a lot of trouble with this on my dv9000 notebook, where reading or saving time from the hardware clock has lead to system lockups.
This far the only "work around" I knew was to disable the usage of hwclock and then let ntp to set the time, this of course leads to quite bad time jumps in the logs during boot time.
While testing different versions of kernels and settings, I found that if you build into the kernel RTC support, you get the option "Set system time from RTC on startup", this seems to assume the time is in UTC.
Device Drivers --->
Real Time Clock --->
<*> RTC class
[*] Set system time from RTC on startup
So without hwclock and ntp, the time will now be okey, of course this won't fix the saving of system time to hardware clock, so ntp is wise to use, but now the difference in time should be quite small (seconds/minutes instead of weeks/months).
This far the only "work around" I knew was to disable the usage of hwclock and then let ntp to set the time, this of course leads to quite bad time jumps in the logs during boot time.
While testing different versions of kernels and settings, I found that if you build into the kernel RTC support, you get the option "Set system time from RTC on startup", this seems to assume the time is in UTC.
Device Drivers --->
Real Time Clock --->
<*> RTC class
[*] Set system time from RTC on startup
So without hwclock and ntp, the time will now be okey, of course this won't fix the saving of system time to hardware clock, so ntp is wise to use, but now the difference in time should be quite small (seconds/minutes instead of weeks/months).
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2007 09:42 AM
тАО02-06-2007 09:42 AM
Re: Getting aroudn RTC interrupt trouble with hwclock locking system
Shalom,
Two things:
1) GREAT itrc user name
2) Why not just use ntp to keep system time and move on to something fun?
SEP
Two things:
1) GREAT itrc user name
2) Why not just use ntp to keep system time and move on to something fun?
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2007 08:21 PM
тАО03-07-2007 08:21 PM
Re: Getting aroudn RTC interrupt trouble with hwclock locking system
I use ntp, but there are a couple of issues,
1. ntp isn't started before after network is up running and that leads to that everything that is done before ntp is started will have the wrong time, which can lead to unnecessary error messages.
2. Times when you can't connect to the net, you will have a clock that can be in the far future, which can cause real trouble when you reboot and get the clock set to correct time. Say you had to recompile the kernel when you didn't have access to use ntp and you need to make another change when you rebooted and have access to ntp, you must to run "make mrproper" and even it don't fix it properly.
1. ntp isn't started before after network is up running and that leads to that everything that is done before ntp is started will have the wrong time, which can lead to unnecessary error messages.
2. Times when you can't connect to the net, you will have a clock that can be in the far future, which can cause real trouble when you reboot and get the clock set to correct time. Say you had to recompile the kernel when you didn't have access to use ntp and you need to make another change when you rebooted and have access to ntp, you must to run "make mrproper" and even it don't fix it properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2007 10:04 PM
тАО03-07-2007 10:04 PM
Re: Getting aroudn RTC interrupt trouble with hwclock locking system
Which Linux distribution and which kernel version you're using?
The RTC is one of the oldest parts of the PC "standard". It hasn't changed much from the days of the ISA bus, and should be still accessible the same way as with them.
The hwclock command has the option "--directisa", which forces it to skip the newer methods to access the RTC, and use the old method instead. If it works, you might edit the startup scripts to use this option to work around the problem.
By a quick Googling, it appears that the problem might be avoided with a "acpi=off" boot option. With a notebook computer, that might be acceptable during the OS installation, but disabling the power management features of a notebook computer during normal use is kind of missing the point of having a portable computer.
If "acpi=off" makes the problem go away, it would suggest the problem may be with the ACPI power management system. There might be several alternatives:
- is there a BIOS update available for your notebook? It might contain an ACPI firmware fix to solve your problem.
- can you try a newer version of the Linux kernel? The ACPI subsystem code in the Linux kernel is very complex and constantly being updated to solve or work around any known problems.
The RTC is one of the oldest parts of the PC "standard". It hasn't changed much from the days of the ISA bus, and should be still accessible the same way as with them.
The hwclock command has the option "--directisa", which forces it to skip the newer methods to access the RTC, and use the old method instead. If it works, you might edit the startup scripts to use this option to work around the problem.
By a quick Googling, it appears that the problem might be avoided with a "acpi=off" boot option. With a notebook computer, that might be acceptable during the OS installation, but disabling the power management features of a notebook computer during normal use is kind of missing the point of having a portable computer.
If "acpi=off" makes the problem go away, it would suggest the problem may be with the ACPI power management system. There might be several alternatives:
- is there a BIOS update available for your notebook? It might contain an ACPI firmware fix to solve your problem.
- can you try a newer version of the Linux kernel? The ACPI subsystem code in the Linux kernel is very complex and constantly being updated to solve or work around any known problems.
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP