battery monitor does not work

Hi,

I recently installed opensuse 12.3 KDE and here is the problem:

My battery monitor does not show the remaining battery or time when I boot the system.
Also when the battery is over the system shuts down without any notification or anything.

However this problem goes away when I put the system into sleep and log back in.

Thanks for any help.

and by “battery monitor does not show the remaining battery” I meant it shows the status of when the system started and it does not change.

On 06/08/2013 09:16 AM, hmdkdl wrote:
>
> and by “battery monitor does not show the remaining battery” I meant it
> shows the status of when the system started and it does not change.

may not help, but i doubt if it can hurt (read the caveat in my sig):

you did not say if this is a new install or if it used to work and
now it does not, so i have to ask: have you yet run YaST Online
Update and rebooted (since completing the initial install)?

-if no, do that first and then reboot.

-if yes, continue below

run the following in a user terminal


cat /var/log/zypp/history | grep laptop

i would guess you might see listed there, these (and maybe others,
and maybe you see more than one entry of each):
patterns-openSUSE-laptop
patterns-openSUSE-kde4_laptop
laptop-mode-tools

if those are not listed:

  • in YaST Software Repositories disable all repos other than oss,
    non-oss, packman, update and update-non-oss and then

  • open YaST Software Management

  • search on the word laptop

  • do NOT left click mark all of them for install!!

–instead checkmark all that match all desktop environments you have
installed (that is, there is one for each of KDE, GNOME, LXDE, XFCE
pick only the ones matching what desktops you have installed plus
the three i mentioned above)

–and, there are packages for Apple or Compal computers–you didn’t
tell about your hardware, but only install those if you have one of
those kinds of computer.

–when you have marked the three i mentioned above, and the other
ones which match your hardware and desktop, THEN click the “Accept”
button and wait for all activity to end…

-close all applications (including YaST), log out of the desktop
(Leave > Logout), at the resulting log-in screen log back in as
yourself, again…

-see if the battery gizmo works now… if not so advise…

dd
http://tinyurl.com/DD-Caveat


-see if the battery gizmo works now… if not so advise…

it did not work.

sorry for incompleteness of the information. here is what I have done:

I installed it about a month ago and I have updated since and the problem has existed since the begining.
I ran the command and it showed nothing so I installed the three you mentioned and ‘kdeutils3-laptop’.

my hardware is:
hp 4530s, core i3
so i did not see any of the others relevant.

I loged out and loged in and nothing has changed.

thanks for your response.

On 06/08/2013 12:26 PM, hmdkdl wrote:
> nothing has changed.

  1. what happens if, after logging in, you unplug the power from the
    laptop?

  2. what operating system came on the machine? (i see in
    http://h10010.www1.hp.com/wwpc/pscmisc/vac/us/product_pdfs/HP_ProBook_4430s_4530s_Notebook_PC_Datasheet.pdf
    is certified for SUSE Linux Enterprise Desktop, so i wonder if it
    came with that installed, and you replaced it with openSUSE 12.3)

  3. if you right click the battery monitor icon in the tray, and
    select “Battery Monitor Settings”, in the resulting pop-up General,
    is “Show charge information” and Show the state for each battery
    present" checked

  4. you say you installed openSUSE about a month ago, but tell how old
    is the machine, and the battery? did the battery hold a good charge
    and give several hours of useful life? And, when it ran down with the
    previous operating system (what was that?) could you see the decrease?

  5. according to
    http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c03054480/c03054480.pdf
    that machine has a built in diagnostics, have you run the battery
    test? what were the results?

  6. is the openSUSE running in a VM?

  7. if you boot the machine from a live openSUSE disk, does the
    battery show when discharging?

  8. Have you made any adjustments to the power savings settings in
    Personal Settings - Configure Desktop > Hardware > Power Management?
    if so, please take a screen shot of each of the five views and post
    each to susepaste like so: http://susepaste.org/46758067


dd

  1. as I have mentioned when I put the system into sleep and log back in everything works fine. but with log out- log in nothing changes. it does not show that if the power is unplugged either.

  2. it came on with Windows 7. about 9 months ago i installed Arch Linux and everything worked fine till I moved to opensuse.

  3. when I check “show charge information” it shows remaining battery but like battery monitor itself it is not correct ( it shows the status of when I booted the system ).
    it does not make any change if I check those two or not.

  4. the machine is about 18 months old and it works well. everything was fine with MW7 and Arch Linux.

  5. i still have the MW7 and it works well so it is not the battery.

  6. I have read about VM ( if it is Virtual Machine ) and I did not understand much but I don’t think my opensuse is running on VM.

  7. I could not run live opensuse by flash (I dd’d my opensuse file into flash drive and it does not boot) but if it is nessesary I will try more.

  8. i did change some settings and:
    [http://susepaste.org/31443699 SUSE Paste SUSE Paste SUSE Paste http://susepaste.org/90364473"]http://susepaste.org/31443699
    [(http://susepaste.org/58232123) http://susepaste.org/90364473"]http://susepaste.org/70974026
    [(http://susepaste.org/58232123) http://susepaste.org/90364473"]http://susepaste.org/93665962
    [(http://susepaste.org/58232123) http://susepaste.org/90364473"]http://susepaste.org/58232123
    [url)

+. I don’t know why after I made those changes you mentioned my mouse keeps turning off when it is not moving and I should click to turn it on.]("http://1. as I have mentioned when I put the system into sleep and log back in everything works fine. but with log out- log in nothing changes. it does not show that if the power is unplugged either. 2. it came on with Windows 7. about 9 months ago i installed Arch Linux and everything worked fine till I moved to opensuse. 3. when I check “show charge information” it shows remaining battery but like battery monitor itself it is not correct ( it shows the status of when I booted the system ). it does not make any change if I check those two or not. 4. the machine is about 18 months old and it works well. everything was fine with MW7 and Arch Linux. 5. i still have the MW7 and it works well so it is not the battery. 6. I have read about VM ( if it is Virtual Machine ) and I did not understand much but I don’t think opensuse is running on VM. 7. 8. i did and: http://susepaste.org/31443699 [SUSE Paste)]("http://1. as I have mentioned when I put the system into sleep and log back in everything works fine. but with log out- log in nothing changes. it does not show that if the power is unplugged either. 2. it came on with Windows 7. about 9 months ago i installed Arch Linux and everything worked fine till I moved to opensuse. 3. when I check “show charge information” it shows remaining battery but like battery monitor itself it is not correct ( it shows the status of when I booted the system ). it does not make any change if I check those two or not. 4. the machine is about 18 months old and it works well. everything was fine with MW7 and Arch Linux. 5. i still have the MW7 and it works well so it is not the battery. 6. I have read about VM ( if it is Virtual Machine ) and I did not understand much but I don’t think opensuse is running on VM. 7. 8. i did and: http://susepaste.org/31443699 [SUSE Paste)]("http://1. as I have mentioned when I put the system into sleep and log back in everything works fine. but with log out- log in nothing changes. it does not show that if the power is unplugged either. 2. it came on with Windows 7. about 9 months ago i installed Arch Linux and everything worked fine till I moved to opensuse. 3. when I check “show charge information” it shows remaining battery but like battery monitor itself it is not correct ( it shows the status of when I booted the system ). it does not make any change if I check those two or not. 4. the machine is about 18 months old and it works well. everything was fine with MW7 and Arch Linux. 5. i still have the MW7 and it works well so it is not the battery. 6. I have read about VM ( if it is Virtual Machine ) and I did not understand much but I don’t think opensuse is running on VM. 7. 8. i did and: http://susepaste.org/31443699 [SUSE Paste)]("http://1. as I have mentioned when I put the system into sleep and log back in everything works fine. but with log out- log in nothing changes. it does not show that if the power is unplugged either. 2. it came on with Windows 7. about 9 months ago i installed Arch Linux and everything worked fine till I moved to opensuse. 3. when I check “show charge information” it shows remaining battery but like battery monitor itself it is not correct ( it shows the status of when I booted the system ). it does not make any change if I check those two or not. 4. the machine is about 18 months old and it works well. everything was fine with MW7 and Arch Linux. 5. i still have the MW7 and it works well so it is not the battery. 6. I have read about VM ( if it is Virtual Machine ) and I did not understand much but I don’t think opensuse is running on VM. 7. 8. i did and: http://susepaste.org/31443699 [SUSE Paste)

On 06/08/2013 05:36 PM, hmdkdl wrote:
>
> 1. as I have mentioned when I put the system into sleep and log back in
> everything works fine. but with log out- log in nothing changes. it does
> not show that if the power is unplugged either.

that it works after sleeping is very strange to me…i don’t know
what might cause that…

> 2. it came on with Windows 7. about 9 months ago i installed Arch Linux
> and everything worked fine till I moved to opensuse.

OK! on the assumption that when you installed openSUSE it saw the
existing Arch install and offered to keep its /home and probably keep
the same user and password…

so, maybe there is a config file or three left over in the /home
from that Arch install…so, check that by going YaST > Security and
Users > User and Group Management to temporarily add a new TestUser,
then log out and log back in as the new TestUser, and see if the
battery use goes down over time as you expect…

> 8. i did change some settings
> http://susepaste.org/31443699
> http://susepaste.org/70974026
> http://susepaste.org/93665962
> http://susepaste.org/58232123
> http://susepaste.org/90364473
> http://susepaste.org/70974026

ok, i looked at all of those and they seem (to me) to be ok…but, i
have a question: in your initial post you wrote “Also when the
battery is over the system shuts down without any notification or
anything.”

does that mean that even though you have set it to, when the battery
gets to low level (at 15%) it should automatically DIM the
display…is that not happening?

and, if the battery is low the screen switches off in two minutes, is
that not happening either?

i mean, the screen dimming and switching off IS a notification that
the battery is very low! what kind of notification did you expect?
and, you want it to switch off after dimming so that it is a
controlled shutdown before all power is used (when it would crash
out with no power and leave files open, and stuff not saved to the
hard drive and it would be a big mess!!

> +. I don’t know why after I made those changes you mentioned my mouse
> keeps turning off when it is not moving and I should click to turn it
> on.

if by “mouse keeps turning off” you mean the mouse cursor on the
screen just disappears–then i see that also sometimes…but,
sometimes not…most of the times i see it is like when a
movie/video is playing and the mouse cursor is somewhere inside the
frame of the movie…and, after maybe 5 or 10 seconds of the mouse
not being moved it just disappears…

which i REALLY like–i find that automatic get out of the way thing
VERY cool…

and, i don’t have “click to turn it on” i just have to move the
mouse, and (instead of turning on" the cursor just becomes visible
again)…

so, try a new test user…


dd
http://tinyurl.com/DD-Caveat

so, try a new test user…

I created the test user and it is the same.

and, if the battery is low the screen switches off in two minutes, is
that not happening either?

No. none of those actions happen. no notification when reaches 15% , not putting to sleep when reaches 10% and not switching the display off on low battery.

and about the mouse:
no. it is not what you have mentioned. the laser at the bottom turns off and I have to click to turn it on.
but it may not be a big problem.

thank you anyway.

On 2013-06-08 20:46, hmdkdl wrote:
> and about the mouse:
> no. it is not what you have mentioned. the laser at the bottom turns
> off and I have to click to turn it on.
> but it may not be a big problem.

I read of somebody with the same problem. It was some power setting, the
usb bus is deactivated when not in use, perhaps only if running from
battery (or the system thinks it is running from battery).

You might try installing “laptop-mode-tools” (I’m unsure of the exact
name). If already installed, you need to configure them.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 06/09/2013 01:38 AM, Carlos E. R. wrote:

> I read of somebody with the same problem. It was some power setting, the
> usb bus is deactivated when not in use, perhaps only if running from
> battery (or the system thinks it is running from battery).

the USB bus sleeping might be caused by a setting in the BIOS,
maybe…i think the OP should look at the BIOS for possible power
management/control/savings settings (those WILL override settings in
the operating system software, i think)

> You might try installing “laptop-mode-tools” (I’m unsure of the exact
> name). If already installed, you need to configure them.

AH! this might be another systemd problem! (i say after reading “If
laptop_mode is enabled with ‘/etc/init.d/laptop-mode start’ then…”)
in /usr/share/doc/packages/laptop-mode-tools/README.SUSE (in my 11.4)

so, maybe that is where the breakdown is in 12.3 ??

but then why are there not thousands shouting about this problem??

what do you think (Carlos) ML or bug??


dd

On 2013-06-09 07:02, dd wrote:
> On 06/09/2013 01:38 AM, Carlos E. R. wrote:
>
>> I read of somebody with the same problem. It was some power setting, the
>> usb bus is deactivated when not in use, perhaps only if running from
>> battery (or the system thinks it is running from battery).
>
> the USB bus sleeping might be caused by a setting in the BIOS, maybe…i
> think the OP should look at the BIOS for possible power
> management/control/savings settings (those WILL override settings in the
> operating system software, i think)

Yes, I seem to recall that the post I referred to was solved with a BIOS
config setting.

>> You might try installing “laptop-mode-tools” (I’m unsure of the exact
>> name). If already installed, you need to configure them.
>
> AH! this might be another systemd problem! (i say after reading “If
> laptop_mode is enabled with ‘/etc/init.d/laptop-mode start’ then…”) in
> /usr/share/doc/packages/laptop-mode-tools/README.SUSE (in my 11.4)
>
> so, maybe that is where the breakdown is in 12.3 ??

That package is optional, not default, I think. And if not, YaST is
known not to always detect properly if a machine is a laptop or not. I
seem to remember somebody else that had problems because his desktop
machine thought the battery was depleted, running on battery perhaps,
and the machine halted.

Right now, the gadget says my UPS is drained. Can’t be, the battery is
recent. I’ll have to check if bug or real.

> what do you think (Carlos) ML or bug??

ML? Dunno that acronym :-?
My feeling is it is a bug, or a bios config.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 06/09/2013 12:08 PM, Carlos E. R. wrote:
> ML? Dunno that acronym

sorry, should have written mail list…


dd

On 2013-06-09 13:14, dd wrote:
> On 06/09/2013 12:08 PM, Carlos E. R. wrote:
>> ML? Dunno that acronym
>
> sorry, should have written mail list…

Ah of course! I thought you might mean that, but I was unsure.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

You might try installing “laptop-mode-tools” (I’m unsure of the exact
name). If already installed, you need to configure them.

It worked. thank you very much Carlos.

I just disabled the usb-autosuspend option in the configuration file.

any idea about the battery monitor thing?

On 2013-06-09 14:36, hmdkdl wrote:
>
>> You might try installing “laptop-mode-tools” (I’m unsure of the exact
>> name). If already installed, you need to configure them.
>
> It worked. thank you very much Carlos.
>
> I just disabled the usb-autosuspend option in the configuration file.

Well, that’s one thing solved :slight_smile:

> any idea about the battery monitor thing?

No… sorry.

I’m on my desktop now, can not look at the options in those tools, but
there should be something about the battery.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

For what it’s worth, I am having the exact same behavior as described here. One change I made to the power settings was to have only the screen turn off when the lid is closed if the power adapter is plugged in. This is so that I can play music and not have my kids mess with the computer.

Odd turn of events: I deactivated laptop-mode-tools, and now the battery works fine. Of course, I installed laptop-mode-tools in the first place because it wasn’t working. I guess it must have changed something. Its worth a try if anyone is still with this same issue.

Of course, I have yet to restart the machine to make sure the settings persist. I will report if it changes.

One change I made to the power settings was to have only the screen turn off when the lid is closed if the power adapter is plugged in.

I am no longer using opensuse (I am using fedora now) so I can’t check what you said but as I remember I had the problem even when laptop-mode-tools was not installed. I installed it but nothing was fixed.

and a question: Now that I am not using opensuse should I close this thread? or can I?

cheers