maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   N900- Front camera activation command... (https://talk.maemo.org/showthread.php?t=42370)

zaedej 2010-04-22 17:00

Re: N900- Front camera activation command...
 
Thanks, it worked. So everytime if I want to use the front cam, I need to put that command in X terminal?

noobmonkey 2010-04-22 17:20

Re: N900- Front camera activation command...
 
well i suppose.... healthcheck will take a test picture and mirror works.......
so either use mirror app or do it yourself for now :D

Or create a [request] thread for someone to help you in making an application, if you have a specific request?

Wikiwide 2010-10-09 01:26

Re: N900- Front camera activation command...
 
Quote:

Originally Posted by zaedej (Post 622959)
Thanks, it worked. So everytime if I want to use the front cam, I need to put that command in X terminal?

Or you can make a shortcut for it. I assume you already have rootsh installed.

1. Open X Terminal.
2. sudo gainroot
3. cd /usr/share/applications/hildon
4. cp camera-ui.desktop frontcamera.desktop
5. vi frontcamera.desktop
6. hit 'i' on the keyboard so that vi would go to editing mode
7. use arrows up-down to go between lines, left-right to go left-right on one line
8. change name from "camera_ap_camera" to something like "Front Camera"
9. change comment from "camera_ap_camera_thumb" to something like "front_camera_thumb"
10. change exec from "/usr/bin/camera-ui" to "gst-launch v4l2src device=/dev/video1 ! autovideosink"
11. erase completely line "X-Osso-Service=com.nokia.cameraui"; it is done by tapping "Esc" button of X Terminal and then double-hitting of 'd' on keyboard; then you need to hit 'i' to go to editing mode again;
12. erase completely line "X-Text-Domain=osso-camera-ui"

Now, that you have done it, tap "Esc" button of X Terminal and then hit on the keyboard consequentially 'Shift' '.' 'w'
You will see
:w
being typed

Then hit 'Enter' on the keyboard. The changes to the file are written down. Now you can go to launcher of applications: you will see at the end of the list the camera icon with words "Front Camera". Tap it, and it will launch.

To exit vi, tap 'Esc', write ":q", hit 'Enter'. You will now be able to type commands in X Terminal again. Or you can simply close the whole window of X Terminal, if you want: you have already saved all the changes to the file.

Does it help?

Miscellaneous: if you use device video0 instead of video1, you can see picture of large camera. It will be raw, without autofocus, etc, and ignore shutter state completely.


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

vBulletin® Version 3.8.8