Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xmodmap not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
markandrew
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 176
Location: Manchester, UK

PostPosted: Mon Feb 09, 2004 1:44 pm    Post subject: xmodmap not working Reply with quote

I have a T41 which has a few extra keys I'd like to use; I also run Suse with KDE on the same machine and have successfully mapped these extra keys in KDE using xmodmap:

$ cat .Xmodmap
keycode 227=Multi_key
keycode 234=XF86ScrollUp
keycode 233=XF86ScrollDown

(i then used these keys for switching workspaces with KDE's keyboard shortcuts, which works fine)

However when i try this in Gentoo, it doesn't work. I have copied the .Xmodmap file as-is to my gentoo homedir, and if i run it through modmap (manually, or with .xinitrc when starting X) the keys are listed correctly:

227 0xff20 (Multi_key)
228
229
230
231
232
233 0x1008ff79 (XF86ScrollDown)
234 0x1008ff78 (XF86ScrollUp)


but i can't use them, and xev doesn't report them as being anything useful (just reports FocusIn and FocusOut events, then prints a table of mostly 0's for KeymapNotify event (all the same for all 3 keys)

the keyboard is defined the same in both XF86config's

am I missing something? i vaguely remember looking through some other files when I setup xmodmap for my suse install, but it's so long ago i can't remember what else i did.

i know i can probably use lineak or something similar but i'd really like to use xmodmap


mark
Back to top
View user's profile Send private message
nulltype
n00b
n00b


Joined: 13 Aug 2003
Posts: 36

PostPosted: Wed Feb 11, 2004 5:39 am    Post subject: Reply with quote

Run xev and check to see if the keycodes are the same.

I.E. keycode 227 is still whatever key keycode 227 used to be.
Back to top
View user's profile Send private message
markandrew
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 176
Location: Manchester, UK

PostPosted: Tue Feb 17, 2004 11:05 am    Post subject: Reply with quote

the problem seems to be with XFCE4 rather than X, as the mappings seem to work OK with newly-installed WindowMaker. I'll try their forums
Back to top
View user's profile Send private message
Loki|muh
n00b
n00b


Joined: 30 Jan 2003
Posts: 54

PostPosted: Thu Feb 19, 2004 11:58 am    Post subject: Reply with quote

do you have a ~/.xinitrc?

then this is the Problem ;)

https://bugs.gentoo.org/show_bug.cgi?id=42130
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Fri Jul 02, 2004 11:31 am    Post subject: Reply with quote

so that is presumably the explanation , what you can do to solve it is this:

I have just got round the exact same pb after realising that /etc/X11/xinit/xinitrc was not getting executed when I start xfce4.

Code:
bash-2.05b# find / -iname xinitrc
/etc/X11/xinit/xinitrc
/etc/xfce/xinitrc
/etc/xfce4/xinitrc


You guessed, do the same mods in the latter file and restart X.

HTH

8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86


Last edited by Gentree on Tue Aug 10, 2004 7:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Tue Aug 10, 2004 7:24 pm    Post subject: Reply with quote

This forum's really useful.

I just updated xfce4 and it lost my accented characters. I new I'd posted the solution so I did a search and ended helping myself.

How's that , gentoo karma.

8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Sep 03, 2005 7:00 am    Post subject: Reply with quote

OK we're back again. My nicely working accents disappeared earlier this year and now I want them back.... again. So lets debug this ... again.


It seems that now ~/.Xmodmap is sourced by /etc/xfce4/xinitrc

Code:
test -f $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap


I think this has changed because before I had a full xmodmap command in that file, now it is run by xmodmap. So in ~/.Xmodmap

Code:
keycode 113 = Multi_key

BTW 113 is altGr aka Ralt aka altRight

this does get called and sets up composite key strokes like AltGR , a , ` but sadly this gives me some odd hyroglyph , not the accented a I was hoping for. At least in xterm

In my browser it seems to work : à èé ç , cool.

Surely a font problem but not sure where to go .

Suggestions pls.

TIA 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum