Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Laptop Mode Polluting Logs [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
oneself
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2005
Posts: 98
Location: New York, NY

PostPosted: Fri Jul 06, 2012 1:27 pm    Post subject: Laptop Mode Polluting Logs [solved] Reply with quote

Hi,

I installed laptop mode and it seems to work fine. However, it continuously pollutes the system logs with the following repeated messages. These messages happen only when the laptop is plugged in. Is there something wrong with it? Is there some way turn the logging off?

Code:
Jul  6 09:23:23 lapself nobody: ACPI event unhandled: battery BAT0 00000080 00000001
Jul  6 09:23:23 lapself laptop-mode: Laptop mode
Jul  6 09:23:23 lapself laptop-mode: enabled,
Jul  6 09:23:23 lapself laptop-mode: not active [unchanged]
Jul  6 09:23:24 lapself nobody: ACPI event unhandled: battery BAT0 00000080 00000001
Jul  6 09:23:24 lapself laptop-mode: Laptop mode
Jul  6 09:23:24 lapself laptop-mode: enabled,
Jul  6 09:23:24 lapself laptop-mode: not active [unchanged]
Jul  6 09:23:28 lapself nobody: ACPI event unhandled: battery BAT0 00000080 00000001
Jul  6 09:23:28 lapself laptop-mode: Laptop mode
Jul  6 09:23:28 lapself laptop-mode: enabled,
Jul  6 09:23:28 lapself laptop-mode: not active [unchanged]
Jul  6 09:23:28 lapself nobody: ACPI event unhandled: battery BAT0 00000080 00000001
Jul  6 09:23:28 lapself laptop-mode: Laptop mode
Jul  6 09:23:28 lapself laptop-mode: enabled,
Jul  6 09:23:28 lapself laptop-mode: not active [unchanged]
Jul  6 09:23:32 lapself nobody: ACPI event unhandled: battery BAT0 00000080 00000001
Jul  6 09:23:32 lapself laptop-mode: Laptop mode
Jul  6 09:23:32 lapself laptop-mode: enabled,
Jul  6 09:23:32 lapself laptop-mode: not active [unchanged]
Jul  6 09:23:35 lapself nobody: ACPI event unhandled: battery BAT0 00000080 00000001
Jul  6 09:23:35 lapself laptop-mode: Laptop mode
Jul  6 09:23:35 lapself laptop-mode: enabled,
Jul  6 09:23:35 lapself laptop-mode: not active [unchanged]
Jul  6 09:23:38 lapself nobody: ACPI event unhandled: battery BAT0 00000080 00000001
Jul  6 09:23:38 lapself laptop-mode: Laptop mode
Jul  6 09:23:38 lapself laptop-mode: enabled,
Jul  6 09:23:38 lapself laptop-mode: not active [unchanged]
Jul  6 09:23:41 lapself nobody: ACPI event unhandled: battery BAT0 00000080 00000001
Jul  6 09:23:41 lapself laptop-mode: Laptop mode
Jul  6 09:23:41 lapself laptop-mode: enabled,
Jul  6 09:23:41 lapself laptop-mode: not active [unchanged]
Jul  6 09:23:44 lapself nobody: ACPI event unhandled: battery BAT0 00000080 00000001
Jul  6 09:23:44 lapself laptop-mode: Laptop mode
Jul  6 09:23:44 lapself laptop-mode: enabled,
Jul  6 09:23:44 lapself laptop-mode: not active [unchanged]

_________________
There are 10 types of people, those who know binary and those who don't.


Last edited by oneself on Fri Jul 06, 2012 7:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2769
Location: Omnipresent

PostPosted: Fri Jul 06, 2012 3:16 pm    Post subject: Reply with quote

You need to figure out what this event means, and set up an acpid handler (see this post for example). I think laptop-mode is just notifying its response to this unhandled event.

If you get this message repeatedly without doing anything to change the machine's power source, your battery might be damaged.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
oneself
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2005
Posts: 98
Location: New York, NY

PostPosted: Fri Jul 06, 2012 4:22 pm    Post subject: Reply with quote

Thank you for your reply.

So, I dug in a little deeper based on your link. The file /etc/acpi/events/lm_battery contains the following:
Code:
event=battery.*
action=/etc/acpi/actions/lm_battery.sh %e


This matches the event listed in the logs. The action is to call a script specified. If I run it manually from the command line, I can see the same messages printed in the logs.

So, it looks like laptop mode is doing what it's suppose to. The question is why is this event firing again and again?
_________________
There are 10 types of people, those who know binary and those who don't.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2769
Location: Omnipresent

PostPosted: Fri Jul 06, 2012 4:30 pm    Post subject: Reply with quote

Yeah, I'm concerned about your battery, emitting a message like that every 5 seconds. Try removing your battery and monitoring the logs on AC power.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
oneself
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2005
Posts: 98
Location: New York, NY

PostPosted: Fri Jul 06, 2012 5:55 pm    Post subject: Laptop Mode Polluting Logs [solved] Reply with quote

Good instinct!

I replaced my battery with a spare and the messages stopped. I'm going to get a new battery.

Thank you,
_________________
There are 10 types of people, those who know binary and those who don't.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2769
Location: Omnipresent

PostPosted: Fri Jul 06, 2012 5:58 pm    Post subject: Reply with quote

Great! Anecdotally, a bad battery can ruin the power controller, so better to find it out early.


Please append "[SOLVED]" to the thread title by editing the first post.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum