Re: [Bug 971061] Re: acpi reports battery state incorrectly

2014-02-22 Thread erikj
Hi,

What do you mean by there hasn't been any activity in it recently? Have
you checked the comments? One person actually found a workaround after
almost 2 years. There has been a ton of happy comments on that.

But for myself - I am not using the laptop nor Ubuntu anymore, so I cannot
confirm anything about it.

But if you check the comments then it is quite obvious that the problem is
still there and there is a small program that you can use for a workaround.


Regards,
Erik


On Sat, Feb 22, 2014 at 1:07 PM, Christopher M. Penalver 
christopher.m.penal...@gmail.com wrote:

 erikj, this bug was reported a while ago and there hasn't been any
 activity in it recently. We were wondering if this is still an issue? If
 so, could you please test for this with the latest development release
 of Ubuntu? ISO images are available from http://cdimage.ubuntu.com
 /daily-live/current/ .

 If it remains an issue, could you please run the following command in
 the development release from a Terminal
 (Applications-Accessories-Terminal), as it will automatically gather
 and attach updated debug information to this report:

 apport-collect -p linux 971061

 If reproducible, could you also please test the latest upstream kernel
 available (not the daily folder) following
 https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional
 upstream developers to examine the issue. Once you've tested the upstream
 kernel, please comment on which kernel version specifically you tested. If
 this bug is fixed in the mainline kernel, please add the following tags:
 kernel-fixed-upstream
 kernel-fixed-upstream-VERSION-NUMBER

 where VERSION-NUMBER is the version number of the kernel you tested. For
 example:
 kernel-fixed-upstream-3.14-rc3

 This can be done by clicking on the yellow circle with a black pencil icon
 next to the word Tags located at the bottom of the bug description. As
 well, please remove the tag:
 needs-upstream-testing

 If the mainline kernel does not fix this bug, please add the following
 tags:
 kernel-bug-exists-upstream
 kernel-bug-exists-upstream-VERSION-NUMBER

 As well, please remove the tag:
 needs-upstream-testing

 Once testing of the upstream kernel is complete, please mark this bug's
 Status as Confirmed. Please let us know your results. Thank you for your
 understanding.

 ** Tags added: quantal

 ** Tags removed: acpi battery
 ** Tags added: needs-kernel-logs needs-upstream-testing

 ** Changed in: linux (Ubuntu)
Importance: Undecided = Medium

 ** Changed in: linux (Ubuntu)
Status: Confirmed = Incomplete

 ** Project changed: acpi = linux

 --
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/971061

 Title:
   acpi reports battery state incorrectly

 Status in The Linux Kernel:
   Incomplete
 Status in linux package in Ubuntu:
   Incomplete

 Bug description:
   I have a new Samsung 9-series laptop (NP900X3B) and the battery state
   is detected incorrectly. Basically the state what was at the time of
   boot stays active all the time - regardless of the ac-adapter state.

   Here is output from acpitool -a -b in various situations:

   When booted with charger connected and charger is still connected:
 Battery #1 : charging, 47.00%, 01:00:43
 AC adapter : on-line

   When booted with charger connected and charger is now disconnected:
 Battery #1 : charging, 47.00%, 01:36:59
 AC adapter : off-line
   [The battery couldn't possibly be charging when the AC adapter is
 offline!]

   When booted with charger disconnected and charger is still disconnected:
 Battery #1 : discharging, 47.00%, 01:39:44
 AC adapter : off-line

   When booted with charger disconnected and charger is now connected:
 Battery #1 : discharging, 47.00%, 00:53:43
 AC adapter : on-line
   [The battery is actually charging as the AC adapter is online]

   The percentage and time are correctly updated when the battery is
   actually charging or discharging - regardless of the reported state.
   So the state is the only thing that is incorrect. However a number of
   applications make their decisions based on this state (battery
   monitor, jupiter, etc.) and therefore behave incorrectly.

   lshal -m doesn't report anything when I plug the charger in or out.

   ProblemType: Bug
   DistroRelease: Ubuntu 12.04
   Package: acpi (not installed)
   ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
   Uname: Linux 3.2.0-21-generic x86_64
   ApportVersion: 2.0-0ubuntu2
   Architecture: amd64
   Date: Sun Apr  1 22:50:35 2012
   EcryptfsInUse: Yes
   InstallationMedia: Ubuntu 12.04 LTS Precise Pangolin - Beta amd64
 (20120328)
   ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
   SourcePackage: acpi
   UpgradeStatus: No upgrade log present (probably fresh install)

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/linux/+bug/971061/+subscriptions


-- 

Re: [Bug 971061] Re: acpi reports battery state incorrectly

2014-02-22 Thread Marcello
Hello,
   I am affected by this bug since, a couple of years (same laptop here,
530U). I have personally experienced it on my laptop on multiple Linux
distributions (including Debian and Arch).

I perfectly understand your policies, but I do not really see the
rationale behind closing the bug with WONTFIX and asking a lot of people
to open a lot of new bugs to signal the very same thing.

For me, the bug is indeed solved by the juanmanuel's userspace program
(thanks a lot!) I've been running that program since it was
posted on this thread, and it works like a charm.

The bug is also clearly described upstream on the kernel Bugzilla, where
juanmanuel's solution is being turned into a kernel patch, so an
upstream fix is likely to be on the way.

I hope you'll find a way to put in evidence the relevant information,
especially when there will be 100 opened issues for this SINGLE problem
(or 100 issues immediately closed as duplicates???): this is clearly a
SINGLE bug with a SINGLE reference to a SINGLE upstream issue.

From my side, I am *not* going to open another bug just to increase the
Internet entropy (and reduce the likelihood for someone searching about
the problem to find the workaround)...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 971061] Re: acpi reports battery state incorrectly

2014-02-19 Thread Moræus
I can confirm this works on a Samsung NP900x4c.

The same EC port range in DSDT.

Great work! Thanks a lot.

Sent from my iPhone

 On 18 Feb 2014, at 18:49, juanmanuel rockerit...@gmail.com wrote:
 
 FINALLY!! I found the exact problem _and_ a SOLUTION!!!   (NOTE: see
 attached program)
 
 The problem is that Samsung's embedded controller stops sending GPE
 events if it still is waiting for previous GPE events to be queried from
 it.
 
 It will remain in that state until one hits the reset hole in the back
 of the latop, or flashes a bios, or queries the events.
 
 --- But how will the OS query the events if the GPE interrupt isn't
 produced anymore? Classic chicken and egg. 
 
 So I made a small program that does just that -- it queries events from
 the EC until there are no more to query. AND IT WORKED!! This restores
 the normal behavior, and AC, Battery and LID events start to be produced
 again. One would ideally run it after resume from sleep. I based it
 after observing normal behavior in linuxkernel/drivers/acpi/ec.c, and
 afterwards behaviour with laptop in problem state.
 
 Following is the program (I will attach it too). You can either:
 
 1) Run it by hand after resume from sleep.
 
 2) Or Automatically run it from /usr/lib/pm-utils/sleep.d/99-your-
 script-here  (you can use 95led as basis).
 
 3) Or Insert this code in the linux kernel at the beginning of the
 acpi_ec_unblock_transactions_early() function in
 linuxkernel/drivers/acpi/ec.c and recompile the kernel. The cmd and
 data ports are known in ec.c so they don't need to be hardcoded there.
 
 PS: Other things that I already tried that didn't fix it:
1) Please note that I already tried commenting acpi_disable_all_gpes() 
 from linuxkernel/drivers/acpi/sleep.c and this didn't have an effect (I 
 guess unreplied events were already accumulated in the EC prior to resume).
2) I also tried reverting to calling acpi_enable() on sleep.c instead of 
 setting the ACPI_BITREG_SCI_ENABLE. No effect, issue still resurfaced after 
 some suspends.
3) I also tried commenting out the call to 
 acpi_ec_unblock_transactions_early() in sleep.c, but no effect.
 
 PS2: Another way to force the embedded controller to be in a problem state 
 that I discovered, is to:
  1)   echo disable  /sys/firmware/acpi/interrupts/gpe17
  2)   plug, unplug, plug, unplug, plug, unplug, plug, unplug  (8 actions)
  3)   echo enable  /sys/firmware/acpi/interrupts/gpe17
 
 
 Following are the two files with fixes which I'll attach too:
 
 NOTE: you must check that embedded controller ports are 0x62 and 0x66
 looking in your DSDT. RUN AT YOUR OWN RISK!!!
 
  samsung_fix_ec_events.c --
 #include stdio.h
 #include unistd.h
 #include sys/io.h
 
 /* Compile with:
 *gcc -o samsung_fix_ec_events samsung_fix_ec_events.c
 * Run as:
 *sudo ./samsung_fix_ec_events
 * You may copy it to /usr/local/bin and then call it 
 * automatically after resume from sleep with a /usr/lib/pm-utils/sleep.d 
 script:
 *sudo cp ./samsung_fix_ec_events /usr/local/bin/
 */
 
 /* Constants: */
 enum ec_command {
/* Standard command for querying LID, Battery and AC events: */
ACPI_EC_COMMAND_QUERY = 0x84,
 
/* ATTENTION: PLEASE edit the following two according to your DSDT. 
 * For Samsung Series 5 NP530U3C, they are 0x62 and 0x66 respectively.
 *   They seem to be the same for many other samsung models, but if you 
 don't check 
 * them first in the H_EC._CRS section of your DSDT, you run it at YOUR 
 OWN RISK: */
EC_DATA_PORT = 0x62,  
EC_COMMAND_PORT = 0x66
 };
 
 int main (int argc, char** argv) {
char status = 0;
char data = 0;
int count = 0;
 
if (iopl(3)) {
printf(Error: Permission to read/write to EmbeddedController port not 
 granted.\n);
return 1;
}
 
/* Query AC, Battery, LID, etc. events until there are no more. 
 * This clears them for the EC so that it can send them again in the 
 future, thus unblocking the EC. */
do {
outb(ACPI_EC_COMMAND_QUERY, EC_COMMAND_PORT);
status = inb(EC_COMMAND_PORT);
data = inb(EC_DATA_PORT);
/* printf(CommandQuery 0x84, status=0x%x, data=0x%x\n, status, 
 data); */
} while (data != 0  ++count  1);  /* Note: No less than a thousand 
 max count */
 
printf(EmbeddedController GPE events flushed. New events can be
 produced now.\n);
 
return 0;
 }
 END samsung_fix_ec_events.c --
 
 
 - 99samsung_fix_ec_events --
 #!/bin/sh
 # NOTE: Put this file in:  /usr/lib/pm-utils/sleep.d/99samsung_fix_ec_events
 #
 # On some samsung laptops (series 5 2012, series 9 2011, etc) , if many EC
 # GPE events are produced during sleep (AC  plugged/unplugged, battery % 
 change
 # change, LID open/close, etc), and they are not queried, the
 # EmbeddedController stops sending them 

Re: [Bug 971061] Re: acpi reports battery state incorrectly

2014-02-19 Thread tristan_lefebure
Bug also fixed for a NP530U4B

Thank you Juan


On Wed, Feb 19, 2014 at 7:05 PM, juanmanuel rockerit...@gmail.com wrote:

 (Also confirmed in this thread Samsung NP900x4c )

 --
 You received this bug notification because you are subscribed to a
 duplicate bug report (967161).
 https://bugs.launchpad.net/bugs/971061

 Title:
   acpi reports battery state incorrectly

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/acpi/+bug/971061/+subscriptions


-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 971061] Re: acpi reports battery state incorrectly

2014-02-07 Thread Vinícius Angiolucci Reis
@mmalmeida: I'm currently on 3.12.9 kernel release and the problem
persists. Reset the battery power as I mentioned before is only a
temporary solution. The problem always come back.

Em Sex 7 fev. 2014, às 9:09, mmalmeida escreveu:
 I am not sure by @angiolucci 's comment #90 if the solution is related
 to that kernel or to some other issue.
 
 Has anyone else tested that kernel? Could angiolucci provide us with
 some feedback on the current status of his laptop?
 
 -- 
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/971061
 
 Title:
   acpi reports battery state incorrectly
 
 Status in Linux ACPI client:
   Incomplete
 Status in “acpi” package in Ubuntu:
   Confirmed
 
 Bug description:
   I have a new Samsung 9-series laptop (NP900X3B) and the battery state
   is detected incorrectly. Basically the state what was at the time of
   boot stays active all the time - regardless of the ac-adapter state.
 
   Here is output from acpitool -a -b in various situations:
 
   When booted with charger connected and charger is still connected:
 Battery #1 : charging, 47.00%, 01:00:43
 AC adapter : on-line 

   When booted with charger connected and charger is now disconnected:
 Battery #1 : charging, 47.00%, 01:36:59
 AC adapter : off-line 
   [The battery couldn't possibly be charging when the AC adapter is
   offline!]
 
   When booted with charger disconnected and charger is still
   disconnected:
 Battery #1 : discharging, 47.00%, 01:39:44
 AC adapter : off-line 
 
   When booted with charger disconnected and charger is now connected:
 Battery #1 : discharging, 47.00%, 00:53:43
 AC adapter : on-line 
   [The battery is actually charging as the AC adapter is online]
 
   The percentage and time are correctly updated when the battery is
   actually charging or discharging - regardless of the reported state.
   So the state is the only thing that is incorrect. However a number of
   applications make their decisions based on this state (battery
   monitor, jupiter, etc.) and therefore behave incorrectly.
 
   lshal -m doesn't report anything when I plug the charger in or out.
 
   ProblemType: Bug
   DistroRelease: Ubuntu 12.04
   Package: acpi (not installed)
   ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
   Uname: Linux 3.2.0-21-generic x86_64
   ApportVersion: 2.0-0ubuntu2
   Architecture: amd64
   Date: Sun Apr  1 22:50:35 2012
   EcryptfsInUse: Yes
   InstallationMedia: Ubuntu 12.04 LTS Precise Pangolin - Beta amd64
   (20120328)
   ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
   SourcePackage: acpi
   UpgradeStatus: No upgrade log present (probably fresh install)
 
 To manage notifications about this bug go to:
 https://bugs.launchpad.net/acpi/+bug/971061/+subscriptions


-- 
  Vinícius Angiolucci Reis
  angiolu...@myopera.com

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 971061] Re: acpi reports battery state incorrectly

2013-12-14 Thread Vinícius Angiolucci Reis
Hi @macko, I can tell you some info about my hardware. But
unfortunately, building the MEI stuff into the kernel has not fixed the
problem: after ~7 days of use, it came back, just as you said.

 What is your exact model? (mine is NP900X4C-A02CH)
The exactly model is NP530U3C-AD5-BR

 Did you have the most recent firmware before the process? (mine is P07ABK
 although according to https://help.ubuntu.com/community/SamsungBIOS there
 is a more recent version)
The firmware version is P09ABH. It was the most recent version at the
moment when I've installed Linux (about 5 months ago), and I can't check
for a newer version because I need the samsung update tool, that only
runs on Windows.

 Can you spot any problems in the process? Or do you have any comments
 that may help me? Thanks in advance.
I didn't find any problems in the process. But  unfortunately building
MEI modules into the kernel is not a solution.
 

-- 
  Vinícius Angiolucci Reis
  angiolu...@myopera.com

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 971061] Re: acpi reports battery state incorrectly

2013-12-02 Thread Vinícius Angiolucci Reis
I compiled a 3.12.1 vanilla kernel, and set the INTEL_MEI and
INTEL_MEI_ME to be compiled into the kernel. I also pressed the reset
power button, under the laptop for 15 secs.

LID CLOSE working.
Switch to AC or Battery working.
LID OPEN not working properly (it's not detected).

It's still working now, 5 day after the above steps.

NOTE: If you change the LID CLOSE/OPEN settings in gnome-tweak-tool,
everything will stop to work, and you'll need to use the reset power
button again. That was the only issue I've noticed.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 971061] Re: acpi reports battery state incorrectly

2013-10-02 Thread Marcello
On 02/10/2013 06:11, Paul Hannah wrote:
 But, htop (after going into the settings and displaying the battery
 state) correctly picks up the a/c cable insertion/removal,
 charging/discharging indication, and fully charged state.

The same happens to me. htop has the right status, while upower is not
updated.

I don't know what htop is monitoring to display the battery status...
but /sys/class/power_supply/ADP1/online is updated correcty when
(un)plugging the power supply, while /sys/class/power_supply/BAT1/status
has the wrong value (the battery charge is correct, but the
charging\discharging status is the one that the battery had at boot time).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 971061] Re: acpi reports battery state incorrectly

2013-08-27 Thread Vinícius Angiolucci Reis
Not working here.
Add acpi_osi='!Windows 2012' to GRUB_CMDLINE_LINUX_DEFAULT has to
effect.


-- 
  Vinícius Angiolucci Reis
  angiolu...@myopera.com

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 971061] Re: acpi reports battery state incorrectly

2013-08-26 Thread Marcello
On 24/08/2013 23:37, Mattia Guidi wrote:
 I confirm that adding the option
 
 acpi_osi='!Windows 2012'
 
 to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub at least makes the
 lid close suspension behave correctly.

For me it's not working.
Even changing my GRUB_CMDLINE_LINUX_DEFAULT line to quiet
acpi_osi='!Windows 2012', when closing the lid the action is not
detected (/proc/acpi/button/lid/LID0/state indicates the state as open,
and the suspension is not triggered)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 971061] Re: acpi reports battery state incorrectly

2013-08-26 Thread Juan Pablo Carlino
I can confirm acpi_osi='!Windows 2012' does NOT work netiher on my NP530U3C
with kernel 3.8.0


On Mon, Aug 26, 2013 at 11:31 AM, Ayberk Özgür equilibriu...@gmail.comwrote:

 Adding acpi_osi='!Windows 2012' to GRUB_CMDLINE_LINUX_DEFAULT
 unfortunately does nothing on  NP900X4C with kernel 3.10.4.

 --
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/971061

 Title:
   acpi reports battery state incorrectly

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/acpi/+bug/971061/+subscriptions


-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 971061] Re: acpi reports battery state incorrectly

2013-08-26 Thread Marcello
On 26/08/2013 16:45, Andrea Lazzarotto (Lazza) wrote:
 Marcello, Ayberk, just to be sure, did you guys do `sudo update-grub`
 and reboot after adding the parameter?

Yes.

I also checked on the grub command line during the reboot, and the
parameter was indeed there.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 971061] Re: acpi reports battery state incorrectly

2012-11-14 Thread j0lly
No, I just mistaken with the button


2012/11/14 paolo.mgi 971...@bugs.launchpad.net

 Does the tag no longer affects:acpi  (Arch Linux) mean that the
 problem is solved on arch?

 --
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/971061

 Title:
   acpi reports battery state incorrectly

 Status in “acpi” package in Ubuntu:
   Confirmed

 Bug description:
   I have a new Samsung 9-series laptop (NP900X3B) and the battery state
   is detected incorrectly. Basically the state what was at the time of
   boot stays active all the time - regardless of the ac-adapter state.

   Here is output from acpitool -a -b in various situations:

   When booted with charger connected and charger is still connected:
 Battery #1 : charging, 47.00%, 01:00:43
 AC adapter : on-line

   When booted with charger connected and charger is now disconnected:
 Battery #1 : charging, 47.00%, 01:36:59
 AC adapter : off-line
   [The battery couldn't possibly be charging when the AC adapter is
 offline!]

   When booted with charger disconnected and charger is still disconnected:
 Battery #1 : discharging, 47.00%, 01:39:44
 AC adapter : off-line

   When booted with charger disconnected and charger is now connected:
 Battery #1 : discharging, 47.00%, 00:53:43
 AC adapter : on-line
   [The battery is actually charging as the AC adapter is online]

   The percentage and time are correctly updated when the battery is
   actually charging or discharging - regardless of the reported state.
   So the state is the only thing that is incorrect. However a number of
   applications make their decisions based on this state (battery
   monitor, jupiter, etc.) and therefore behave incorrectly.

   lshal -m doesn't report anything when I plug the charger in or out.

   ProblemType: Bug
   DistroRelease: Ubuntu 12.04
   Package: acpi (not installed)
   ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
   Uname: Linux 3.2.0-21-generic x86_64
   ApportVersion: 2.0-0ubuntu2
   Architecture: amd64
   Date: Sun Apr  1 22:50:35 2012
   EcryptfsInUse: Yes
   InstallationMedia: Ubuntu 12.04 LTS Precise Pangolin - Beta amd64
 (20120328)
   ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
   SourcePackage: acpi
   UpgradeStatus: No upgrade log present (probably fresh install)

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/971061/+subscriptions


-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 971061] Re: acpi reports battery state incorrectly

2012-10-17 Thread j0lly
This is not only Ubuntu: i'm Arch at the problem is the same, i testetd
with at least 3 kernel from Arch and the problem persist so, i think, is
either the acpi module or, more probably, a Bios bug.
I also tried to pass Windows as OS to the BIOS with grub command: acpi_osi= at
actually broke the bootup..

2012/10/17 Erik Schindler erik.schind...@gmx.net

 Well, I sent the laptop into suspend mode last evening and since today
 in the morning acpi is not working correctly anymore. So, overnight
 suspension could be the problem. Maybe minimalistic year 2000 problem ;)

 Is anybody from Canonical already involved in finding a solution?

 --
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/971061

 Title:
   acpi reports battery state incorrectly

 Status in “acpi” package in Ubuntu:
   Confirmed

 Bug description:
   I have a new Samsung 9-series laptop (NP900X3B) and the battery state
   is detected incorrectly. Basically the state what was at the time of
   boot stays active all the time - regardless of the ac-adapter state.

   Here is output from acpitool -a -b in various situations:

   When booted with charger connected and charger is still connected:
 Battery #1 : charging, 47.00%, 01:00:43
 AC adapter : on-line

   When booted with charger connected and charger is now disconnected:
 Battery #1 : charging, 47.00%, 01:36:59
 AC adapter : off-line
   [The battery couldn't possibly be charging when the AC adapter is
 offline!]

   When booted with charger disconnected and charger is still disconnected:
 Battery #1 : discharging, 47.00%, 01:39:44
 AC adapter : off-line

   When booted with charger disconnected and charger is now connected:
 Battery #1 : discharging, 47.00%, 00:53:43
 AC adapter : on-line
   [The battery is actually charging as the AC adapter is online]

   The percentage and time are correctly updated when the battery is
   actually charging or discharging - regardless of the reported state.
   So the state is the only thing that is incorrect. However a number of
   applications make their decisions based on this state (battery
   monitor, jupiter, etc.) and therefore behave incorrectly.

   lshal -m doesn't report anything when I plug the charger in or out.

   ProblemType: Bug
   DistroRelease: Ubuntu 12.04
   Package: acpi (not installed)
   ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
   Uname: Linux 3.2.0-21-generic x86_64
   ApportVersion: 2.0-0ubuntu2
   Architecture: amd64
   Date: Sun Apr  1 22:50:35 2012
   EcryptfsInUse: Yes
   InstallationMedia: Ubuntu 12.04 LTS Precise Pangolin - Beta amd64
 (20120328)
   ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
   SourcePackage: acpi
   UpgradeStatus: No upgrade log present (probably fresh install)

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/971061/+subscriptions


-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 971061] Re: acpi reports battery state incorrectly

2012-10-16 Thread j0lly
Yes and I think is the suspension act that screw it again.. At least
overnight crackheads do it on mine maybe is a resume hook.. I tried the pm
and the systems functions and both do it
Il giorno 16/ott/2012 13:51, Erik Schindler erik.schind...@gmx.net ha
scritto:

 In addition to the previous post: closing the lid is also recongized
 correctly.

 --
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/971061

 Title:
   acpi reports battery state incorrectly

 Status in “acpi” package in Ubuntu:
   Confirmed

 Bug description:
   I have a new Samsung 9-series laptop (NP900X3B) and the battery state
   is detected incorrectly. Basically the state what was at the time of
   boot stays active all the time - regardless of the ac-adapter state.

   Here is output from acpitool -a -b in various situations:

   When booted with charger connected and charger is still connected:
 Battery #1 : charging, 47.00%, 01:00:43
 AC adapter : on-line

   When booted with charger connected and charger is now disconnected:
 Battery #1 : charging, 47.00%, 01:36:59
 AC adapter : off-line
   [The battery couldn't possibly be charging when the AC adapter is
 offline!]

   When booted with charger disconnected and charger is still disconnected:
 Battery #1 : discharging, 47.00%, 01:39:44
 AC adapter : off-line

   When booted with charger disconnected and charger is now connected:
 Battery #1 : discharging, 47.00%, 00:53:43
 AC adapter : on-line
   [The battery is actually charging as the AC adapter is online]

   The percentage and time are correctly updated when the battery is
   actually charging or discharging - regardless of the reported state.
   So the state is the only thing that is incorrect. However a number of
   applications make their decisions based on this state (battery
   monitor, jupiter, etc.) and therefore behave incorrectly.

   lshal -m doesn't report anything when I plug the charger in or out.

   ProblemType: Bug
   DistroRelease: Ubuntu 12.04
   Package: acpi (not installed)
   ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
   Uname: Linux 3.2.0-21-generic x86_64
   ApportVersion: 2.0-0ubuntu2
   Architecture: amd64
   Date: Sun Apr  1 22:50:35 2012
   EcryptfsInUse: Yes
   InstallationMedia: Ubuntu 12.04 LTS Precise Pangolin - Beta amd64
 (20120328)
   ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
   SourcePackage: acpi
   UpgradeStatus: No upgrade log present (probably fresh install)

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/971061/+subscriptions


-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 971061] Re: acpi reports battery state incorrectly

2012-10-12 Thread j0lly
The OS kernel log all the events.
The first time also the LID (that generally need 10 sec to trigger the
status change when work) is logged almost instantly.
I can have log in dmesg and acpid.

2012/10/12 Erik Schindler erik.schind...@gmx.net

  I can confirm you that if you push the reset button on bottom of the
  laptop with a needle (laptop unpowered, than use the power cord to start
  it otherwhise will not start) the next boot all the ACPI events are
 logged
  perfectly; all is run wanderfully untill some events that screw up again
  the ACPI/BIOS stuff.

 Is the installed OS affected by this workaround or only BIOS
 configuration?

 --
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/971061

 Title:
   acpi reports battery state incorrectly

 Status in “acpi” package in Ubuntu:
   Confirmed

 Bug description:
   I have a new Samsung 9-series laptop (NP900X3B) and the battery state
   is detected incorrectly. Basically the state what was at the time of
   boot stays active all the time - regardless of the ac-adapter state.

   Here is output from acpitool -a -b in various situations:

   When booted with charger connected and charger is still connected:
 Battery #1 : charging, 47.00%, 01:00:43
 AC adapter : on-line

   When booted with charger connected and charger is now disconnected:
 Battery #1 : charging, 47.00%, 01:36:59
 AC adapter : off-line
   [The battery couldn't possibly be charging when the AC adapter is
 offline!]

   When booted with charger disconnected and charger is still disconnected:
 Battery #1 : discharging, 47.00%, 01:39:44
 AC adapter : off-line

   When booted with charger disconnected and charger is now connected:
 Battery #1 : discharging, 47.00%, 00:53:43
 AC adapter : on-line
   [The battery is actually charging as the AC adapter is online]

   The percentage and time are correctly updated when the battery is
   actually charging or discharging - regardless of the reported state.
   So the state is the only thing that is incorrect. However a number of
   applications make their decisions based on this state (battery
   monitor, jupiter, etc.) and therefore behave incorrectly.

   lshal -m doesn't report anything when I plug the charger in or out.

   ProblemType: Bug
   DistroRelease: Ubuntu 12.04
   Package: acpi (not installed)
   ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
   Uname: Linux 3.2.0-21-generic x86_64
   ApportVersion: 2.0-0ubuntu2
   Architecture: amd64
   Date: Sun Apr  1 22:50:35 2012
   EcryptfsInUse: Yes
   InstallationMedia: Ubuntu 12.04 LTS Precise Pangolin - Beta amd64
 (20120328)
   ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
   SourcePackage: acpi
   UpgradeStatus: No upgrade log present (probably fresh install)

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/971061/+subscriptions


-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 971061] Re: acpi reports battery state incorrectly

2012-10-06 Thread Marcello
On 06/10/12 09:41, Jon Cowell wrote:
 After BIOS update all was well for 15hours only!

Also for me, things worked well (both lid and power status) during the 
first weeks of life of the laptop (a Series 5 Ultrabook).

 Yesterday, after updating the BIOS I tested power connect/disconnect
 recognition in both Windows and Ubuntu 12.04 and suspend on lid closure.
 Everything worked fine.  Then, in Ubuntu 12.04, I suspended the system
 over night.  Next morning, lid closurefails to be recognised by Ubuntu.
 Power connect/disconnect fails to be acted upon properly by Ubuntu.  In
 Windows, lid closure still fails but power connect/disconnect still
 recognised - but it takes several seconds rather than being almost
 instantaneous when all was well the night before.

I found that
/sys/class/power_supply/ADP1/online
(the status of the power adapter) gets updated correctly, while the 
battery status (charging/discharging), as found in
/sys/class/power_supply/BAT1/status
is frozen in the status after power on / resume after suspend. So 
MAYBE in Windows power connect/disconnect is triggered by power adapter 
changing status instead than by battery. I worked around this problem by 
applying an ugly patch to upowerd so that power status change is 
triggered also by power adapter... and that works acceptably for now.

Lid closure, instead, is completely broken also if suspend works well. 
Can't test in Windows as I wiped out the windows partition ;)

 Very infuriating!... is this Ubuntu corrupting things in the BIOS or is
 the BIOS somehow corrupting itself with respect to ACPI.

I noticed the problem after starting up erroneously the recovery 
partition. This messed up with the MBR and Grub, so I had to recover 
Grub booting from an USB disk, and from that moment I noticed the 
problem... (not sure if before that the problem was present or not)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971061

Title:
  acpi reports battery state incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/971061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs