Notices


Reply
Thread Tools
Posts: 150 | Thanked: 10 times | Joined on Apr 2010 @ California, USA
#31
Thanks, it worked. So everytime if I want to use the front cam, I need to put that command in X terminal?
__________________
---------------------------------------------
http://pininthemap.com/8ce250d3207d7424f

'Keep your friend close and your enemies closer.'
 
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#32
well i suppose.... healthcheck will take a test picture and mirror works.......
so either use mirror app or do it yourself for now

Or create a [request] thread for someone to help you in making an application, if you have a specific request?
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 

The Following User Says Thank You to noobmonkey For This Useful 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.
 
Reply

Thread Tools

 
Forum Jump


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