|
2012-02-11
, 21:44
|
|
Posts: 323 |
Thanked: 189 times |
Joined on Oct 2010
@ Brazil
|
#2
|
|
2012-02-12
, 11:37
|
Posts: 85 |
Thanked: 5 times |
Joined on Nov 2009
|
#3
|
|
2012-02-13
, 00:31
|
Posts: 5 |
Thanked: 1 time |
Joined on Jan 2012
|
#4
|
|
2012-02-13
, 09:40
|
|
Posts: 323 |
Thanked: 189 times |
Joined on Oct 2010
@ Brazil
|
#5
|
sudo hal-set-property --udi /org/freedesktop/hal/devices/platform_cam_shutter --key button_state_value --bool false
sudo hal-set-property --udi /org/freedesktop/hal/devices/platform_cam_shutter --key button_state_value --bool true
|
2012-02-14
, 00:40
|
Posts: 5 |
Thanked: 1 time |
Joined on Jan 2012
|
#6
|
Akira, this is what I got so far (this will let you use the camera - and flashlight if you use it):
Unfortunately this will make the camera button unusable to shortcutd, so you'll have to useCode:sudo hal-set-property --udi /org/freedesktop/hal/devices/platform_cam_shutter --key button_state_value --bool false
to restore functions.Code:sudo hal-set-property --udi /org/freedesktop/hal/devices/platform_cam_shutter --key button_state_value --bool true
There's more details on my thread. I believe the easier way is to fake a dbus signal.
sudo hal-set-property --udi /org/freedesktop/hal/devices/platform_cam_shutter --key button_state_value --bool false
hal-get-property --udi /org/freedesktop/hal/devices/platform_cam_shutter --key button_state_value
Error: libhal_device_get_property_type: org.freedesktop.Hal.NoSuchProperty: No property button_state_value on device with /org/freedesktop/hal/devices/platform_cam_shutter
hal-get-property --udi /org/freedesktop/hal/devices/platform_cam_shutter --key button.state.value
sudo hal-set-property --udi /org/freedesktop/hal/devices/platform_cam_shutter --key button.state.value --bool false
|
2012-02-16
, 00:27
|
Posts: 5 |
Thanked: 1 time |
Joined on Jan 2012
|
#7
|
hal-set-property --udi /org/freedesktop/Hal/devices/platform_cam_shutter --key button.state.value --bool false
The Following User Says Thank You to Akira85 For This Useful Post: | ||
Like the title said, my optical sensor is dead. So the app for the camera is not responding.
I was looking around on the web and i found that the sensor triggers an event that change some value that indicates when the slide of the shutter is opened or closed. Then the camera app check this value before start to work.
If you open and close the shutter on the camera and then open the xterminal and run "dmesg", the last two lines should read something like
cam_shutter (GPIO 110) is now open
cam_shutter (GPIO 110) is now closed
That's indicate that the sensor is working, in my case that never happend. Obviously, if the slide is not opened the app doesn't work.
With this in mind, i think that is possible change the value of the variable that indicates when the slide is open (cam_shutter) directly form the x-terminal. So here is the question:
Any one knows some command to do this??
Last edited by Akira85; 2012-02-10 at 03:29.