ferenc
May 3rd, 2008, 10:55 AM
I am running hardy on an Acer Travelmate 4100.
When the laptop is on battery, every java app that I've tried (including System->Preferences->Plugin Control Panel) accesses the hard disk every second. It sounds like a mechanical clock ticking. This stops if I plug in the AC power, and starts again if I disconnect it.
I have tried java versions sun-java6-jre and sun-java5-jre, they both do this.
Has anybody else seen this bug? How do I fix it?
I get the ticking even with this simple test program:
class Test
{
public static void main(String[] args)
{
while (true)
{
System.out.print(".");
try
{
Thread.sleep(10000);
}
catch(java.lang.InterruptedException e)
{
}
}
}
}
but it does not happen with the equivalent C program:
#include <stdio.h>
int main(int argc, char** argv)
{
while(1)
{
putchar('.');
fflush(stdout);
sleep(10);
}
}
When the laptop is on battery, every java app that I've tried (including System->Preferences->Plugin Control Panel) accesses the hard disk every second. It sounds like a mechanical clock ticking. This stops if I plug in the AC power, and starts again if I disconnect it.
I have tried java versions sun-java6-jre and sun-java5-jre, they both do this.
Has anybody else seen this bug? How do I fix it?
I get the ticking even with this simple test program:
class Test
{
public static void main(String[] args)
{
while (true)
{
System.out.print(".");
try
{
Thread.sleep(10000);
}
catch(java.lang.InterruptedException e)
{
}
}
}
}
but it does not happen with the equivalent C program:
#include <stdio.h>
int main(int argc, char** argv)
{
while(1)
{
putchar('.');
fflush(stdout);
sleep(10);
}
}