<SOLVED> XMODMAP Error

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Mike9746
Level 1
Level 1
Posts: 9
Joined: Mon Jun 29, 2020 7:04 pm

<SOLVED> XMODMAP Error

Post by Mike9746 »

Just dual booted Win10 & Mint 20 on a Sony Viao where the Space key is not functioning.
So I want to remap the Alt_left key to the Space key.

I tried:

xmodmap -e "keycode 64 = Space"

where keycode 64 = Alt_left

But got the error message:

xmodmap: commandline:1: bad keysym name 'Space' in keysym list
xmodmap: 1 error encountered, aborting.

I then ran:

xmodmap -pk

and was unable to locate any Space codes. Found Backspace but no Space.

So how do I remap the Alt_left key to the Space key?

Thanks
Last edited by Mike9746 on Mon Jul 20, 2020 10:22 pm, edited 1 time in total.
User avatar
Kadaitcha Man
Level 9
Level 9
Posts: 2792
Joined: Mon Aug 27, 2012 10:17 pm

Re: XMODMAP Error

Post by Kadaitcha Man »

Mike9746 wrote:
Sun Jul 19, 2020 2:51 pm
I then ran:

xmodmap -pk

and was unable to locate any Space codes. Found Backspace but no Space.

Code: Select all

kman@Asus:~$ xmodmap -pk | grep space
     65         0x0020 (space)  0x0000 (NoSymbol)       0x0020 (space)
It's pronounced kad-eye-cha, not kada-itcha.
Mike9746
Level 1
Level 1
Posts: 9
Joined: Mon Jun 29, 2020 7:04 pm

Re: XMODMAP Error

Post by Mike9746 »

Kadaitcha Man
Thanks for the suggestion.
Tried using grep to search for the string Space,
but it does not exist in the output of my xmodmap -pk

My xmodmap -pk shows this for 63 thru 67:

63 0xffaa (KP_Multiply) 0xffaa (KP_Multiply) 0xffaa (KP_Multiply) 0xffaa (KP_Multiply) 0xffaa (KP_Multiply) 0xffaa (KP_Multiply) 0x1008fe21 (XF86ClearGrab)
64 0xffe9 (Alt_L) 0xffe7 (Meta_L) 0xffe9 (Alt_L) 0xffe7 (Meta_L)
65 0xff57 (End) 0x0000 (NoSymbol) 0xff57 (End)
66 0xffe5 (Caps_Lock) 0x0000 (NoSymbol) 0xffe5 (Caps_Lock)
67 0xffbe (F1) 0xffbe (F1) 0xffbe (F1) 0xffbe (F1) 0xffbe (F1) 0xffbe (F1) 0x1008fe01 (XF86Switch_VT_1)

As you can see my 65 equals End, not Space.
Also did a search for the string 0x0020 but again found nothing.
Any idea why my list is different from your?

Mike
User avatar
Kadaitcha Man
Level 9
Level 9
Posts: 2792
Joined: Mon Aug 27, 2012 10:17 pm

Re: XMODMAP Error

Post by Kadaitcha Man »

Mike9746 wrote:
Sun Jul 19, 2020 10:10 pm
Space

Code: Select all

space != Space
It's pronounced kad-eye-cha, not kada-itcha.
Mike9746
Level 1
Level 1
Posts: 9
Joined: Mon Jun 29, 2020 7:04 pm

Re: XMODMAP Error

Post by Mike9746 »

Searched for Space & space & SPACE
still not found.
Mike9746
Level 1
Level 1
Posts: 9
Joined: Mon Jun 29, 2020 7:04 pm

Re: XMODMAP Error

Post by Mike9746 »

Fixed one problem and found another.

There was some type of corruption in the XMODMAP file output.

I booted up from my install stick and ran

xmodmap -pk | grep space

and sure enough it found

65 0x0020 (space) 0x0000 (NoSymbol) 0x0020 (space)

So I did a reinstall of Mint 20 and the key-mapping is kinda working.

As long as I stay within the operating system it works fine.
I am writing this in XED and it works, but if I call up Firefox and try,
it does not work.

Any ideas??

Mike
Mike9746
Level 1
Level 1
Posts: 9
Joined: Mon Jun 29, 2020 7:04 pm

Re: XMODMAP Error

Post by Mike9746 »

Found a solution that, so far, works.
Instead of mapping to the Alt_L key, I mapped the Space to the Insert Key
Seems to work.

I have only tried on Firefox & XED,

Was hopping to map to the Windows key, but can't find the code, does anybody have that info?
Post Reply

Return to “Newbie Questions”