maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   N900 Video focus and led light, python script (https://talk.maemo.org/showthread.php?t=46427)

hackiz 2010-03-17 01:25

Re: N900 Video focus and led light, python script
 
Hi!

I'm a bit new to this... :/

I have installed the last pack, but I can't get it to work..
I open the cam, but kan find any lfocus icon...

Pls help someone. :)

Thanks!

seiichiro0185 2010-03-17 10:55

Re: N900 Video focus and led light, python script
 
same here, installed latest deb from the first post, but no icon appears regardless of open or closed cam.

Andy1210 2010-03-22 16:55

Re: N900 Video focus and led light, python script
 
after install, restart your phone!!! :)
working for me, you are AWESOME! This is very very very nice! :)

Barrie 2010-03-22 18:45

Re: N900 Video focus and led light, python script
 
Hi!

I downloaded the latest version and rebooted the phone but the icon does not show up. Could this be because I currently use Quick Launch?

Barrie

Metalov 2010-03-22 19:13

Re: N900 Video focus and led light, python script
 
Installed it with lfocus_0.309-1_all.deb.

There is no lfocus on the indication bar, neither before nor after a reboot.

It however works fine after running it manually with:
sudo lfocus start
after opening the camera lens cover; can use the physical keyboard keys but there still are no control buttons on the touchscreen.

It also sometimes takes 2 key presses to either turn on or turn off the LED/red LED.

Generally a very useful script, even though it doesn't seem to work as intended (no ifocus on the bar, no touchscreen control because of that), unless I'm doing something wrong.

Do you think it would be possible to, through a similar script or something else, disable the red LED blinking while taking a photo with flash off?

m2cm2c 2010-03-22 19:53

Re: N900 Video focus and led light, python script
 
hey guys, I'm sorry for my late reply since I've been really busy these days.

as for the issue of the widget not showing up when you open the lens cover, I "think" it could be because of some missing packages.
please try to run the following commands as root and see if it works for you or not:

apt-get update
apt-get upgrade
apt-get install python-hildondesktop hildon-desktop-python-loader python-gtk2 python-dbus
pkill -f /usr/bin/hildon-status-menu

after running those commands successfully you should be able to see the lfocus menu when you open up the lens cover.
and please read the first post on this thread for more information about the usage and operation of this script

cheers :D

Metalov 2010-03-22 20:37

Re: N900 Video focus and led light, python script
 
I upgraded and installed the missing packages you listed but it still doesn't show. Any other ideas/missing dependencies?

EDIT: Nevermind, already figured it out.

hackiz 2010-03-22 21:39

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by Metalov (Post 577769)
I upgraded and installed the missing packages you listed but it still doesn't show. Any other ideas/missing dependencies?

EDIT: Nevermind, already figured it out.

Please do share... it didn't worke for me.. :(

Typed in the commands successfully, but didn't find any lfocus icone.

Metalov 2010-03-22 21:45

Re: N900 Video focus and led light, python script
 
I was first looking for it at the Camera dropdown list, but it's actually placed in the Notification Area (clock, connections, battery status), so just click there while having the camera app running and it should be there.

hackiz 2010-03-22 21:51

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by Metalov (Post 577862)
I was first looking for it at the Camera dropdown list, but it's actually placed in the Notification Area (clock, connections, battery status), so just click there while having the camera app running and it should be there.

Aha, I see... heh, but can't find it there either.. :confused:

Does it have something with that I have the FlashLight program installed?

Metalov 2010-03-22 21:57

Re: N900 Video focus and led light, python script
 
1. Try rebooting.
2. Make sure you have at least extras-testing enabled before performing the update/installing the missing packages.
3. I'm using FlashLight too so I don't think there's any conflict.

hackiz 2010-03-22 22:01

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by Metalov (Post 577874)
1. Try rebooting.
2. Make sure you have at least extras-testing enabled before performing the update/installing the missing packages.
3. I'm using FlashLight too so I don't think there's any conflict.

1. Done.
2. Yeah, I have it enabled (in the add.manager "Catalogues" if this is right?)
3. Okay, that sounds great.

Wondering what's the problem then. :confused:

Metalov 2010-03-22 22:13

Re: N900 Video focus and led light, python script
 
Well the only thing that I did additionally was uninstalling and then reinstalling the lfocus package (After installing all the dependencies). If that doesn't help, maybe followed by a reboot, then I'm afraid I cannot assist you further.

maxximuscool 2010-03-22 22:14

Re: N900 Video focus and led light, python script
 
I'm still waiting for this implementation to be usable on screen focus without grey area.

hackiz 2010-03-22 22:21

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by Metalov (Post 577898)
Well the only thing that I did additionally was uninstalling and then reinstalling the lfocus package (After installing all the dependencies). If that doesn't help, maybe followed by a reboot, then I'm afraid I cannot assist you further.

Nope, nothing. Tryed uninstalling, then reinstalling and reboot, but nothing. :(

m2cm2c: can you help out with something here? :)

Barrie 2010-03-22 22:35

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by m2cm2c (Post 577717)
hey guys, I'm sorry for my late reply since I've been really busy these days.

as for the issue of the widget not showing up when you open the lens cover, I "think" it could be because of some missing packages.
please try to run the following commands as root and see if it works for you or not:

apt-get update
apt-get upgrade
apt-get install python-hildondesktop hildon-desktop-python-loader python-gtk2 python-dbus
pkill -f /usr/bin/hildon-status-menu

after running those commands successfully you should be able to see the lfocus menu when you open up the lens cover.
and please read the first post on this thread for more information about the usage and operation of this script

cheers :D

Yeah, that fixed it. Thanks.

Barrie

m2cm2c 2010-03-22 23:10

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by hackiz (Post 577905)
Nope, nothing. Tryed uninstalling, then reinstalling and reboot, but nothing. :(

m2cm2c: can you help out with something here? :)

hmm,if you've followed my instructions and still can't see it then I'm just guessing that you already have to many applets running and that's causing you not to see the lfocus icon ?

hackiz 2010-03-22 23:15

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by m2cm2c (Post 577969)
hmm,if you've followed my instructions and still can't see it then I'm just guessing that you already have to many applets running and that's causing you not to see the lfocus icon ?

Is it a limit og how many applets you can run in the statusbar? It seems it looks like there is an open slot there, so i don't think it's that. I can trye uninstalling one and try..

elphoenix24 2010-03-23 07:46

Re: N900 Video focus and led light, python script
 
it would be great to implementent it inside camera application... but meanwhile... thank u very much... works prefectly

Barrie 2010-03-23 09:34

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by hackiz (Post 577979)
Is it a limit og how many applets you can run in the statusbar? It seems it looks like there is an open slot there, so i don't think it's that. I can trye uninstalling one and try..

No, I don't think there is a limit. If there are too many to show you can simply scroll down.

Barrie

zimon 2010-03-27 18:13

Re: N900 Video focus and led light, python script
 
I tried to search this lfocus (LFOCUS?) from repositories with "apt-cache search lfocus", but couldn't find it.
In which repository it is and with what name?

CraigRobbo 2010-03-27 18:15

Re: N900 Video focus and led light, python script
 
Sorry for the daft qustions(im not much of a linux user) Iv installed the .deb package and when i open the camera cover nd tap the screen>menu Ifocus isnt there not even if i start recording, is there somthign else i must do?

m2cm2c 2010-03-27 21:30

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by zimon (Post 584495)
I tried to search this lfocus (LFOCUS?) from repositories with "apt-cache search lfocus", but couldn't find it.
In which repository it is and with what name?

I've not added it to the repos yet

Quote:

Originally Posted by CraigRobbo (Post 584497)
Sorry for the daft qustions(im not much of a linux user) Iv installed the .deb package and when i open the camera cover nd tap the screen>menu Ifocus isnt there not even if i start recording, is there somthign else i must do?

I've mentioned some instructions here ,just read through the thread and you'll find useful info.

saxen 2010-03-28 13:32

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by m2cm2c (Post 584708)
I've mentioned some instructions here ,just read through the thread and you'll find useful info.

doesn't work even if i follow them :(

Darkwolf 2010-03-31 07:00

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by m2cm2c (Post 584708)
I've not added it to the repos yet
I've mentioned some instructions here ,just read through the thread and you'll find useful info.

Worked like a charm! Thank you so much.
Finally I can record video with the LED's on... it's all I ever wanted!
Hopefully that functionality can be build in the camera app one day! :)

LuisN900 2010-04-08 16:16

Re: N900 Video focus and led light, python script
 
żDo you know how to obtain the focal distance to the objetive? or in other case, how can be changed the zone wheres is the autofocus applied? For example, If I want to focus one object in the corner that isn't in the center or isn't the nearest object, how can we do that?

Thanks in advance!

Gauss 2010-04-12 01:41

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by saxen (Post 585397)
doesn't work even if i follow them :(

I had the same problem until i did the apt-get thing and reboot the device. You must reboot.

BTW, I can only disable the red light if I'm recording ant then open the widget and turn off the light. It doesn't work if I disable the light first and then start recording. Is it meant to work like that?

How hard would be to add support to remember settings? Let's say I disabled the red light and I want the phone to remember that no matter what, closing the camera and openning again, let's say even a reboot. Maybe hacking something to make a script to run always when the camera it's launched and check a config file?

ahmoda 2010-04-13 08:53

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by saxen (Post 585397)
doesn't work even if i follow them :(

me too

i follow all instruction, but it doesn't work.

actually last command "pkill -f /usr/bin/hildon-status-menu"

showing me

-sh: pkill-f: not found


or

not found.


what to do?

dheruer 2010-04-13 08:54

Re: N900 Video focus and led light, python script
 
Any ideas as to when this will be in the repositories?

maxximuscool 2010-04-13 09:03

Re: N900 Video focus and led light, python script
 
Have you refined this lfocus yet? I'm waiting for your refined version that usable with everyday's capturing.

bachagabriel 2010-04-15 23:04

Re: N900 Video focus and led light, python script
 
Great app.. It's working perfectly

It's stuff like that that makes me love my N900

rm42 2010-05-05 15:31

Re: N900 Video focus and led light, python script
 
For those that think it doesn't work, you have to get out of the full screen mode on the camera app. You do that by clicking anywhere on the screen. That will display the status bar at the top (with the clock, battery indicator, etc.). Click on the status bar and you will see the two widgets at the bottom of the list.

Nice app by the way. :)

Dr. Drips 2010-05-06 14:08

Re: N900 Video focus and led light, python script
 
a little remark (maybe made before).
Wouldn't it be better and less confusing for some to use
green=active
red=disabled (or maybe like more icons a grey color here)

Pigro 2010-05-06 14:52

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by Gauss (Post 606198)
BTW, I can only disable the red light if I'm recording ant then open the widget and turn off the light. It doesn't work if I disable the light first and then start recording. Is it meant to work like that?

worth pointing out that (in my experience, anyway) this applies also to the white LED too - if you want it ON when filming video, you need to start recording first and THEN use the widget to turn on the LED. Doing it the other way round will turn on the LED's as requested, but when you then start recording, the camera app "reinitialises" the LED state to off.

Tzoni 2010-05-06 17:45

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by rm42 (Post 644698)
For those that think it doesn't work, you have to get out of the full screen mode on the camera app. You do that by clicking anywhere on the screen. That will display the status bar at the top (with the clock, battery indicator, etc.). Click on the status bar and you will see the two widgets at the bottom of the list.

Nice app by the way. :)

I dont get that :f Downloaded, installed, opened camera and dont see anything, tried fullscreen and non fullscreen modes. Also nothing in the status bar, I did also reboot and no effect. What did I do wrong?

Pigro 2010-05-06 17:53

Re: N900 Video focus and led light, python script
 
try scrolling once you have the status menu on-screen - if you have already "filled" it with extras (like flashlight, 2G/3G switcher, Tor etc.) then new applets will be invisible until you scroll down. May not be this, but worth a try?

Tzoni 2010-05-06 18:04

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by Pigro (Post 646810)
try scrolling once you have the status menu on-screen - if you have already "filled" it with extras (like flashlight, 2G/3G switcher, Tor etc.) then new applets will be invisible until you scroll down. May not be this, but worth a try?

I dont have any custom stuff in the status bar, still tried scrolling but nothing there :I

Robb 2010-05-06 18:34

Re: N900 Video focus and led light, python script
 
Me too ... don't see it.

The flashlight app button appears in the menu when I open the camera, but not this app.

Anyone have any ideas?

EDIT:
Read this post and it works now:
Quote:

Originally Posted by m2cm2c (Post 577717)
hey guys, I'm sorry for my late reply since I've been really busy these days.

as for the issue of the widget not showing up when you open the lens cover, I "think" it could be because of some missing packages.
please try to run the following commands as root and see if it works for you or not:

apt-get update
apt-get upgrade
apt-get install python-hildondesktop hildon-desktop-python-loader python-gtk2 python-dbus
pkill -f /usr/bin/hildon-status-menu

after running those commands successfully you should be able to see the lfocus menu when you open up the lens cover.
and please read the first post on this thread for more information about the usage and operation of this script

cheers :D


Tzoni 2010-05-06 19:31

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by Robb (Post 646897)
Me too ... don't see it.

The flashlight app button appears in the menu when I open the camera, but not this app.

Anyone have any ideas?

EDIT:
Read this post and it works now:

Tried those earlier, no effect, couldnt run them all, gave some error message.

Robb 2010-05-06 19:34

Re: N900 Video focus and led light, python script
 
What's the error message?

Did you do this as root user?


All times are GMT. The time now is 04:44.

vBulletin® Version 3.8.8