|
2011-09-14
, 16:33
|
Posts: 235 |
Thanked: 339 times |
Joined on Nov 2010
|
#72
|
Your KP_PATH only works on n800. Need to detect device type and change KP_PATH if you want it to also work on n810.
The key handling code looks correct, ASUI uses similar code to read the power button but not glib, maybe a problem with glib.
Have you triedafter the ev.value condition? You can then see the time each event occured and its parameters.Code:printf("event: time=%f, type=%u, code=%u, value=%d\n", (float)ev.time.tv_sec + (float)ev.time.tv_usec / 1000000.0, ev.type, ev.code, ev.value);
#!/bin/sh if [ "$1" = "in" ]; then #run the commands in this branch when the zoom in key is pressed ... elif [ "$1" = "out"; then #run the commands in this branch when the zoom out key is pressed ... fi
The Following User Says Thank You to jstokes For This Useful Post: | ||
|
2011-09-14
, 19:51
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#73
|
In the xmmskey script, you can have something like the following:
The Following User Says Thank You to Addison For This Useful Post: | ||
|
2011-09-14
, 19:59
|
Posts: 235 |
Thanked: 339 times |
Joined on Nov 2010
|
#74
|
The Following User Says Thank You to jstokes For This Useful Post: | ||
|
2011-09-14
, 20:15
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#75
|
The Following User Says Thank You to Addison For This Useful Post: | ||
|
2011-09-14
, 20:47
|
Posts: 235 |
Thanked: 339 times |
Joined on Nov 2010
|
#76
|
So I have to write my own script with this?
Well, I'm completely pooched then.
I was hoping that the F8 and F7 key could still be sent to Xmms while the screen was locked.
I wouldn't have the first idea on how to write such a script.
So I rename /home/user/xmmskey to something like /usr/bin/screenlock?
Couldn't I just launch
screenlock & xmms so there wouldn't be a nagging Xterm on the screen?
Many thanks on doing this for us by the way.
The Following User Says Thank You to jstokes For This Useful Post: | ||
|
2011-09-14
, 21:01
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#77
|
case $1 in in) xmmsctrl blahblah ;; out) xmmsctrl blahblah ;; esac
|
2011-09-14
, 21:47
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#78
|
|
2011-09-14
, 22:26
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#79
|
#!/bin/sh if [ "$1" = "in" ]; then 'xmmsctrl next' ... elif [ "$1" = "out"; then 'xmmsctrl previous' ... fi
The Following User Says Thank You to Addison For This Useful Post: | ||
|
2011-09-14
, 22:57
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#80
|
When I lock the tablet though the zoom keys don't register.
apps-->modest-->update_interval from 5 to 1 (thinking this meant in minutes)
The value is changed and saved but it doesn't seem to take since it still updates every 5 minutes.
Perhaps there's a command line for this instead?