Page 2 of 2
Re: batterymon problem.
Posted: 10. Feb 2012, 12:28
by Shador
globetrotterdk wrote:That still doesn't account for my getting the same error message as previously with the other install.
Then the message is probably unrelated and unproblematic (just a warning). Therefor I can only repeat: What exact problems are you experiencing? Program doesn't start, it crashes, feature/functionality xy doesn't work...?
Regarding acpi, I was more looking towards disabled acpi in the kernel by a kernel parameter.
Re: batterymon problem.
Posted: 10. Feb 2012, 12:29
by mimosa
A small point - "locate" hasn't got its database yet on at elast one of those machines. You need to do:
Re: batterymon problem.
Posted: 10. Feb 2012, 12:35
by globetrotterdk
Shador wrote:Some problem with settings. Either it's referring to gtk themes or some internal theming system of batterymon. In the first case per-user gtk theme settings would be troublesome in the latter case batterymon's own settings.
Thanks for the reply. I am getting the same error message on the EeePC as I posted in reply to mimosa when I execute the following command
Code: Select all
# locate libnotify
locate: fatal error: Could not find user database '/var/lib/slocate/slocate.db': No such file or directory
Here is the following command on the EeePC
Code: Select all
user[~]$ cd /opt/batterymon
user[batterymon]$ ls -l | grep batterymon.py
-rwx------ 1 user users 17389 May 1 2009 batterymon.py
Code: Select all
user[bin]$ ls -l | grep batterymon
-rwxr-xr-x 1 root root 46 Feb 9 12:31 batterymon
I then ran
Code: Select all
chmod +x /opt/batterymon/batterymon.py
The result is now
Code: Select all
$ ls -l | grep batterymon
-rwx--x--x 1 root root 46 Feb 9 12:31 batterymon
That doesn't look similar to the other files. Should't it be
Code: Select all
user[~]$ cd /opt/batterymon
user[batterymon]$ ls -l | grep batterymon.py
-rwxr-xr-x 1 user users 17389 May 1 2009 batterymon.py
?
Re: batterymon problem.
Posted: 10. Feb 2012, 12:39
by globetrotterdk
Shador wrote:globetrotterdk wrote:That still doesn't account for my getting the same error message as previously with the other install.
Then the message is probably unrelated and unproblematic (just a warning). Therefor I can only repeat: What exact problems are you experiencing? Program doesn't start, it crashes, feature/functionality xy doesn't work...?
Regarding acpi, I was more looking towards disabled acpi in the kernel by a kernel parameter.
Sorry, batterymon refuses to start.
Edit: Both systems are setup to start batterymon at log-in, however batterymon neither starts at log-in nor when I use alt-f2 "batterymon"
Re: batterymon problem.
Posted: 10. Feb 2012, 12:45
by globetrotterdk
mimosa wrote:A small point - "locate" hasn't got its database yet on at elast one of those machines. You need to do:
Cheers. libnotify now returns
Code: Select all
# locate libnotify
/var/log/packages/libnotify-0.5.2-i486-1
/var/log/scripts/libnotify-0.5.2-i486-1
/usr/include/libnotify
/usr/include/libnotify/notify-features.h
/usr/include/libnotify/notify-enum-types.h
/usr/include/libnotify/notify.h
/usr/include/libnotify/notification.h
/usr/share/gtk-doc/html/libnotify
/usr/share/gtk-doc/html/libnotify/libnotify-notify.html
/usr/share/gtk-doc/html/libnotify/ch01.html
/usr/share/gtk-doc/html/libnotify/right.png
/usr/share/gtk-doc/html/libnotify/libnotify.devhelp2
/usr/share/gtk-doc/html/libnotify/index.html
/usr/share/gtk-doc/html/libnotify/style.css
/usr/share/gtk-doc/html/libnotify/libnotify.devhelp
/usr/share/gtk-doc/html/libnotify/up.png
/usr/share/gtk-doc/html/libnotify/index.sgml
/usr/share/gtk-doc/html/libnotify/home.png
/usr/share/gtk-doc/html/libnotify/libnotify-notification.html
/usr/share/gtk-doc/html/libnotify/left.png
/usr/lib/pkgconfig/libnotify.pc
/usr/lib/libnotify.so.1.3.0
/usr/lib/libnotify.so
/usr/lib/libnotify.la
/usr/lib/libnotify.so.1
/usr/doc/libnotify-0.5.2
/usr/doc/libnotify-0.5.2/ChangeLog
/usr/doc/libnotify-0.5.2/README
/usr/doc/libnotify-0.5.2/libnotify.SlackBuild
/usr/doc/libnotify-0.5.2/AUTHORS
/usr/doc/libnotify-0.5.2/COPYING
/usr/doc/libnotify-0.5.2/html
Re: batterymon problem.
Posted: 10. Feb 2012, 12:46
by mimosa
To make locate work, you need to update its database, see my previous post.
Regarding libnotify, I suggest ensuring everything's there by:
#slapt-get -i libnotify notify-python
I'm not sure what those permissions should be but the key thing must be execute permission, which you now have ('x').
As Shador says, it may help if you can say more specifically what is going on - does batterymon run at all?
EDIT
Also, assuming it does, if only to complain and die, permissions aren't the problem. It seems the script starts, but either something is missing, or something is wrong in the configuration.
Re: batterymon problem.
Posted: 10. Feb 2012, 14:42
by globetrotterdk
Thanks. Installing notify-python got rid of the libnotify install error on my EeePC. batterymon.py will
only run from within the /opt/batterymon/ folder on both both the Dell and the EeePC. The errors when running are the same
Code: Select all
$ cd /opt/batterymon
user[batterymon]$ ./batterymon.py
2012-02-10 15:29:28,661 - batterymon - ERROR - org.freedesktop.Hal.NoSuchProperty: No property battery.remaining_time on device with id /org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0
Trying to run batterymon from my home directory results in the same error on both systems, when run from the terminal
Code: Select all
user[~]$ batterymon
2012-02-10 15:35:25,776 - batterymon - ERROR - Theme default does not exists, falling back to default
2012-02-10 15:35:25,776 - batterymon - ERROR - Theme default does not exists, falling back to default
2012-02-10 15:35:25,777 - batterymon - CRITICAL - Default theme does not exists, fatal
2012-02-10 15:35:25,777 - batterymon - CRITICAL - Default theme does not exists, fatal
Those are the same errors that I received when trying to use a semantic link for sunflower.py
Re: batterymon problem.
Posted: 10. Feb 2012, 15:11
by mimosa
I'm not sure about the first error you posted, which looks like some sort of problem with how batterymon actually does its stuff. Did you try Shador's suggestion about modprobe?
The second problem looks like something is wrong with how the launcher script is calling batterymon. I'd suggest double-checking that everything is exactly as it should be, permissions correct, in the right place, the contents of the launcher script are correct and correspond to the location of batterymon.py. Compare with Sunflower ... Also, have a look at batterymon.py (cat batterymon.py | less) in case the file's been overwritten or something.
EDIT
Also wherever the launcher script is, is it in your $PATH? It should be ...
Re: batterymon problem.
Posted: 10. Feb 2012, 17:21
by globetrotterdk
I think I have solved the problems now. It seems to have been a combination of problems with the way the /opt/batterymon directory as well as sub-directories and files' permissions were set, and the /usr/local/bin/batterymon file I was using. Thanks for all of your help and thanks to Shador as well.
Re: batterymon problem.
Posted: 10. Feb 2012, 17:42
by mimosa
Great!
By the way, to see the permissions, etc. of a directory, add the -d switch:
otherwise you get the directory's *contents*.
It's possible you've got over-restrictive default permissions on one or other of those machines. Someone had a problem a little like that a while back - in fact, maybe it was you? Sorry, memory like a sieve ...
The output of
should normally be 0022 if it hasn't been altered.
EDIT
No, I see it was Zievatron who had that problem. Another case of a fresh install ...