Reply
Thread Tools
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#41
Originally Posted by n950 View Post
- 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...)
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.
 

The Following 4 Users Say Thank You to rainisto For This Useful Post:
Rusnak-COBRA's Avatar
Posts: 218 | Thanked: 151 times | Joined on Dec 2011 @ Slovakia
#42
better to recompile camera app to take this button as primary now who's gonna do it.
__________________
BlackBerry 10, Jolla, MeeGo, Symbian & webOS fan (Tizen? B2G? Ubuntu for Phone?), SmartMobil.sk editor-in-chief
BB Z10 & N950 Dev black & N950 Proto B2 silver & N9 16GB + 64GB & N900 & E7 & N8 & C7 & PlayBook & TouchPad & Veer & Lumia 800 & RAZR XT910
http://facebook.com/RUSNAK | http://twitter.com/RusnakCOBRA | Mobile Phones MUSEUM, over 2600 pieces + prototypes!
 
Posts: 1,196 | Thanked: 1,413 times | Joined on Aug 2011
#43
Originally Posted by rainisto View Post
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?
 
Posts: 1,196 | Thanked: 1,413 times | Joined on Aug 2011
#44
Originally Posted by herpderp View Post
It means achievment unlocked: phone repair master!
How can I delete it?
 
Rusnak-COBRA's Avatar
Posts: 218 | Thanked: 151 times | Joined on Dec 2011 @ Slovakia
#45
it was just funny commment, not real answer
__________________
BlackBerry 10, Jolla, MeeGo, Symbian & webOS fan (Tizen? B2G? Ubuntu for Phone?), SmartMobil.sk editor-in-chief
BB Z10 & N950 Dev black & N950 Proto B2 silver & N9 16GB + 64GB & N900 & E7 & N8 & C7 & PlayBook & TouchPad & Veer & Lumia 800 & RAZR XT910
http://facebook.com/RUSNAK | http://twitter.com/RusnakCOBRA | Mobile Phones MUSEUM, over 2600 pieces + prototypes!
 

The Following User Says Thank You to Rusnak-COBRA For This Useful Post:
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#46
Originally Posted by Rusnak-COBRA View Post
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?
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#47
the icon is just because you have r&d mode enabled, you can remove it with flasher.
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.
 

The Following User Says Thank You to rainisto For This Useful Post:
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#48
Originally Posted by rainisto View Post
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():
 

The Following User Says Thank You to thp For This Useful Post:
Posts: 1,196 | Thanked: 1,413 times | Joined on Aug 2011
#49
Originally Posted by thp View Post
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.

Last edited by n950; 2012-12-06 at 20:09.
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#50
Originally Posted by n950 View Post
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
 

The Following 3 Users Say Thank You to thp For This Useful Post:
Reply


 
Forum Jump


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