Package Details: calise 0.4.2-1

Git Clone URL: https://aur.archlinux.org/calise.git (read-only)
Package Base: calise
Description: A program that computes ambient brightness and sets screen's correct backlight using a webcam.
Upstream URL: http://calise.sourceforge.net/
Licenses: GPL3
Conflicts: calise-git
Provides: calise
Replaces: camsensor
Submitter: smilzoboboz
Maintainer: ItachiSan
Last Packager: ItachiSan
Votes: 44
Popularity: 0.027565
First Submitted: 2011-07-17 23:22
Last Updated: 2015-07-12 14:06

Latest Comments

evertonstz commented on 2015-12-18 22:22

Anyone with the same error? I have it in both, calise and calise-git:

Traceback (most recent call last):
File "/usr/bin/calise", line 246, in <module>
r = main()
File "/usr/bin/calise", line 191, in main
loadProfile()
File "/usr/lib/python2.7/site-packages/calise/shared.py", line 132, in loadProfile
pf.check_config(cf)
File "/usr/lib/python2.7/site-packages/calise/optionsd.py", line 612, in check_config
self.parse_config()
File "/usr/lib/python2.7/site-packages/calise/optionsd.py", line 625, in parse_config
settings[skey] = config.getint(option, key)
File "/usr/lib/python2.7/ConfigParser.py", line 359, in getint
return self._get(section, int, option)
File "/usr/lib/python2.7/ConfigParser.py", line 356, in _get
return conv(self.get(section, option))
ValueError: invalid literal for int() with base 10: '886.92'

ItachiSan commented on 2015-07-12 13:48

@antihero it is fixed in calise-git.
I suggest to everybody to move to 'calise-git' as it is working better; also, as it seems that there is no upstream new release, I would leave this package as it is.

antihero commented on 2014-09-17 22:13

Whenever I try to calibrate I get this:

Now calibrating, do not uncover the webcam...
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/site-packages/calise/calibration/functions.py", line 222, in run
self.cap.startCapture()
File "/usr/lib/python2.7/site-packages/calise/capture.py", line 171, in startCapture
self.adjustCtrls()
File "/usr/lib/python2.7/site-packages/calise/capture.py", line 334, in adjustCtrls
tmp = self.cameraObj.queryCtrl(x)
SystemError: error return without exception set

smilzoboboz commented on 2014-08-12 07:57

@x4fyr: that's strange, I listed python2-dbus as dependency (you're clearly missing that package) ;)

btw, before using calise, give a look at calise-git.
Also carefully read the wiki at http://calise.sourceforge.net/mediawiki/

smilzoboboz commented on 2014-08-12 07:57

btw, before using calise, give a look at calise-git.
Also carefully read the wiki [URL="http://calise.sourceforge.net/mediawiki/"]http://calise.sourceforge.net/mediawiki/[/URL]

smilzoboboz commented on 2014-08-12 07:54

@x4fyr: that's strange, I listed python2-dbus as dependency (you're clearly missing that package) ;)

x4fyr commented on 2014-08-10 19:33

Hey,
I get this error:

ERROR: Python module dbus not found
ERROR: Python module msvcrt not found
ERROR: Python module msvcrt not found
Traceback (most recent call last):
File "setup.py", line 133, in <module>
ext_modules=[addModule1, addModule2],
File "/usr/lib/python2.7/site-packages/DistUtilsExtra/auto.py", line 98, in setup
__requires(attrs, src_all)
File "/usr/lib/python2.7/site-packages/DistUtilsExtra/auto.py", line 470, in __requires
__add_imports(imports, s, attrs)
File "/usr/lib/python2.7/site-packages/DistUtilsExtra/auto.py", line 404, in __add_imports
if alias.name and __external_mod(cur_module, alias.name, attrs):
File "/usr/lib/python2.7/site-packages/DistUtilsExtra/auto.py", line 348, in __external_mod
mod = __import__(module)
File "/usr/lib/python3.4/site-packages/dbus/__init__.py", line 81, in <module>
import dbus.exceptions as exceptions
AttributeError: 'module' object has no attribute 'exceptions'

TamCore commented on 2013-04-26 17:48

PKGBUILD: line 41: ../../iss3607544.fix.diff: No such file or directory

Works fine after removing one of the '../'

smilzoboboz commented on 2012-07-30 09:37

0.4.1-1 release note: a new value check method has been implemented and so a new calibration is likely needed to avoid wrong return values.

smilzoboboz commented on 2012-07-13 06:57

Patches explaination:

iss3543010.fix.diff: pointer from integer without cast (64bit) bugfix (useless, it was a request to being able uploading to Launchpad)
iss3543055.fix.diff: a bugfix for a bug that affected cameras with slow initialization time (on calibration step-6 only)
patch)
iss3540266.fix.diff: geoip city display on calibration (not a bugfix but since it was done I included it)

smilzoboboz commented on 2012-06-27 12:56

@juanmah:
it means that you (should) have no backlight interfaces available, you can check by doing "ls /sys/class/backlight/", if returns none than that's it (and of course you cannot use this program, sorry :( ).
The error before (msvcrt) can just be ignored and the warnings have to be there.

juanmah commented on 2012-06-27 10:38

I get this error:

==> Starting build()...
ERROR: Python module msvcrt not found
ERROR: Python module msvcrt not found
[...]
WARNING: the following files are not recognized by DistUtilsExtra.auto:
INSTALL
config/sample.conf
src/modules/screenBrightness.c
tool/caliseProfileUpdater.py
==> Starting package()...
device path not found
Your configuration is currently not supported.

smilzoboboz commented on 2012-05-18 13:47

0.2.0-1
Profile naming changed, refer to config/sample.conf for all available options, to update previous profiles to newer use the tool /usr/bin/caliseProfileUpdater.py
usage: caliseProfileUpdater.py profile1 [profile2 ...]
Also few cli switches changed so, please, refer to man pages (both calise and calised) for further informations
The daemon got a lot of improvements sunce 0.1.x, try it!

smilzoboboz commented on 2012-03-27 19:58

0.1.1-1: Fixed non-daemon execution bug and dst (daylight saving time) realted issues.

smilzoboboz commented on 2012-02-23 00:29

Release 0.1.0 adds daemon support. Type "man calised" for brief infos or take a look at the website for further ones.

If you are updating from an existing installation, you have to either re-run "calise --calibration" (all but geolocation step and last step will be skipped) or add manually to the profile you use your latitude and longitude in the format described below:

[Positional]
latitude = 46.04546789 # replace with your latitude
longitude = 13.568765156 # replace with your longitude
# you can check your location on http://www.earthtools.org/

smilzoboboz commented on 2012-02-23 00:26

Release 0.1.0 adds daemon support. Type "man calised" for brief infos or take a look at the website for further ones.

Nierro commented on 2012-01-04 13:36

well, ok!thanks...I wrote on italian forum about another problem, on your project thread, when you got time, try to have a look! thanks again for this wonderful software!

smilzoboboz commented on 2012-01-03 12:57

Nierro, I'm fixing that problem, I didn't take in consideration the possibility of having two or more settings methods (usually the kernel only relays on acpi also if there are others). As you noticed, manually giving the "path" switch solves the problem

Nierro commented on 2012-01-02 20:52

Ok i did it!
i had to use the --path option...because it seems like /sys/class/backlight/intel_agp is not supported, or well i can't get it to work...i had to use acpi_video0 instead!Thanks very nice work!

Nierro commented on 2012-01-02 20:35

ok on my other laptop it just works, and it is wonderful...but i can't understand why on my little eeepc it doesn't!
i did the same on the two laptops...any idea?

Nierro commented on 2012-01-02 12:28

After step 5 of "sudo calise", when i give calise the value of natural light in my room, my screen became black as my netbook is halt...and i can't do anything (i can't set my screen or ctrl+alt+f1,2,3 won't do anything)...and i have to hard reset! Any suggestions?

smilzoboboz commented on 2011-09-02 01:05

Thanks Dr.Egg, fixed (rel.4)

rwhite226 commented on 2011-09-01 00:26

pyxdg is a requirement

smilzoboboz commented on 2011-07-17 23:52

Camsensor is now Calise, and can be found as AUR package too.

smilzoboboz commented on 2011-07-05 14:49

from version 0.0.1 to 0.0.2, the config path has been changed to xdg_user_dirs default, so you have to copy old config files from ~/.local/share/camsensor to ~/.config/camsensor.

smilzoboboz commented on 2011-06-22 17:19

from version 0.0.1 to 0.0.2, the config path has been changed to xdg_user_dirs default, so you have to copy old config files from ~/.local/share/camsensor to ~/.config/camsensor.
I've written a basic bash script to better explain how signal exceptions are managed.

#!/bin/bash
pid=`ps -A -F | grep camsensor | grep python | awk '{print $2}'`
case "$1" in
pause) kill -`env python2 -c 'import signal; print signal.SIGTSTP'` $pid;;
resume) kill -`env python2 -c 'import signal; print signal.SIGUSR1'` $pid;;
stop) kill -15 $pid;; # SIGTERM
kill) kill -9 $pid;; # SIGKILL (not excepted, forced exit as it has to be)
esac