Active Topics

 



Notices


Reply
Thread Tools
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#21
True, although there are ways of estimating the effect reasonably reliably; certainly reliably enough for the intended purpose of estimating hours of life. (After all, we're just hijacking the data that's intended for display in purposeful vagueness, so the bme lads needn't concern themselves with accuracy.) But that's a closed-source module, so unless Nokia cares it won't happen.
 
Posts: 9 | Thanked: 2 times | Joined on Apr 2008
#22
I installed battery status without any errors. Can anyone tell me why I get the following error when I execute the command in x-term?:

Nokia-N800-23-14:~# battery-status
-sh: battery-status: not found
Nokia-N800-23-14:~#

Last edited by mjb; 2008-09-05 at 01:55.
 
TrueJournals's Avatar
Posts: 480 | Thanked: 378 times | Joined on Apr 2008 @ Chicago-ish
#23
Try running it as user instead of root. Most methods of becoming root (using sudo gainroot), change the path to be less inclusive. Depending on where the executable has been placed, the location could have been removed from the path.
__________________
Disclaimer: If a program I wrote doesn't work/breaks your tablet... It's not my fault
mcedit | Utility Calculators (WIP) | PyRDesktop
My Blog | Twitter
 
Posts: 9 | Thanked: 2 times | Joined on Apr 2008
#24
Try running it as user instead of root. Most methods of becoming root (using sudo gainroot), change the path to be less inclusive. Depending on where the executable has been placed, the location could have been removed from the path.
I tried running as user, as well as tried to execute from /usr/bin directory where the executable is located. I still have the same problem. I also removed and reinstalled, still no luck. I'm completely baffled.
 
TrueJournals's Avatar
Posts: 480 | Thanked: 378 times | Joined on Apr 2008 @ Chicago-ish
#25
I guess I should test these things before I give advice. What OS version are you running? I'm running the latest Diablo SSU update (4.2008.30-2), and battery-status doesn't seem to work. Guess something must have changed, sorry :-\ You can try PMing the author to request an update.
__________________
Disclaimer: If a program I wrote doesn't work/breaks your tablet... It's not my fault
mcedit | Utility Calculators (WIP) | PyRDesktop
My Blog | Twitter
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#26
This is a python app. When a executable file that has text in it i.e a script, it runs the program on the first "magic" line in that script (#!...) . But if that program that the script needs to be interpreted does not exist, it will throw a command not found even if the script is there and set exec (in this case; battery-status). So make sure python is actually installed.

BTW:I fixed most my problems with this by:
vi /usr/bin/battery-status
and changing the 1st line to #!/usr/bin/python2.5
 
Posts: 9 | Thanked: 2 times | Joined on Apr 2008
#27
BTW:I fixed most my problems with this by:
vi /usr/bin/battery-status
and changing the 1st line to #!/usr/bin/python2.5
Excellent, this solved my problem. Thanks querty12!
 
Reply


 
Forum Jump


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