Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
czy jest mozliwe przypisanie jakiejs kombinacji klawiszy która by blokowala i odblokowywala klawiature mojego laptopa???
chodzi mi o rozwiazanie które umozliwilo by polozenie wacom-a na klawiaturze bezposrednio przed ekranem.
Offline
Zawsze możesz coś pokombinować z xinput, tu masz przykład:
$ xinput ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ A4Tech USB Mouse id=10 [slave pointer (2)] ⎜ ↳ SynPS/2 Synaptics TouchPad id=14 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Power Button id=8 [slave keyboard (3)] ↳ HP Webcam-101 id=9 [slave keyboard (3)] ↳ Logitech Logitech USB Keyboard id=11 [slave keyboard (3)] ↳ Logitech Logitech USB Keyboard id=12 [slave keyboard (3)] ↳ HP WMI hotkeys id=15 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)] $ xinput list-props "AT Translated Set 2 keyboard" Device 'AT Translated Set 2 keyboard': Device Enabled (140): 0 Coordinate Transformation Matrix (142): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 Device Product ID (262): 1, 1 Device Node (263): "/dev/input/event0" $ /usr/bin/xinput --set-prop 'AT Translated Set 2 keyboard' 'Device Enabled' 1 $ xinput list-props "AT Translated Set 2 keyboard" Device 'AT Translated Set 2 keyboard': Device Enabled (140): 1 Coordinate Transformation Matrix (142): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 Device Product ID (262): 1, 1 Device Node (263): "/dev/input/event0"
Ja na lapku sobie zaprogramowałem system by przy pomocy udeva wyłączał mi laptopową klawiaturę i touchpad przy podpinaniu zewnętrznej klawiatury i myszy. xD
Offline
u mnie to tak wyglada:
xinput list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ TPPS/2 IBM TrackPoint id=10 [slave pointer (2)] ⎜ ↳ Wacom Intuos PT S Pen stylus id=12 [slave pointer (2)] ⎜ ↳ Wacom Intuos PT S Pen eraser id=13 [slave pointer (2)] ⎜ ↳ Wacom Intuos PT S Finger touch id=14 [slave pointer (2)] ⎜ ↳ Wacom Intuos PT S Finger pad id=15 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=9 [slave keyboard (3)] ↳ ThinkPad Extra Buttons id=11 [slave keyboard (3)]
id=3
tylko sie wlasnie boje ze jak wylacze to juz nie wlacze
znalazlem jeszcze taki projekt:
http://sourceforge.net/projects/lk4b/
Ostatnio edytowany przez pink (2015-09-23 18:46:54)
Offline
To nie jest 3. Tam masz 5 i 9, z czego 9 to od laptopa
Zrób sobie skrypt, np. taki:
#!/bin/bash key_status="$(/usr/bin/xinput list-props 'AT Translated Set 2 keyboard' | grep Enabled | cut -d ":" -f 2 | sed -e 's/^[[:space:]]*//')" if [ "$key_status" = "0" ]; then /usr/bin/xinput --set-prop 'AT Translated Set 2 keyboard' 'Device Enabled' 1 else /usr/bin/xinput --set-prop 'AT Translated Set 2 keyboard' 'Device Enabled' 0 fi exit 0
I daj "sleep 5" przy dwukrotnym wywołaniu skryptu i przetestuj sobie
Ostatnio edytowany przez morfik (2015-09-23 18:51:18)
Offline
Time (s) | Query |
---|---|
0.00013 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00103 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.226.82.90' WHERE u.id=1 |
0.00101 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.226.82.90', 1732557155) |
0.00064 | SELECT * FROM punbb_online WHERE logged<1732556855 |
0.00118 | DELETE FROM punbb_online WHERE ident='18.188.68.115' |
0.00094 | DELETE FROM punbb_online WHERE ident='3.142.133.210' |
0.00086 | SELECT topic_id FROM punbb_posts WHERE id=290978 |
0.00010 | SELECT id FROM punbb_posts WHERE topic_id=27745 ORDER BY posted |
0.00061 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=27745 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00109 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=27745 ORDER BY p.id LIMIT 0,25 |
0.00072 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=27745 |
Total query time: 0.0084 s |