maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app (https://talk.maemo.org/showthread.php?t=74924)

marmistrz 2011-07-14 15:33

[Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
1 Attachment(s)
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: http://img85.imageshack.us/img85/774...2061519582.png

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

Jigzy 2011-07-14 15:37

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
will give it a try thanks man!!!!

MyNokiaN900 2011-07-14 15:58

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
I will test it. I am on Power Kernel 47.

MyNokiaN900 2011-07-14 16:33

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
Quote:

Originally Posted by MyNokiaN900 (Post 1050998)
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?

Keneraali 2011-07-14 16:52

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
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.

marmistrz 2011-07-14 17:09

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
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

fahadj2003 2011-07-14 17:13

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
Quote:

Originally Posted by MyNokiaN900 (Post 1051016)
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

marmistrz 2011-07-14 17:16

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
@Keneraali: which kernel do you use?Did this work without root?

MyNokiaN900 2011-07-14 17:18

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
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::out_of_range' what(): basic_string::substr
Aborted.

marmistrz 2011-07-14 17:22

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
Quote:

Originally Posted by fahadj2003 (Post 1051033)
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)


All times are GMT. The time now is 16:19.

vBulletin® Version 3.8.8