View Single Post
Posts: 2,006 | Thanked: 3,351 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#33
Originally Posted by zaedej View Post
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.