View Single Post
Posts: 5 | Thanked: 1 time | Joined on Jan 2012
#7
Temporal,

I finally made that the code work. So the app of the camera is now working. I can take pictures, film, flash...in resume i got all back .

I discovered that the reason for that the code didn't work, is that i never had root privileges. I know i know...this is a noob discover, but i was using "sudo", so I thought that just with that was enough. But no, its seems that the N900 never let you have root privileges by default. If you try :

sudo root

The x-terminal will ask you for the password, so you wrote the password and then you think "Oh great i'm a root now", but noooo!. If you write "whoami" you will see that you still are just an user. So i google to find some answers, and there is another way to acces as a root:

sudo gainroot

But again you will be fuc..ed by the system. You will get this message "Enable RD mode if you want to break your device". Again i google it and there is some ways to anable the RD, but for what i read is better not to do it. Then i found an app that let you get the root priveleges, is called Rootsh (http://maemo.org/downloads/product/Maemo5/rootsh/). So, now that i finally am root, i use this command :

Code:
hal-set-property --udi /org/freedesktop/Hal/devices/platform_cam_shutter --key button.state.value --bool false
The two little diferences, with the one that you pass me, is that the "h" of /hal" need to be capitalized..."/Hal", and the other thing that already told you, is that the --key don't work with "_" instead of that you have to use "button.state.value". Dunno why, i google it, but i never found nothing about it.

You probably already know all this, but i post it for all the others noob like me that have troubles trying to make this code work...I hope this information will be useful for somebody.

Besides of all that, you told me that you have troubles with the code, because this changes in value of the state button, make that the shortcut of the button didnt open the app of the camera. In my case the shortcut of the button is working. When i press the button, while i am in the desktop or in somewhere, this take me directly to de app of the camera. Maybe, we have diferent version of Maemo, i'm using :

Maemo 5 version: 21.2011.38-1.

Or maybe, it's some app that i have installed, but im not sure about this. But if you want to try, the only app that i have, that can make some diferent with respect to the camera functionality is Fcamera (http://fcam.garage.maemo.org/fcamera.html).
 

The Following User Says Thank You to Akira85 For This Useful Post: