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)

Keneraali 2011-07-14 17:24

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

Originally Posted by marmistrz (Post 1051034)
@Keneraali: which kernel do you use?Did this work without root?

I have the stock kernel, 2.6.28-omap1. Without root the script gives me
Code:

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:26

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

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

I'll examine it 2moro
If you can please post some gdb output

cutehunk04 2011-07-14 18:26

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

marmistrz 2011-07-14 18:56

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
It's just console prog, but I'll post some soon
But it will have GUI later

marmistrz 2011-07-14 19:41

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
as ive seen theres no problem when the binaries have full permissions, as -rwxrwxrwx
Any idea why this happens?

cutehunk04 2011-07-14 20:24

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
doesnt worrk for me... :(

marmistrz 2011-07-15 06:05

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
tell is it the error mentioned before?
Does it persist with full permissions?
Do you have now -rwxr-xr-x permissions?

marmistrz 2011-07-15 07:39

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
Fixed, I'm just uploading it!
EDIT: Note, now the file is /home/user/MyDocs/.datadump

lidow 2011-07-15 08:27

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
I've just tested the last release. Working for me not sure if it is accurate though. I'll let you know if I found a problem here.


Please change this text in your first post to something that indicates that the binary should not be copied under VFAT filesystems (Ex. /home/user/MyDocs or /media/mmc1):

Copy this executable anywhere you want it.

marmistrz 2011-07-15 09:58

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
Enjoy a new install script done by me!

marmistrz 2011-07-15 10:19

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
And now I've added the uninstall script. Until it's final, it'll be distributed as a binary. Soon I'll add it to extras-devel!

lidow 2011-07-15 12:47

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
I did not run your install script, but after looking at it I cannot find where you create directory /opt/marbattery. I doubt it is there by default.

marmistrz 2011-07-15 13:25

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
I've just added a corrected version :)
I'm too late :)

lidow 2011-07-15 14:08

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
hmmm, I cannot see read command.

so it will not wait for user action after this line:

echo "Press any key to install MarBattery 0.9.1 beta. Press ctrl+c or exit the terminal to abort the installation."

marmistrz 2011-07-15 16:44

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
Whoops, bad file :)

Estel 2011-07-15 17:23

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
It's getting info from BME or bqw27200? Is it configurable? Do You use dr_frost_dk excellent algorithm to calculate REAL percentage of capacity, instead of linearly guessed one (default)?

marmistrz 2011-07-15 19:40

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
I'm using

Code:

lshal -u /org/freedesktop/devices/Hal/bme
I'm just reading some data from dump of this command

No, I'll check that algorithm

marmistrz 2011-08-16 17:31

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
This project is temporarily frozen as I need an application for myself.
It'll be Shotime-based tv-program browser, as showtime doesn't satisfy my needs.

marmistrz 2012-06-15 16:56

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
I'm uploading the source code to the first post.
If this is useful, I may continue the development of it.

sixwheeledbeast 2012-06-15 17:48

Re: [Testers needed] [Announce] [Beta] First version of marbattery - brand-new battery information-getting app
 
How does this differ from bnf?
Screenshots?

marmistrz 2012-06-15 17:59

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

Originally Posted by sixwheeledbeast (Post 1222410)
How does this differ from bnf?
Screenshots?

I didn't use bnf. I did it a long time ago and now I recalled this app and decided to publish the source.

Screenshots are on the way.


All times are GMT. The time now is 21:52.

vBulletin® Version 3.8.8