You are not logged in.

#1 2007-03-31 14:28:25

raymano
Member
Registered: 2006-10-13
Posts: 357
Website

hibernate-script problem

I have recently noticed the following message after resuming from a hibernate (suspend to disk):

select() to /dev/rtc to wait for clock tick timed out

But the clock time is restored correctly.

I'm using kernel26beyond. Any ideas what's causing this message?


FaunOS: Live USB/DVD Linux Distro: http://www.faunos.com

Offline

#2 2007-04-02 10:14:43

Captain Spaulding
Member
Registered: 2006-11-16
Posts: 115
Website

Re: hibernate-script problem

What does

/sbin/hwclock --show

print?

Offline

#3 2007-04-03 15:34:45

raymano
Member
Registered: 2006-10-13
Posts: 357
Website

Re: hibernate-script problem

Captain Spaulding wrote:

What does

/sbin/hwclock --show

print?

After about 10 seconds it times out and says:

select() to /dev/rtc to wait for clock tick timed out

FaunOS: Live USB/DVD Linux Distro: http://www.faunos.com

Offline

#4 2007-04-03 16:30:23

Captain Spaulding
Member
Registered: 2006-11-16
Posts: 115
Website

Re: hibernate-script problem

Please check

/sbin/hwclock --directisa --show

If this works, we have to and add a flag such as CLOCKFLAGS or CLOCKOPTS. Unfortuntaly I'm not accustomed enough to Arch's idiosyncrasies to tell where this must be done.

Offline

#5 2007-04-03 16:55:19

raymano
Member
Registered: 2006-10-13
Posts: 357
Website

Re: hibernate-script problem

It does work and returns:

Tue 03 Apr 2007 10:54:59 AM MDT  -0.427332 seconds

FaunOS: Live USB/DVD Linux Distro: http://www.faunos.com

Offline

#6 2007-04-04 14:42:46

Captain Spaulding
Member
Registered: 2006-11-16
Posts: 115
Website

Re: hibernate-script problem

Maybe you open a new thread asking where to put such an option, for I don't know wink

Offline

#7 2007-04-05 04:02:12

raymano
Member
Registered: 2006-10-13
Posts: 357
Website

Re: hibernate-script problem

Captain Spaulding wrote:

Maybe you open a new thread asking where to put such an option, for I don't know wink

I'm not sure what you mean. Could you please explain? Why couldn't the script try

"/sbin/hwclock --show" first and if that fails try "/sbin/hwclock --directisa --show" next?

Last edited by raymano (2007-04-05 04:02:34)


FaunOS: Live USB/DVD Linux Distro: http://www.faunos.com

Offline

#8 2007-04-05 10:03:48

Captain Spaulding
Member
Registered: 2006-11-16
Posts: 115
Website

Re: hibernate-script problem

What I meant is that you need the --direct-isa option to remove the error message, but entering it by hand everytime isn't a good solution. There must be a place somewhere in the configuration files of Arch to add the option permanently, but I don't know where or which configuration file this would be.

Under Debian you would add the option in /etc/conf.d, under RHEL/CentOS you would add the option in /etc/sysconfig/clock, but I don't know where to add this option in Arch. sad

Offline

#9 2007-04-05 15:09:07

raymano
Member
Registered: 2006-10-13
Posts: 357
Website

Re: hibernate-script problem

Well, Arch has /etc/conf.d.

Also I checked the man page on hwclock and here's what it says about directisa:

--directisa
              is  meaningful  only on an ISA machine or an Alpha (which imple-
              ments enough of ISA to be, roughly speaking, an ISA machine  for
              hwclock's  purposes).   For  other  machines,  it has no effect.
              This option tells hwclock to use explicit  I/O  instructions  to
              access  the  Hardware  Clock.  Without this option, hwclock will
              try to use the /dev/rtc device (which it assumes to be driven by
              the rtc device driver).  If it is unable to open the device (for
              read), it will use the explicit I/O instructions anyway.

             The rtc device driver was new in Linux Release 2.

As you see it says --directisa has no effect on non ISA machines. Why not make it the default option?

Last edited by raymano (2007-04-06 05:08:07)


FaunOS: Live USB/DVD Linux Distro: http://www.faunos.com

Offline

#10 2007-04-06 06:52:46

Captain Spaulding
Member
Registered: 2006-11-16
Posts: 115
Website

Re: hibernate-script problem

raymano wrote:

Well, Arch has /etc/conf.d.

Yes, of course. My mistake. I meant a clock file in this directory.

Also I checked the man page on hwclock and here's what it says about directisa:

--directisa
              is  meaningful  only on an ISA machine or an Alpha (which imple-
              ments enough of ISA to be, roughly speaking, an ISA machine  for
              hwclock's  purposes).   For  other  machines,  it has no effect.
              This option tells hwclock to use explicit  I/O  instructions  to
              access  the  Hardware  Clock.  Without this option, hwclock will
              try to use the /dev/rtc device (which it assumes to be driven by
              the rtc device driver).  If it is unable to open the device (for
              read), it will use the explicit I/O instructions anyway.

             The rtc device driver was new in Linux Release 2.

As you see it says --directisa has no effect on non ISA machines. Why not make it the default option?

I don't know. All I know is that many PCs may not have ISA slots but use an internal ISA bus to communicate system data such as sensors readouts.

Offline

Board footer

Powered by FluxBB