<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=StephenKell</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=StephenKell"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/StephenKell"/>
	<updated>2026-04-28T11:34:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Problems_with_hwclock&amp;diff=39488</id>
		<title>Problems with hwclock</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Problems_with_hwclock&amp;diff=39488"/>
		<updated>2008-11-03T20:14:33Z</updated>

		<summary type="html">&lt;p&gt;StephenKell: My T22 and A22m (now stolen )-: also suffer from this&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page discusses the problem with /dev/rtc on certain models.&lt;br /&gt;
&lt;br /&gt;
== Problem description ==&lt;br /&gt;
On bootup,a message like this shows up:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;select() to /dev/rtc to wait for clock tick timed out&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The RTC kernel driver can't handle the system clock.&lt;br /&gt;
&lt;br /&gt;
== Possible solutions ==&lt;br /&gt;
&lt;br /&gt;
=== Using the --directisa switch of hwclock(8) ===&lt;br /&gt;
The '''hwclock''' command knows the parameter ''--directisa'' to access the system clock &amp;quot;directly&amp;quot; instead of accessing it by using /dev/rtc. There are several ways of doing this automatically.&lt;br /&gt;
&lt;br /&gt;
==== Generic instructions ====&lt;br /&gt;
Move /sbin/hwclock (or wherever it is located on your system) to '''/sbin/hwclock.dist''' and create the following shell script, which you place at /sbin/hwclock&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/sh&lt;br /&gt;
/sbin/hwclock.dist --directisa &amp;quot;$@&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make the script executable (apply the same permissions you had for ''hwclock'' before) and keep your packaging system from overwriting it on updates.&lt;br /&gt;
&lt;br /&gt;
==== Debian 4.0 (etch) ====&lt;br /&gt;
Add the following to '''/etc/default/rcS''':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;HWCLOCKPARS=&amp;quot;--directisa&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Debian 3.1 (sarge) and previous ====&lt;br /&gt;
Edit '''/etc/init.d/hwclock.sh''' and change all instances of &amp;quot;/sbin/hwclock&amp;quot; to &amp;quot;/sbin/hwclock --directisa&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Gentoo ====&lt;br /&gt;
Edit '''/etc/conf.d/clock''' and set ''CLOCK_OPTS'' to&lt;br /&gt;
&amp;lt;pre&amp;gt;CLOCK_OPTS=&amp;quot;--directisa&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Compiling RTC-support into the kernel instead of as a module ===&lt;br /&gt;
&lt;br /&gt;
Compiling RTC-support {{kernelconf|CONFIG_RTC||||||}} into the kernel instead of compiling it as a module seems to work also. Tested on: 2.6.20.6 at Thinkpad {{Z61m}} 9450-3HG&lt;br /&gt;
&lt;br /&gt;
=== Using Alternate RTC Drivers ===&lt;br /&gt;
&lt;br /&gt;
Use of an alternate RTC driver may yield better results.  RTC drivers available in recent kernels include:&lt;br /&gt;
* '''genrtc''' {{kernelconf|CONFIG_GEN_RTC||||||}}: A generic RTC emulation driver.&lt;br /&gt;
* '''rtc class''' {{kernelconf|CONFIG_RTC_CLASS||||||}}: A new RTC driver class which separates the userspace interface from the hardware-level drivers.  Several user-level interfaces may be exposed, including the venerable /dev/rtc node, independently of the actual underlying hardware.  These drivers are marked experimental as of kernel 2.6.21.&lt;br /&gt;
&lt;br /&gt;
Strictly speaking, for the new RTC class drivers, you need to load a user-level interface driver as well as a hardware driver, making these drivers more complex to use.  However, in many cases, loading just the user-level interface driver rtc_dev is sufficient to get hwclock working.&lt;br /&gt;
&lt;br /&gt;
All RTC drivers may be compiled as loadable modules.  To test which driver works best for you, load each driver in turn and use hwclock to test results.  Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;# modprobe rtc&lt;br /&gt;
# hwclock --show&lt;br /&gt;
# rmmod rtc&lt;br /&gt;
# modprobe genrtc&lt;br /&gt;
# hwclock --show&lt;br /&gt;
# rmmod genrtc&lt;br /&gt;
# modprobe rtc_dev&lt;br /&gt;
# hwclock --show&lt;br /&gt;
# rmmod rtc_dev&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Affected Models ==&lt;br /&gt;
&lt;br /&gt;
*Thinkpad {{T60}} (not all models)&lt;br /&gt;
*Thinkpad {{T61}} (type 7662, maybe others)&lt;br /&gt;
*Thinkpad {{T60p}}&lt;br /&gt;
*Thinkpad {{X60s}}&lt;br /&gt;
*Thinkpad {{X61s}}&lt;br /&gt;
*Thinkpad {{Z61m}}&lt;br /&gt;
*Thinkpad {{Z61t}} (type 9440-CTO, maybe others)&lt;br /&gt;
*Thinkpad {{R60e}} (type 0657, maybe others)&lt;br /&gt;
*Thinkpad {{T22}} (type 2647, maybe others)&lt;br /&gt;
*Thinkpad {{T42}} (type 2373, maybe others)&lt;br /&gt;
*Thinkpad {{R52}} (type 1846)&lt;br /&gt;
*Thinkpad {{R61}} {type 8944, maybe others}&lt;br /&gt;
*Thinkpad {{A22m}}&lt;br /&gt;
&lt;br /&gt;
Note: Also affects Compaq Presario C300&lt;br /&gt;
&lt;br /&gt;
== Affected Operating Systems ==&lt;br /&gt;
&lt;br /&gt;
*Linux, all flavours. Tested with kernel 2.6.18, 2.6.19, 2.6.20.6, 2.6.21.1, 2.6.22.5&lt;/div&gt;</summary>
		<author><name>StephenKell</name></author>
		
	</entry>
</feed>