public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: "Renato S. Yamane" <yamane@diamondcut.com.br>
Cc: "Pavel Machek" <pavel@suse.cz>,
	linux-kernel@vger.kernel.org, rjw@sisk.pl,
	power-management_other@kernel-bugs.osdl.org
Subject: Re: [Bug 10797] Battery is drained after poweroff
Date: Wed, 8 Oct 2008 00:35:18 +0200	[thread overview]
Message-ID: <200810080035.19040.rjw@sisk.pl> (raw)
In-Reply-To: <20494.201.3.158.14.1223417777.mandic:mail - neo@webmail.mandic.com.br>

On Wednesday, 8 of October 2008, Renato S. Yamane wrote:
> Kok, Auke wrote:
> > Pavel Machek wrote:
> >> Renato S. Yamane wrote:
> >>> Pavel Machek wrote:
> >>> Renato S. Yamane wrote:
> >>>>> Can someone help us with this bug?
> >>>>> <http://bugzilla.kernel.org/show_bug.cgi?id=10797>
> >>>>>
> >>>>> Same problem is reported in Ubuntu:
> >>>>> <https://bugs.launchpad.net/ubuntu/+source/linux/+bug/110784>
> >>>>>
> >>>>> This is not a hardware problem, because if the same laptop is poweroff
> >>>>> by Windows, battery charge don't change.
> >>>>
> >>>> ...and it is not linux problem because it works okay on my thinkpad. See?
> >>>
> >>> Yes, this is a Linux problem (at least in release >= 2.6.22)
> >>> This happening *only* in Linux (Kernel >=2.6.22).
> >>
> >> Wow, now that's useful info.
> 
> I don´t comment this before because we already said this in bug reports
> (links above).
> 
> >> I guess you _could_ do git bisect? ;-).
> 
> So sorry, but I really don´t now how can I do this.
> I´m an user, not developer. Can you send me a "how-to" about git bisect?

Seriously, this may be the fastest way to find out where the problem is.

It follows from your reports that the problem is present in 2.6.22, although
it wasn't present in 2.6.21.  If that's correct, you can do the following:
1) Clone the Linus' -git repository (if you have a copy already, you can use it)
2) Go to the directory containing your copy of the Linus' repo and do
	# git bisect start
	# git bisect good v2.6.21
	# git bisect bad v2.6.22
3) Wait for git to select a commit to test, build the kernel and test it.
   If it works correctly, do
	# git bisect good
   Otherwise, do
	# git bisect bad
4) Repeat 3) until you end up with single commit.

[Unfortunately this procedure may not converge for you (eg. you may encounter
a kernel version that won't compile etc.), but hopefully it will.  Then, you
will know which particular commit caused the problem to appear.]

5) When you're done, do
	# git bisect reset

Thanks,
Rafael

  parent reply	other threads:[~2008-10-07 22:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20494.201.3.158.14.1223417777.mandic:mail - neo@webmail.mandic.com.br>
2008-10-07 22:28 ` [Bug 10797] Battery is drained after poweroff Pavel Machek
2008-10-07 22:35 ` Rafael J. Wysocki [this message]
     [not found] <6868482180440484264@unknownmsgid>
2008-10-25 23:42 ` Justin Mattock
     [not found] <4199.200.180.173.111.1224358421.mandic:mail - neo@webmail.mandic.com.br>
2008-10-18 20:12 ` Rafael J. Wysocki
2008-10-06 11:16 Renato S. Yamane
2008-10-07 13:42 ` Pavel Machek
2008-10-07 16:06   ` Renato S. Yamane
2008-10-07 19:00     ` Pavel Machek
2008-10-07 19:12       ` Kok, Auke
2008-10-07 19:30 ` Rafael J. Wysocki

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=200810080035.19040.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    --cc=power-management_other@kernel-bugs.osdl.org \
    --cc=yamane@diamondcut.com.br \
    /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