Active Topics

 



Notices


Reply
Thread Tools
Posts: 223 | Thanked: 67 times | Joined on Jun 2006
#21
Could this be configured to work like the old escape key? This would help with Garnet VM until a proper fremantle port is available.
 
Posts: 73 | Thanked: 9 times | Joined on Dec 2009
#22
thanks for camkeyd. It's useful.
 
Posts: 35 | Thanked: 20 times | Joined on Dec 2009
#23
Hello,

I'm not sure about this but it happens that since I have installed this application, opening the lens cover doesn't start the camera application anymore.

I have tried to reflash my device to its original state but it still doesn't work.

I've opened a bug:
https://bugs.maemo.org/show_bug.cgi?id=6918

Again, I'm really not sure that camkeyd is the culprit here. It's just a warning (by the way is there a way to open a bug specifically on this package ?)

Regards,

P.S. : I also remember that camkeyd wasn't working for me when I installed it, maybe this is related ?
 
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#24
@SaintGermain, welcome.
If the problem persists after reflash, most probably it is not application related.
Could you please go the terminal, execute

Code:
dbus-monitor --profile --system
open the lens cover, close the application, kill the monitor (ctrl-c in terminal) and post here the output from the terminal. Especially, if there are lines about platform_cam_shutter ?
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 

The Following User Says Thank You to hopbeat For This Useful Post:
Posts: 35 | Thanked: 20 times | Joined on Dec 2009
#25
Hello,

No problem. Here is the output (I cannot close the application since it isn't started).

Code:
~ $ dbus-monitor --profile --system
sig     1260718665      751441  2       /org/freedesktop/DBus   org.freedesktop.DBus    NameAcquired
sig     1260718667      393042  1238    /org/freedesktop/Hal/devices/platform_cam_shutter       org.freedesktop.Hal.Device      PropertyModified
sig     1260718667      393347  1239    /org/freedesktop/Hal/devices/platform_cam_shutter       org.freedesktop.Hal.Device      Condition
 

The Following User Says Thank You to SaintGermain For This Useful Post:
Posts: 23 | Thanked: 7 times | Joined on Dec 2009 @ Northeast USA
#26
This is my most favorite mod for the N900. Thank you for creating this.
 
Posts: 46 | Thanked: 14 times | Joined on Sep 2009
#27
Loving this mod.. any way to have a similar program make the rocker buttons skip forward/back a track if;

1) screen locked
2) playback of music on

So I can skip a track while its in the pocket without looking at the screen.
 
Posts: 43 | Thanked: 7 times | Joined on Oct 2009 @ Marseille , France
#28
Originally Posted by Vodrin View Post
Loving this mod.. any way to have a similar program make the rocker buttons skip forward/back a track if;

1) screen locked
2) playback of music on

So I can skip a track while its in the pocket without looking at the screen.
you mean the zoom button ???
+++1
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#29
Originally Posted by hqh View Post
- I do not know if previous application can be easily resumed, XSetInputFocus had no effect
Code:
static void show_window (Window win)
{
	    XEvent event;

	    event.xclient.type = ClientMessage;
	    event.xclient.serial = 0;
	    event.xclient.send_event = True;
	    event.xclient.message_type = XInternAtom (dpy, "_NET_ACTIVE_WINDOW", False);
	    event.xclient.window = win;
	    event.xclient.format = 32;
	    event.xclient.data.l[0] = 0;
	    event.xclient.data.l[1] = 0;
	    event.xclient.data.l[2] = 0;
	    event.xclient.data.l[3] = 0;
	    event.xclient.data.l[4] = 0;

		if (XSendEvent(dpy, DefaultRootWindow (dpy), False, SubstructureRedirectMask | SubstructureNotifyMask, &event))
			XMapRaised(dpy, win);
}
That, stolen from wmctrl, works.

This snippet below gets the topmost window. You have two choices here: You can use _NET_ACTIVE_WINDOW which will always return you the ID of any window on the screen, or you can use _MB_CURRENT_APP_WINDOW which returns 0x0 if the focus is on the desktop/dashboard.

Code:
static Window get_topmost_window (void)
{
    Atom realtype;
    int format;
    unsigned long nitems;
    unsigned long b_after;
    unsigned char *prop;
    int xpropertyerr;
    Window win = (Window) 0;

    xpropertyerr = XGetWindowProperty (dpy, DefaultRootWindow (dpy), XInternAtom (dpy, "_NET_ACTIVE_WINDOW", False), 0L, (~0L), False, XA_WINDOW, &realtype, &format, &nitems, &b_after, &prop);

    if (!(xpropertyerr == Success && realtype == XA_WINDOW && format == 32 && nitems == 1 && prop != NULL))
		exit (EXIT_FAILURE);

    win = *((Window *) prop);

    XFree (prop);

    return win;
}
If you could get it to return to the last activated window, it would be nice.

Last edited by qwerty12; 2009-12-26 at 16:46.
 

The Following 5 Users Say Thank You to qwerty12 For This Useful Post:
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#30
Mh, it would be great to emulate something like ALT+TAB on a Desktop PC with the camerakey on N900.

Could it be possible to include this function in camkeyd without loosing the main functionality?

When you press the camera button in a application the dashboard appears.
When you press the camera button in the dashboard you reach the application you have used before your last application.

It would be nice to switch between 2 application only by pressing the camkey twice.
 

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

Tags
button, camera, control, dashboard, fremantle, maemo, maemo 5, n900, shutter


 
Forum Jump


All times are GMT. The time now is 02:23.