Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Battery monitor says battery not present, KDE version 4.8.1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
zasdfgbnm
n00b
n00b


Joined: 06 Apr 2012
Posts: 48

PostPosted: Fri Apr 06, 2012 11:01 am    Post subject: Battery monitor says battery not present, KDE version 4.8.1 Reply with quote

I have searched and find a lot of topics about this problem. But these topics are about old KDE while my is 4.8.1 and I have tried methods I found but no one worked. Some useful information:

1. files in /sys/class/power_supply/BAT1/ is listd below. There is no BAT0 exist in path /sys/class/power_supply.
Code:
$ ls /sys/class/power_supply/BAT1/
alarm               charge_now          device/             power/              status              type                voltage_now         
charge_full         current_now         manufacturer        present             subsystem/          uevent             
charge_full_design  cycle_count         model_name          serial_number       technology          voltage_min_design

2. powerdevil-4.8.1 is installed on my computer.
3. I have tried to add acpid to default runlevel and enable "Deprecated /proc/acpi files" and "Deprecated power /proc/acpi directories". But after reboot, the problem still exist.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Fri Apr 06, 2012 12:42 pm    Post subject: Reply with quote

what does the acpi command show?

what version of upower?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
zasdfgbnm
n00b
n00b


Joined: 06 Apr 2012
Posts: 48

PostPosted: Fri Apr 06, 2012 1:13 pm    Post subject: Reply with quote

Code:
$ acpi
Battery 0: Full, 100%

Code:
$ emerge --search upower
Searching...   
[ Results for search key : upower ]
[ Applications found : 1 ]

*  sys-power/upower
      Latest version available: 0.9.15
      Latest version installed: 0.9.15
      Size of files: 394 kB
      Homepage:      http://upower.freedesktop.org/
      Description:   D-Bus abstraction for enumerating power devices and querying history and statistics
      License:       GPL-2
Back to top
View user's profile Send private message
zasdfgbnm
n00b
n00b


Joined: 06 Apr 2012
Posts: 48

PostPosted: Sun Apr 08, 2012 2:10 pm    Post subject: Reply with quote

The problem still exist after upgrade to KDE 4.8.2
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sun Apr 08, 2012 7:37 pm    Post subject: Reply with quote

In my system,

/sys/class/power_supply/BAT0/

is a symlink to

/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT0

does that directory exist on your system?

If so, as an experiment you could create the BAT0 symlink and restart kde
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
zasdfgbnm
n00b
n00b


Joined: 06 Apr 2012
Posts: 48

PostPosted: Mon Apr 09, 2012 1:48 am    Post subject: Reply with quote

In my computer, there is only BAT1, no BAT0
Code:
$ find /sys|grep BAT
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/uevent
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/subsystem
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/device
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/status
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/present
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/technology
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/cycle_count
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/voltage_min_design
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/voltage_now
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/current_now
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/charge_full_design
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/charge_full
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/charge_now
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/type
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/model_name
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/manufacturer
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/serial_number
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/power
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/power/runtime_status
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/power/control
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/power/runtime_suspended_time
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/power/runtime_active_time
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/power/autosuspend_delay_ms
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/alarm
/sys/class/power_supply/BAT1
Back to top
View user's profile Send private message
zasdfgbnm
n00b
n00b


Joined: 06 Apr 2012
Posts: 48

PostPosted: Mon Apr 09, 2012 2:49 am    Post subject: Reply with quote

the sysfs don't allow me to create a symlink.
Code:
# ln -s BAT1 BAT0
ln: failed to create symbolic link ‘BAT0’: No such file or directory
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4547

PostPosted: Mon Apr 09, 2012 6:13 am    Post subject: Reply with quote

Give us a
Code:
$ uname -a

please.
Back to top
View user's profile Send private message
zasdfgbnm
n00b
n00b


Joined: 06 Apr 2012
Posts: 48

PostPosted: Mon Apr 09, 2012 8:34 am    Post subject: Reply with quote

Code:
$ uname -a
Linux localhost 3.3.1-gentoo #1 SMP Sun Apr 8 12:57:03 CST 2012 x86_64 Intel(R) Core(TM) i5 CPU M 480 @ 2.67GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
zasdfgbnm
n00b
n00b


Joined: 06 Apr 2012
Posts: 48

PostPosted: Mon Apr 09, 2012 8:41 am    Post subject: Reply with quote

There is another two problem in my KDE, maybe they are related to the battery problem?
One is:
Each time after startup, the KDE always says
Code:
Executable: polkit-kde-authentication-agent-1 PID: 1379 Signal: Aborted (6)

The generated crash information is:
Code:
Application: PolicyKit1-KDE (polkit-kde-authentication-agent-1), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f168a418760 (LWP 1379))]

Thread 2 (Thread 0x7f1679db1700 (LWP 1399)):
#0  0x00007f16878d694e in ?? () from /lib64/libc.so.6
#1  0x00007f1687869d32 in ?? () from /lib64/libc.so.6
#2  0x00007f1687868101 in free () from /lib64/libc.so.6
#3  0x00007f16851cc1bd in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f16851ccc01 in ?? () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f16851d06e3 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#6  0x00007f16851d0e68 in ?? () from /usr/lib64/libglib-2.0.so.0
#7  0x00007f16851d13ba in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f1684cb58b6 in ?? () from /usr/lib64/libgio-2.0.so.0
#9  0x00007f16851f7b16 in ?? () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f1685952d0c in start_thread () from /lib64/libpthread.so.0
#11 0x00007f16878c995d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f168a418760 (LWP 1379)):
[KCrash Handler]
#6  0x00007f1687822ab5 in raise () from /lib64/libc.so.6
#7  0x00007f1687823db5 in abort () from /lib64/libc.so.6
#8  0x00007f168785dcb3 in ?? () from /lib64/libc.so.6
#9  0x00007f16878631d5 in ?? () from /lib64/libc.so.6
#10 0x00007f1687865f13 in ?? () from /lib64/libc.so.6
#11 0x00007f1687867c00 in malloc () from /lib64/libc.so.6
#12 0x00007f1688bd1039 in QHashData::allocateNode(int) () from /usr/lib64/qt4/libQtCore.so.4
#13 0x00007f1688cca80d in QMetaObject::addGuard(QObject**) () from /usr/lib64/qt4/libQtCore.so.4
#14 0x00007f168903495f in ?? () from /usr/lib64/qt4/libQtDBus.so.4
#15 0x00007f16890352e9 in ?? () from /usr/lib64/qt4/libQtDBus.so.4
#16 0x00007f1689035549 in ?? () from /usr/lib64/qt4/libQtDBus.so.4
#17 0x00007f168903704f in ?? () from /usr/lib64/qt4/libQtDBus.so.4
#18 0x00007f168903b285 in ?? () from /usr/lib64/qt4/libQtDBus.so.4
#19 0x00007f1683f787cc in dbus_connection_dispatch () from /usr/lib64/libdbus-1.so.3
#20 0x00007f168902d2d9 in ?? () from /usr/lib64/qt4/libQtDBus.so.4
#21 0x00007f1688ccac76 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#22 0x00007f1688052404 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#23 0x00007f1688056fff in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#24 0x00007f1689df9b06 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#25 0x00007f1688cb605b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#26 0x00007f1688cb9617 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#27 0x00007f1688ce5003 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#28 0x00007f16851d0672 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f16851d0e68 in ?? () from /usr/lib64/libglib-2.0.so.0
#30 0x00007f16851d1041 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f1688ce519f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#32 0x00007f16880f780e in ?? () from /usr/lib64/qt4/libQtGui.so.4
#33 0x00007f1688cb5082 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#34 0x00007f1688cb5335 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#35 0x00007f1688cb9abb in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#36 0x000000000040b61d in _start ()

The other is:
The network management can't find any wireless links, but the iwlist gives:
Code:
# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 5C:63:BF:A5:0C:6A
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=70/70  Signal level=-23 dBm 
                    Encryption key:on
                    ESSID:"Fnty"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000000837316cb1
                    Extra: Last beacon: 424ms ago
                    IE: Unknown: 0004466E7479
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030101
                    IE: Unknown: 0706555320010D14
                    IE: Unknown: 2A0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32043048606C
                    IE: Unknown: 2D1A6E1003FF00000000000000000000000000000000000000000000
                    IE: Unknown: 331A6E1003FF00000000000000000000000000000000000000000000
                    IE: Unknown: 3D1601001100000000000000000000000000000000000000
                    IE: Unknown: 341601001100000000000000000000000000000000000000
                    IE: Unknown: DD180050F2020101030003A4000027A4000042435E0062322F00
                    IE: Unknown: DD0900037F01010000FF7F
                    IE: Unknown: DD800050F204104A0001101044000102103B00010310470010000000000000100000005C63BFA50C6A1021000754502D4C494E4B10230009544C2D57523734304E10240003312E3010420003312E301054000800060050F204000110110018576972656C657373204E20526F757465722057523734304E100800020086103C000101
          Cell 02 - Address: 08:10:74:A0:08:16
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=29/70  Signal level=-81 dBm 
                    Encryption key:on
                    ESSID:"NETCORE"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000000835fd1aff
                    Extra: Last beacon: 352ms ago
                    IE: Unknown: 00074E4554434F5245
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030106
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD0700E04C01020300
          Cell 03 - Address: 02:30:B4:E3:2E:90
                    Channel:12
                    Frequency:2.467 GHz (Channel 12)
                    Quality=22/70  Signal level=-88 dBm 
                    Encryption key:off
                    ESSID:"ChinaNet-asus"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000000836b8e1e3
                    Extra: Last beacon: 192ms ago
                    IE: Unknown: 000D4368696E614E65742D61737573
                    IE: Unknown: 010482848B96
                    IE: Unknown: 03010C
                    IE: Unknown: 0706434820010D14
                    IE: Unknown: 2A0100
                    IE: Unknown: 32080C1218243048606C
                    IE: Unknown: DD070050F202000100
                    IE: Unknown: DD0A001091010300A80C0400
                    IE: Unknown: 050700010000000000
          Cell 04 - Address: 00:27:19:76:6D:62
                    Channel:13
                    Frequency:2.472 GHz (Channel 13)
                    Quality=28/70  Signal level=-82 dBm 
                    Encryption key:on
                    ESSID:"221-506"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              12 Mb/s; 24 Mb/s; 36 Mb/s
                    Bit Rates:9 Mb/s; 18 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000000903ec2181
                    Extra: Last beacon: 68ms ago
                    IE: Unknown: 00073232312D353036
                    IE: Unknown: 010882848B960C183048
                    IE: Unknown: 03010D
                    IE: Unknown: 2A0100
                    IE: Unknown: 32041224606C
                    IE: Unknown: DD0900037F01010008FF7F
                    IE: Unknown: DD1A00037F0301000000002719766D62022719766D6264002C010808

Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3810
Location: Hamburg

PostPosted: Mon Apr 09, 2012 9:39 am    Post subject: Reply with quote

I'm not sure but few versions ago the deprecated /proc entries in the kernel were needed : ACPI_PROCFS (and ACPI_PROC_EVENT seems to be needed too).[/code]
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Mon Apr 09, 2012 12:27 pm    Post subject: Reply with quote

Quote:
the sysfs don't allow me to create a symlink.


yeah, I guess the /sys file system does not allow that.

so much for the simple experiment

I guess you would need a udev rule but I don't know what it would
be ...

What version of udev do you have BTW?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
zasdfgbnm
n00b
n00b


Joined: 06 Apr 2012
Posts: 48

PostPosted: Mon Apr 09, 2012 12:33 pm    Post subject: Reply with quote

Code:
*  sys-fs/udev
      Latest version available: 182-r3
      Latest version installed: 182-r3
      Size of files: 773 kB
      Homepage:      http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html http://git.kernel.org/?p=linux/hotplug/udev.git;a=summary
      Description:   Linux dynamic and persistent device naming support (aka userspace devfs)
      License:       GPL-2
Back to top
View user's profile Send private message
zasdfgbnm
n00b
n00b


Joined: 06 Apr 2012
Posts: 48

PostPosted: Mon Apr 09, 2012 1:24 pm    Post subject: Reply with quote

I have tried to enable ACPI_PROCFS and ACPI_PROC_EVENT but that doesn't work, thank you all the same!
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Mon Apr 09, 2012 2:24 pm    Post subject: Reply with quote

my udev is 171-r5

did you problem start after the udev upgrade?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
zasdfgbnm
n00b
n00b


Joined: 06 Apr 2012
Posts: 48

PostPosted: Mon Apr 09, 2012 3:01 pm    Post subject: Reply with quote

No, I'm a new comer for gentoo. It's my first version. No upgrade.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Mon Apr 09, 2012 3:20 pm    Post subject: Reply with quote

Quote:
It's my first version. No upgrade.


It's tempting to wonder what would happen if you downgraded udev
and rebooted ... :)
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
zasdfgbnm
n00b
n00b


Joined: 06 Apr 2012
Posts: 48

PostPosted: Tue Apr 10, 2012 4:58 am    Post subject: Reply with quote

......
Back to top
View user's profile Send private message
zasdfgbnm
n00b
n00b


Joined: 06 Apr 2012
Posts: 48

PostPosted: Tue Apr 10, 2012 5:31 am    Post subject: Reply with quote

The system won't let me downgrade udev:
Code:
  (sys-fs/udev-182-r3::gentoo, installed) pulled in by
    >=sys-fs/udev-182 required by (sys-auth/consolekit-0.4.5-r3::gentoo, installed)
    (and 1 more with the same problem)

And I don't think it's a good idea in a new system downgrade the package to old one, maybe it's better to just wait for newer version to solve the problem. :)
Back to top
View user's profile Send private message
dolphinaura
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2010
Posts: 145

PostPosted: Fri Jun 29, 2012 5:32 pm    Post subject: Reply with quote

I am currently having the same problem - any updates?

EDIT: I just did the following
reemerged all polkitt-* dbus-* packages
upgraded to polkit-0.106-r5

Works now.
_________________
------------------------
Dolphinaura
http://twitter.com/dolphinaura
http://dolphinaura.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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