linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Luming Yu <luming.yu@gmail.com>, emisca <emisca.ml@gmail.com>,
	Alexey Starikovskiy <alexey.y.starikovskiy@linux.intel.com>,
	Pieter De Wit <Pieter.DeWit@vodacom.co.za>,
	linux-acpi@vger.kernel.org, dtor@mail.ru
Subject: Re: Fan speeds on HP nc6400 and nc8430
Date: Mon, 05 Feb 2007 19:59:00 +0100	[thread overview]
Message-ID: <1170701940.25027.422.camel@d36.suse.de> (raw)
In-Reply-To: <200701240954.32742.bjorn.helgaas@hp.com>

On Wed, 2007-01-24 at 09:54 -0700, Bjorn Helgaas wrote:
> On Tuesday 23 January 2007 21:38, Bjorn Helgaas wrote:
> > On Tuesday 23 January 2007 21:19, Luming Yu wrote:
> > > On 1/19/07, emisca <emisca.ml@gmail.com> wrote:
> > > > The TZ4 thermal zone on all the hp compaq line nx**** and nc**** is
> > > > not a temperature but the fan speed. You can see this information on
> > > > the web and on hp forums.
> > > 
> > > Where is the hp forums.
> > 
> > I don't work on laptops, so I can't confirm this, but Google found
> > this (from "tz4 thermal zone fan speed hp"):
> > 
> > http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1052925
> 
> Someone also sent me this, which I'll include in case it helps anybody
> else.  Obviously, scripts like the one mentioned below are stop-gaps
> that shouldn't be necessary.  But the script might have useful hints
> about how to fix the kernel so the script would no longer be needed.
> 
> > Take a look at this:
> > http://daniel.graziotin.net/2006/12/02/hp-nx6325-and-friends-thermal-problems-solved this fixed my thermal problem.
> > And make sure you unload the psmouse module during halt/reboot
> > otherwise you have problemes when you start your notebook again.
> > (symptom's: very long BIOS-Boot, ACPI-problems (thermal)..)

I have a patch that should fix the psmouse unload thing (at the end).
Not sure whether it's still needed in 2.6.20-rcX, there was some work
done... it definitely helps on 2.6.18 and 2.6.16 kernels.
Ok, I quickly tried on 2.6.20-rc7 and it seems to work without the
patch.
Maybe Dmitry can comment on that and push this one if still needed?

It's quite difficult to get the overview over the HP problems, as there
are several, some quite weird, and a lot different reports.

I've found out that the psmouse thing really fixes things.

and I got a lot reports that Alexeys patch (and the
unregister_serio_drivers attached) fixes up things:
https://bugzilla.novell.com/show_bug.cgi?id=179702
https://bugzilla.novell.com/show_bug.cgi?id=234475
As this patch broke Linus' machine, I understand that Len is a bit
anxious, but a lot people tested the reworked patch (it's currently in
10.2 and SLE10-SP1 SuSE branches), it would be great if Len can push it
at least for the next kernel cycle...

What is still broken, but patches are available, is fan state after
suspend/resume.

Thanks to Rafael, there is a list of patches that seem to help
(including Alexey's and some others) here:
http://www.sisk.pl/kernel/patches/2.6.20-rc5/

Most of them seem to come from:
http://bugzilla.kernel.org/show_bug.cgi?id=5534
and
http://bugzilla.kernel.org/show_bug.cgi?id=7122

Can someone give an overview about what is already submitted, what is
going to be merged and where/when (-mm, rcX, 2.6.21-rc1, ...).
All kind of comments/review/tests are very welcome...

Some of the patches miss a comment...

Thanks,

    Thomas

-----------------------------------------------------------

Subject: Unregister serio drivers on shutdown
From: Thomas Renninger <trenn@suse.de>


Unproved theory:
It seems that the Embedded Controller needs this at ACPI shutdown time:
    psmouse_set_state(psmouse, PSMOUSE_CMD_MODE);
    psmouse_set_state(psmouse, PSMOUSE_IGNORE);
done in psmouse_disconnect in psmouse module.

If this is not done on shutdown it leads to very strange BIOS/EC behaviour
on latest HP laptops which even survives a reboot (cpufreq cannot reach max
freq, BIOS takes long to boot, etc.). Then the fixed kernel needs to
be booted twice, that machine reaches max freq and behaves normal again.

Ref: http://bugzilla.kernel.org/show_bug.cgi?id=7689
https://bugzilla.novell.com/show_bug.cgi?id=179702


Signed-off-by: Thomas Renninger <trenn@suse.de>


 drivers/input/serio/serio.c |    1 +
 1 files changed, 1 insertion(+)

Index: linux-2.6.19/drivers/input/serio/serio.c
===================================================================
--- linux-2.6.19.orig/drivers/input/serio/serio.c
+++ linux-2.6.19/drivers/input/serio/serio.c
@@ -973,6 +973,7 @@ static struct bus_type serio_bus = {
 	.probe		= serio_driver_probe,
 	.remove		= serio_driver_remove,
 	.resume		= serio_resume,
+	.shutdown	= serio_driver_remove,
 };
 
 static int __init serio_init(void)



  parent reply	other threads:[~2007-02-05 18:59 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-19 11:29 Fan speeds on HP nc6400 and nc8430 Pieter De Wit
2007-01-19 14:23 ` Alexey Starikovskiy
2007-01-19 14:41   ` emisca
2007-01-24  4:19     ` Luming Yu
2007-01-24  4:38       ` Bjorn Helgaas
2007-01-24 14:54         ` Luming Yu
2007-01-24 16:54         ` Bjorn Helgaas
2007-01-26 16:31           ` emisca
2007-02-05 18:59           ` Thomas Renninger [this message]
2007-02-05 19:49             ` Dmitry Torokhov
2007-02-09  6:42               ` Dmitry Torokhov
2007-02-10 10:37                 ` Rafael J. Wysocki
2007-03-04 16:56                   ` emisca
2007-03-05 14:46                     ` Dmitry Torokhov
2007-02-06 11:58             ` Luming Yu
2007-02-06 15:04               ` Peter Clifton
2007-01-19 17:32 ` Maciej Rutecki
2007-01-29  9:13   ` Pieter De Wit
2007-01-30 20:22     ` emisca
  -- strict thread matches above, loose matches on Subject: below --
2007-01-19  7:50 Pieter De Wit
2007-01-19  8:14 ` Luming Yu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1170701940.25027.422.camel@d36.suse.de \
    --to=trenn@suse.de \
    --cc=Pieter.DeWit@vodacom.co.za \
    --cc=alexey.y.starikovskiy@linux.intel.com \
    --cc=bjorn.helgaas@hp.com \
    --cc=dtor@mail.ru \
    --cc=emisca.ml@gmail.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=luming.yu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).