Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Jul 2019, 23:23
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Battery Monitor
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [37 Posts]   Goto page: 1, 2, 3 Next
Author Message
zaivala

Joined: 21 Mar 2011
Posts: 125

PostPosted: Sat 21 Dec 2013, 15:51    Post subject:  Battery Monitor
Subject description: Looking for a battery indicator for my taskbar... find and show...
 

I'm absolutely positive someone has addressed this, but after 5 Searches and getting told I need to wait longer between searches...

Why is there not a battery monitor or indicator in the taskbar? What can I do to install/view/use one?

This is particularly an issue, as when my battery runs out in Puppy it shuts the computer off. Totally. And then I have to tell Puppy (upon reboot) to ignore the fact that X was shut down improperly.

I am using Puppy 571 on an ASUS X550CA.
Back to top
View user's profile Send private message 
trapster


Joined: 28 Nov 2005
Posts: 2119
Location: Maine, USA

PostPosted: Sat 21 Dec 2013, 16:23    Post subject:  

Vattery

Is rather dated. Your mileage may vary.

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Sat 21 Dec 2013, 16:54    Post subject:  

Look in /root/Startup for powerapplet_tray. This is the battery monitor, but it apparently is not working for you.

Look in /var/log/messages.
Back to top
View user's profile Send private message 
rokytnji

Joined: 20 Jan 2009
Posts: 2288

PostPosted: Sat 21 Dec 2013, 17:32    Post subject:  

This runs in JWM for me in AntiX. Maybe it works in Puppy?

http://antix.freeforums.org/batti-gtk-solved-t4662.html

Just make a bash startup file with batti & in Startup in rox maybe?

Code:
# start the battery monitor
batti &


Just posting the info is all.
Back to top
View user's profile Send private message 
zaivala

Joined: 21 Mar 2011
Posts: 125

PostPosted: Sat 21 Dec 2013, 18:26    Post subject:  

rcrsn51 wrote:
Look in /root/Startup for powerapplet_tray. This is the battery monitor, but it apparently is not working for you.

Look in /var/log/messages.


powerapplet_tray is there. How do I get it to show?
Right now my taskbar includes Sound, Network, Disk Space, and what I assume is Processor Use (red graph).
Back to top
View user's profile Send private message 
zaivala

Joined: 21 Mar 2011
Posts: 125

PostPosted: Sat 21 Dec 2013, 18:34    Post subject:  

I grabbed a couple from the Ubuntu repositories...

They are each missing the following dependencies:
combobox
ftp
img
tablelist
tktable
uri

and the good news is, the Ubuntu repositories claim to not include combobox... I didn't check the others, stopped at first roadblock.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Sat 21 Dec 2013, 18:47    Post subject:  

zaivala wrote:
How do I get it to show?

rcrsn51 wrote:
Look in /var/log/messages.

Code:
cat /var/log/messages | grep battery
Back to top
View user's profile Send private message 
zaivala

Joined: 21 Mar 2011
Posts: 125

PostPosted: Sun 22 Dec 2013, 03:21    Post subject:  

Code:
cat /var/log/messages | grep battery
[/quote]

Dec 22 21:21:55 puppypc27171 user.warn kernel: [ 13.670787] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
Dec 22 21:21:55 puppypc27171 user.info kernel: [ 13.670795] ACPI: Battery Slot [BAT0] (battery present)

OK, now what?
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Sun 22 Dec 2013, 08:54    Post subject:  

From the command line, run
Code:
ps

Is the powerapplet_tray running? Then run
Code:
/root/Startup/powerapplet_tray

Did that start it?
Back to top
View user's profile Send private message 
zaivala

Joined: 21 Mar 2011
Posts: 125

PostPosted: Sun 22 Dec 2013, 08:57    Post subject:  

# ps
PID USER TIME COMMAND
1 root 0:00 /bin/busybox init
2 root 0:00 [kthreadd]
3 root 0:00 [ksoftirqd/0]
5 root 0:00 [kworker/0:0H]
6 root 0:01 [kworker/u:0]
7 root 0:00 [kworker/u:0H]
8 root 0:00 [migration/0]
9 root 0:00 [rcu_bh]
10 root 0:00 [rcu_sched]
11 root 0:00 [migration/1]
12 root 0:00 [ksoftirqd/1]
13 root 0:00 [kworker/1:0]
14 root 0:00 [kworker/1:0H]
15 root 0:00 [khelper]
16 root 0:00 [bdi-default]
17 root 0:00 [kblockd]
18 root 0:00 [ata_sff]
19 root 0:00 [khubd]
20 root 0:00 [md]
21 root 0:00 [kworker/0:1]
22 root 0:00 [kswapd0]
23 root 0:00 [fsnotify_mark]
24 root 0:00 [crypto]
30 root 0:00 [scsi_eh_0]
31 root 0:00 [scsi_eh_1]
32 root 0:00 [scsi_eh_2]
33 root 0:00 [scsi_eh_3]
34 root 0:00 [scsi_eh_4]
35 root 0:00 [scsi_eh_5]
40 root 0:00 [kworker/u:5]
42 root 0:00 [scsi_eh_6]
45 root 0:00 [scsi_eh_7]
47 root 0:00 [kpsmoused]
48 root 0:00 [deferwq]
49 root 0:00 [kworker/1:2]
189 root 0:00 [kworker/0:1H]
230 root 0:00 [kworker/0:2]
304 root 0:00 [flush-8:0]
350 root 0:00 [kworker/1:1H]
503 root 0:00 [jbd2/sda4-8]
504 root 0:00 [ext4-dio-unwrit]
509 root 0:00 [loop1]
572 root 0:00 [flush-7:1]
575 root 0:00 [loop0]
618 root 0:00 [loop4]
623 root 0:00 [loop5]
628 root 0:00 [loop6]
822 root 0:00 /sbin/udevd --daemon --resolve-names=early
2419 root 0:00 [led_workqueue]
3350 root 0:00 [cfg80211]
3686 root 0:00 [kmemstick]
3926 root 0:00 [hd-audio0]
4503 root 0:00 -sh
4504 root 0:00 /sbin/getty 38400 tty2
4505 root 0:00 /sbin/getty 38400 tty3
4585 root 0:00 {xwin} /bin/sh /usr/bin/xwin
4637 root 0:00 /usr/bin/xinit /root/.xinitrc -- -br -nolisten tcp
4638 root 0:02 X :0 -br -nolisten tcp
4708 root 0:00 wpa_supplicant -B -Dwext -iwlan0 -c/etc/simple_network_se
4712 root 0:01 jwm
4803 root 0:00 syslogd -m 0
4805 root 0:00 klogd
4813 root 0:00 /usr/local/apps/ROX-Filer/ROX-Filer -p /root/Choices/ROX-
4814 root 0:00 /usr/local/pup_event/pup_event_frontend_d
4837 root 0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
4845 nobody 0:00 /usr/bin/gdomap -I /var/run/gdomap.pid -p
4854 messageb 0:00 /usr/bin/dbus-daemon --system
4980 root 0:00 /sbin/udevd --daemon --resolve-names=early
4982 root 0:00 /sbin/udevd --daemon --resolve-names=early
5163 root 0:00 xload -nolabel -bg #888888 -fg red -hl white
5276 root 0:00 {delayedrun} /bin/sh /usr/sbin/delayedrun
5278 root 0:00 /root/Startup/freememapplet_tray
5356 root 0:00 {delayedrun} /bin/sh /usr/sbin/delayedrun
5359 root 0:00 /root/Startup/network_tray
5471 root 0:00 {delayedrun} /bin/sh /usr/sbin/delayedrun
5473 root 0:00 retrovol -hide
5540 root 0:00 dhcpcd wlan0
6634 root 0:18 mozilla
6654 root 0:00 dbus-launch --autolaunch 9114cc65a7ee4c61af0292b600000077
6655 root 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address
6657 root 0:00 /usr/lib/i386-linux-gnu/gconf/gconfd-2
8935 root 0:00 [kworker/0:0]
10104 root 0:00 /usr/bin/urxvt
10105 root 0:00 bash
10228 root 0:00 busybox ps


# /root/startup/powerapplet_tray
bash: /root/startup/powerapplet_tray: No such file or directory
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Sun 22 Dec 2013, 09:01    Post subject:  

zaivala wrote:
# /root/startup/powerapplet_tray
bash: /root/startup/powerapplet_tray: No such file or directory

Startup is capitalized.
Back to top
View user's profile Send private message 
zaivala

Joined: 21 Mar 2011
Posts: 125

PostPosted: Sun 22 Dec 2013, 18:43    Post subject:  

Thank you, rcrsn51. Now I get:

# /root/Startup/powerapplet_tray
Floating point exception
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Sun 22 Dec 2013, 19:30    Post subject:  

zaivala wrote:
Floating point exception

That explains why it doesn't appear in the system tray.

I got out an old netbook and ran Precise 571 on the battery. I got the same error. I tried some other Puppies and got the same.

I have no idea how common a problem this is. Some laptop regulars will need to comment.

I tried jemimah's vattery and it also failed. But the command-line ibam worked.
Back to top
View user's profile Send private message 
zaivala

Joined: 21 Mar 2011
Posts: 125

PostPosted: Sun 22 Dec 2013, 20:40    Post subject:  

Already tried ibam...it is missing many dependencies, the first (at least) of which is not available in the repository... combobox, ftp, img, tablelist, tktable and uri
Back to top
View user's profile Send private message 
cimarron


Joined: 30 May 2013
Posts: 293

PostPosted: Sun 22 Dec 2013, 21:26    Post subject:  

I use Pbatt, which is pretty old, but I like it because it is simple and it's easy to change the icons used in the tray to whatever you want. Here's the original thread (with picture):

http://www.murga-linux.com/puppy/viewtopic.php?t=36492

The sources for some newer versions of Pbatt are available through this post on BK's blog:

http://bkhome.org/blog/?viewDetailed=01409

I have 0.3.2, and edited the bevent code to give an audible puppy bark when the battery gets very low. Also added a check so pbatt will only launch if a battery is present. I could provide these, if you're interested. Mine looks like this (with tooltip visible):
pbatt.png
 Description   
 Filesize   6.27 KB
 Viewed   470 Time(s)

pbatt.png


Last edited by cimarron on Tue 24 Dec 2013, 09:12; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [37 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0568s ][ Queries: 13 (0.0096s) ][ GZIP on ]