maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   Nokia N9-00 Prototype Build B2 (RM-680 codename "Dali") (https://talk.maemo.org/showthread.php?t=88070)

rainisto 2012-12-06 12:47

Re: Nokia N9-00 Prototype Build B2 (RM-680 codename "Dali")
 
Quote:

Originally Posted by n950 (Post 1301768)
- Physical camera button exist (camera app doesn't react to it but if I press it when screen is dim the device lits up).

Anyone know how can I do to run this button with camera app or to trigger it?[/I] it would be very usefull
.[/I]

Kernel already gives an keyevent when you trigger the camera button in /dev/input/event[x] device, you can just edit the application that uses volumebutton to trigger camera, to read from different event device and trigger the camera like that. Atleast thats how I 1st re-enabled camera key support back in the days a year ago (afterwards I recompiled camera application with the support...)

Rusnak-COBRA 2012-12-06 12:54

Re: Nokia N9-00 Prototype Build B2 (RM-680 codename "Dali")
 
better to recompile camera app to take this button as primary :) now who's gonna do it.

n950 2012-12-06 14:22

Re: Nokia N9-00 Prototype Build B2 (RM-680 codename "Dali")
 
Quote:

Originally Posted by rainisto (Post 1301870)
Kernel already gives an keyevent when you trigger the camera button in /dev/input/event[x] device, you can just edit the application that uses volumebutton to trigger camera, to read from different event device and trigger the camera like that. Atleast thats how I 1st re-enabled camera key support back in the days a year ago (afterwards I recompiled camera application with the support...)

How to?
Can you help me please...

Camera button work with camera app to take screenshot and run the camera app when my phone is sleeping?

n950 2012-12-06 14:28

Re: Nokia N9-00 Prototype Build B2 (RM-680 codename "Dali")
 
Quote:

Originally Posted by herpderp (Post 1301869)
It means achievment unlocked: phone repair master!

How can I delete it?

Rusnak-COBRA 2012-12-06 14:41

Re: Nokia N9-00 Prototype Build B2 (RM-680 codename "Dali")
 
it was just funny commment, not real answer

thedead1440 2012-12-06 14:43

Re: Nokia N9-00 Prototype Build B2 (RM-680 codename "Dali")
 
Quote:

Originally Posted by Rusnak-COBRA (Post 1301905)
it was just funny commment, not real answer

What does that icon on the n950 actually represent? Like on the n9 it means phone in RD-mode so on n950?

rainisto 2012-12-06 18:40

Re: Nokia N9-00 Prototype Build B2 (RM-680 codename "Dali")
 
the icon is just because you have r&d mode enabled, you can remove it with flasher.

thp 2012-12-06 20:01

Re: Nokia N9-00 Prototype Build B2 (RM-680 codename "Dali")
 
Quote:

Originally Posted by rainisto (Post 1301870)
Kernel already gives an keyevent when you trigger the camera button in /dev/input/event[x] device, you can just edit the application that uses volumebutton to trigger camera, to read from different event device and trigger the camera like that. Atleast thats how I 1st re-enabled camera key support back in the days a year ago (afterwards I recompiled camera application with the support...)

If it's exposed as QmKeys event, then edit line 61 of https://github.com/harmattan/camerra...ter/camerra.py like so:

Code:

    if key == 1 and state == 2 and camera_app_on_top():

n950 2012-12-06 20:02

Re: Nokia N9-00 Prototype Build B2 (RM-680 codename "Dali")
 
Quote:

Originally Posted by thp (Post 1301999)
If it's exposed as QmKeys event, then edit line 61 of https://github.com/harmattan/camerra...ter/camerra.py like so:

Code:

    if key == 1 and state == 2 and camera_app_on_top():

Can you build for me the deb file and i will install it please?

Let me know if you need some informations about the place of camera button on the hardware or if you need some terminal infos.

thp 2012-12-06 20:22

Re: Nokia N9-00 Prototype Build B2 (RM-680 codename "Dali")
 
Quote:

Originally Posted by n950 (Post 1302000)
Can you build for me the deb file and i will install it please?

Let me know if you need some informations about the place of camera button on the hardware or if you need some terminal infos.

If it's a low-hanging fruit, this will work: http://thp.io/2012/maemo/camerra_1.0...camkeyonly.deb (source patch here, but people like binary packages more these days for some strange reason.. and yes, this Python package isn't really "binary", but you get the idea - people want their cake only - and possibly eat it - not the recipe for it.. or something)

If that doesn't work, then you can surely get it to work through some other means, but I won't be modifying my app more than that ;)


All times are GMT. The time now is 08:08.

vBulletin® Version 3.8.8