# BatMon - Battery Status on emulators

**URL:** https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461
**Category:** Developers
**Tags:** app
**Created:** [April 23, 2019, 1:59pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461 "2019-04-23T13:59:19Z")
**Posts on this page:** 14
**Page:** 2

<div class="post-metadata">

### Author: ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)
#### Post date: [October 5, 2019, 3:47pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/21 "2019-10-05T15:47:50Z")

</div>

Don´t you have an .xinitrc file where bashrc is located?

Do:

> nano ~/.xinitrc

And add what you added before to bashrc and remove it from bashrc  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/2/22886953afb7e38994a3dc9f0bf098799f30e604.png)

---

<div class="post-metadata">

### Author: ![Shwifty](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/shwifty/32/2980_2.png) [@Shwifty](https://forum.clockworkpi.com/u/Shwifty)
#### Post date: [October 6, 2019, 5:29am UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/22 "2019-10-06T05:29:00Z")

</div>

Still not running on reboot. Added

```
~/apps/Menu/99_BatMon/BatMon 30 2 &

```

To the end of _.xinitrc_ and still no luck 🤷🏻‍♂️

---

<div class="post-metadata">

### Author: ![Gabo](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/gabo/32/3505_2.png) [@Gabo](https://forum.clockworkpi.com/u/Gabo)
#### Post date: [November 3, 2019, 7:55pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/23 "2019-11-03T19:55:13Z")

</div>

> [@Petrakis](#):
>
> qmake BatmMon.pro  
> make

i have installed batmon but doesn’t work, i have the shortcut on the main menu but doesn’t work, any help please?

---

<div class="post-metadata">

### Author: ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)
#### Post date: [November 3, 2019, 8:36pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/24 "2019-11-03T20:36:33Z")

</div>

No need to compile, download the precompiled version: [https://github.com/Mihaylov93/BatMon/releases/download/0.4/BatMon.tar.gz](https://github.com/Mihaylov93/BatMon/releases/download/0.4/BatMon.tar.gz)

then

> sudo apt-get install libqtcore4  
> sudo apt-get install libqtgui4  
> tar -zxvf BatMon.tar.gz -C /home/cpi/apps/Menu/

---

<div class="post-metadata">

### Author: ![Gabo](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/gabo/32/3505_2.png) [@Gabo](https://forum.clockworkpi.com/u/Gabo)
#### Post date: [November 20, 2019, 5:04pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/25 "2019-11-20T17:04:07Z")

</div>

![16%20PM](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/2/2bfb49102e0840128a9df3284d0109f139bd92eb.png)

i don’t know if i am doing something wrong but dosn`t work ☹

---

<div class="post-metadata">

### Author: ![slock](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/slock/32/2722_2.png) [@slock](https://forum.clockworkpi.com/u/slock)
#### Post date: [November 20, 2019, 6:44pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/26 "2019-11-20T18:44:33Z")

</div>

It seems that you did not download the release file (BatMon.tar.gz), or at the very least that you did not put it in your working directory (here, that would be ~, which is an alias for /home/cpi).  
If you do not know how to do that, just run  
`wget https://github.com/Mihaylov93/BatMon/releases/download/0.4/BatMon.tar.gz`  
before launching the commands specified in the main post

---

<div class="post-metadata">

### Author: ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)
#### Post date: [November 20, 2019, 6:57pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/27 "2019-11-20T18:57:21Z")

</div>

Thats correct, either you have the BatMon.tar.gz in another folder and you need to specify the path or you dont have it and you will have to download it with

`wget https://github.com/Mihaylov93/BatMon/releases/download/0.4/BatMon.tar.gz`

---

<div class="post-metadata">

### Author: ![Gabo](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/gabo/32/3505_2.png) [@Gabo](https://forum.clockworkpi.com/u/Gabo)
#### Post date: [November 21, 2019, 7:10pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/28 "2019-11-21T19:10:32Z")

</div>

well, i did everything you told me to do, but when i want to run it nothing happen, am i skipping something?

---

<div class="post-metadata">

### Author: ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)
#### Post date: [November 21, 2019, 8:15pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/29 "2019-11-21T20:15:50Z")

</div>

It takes time to refresh, It paints the battery on top every 30 seconds by default, so maybe when you first run it nothing happens until 30 seconds.

Otherwise if its still not working try to run it from console to see if there is an error output on the console.

For that run:

> ~/apps/Menu/BatMon/BatMon

---

<div class="post-metadata">

### Author: ![Gabo](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/gabo/32/3505_2.png) [@Gabo](https://forum.clockworkpi.com/u/Gabo)
#### Post date: [November 21, 2019, 8:33pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/30 "2019-11-21T20:33:25Z")

</div>

i run it from the console and it works!!! thanks man 🙂

---

<div class="post-metadata">

### Author: ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)
#### Post date: [November 21, 2019, 8:34pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/31 "2019-11-21T20:34:23Z")

</div>

Then from the gameshell menu should work too, just give it time to refresh after you run it.

---

<div class="post-metadata">

### Author: ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)
#### Post date: [January 17, 2020, 10:51pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/32 "2020-01-17T22:51:03Z")

</div>

New version of BatMon released, working on OS 0.5

> [@Petrakis](#):
>
> Today
> 
> - Ported to Qt5.
> - Optimization and improvements.
> - Code cleaning and refactoring.

Download it from here [Release BatMon 0.5 · Mihaylov93/BatMon · GitHub](https://github.com/Mihaylov93/BatMon/releases/tag/0.5)

To install it:

> tar -zxvf BatMon-0.5.tar.gz -C /home/cpi/apps/Menu/

**Links:**  
Source code: [https://github.com/Mihaylov93/BatMon](https://github.com/Mihaylov93/BatMon)  
Releases: [https://github.com/Mihaylov93/BatMon/releases](https://github.com/Mihaylov93/BatMon/releases)

---

<div class="post-metadata">

### Author: ![gordi711](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/gordi711/32/3692_2.png) [@gordi711](https://forum.clockworkpi.com/u/gordi711)
#### Post date: [January 17, 2020, 11:48pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/33 "2020-01-17T23:48:23Z")

</div>

where do you execute commands from? your pc or gameshell ? where is the terminal on retro arch and how do you type them ?

---

<div class="post-metadata">

### Author: ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)
#### Post date: [January 17, 2020, 11:56pm UTC](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461/34 "2020-01-17T23:56:23Z")

</div>

After installing it, it will appear on your menu  
 ![splash](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/0/01f2898d3aa600e8b7927cfd63efab5f091a4804.png)

To download and install it you can run the following:

> wget [https://github.com/Mihaylov93/BatMon/releases/download/0.5/BatMon-0.5.tar.gz](https://github.com/Mihaylov93/BatMon/releases/download/0.5/BatMon-0.5.tar.gz)  
> tar -zxvf BatMon-0.5.tar.gz -C /home/cpi/apps/Menu/

After that you will see it in the menu.

[Previous page](https://forum.clockworkpi.com/t/batmon-battery-status-on-emulators/3461.md?page=1)
