Article View: pl.comp.sys.x11
Article #2255Re: Pomocy z xmodmap + VNC (polskie literki)
From: Jarosław Rafa
Date: Wed, 28 Dec 2005 15:27
Date: Wed, 28 Dec 2005 15:27
127 lines
5965 bytes
5965 bytes
jimmij napisał(a):
> Jarosław Rafa <raj@ap.krakow.pl> writes:
>
>>>keycode 113 = Mode_switch
>>>keycode 39 = s S sacute Sacute
>>
>>Niestety, to też nie skutkuje... :(
>
>
> Co to znaczy "nie skutkuje"? Prawy 'Alt' i 's' nie generują żadnego znaku?
Generują "s" zamiast "ś".
> A co pokazuje polecenie xmodmap?
(2) raj@vfire:~$ xmodmap
xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock
control
mod1
mod2 Mode_switch (0x71)
mod3
mod4
mod5
Natomiast "xmodmap -pk" wyswietla, z interesujacych nas rzeczy, m.in.:
(2) raj@vfire:~$ xmodmap -pk
There are 4 KeySyms per KeyCode; KeyCodes range from 8 to 255.
[...]
39 0x0073 (s) 0x0053 (S) 0x01b6 (sacute) 0x01a6
(Sacute)
[...]
113 0xff7e (Mode_switch)
czyli niby wszystko to, co mi podales, wykonalo sie prawidlowo, tylko
ze... nie dziala
> Popatrz jeszcze do pliku /usr/include/X11/keysymdef.h i poszukaj tam
> frazy "Mode_switch". Powinno być tam coś takiego:
> #define XK_Mode_switch 0xFF7E
Jest dokladnie tak.
Natomiast xev wyswietla teraz cos takiego, jak wcisne (prAlt-s):
KeyPress event, serial 22, synthetic NO, window 0x2200001,
root 0x26, subw 0x0, time 1911504940, (363,283), root:(391,311),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 characters: ""
KeyPress event, serial 22, synthetic NO, window 0x2200001,
root 0x26, subw 0x0, time 1911504940, (363,283), root:(391,311),
state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 characters: ""
KeyPress event, serial 22, synthetic NO, window 0x2200001,
root 0x26, subw 0x0, time 1911509399, (363,283), root:(391,311),
state 0x0, keycode 39 (keysym 0x73, s), same_screen YES,
XLookupString gives 1 characters: "s"
KeyRelease event, serial 22, synthetic NO, window 0x2200001,
root 0x26, subw 0x0, time 1911509462, (363,283), root:(391,311),
state 0x0, keycode 39 (keysym 0x73, s), same_screen YES,
XLookupString gives 1 characters: "s"
KeyRelease event, serial 22, synthetic NO, window 0x2200001,
root 0x26, subw 0x0, time 1911510326, (363,283), root:(391,311),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 characters: ""
KeyRelease event, serial 22, synthetic NO, window 0x2200001,
root 0x26, subw 0x0, time 1911510326, (363,283), root:(391,311),
state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 characters: ""
Czyli w jakis dziwny sposob, kiedy kod klawisza 113 zostal przemapowany
na Mode_switch, wciskanie prawego Alta zaczelo generowac kod Alt_L (64).
Wobec tego dopisalem jeszcze 'keycode 64 = Mode_switch' i wtedy przy
wciskaniu prawego Alta i s zaczela sie pojawiac nastepujaca sekwencja:
KeyPress event, serial 22, synthetic NO, window 0x2200001,
root 0x26, subw 0x0, time 1911828623, (335,300), root:(363,328),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 characters: ""
KeyPress event, serial 22, synthetic NO, window 0x2200001,
root 0x26, subw 0x0, time 1911828623, (335,300), root:(363,328),
state 0x0, keycode 254 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 1 characters: ""
KeyPress event, serial 22, synthetic NO, window 0x2200001,
root 0x26, subw 0x0, time 1911829464, (335,300), root:(363,328),
state 0x0, keycode 39 (keysym 0x73, s), same_screen YES,
XLookupString gives 1 characters: "s"
KeyRelease event, serial 22, synthetic NO, window 0x2200001,
root 0x26, subw 0x0, time 1911829519, (335,300), root:(363,328),
state 0x0, keycode 39 (keysym 0x73, s), same_screen YES,
XLookupString gives 1 characters: "s"
KeyRelease event, serial 22, synthetic NO, window 0x2200001,
root 0x26, subw 0x0, time 1911830155, (335,300), root:(363,328),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 characters: ""
KeyRelease event, serial 22, synthetic NO, window 0x2200001,
root 0x26, subw 0x0, time 1911830155, (335,300), root:(363,328),
state 0x0, keycode 254 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 1 characters: ""
Czyli - o ile dobrze rozumiem - prawy Alt jest teraz traktowany jako
klawisz pusty, nie majacy zadnego skutku (NoSymbol) - a stan klawiatury,
jezeli chodzi o modyfikatory, dalej sie nie zmienia, bo to chyba oznacza
"state 0x0".
Jestem w kropce...
--
Pozdrowienia,
Jaroslaw Rafa
raj@ap.krakow.pl
--
Spam, wirusy, spyware... masz dość? Jest alternatywa!
http://www.firefox.pl/ --- http://www.thunderbird.pl/
Szybciej. Łatwiej. Bezpieczniej. Internet tak jak lubisz.
Technical Details
Message-ID:
<douae5$6vb$1@srv.cyf-kr.edu.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.cyf-kr.edu.pl!not-for-mailReferences:
<doca8i$fe1$1@srv.cyf-kr.edu.pl> <rhwlkydb5p9.fsf@jj.jj> <dorg21$9rc$1@srv.cyf-kr.edu.pl> <rhw8xu6ux3m.fsf@jj.jj>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.cyf-kr.edu.pl!not-for-mail From: Jarosław Rafa <raj@ap.krakow.pl> Newsgroups: pl.comp.sys.sun.admin,pl.comp.sys.x11,pl.comp.ogonki Subject: Re: Pomocy z xmodmap + VNC (polskie literki) Date: Wed, 28 Dec 2005 16:27:28 +0100 Organization: Akademia Pedagogiczna w Krakowie Lines: 127 Message-ID: <douae5$6vb$1@srv.cyf-kr.edu.pl> References: <doca8i$fe1$1@srv.cyf-kr.edu.pl> <rhwlkydb5p9.fsf@jj.jj> <dorg21$9rc$1@srv.cyf-kr.edu.pl> <rhw8xu6ux3m.fsf@jj.jj> NNTP-Posting-Host: pingwin.ap.krakow.pl Mime-Version: 1.0 X-Trace: srv.cyf-kr.edu.pl 1135783173 7147 149.156.26.251 (28 Dec 2005 15:19:33 GMT) X-Complaints-To: news@cyf-kr.edu.pl NNTP-Posting-Date: Wed, 28 Dec 2005 15:19:33 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: pl, en-us, en In-Reply-To: <rhw8xu6ux3m.fsf@jj.jj> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit