Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1
Hi
I've been working on my app and finally is out.
It isn't shiny beautiful, but is
I need some testers to check if everything is showed all right.
Tell what's your kernel, and if the data are the same as in file
Code:
/home/user/MyDocs/.datadump
Already tested for kernel-power v46

Instruction:
1. Copy this executable anywhere you want it, but not on VFAT partitions, like /home/user/MyDocs. Without modding or reformatting, executing binaries from VFAT is not possible.
2. Make it executable:
Code:
chmod +x marbattery-0_9_1b
3. Run it:
Code:
./marbattery-0_9_1b


Tell if there are any bugs!

And I would've forgot it!
DOWNLOAD
install script - it needs to be in the same directory the executable is in
uninstall script - this one can be run from anywhere but VFAT partitions such as /home/user/MyDocs

Source code: attached

Screenshot:

Old version, deprecated: link

ChangeLog

0.9.1b:
* Fixed bug which make app crash without root or full permissions
- Changed the "intro message"

v0.9b:
* Initial beta release
Attached Files
File Type: gz marbattery.cpp.gz (1.7 KB, 61 views)

Last edited by marmistrz; 2012-06-15 at 18:03. Reason: old versions added, changelog, (un)install script // 6/15/12 - added source & screenshots
 

The Following 5 Users Say Thank You to marmistrz For This Useful Post:
Posts: 176 | Thanked: 110 times | Joined on Jul 2010
#2
will give it a try thanks man!!!!
 
MyNokiaN900's Avatar
Posts: 249 | Thanked: 217 times | Joined on Jan 2011 @ United Kingdom
#3
I will test it. I am on Power Kernel 47.
__________________
My Nokia N900 is my website, still up an running for the Maemo community. My Nokia N900 is upgraded to 21.2011.38-1Tmaemo1.1 ~ CSSU ready ~ Overclocked ~ Speed patched ~ Swappolube ~ was running 7 desktops ~ 270 apps and counting ~ Multi-Boot with Standard Kernel , Kernel Power 2.6.28.10power47 and NITDroid N12 "UMay".
 
MyNokiaN900's Avatar
Posts: 249 | Thanked: 217 times | Joined on Jan 2011 @ United Kingdom
#4
Originally Posted by MyNokiaN900 View Post
I will test it. I am on Power Kernel 47.
In X-Term I set the permission without a problem, but upon running the ./marbattery-0_9 I get the following error:

Permission Denied.

If I run the file from file box I get the following error:
No handler configured for application/x-executable (.file://home/user/MyDocs/Downloads/marbattery-0_9)


Should the file not have a .DEB extension?
__________________
My Nokia N900 is my website, still up an running for the Maemo community. My Nokia N900 is upgraded to 21.2011.38-1Tmaemo1.1 ~ CSSU ready ~ Overclocked ~ Speed patched ~ Swappolube ~ was running 7 desktops ~ 270 apps and counting ~ Multi-Boot with Standard Kernel , Kernel Power 2.6.28.10power47 and NITDroid N12 "UMay".

Last edited by MyNokiaN900; 2011-07-14 at 16:37.
 
Posts: 114 | Thanked: 109 times | Joined on Nov 2010 @ Finland
#5
Code:
~ $ sudo ./marbattery
MarBattery v.1.0
Created by Marcin Mielniczuk, 2010. 
This software is distributed under GNU GPL v3 terms. Use it on your own risk.

Battery state: OK
Battery is not charging
Charge: 606/1247 mAh
 (48%, 5/8 bars
Voltage: 3751/42000
~ $ uname -r
2.6.28-omap1
/home/user/MyDocs/.tmp/datadump shows exactly the same values.

MyNokiaN900, move it to eg. /home/user/, then chmod +x it, then run it as root.

Last edited by Keneraali; 2011-07-14 at 16:55.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#6
NokiaN900: do you know that a .deb file is? Open a .deb with an arcjiver such as Fileroller or 7zip and see. And the file I uploaded is an executable
 
Banned | Posts: 778 | Thanked: 337 times | Joined on Jun 2010
#7
Originally Posted by MyNokiaN900 View Post
In X-Term I set the permission without a problem, but upon running the ./marbattery-0_9 I get the following error:

Permission Denied.

If I run the file from file box I get the following error:
No handler configured for application/x-executable (.file://home/user/MyDocs/Downloads/marbattery-0_9)


Should the file not have a .DEB extension?
sudo gainroot
then try it
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#8
@Keneraali: which kernel do you use?Did this work without root?
 
MyNokiaN900's Avatar
Posts: 249 | Thanked: 217 times | Joined on Jan 2011 @ United Kingdom
#9
Fair enough, I copied the file to /home/user/ and chmod +x marbattery-0_9 and see the following:

MarBattery v.1.0
Created by Marcin Mielniczuk, 2010.
This software is distributed under GNU GPL v3 terms. Use it on your own risk.

terminate called after throwing an instance of 'std:ut_of_range' what(): basic_string::substr
Aborted.
__________________
My Nokia N900 is my website, still up an running for the Maemo community. My Nokia N900 is upgraded to 21.2011.38-1Tmaemo1.1 ~ CSSU ready ~ Overclocked ~ Speed patched ~ Swappolube ~ was running 7 desktops ~ 270 apps and counting ~ Multi-Boot with Standard Kernel , Kernel Power 2.6.28.10power47 and NITDroid N12 "UMay".
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#10
Originally Posted by fahadj2003 View Post
sudo gainroot
then try it
I'm pretty sure it's a permission issue. Try
Code:
chmod +x ./marbattery-0_9
and if this isnt working

Code:
chmod 777 ./marbattery-0_9
If it doesnt let you chmod - add "sudo" before 'chmod"

Aaah and I'd forget - if not modded you can't execute from fat - and ur homefs is fat32. the same thing with ntfs. so move the binary to your opt/root fs or use MaeModder or modify /etc/fstab

About the risk mentioned in prog: The only risks are filling your fs

This binary is with dbg symbols in as beta so if theres a problem, track it with gdb (built in on N900)
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:40.