![]() |
2011-10-28
, 02:43
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#162
|
![]() |
2011-10-28
, 05:28
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#163
|
![]() |
2011-10-28
, 10:29
|
Posts: 2,802 |
Thanked: 4,491 times |
Joined on Nov 2007
|
#164
|
xte 'keydown Space' 'keyup Space'
I'm just trying to send a single spacebar signal to the tablet.
However, that script only works around 15% of the time.
Unable to resolve keysym for 'Space' Unable to resolve keysym for 'Space'
The Following User Says Thank You to lma For This Useful Post: | ||
![]() |
2011-10-28
, 22:31
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#165
|
![]() |
2011-10-29
, 06:02
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#166
|
To kill the one with the highest pid:
If you want to kill a specific instance you need to store the PIDs as you launch them, $! is the last backgrounded process.Code:kill `pidof -s xkbd`
You can also store the PIDs in named files if the launch script is separate from the kill script.Code:xkbd & PID1=$! xkbd & PID2=$! kill $PID1
![]() |
2011-10-29
, 06:33
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#167
|
[1|user@Nokia-N800-43-7|~]xkbd -geometry +780+65536 -k /media/mmc2/N800/Keyboards/scummside.xkbd & PID1=$!
[1] 8764
[1|user@Nokia-N800-43-7|~]kill $PID1
kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
[1|user@Nokia-N800-43-7|~]kill 'pidof -s xkbd'
-bash: kill: pidof -s xkbd: no such pid
The Following User Says Thank You to auouymous For This Useful Post: | ||
![]() |
2011-10-29
, 06:37
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#168
|
Code:#launch script xkbd -geometry +65507+65536 -k /media/mmc2/N800/Keyboards/Full.xkbd & echo $! >/tmp/xkbd2.pid #kill script kill $(cat /tmp/xkbd2.pid) xte 'keydown KP_Enter' 'keyup KP_Enter'
![]() |
2011-10-29
, 06:39
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#169
|
![]() |
2011-10-29
, 06:53
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#170
|
![]() |
Tags |
nokia n800, volume |
Thread Tools | |
|
Thanks for the explanation on this chief.