Can't seem to switch shift and up keys on laptop
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
I've been googling around on how to reassign the right shift and up key and I'm having trouble with it and would like some guidance.
I'm running Ubuntu 16.04.
I tried the method mentioned in this post, as this person has the Lenovo Ideapad 510 and I have the Ideapad 710s (both have the same unfortunate keyboard design decision)
The method doesn't work for me as my Up key stopped worked and my right Shift key started acting as both the Up and the Shift key.
I found out that in Ubuntu 16.04, the way to remap the keys would be to go through /usr/share/x11/xkb/symbols
.
My laptop is using English (US), so I decided to switch around the Up and Shift_R key in the /usr/share/x11/xkb/symbols/pc
and then cleared the precompiled keymaps. My Up key stopped working but my Shift key remained the same.
I'm at a loss here.
Here is my unformatted pc file.
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105"
key <ESC> [ Escape ] ;
// The extra key on many European keyboards:
key <LSGT> [ less, greater, bar, brokenbar ] ;
// The following keys are common to all layouts.
key <BKSL> [ backslash, bar ] ;
key <SPCE> [ space ] ;
include "srvr_ctrl(fkey2vt)"
include "pc(editing)"
include "keypad(x11)"
key <BKSP> [ BackSpace, BackSpace ] ;
key <TAB> [ Tab, ISO_Left_Tab ] ;
key <RTRN> [ Return ] ;
key <CAPS> [ Caps_Lock ] ;
key <NMLK> [ Num_Lock ] ;
key <LFSH> [ Shift_L ] ;
key <LCTL> [ Control_L ] ;
key <LWIN> [ Super_L ] ;
key <RTSH> [ Shift_R ] ;
key <RCTL> [ Control_R ] ;
key <RWIN> [ Super_R ] ;
key <MENU> [ Menu ] ;
// Beginning of modifier mappings.
modifier_map Shift Shift_L, Shift_R ;
modifier_map Lock Caps_Lock ;
modifier_map Control Control_L, Control_R ;
modifier_map Mod2 Num_Lock ;
modifier_map Mod4 Super_L, Super_R ;
// Fake keys for virtual<->real modifiers mapping:
key <LVL3> [ ISO_Level3_Shift ] ;
key <MDSW> [ Mode_switch ] ;
modifier_map Mod5 <LVL3>, <MDSW> ;
key <ALT> [ NoSymbol, Alt_L ] ;
include "altwin(meta_alt)"
key <META> [ NoSymbol, Meta_L ] ;
modifier_map Mod1 <META> ;
key <SUPR> [ NoSymbol, Super_L ] ;
modifier_map Mod4 <SUPR> ;
key <HYPR> [ NoSymbol, Hyper_L ] ;
modifier_map Mod4 <HYPR> ;
// End of modifier mappings.
key <OUTP> [ XF86Display ] ;
key <KITG> [ XF86KbdLightOnOff ] ;
key <KIDN> [ XF86KbdBrightnessDown ] ;
key <KIUP> [ XF86KbdBrightnessUp ] ;
;
hidden partial alphanumeric_keys
xkb_symbols "editing"
key <PRSC>
type= "PC_ALT_LEVEL2",
symbols[Group1]= [ Print, Sys_Req ]
;
key <SCLK> [ Scroll_Lock ] ;
key <PAUS>
type= "PC_CONTROL_LEVEL2",
symbols[Group1]= [ Pause, Break ]
;
key <INS> [ Insert ] ;
key <HOME> [ Home ] ;
key <PGUP> [ Prior ] ;
key <DELE> [ Delete ] ;
key <END> [ End ] ;
key <PGDN> [ Next ] ;
key <UP> [ Up ] ;
key <LEFT> [ Left ] ;
key <DOWN> [ Down ] ;
key <RGHT> [ Right ] ;
;
lenovo keyboard-layout remapping
add a comment |Â
up vote
1
down vote
favorite
I've been googling around on how to reassign the right shift and up key and I'm having trouble with it and would like some guidance.
I'm running Ubuntu 16.04.
I tried the method mentioned in this post, as this person has the Lenovo Ideapad 510 and I have the Ideapad 710s (both have the same unfortunate keyboard design decision)
The method doesn't work for me as my Up key stopped worked and my right Shift key started acting as both the Up and the Shift key.
I found out that in Ubuntu 16.04, the way to remap the keys would be to go through /usr/share/x11/xkb/symbols
.
My laptop is using English (US), so I decided to switch around the Up and Shift_R key in the /usr/share/x11/xkb/symbols/pc
and then cleared the precompiled keymaps. My Up key stopped working but my Shift key remained the same.
I'm at a loss here.
Here is my unformatted pc file.
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105"
key <ESC> [ Escape ] ;
// The extra key on many European keyboards:
key <LSGT> [ less, greater, bar, brokenbar ] ;
// The following keys are common to all layouts.
key <BKSL> [ backslash, bar ] ;
key <SPCE> [ space ] ;
include "srvr_ctrl(fkey2vt)"
include "pc(editing)"
include "keypad(x11)"
key <BKSP> [ BackSpace, BackSpace ] ;
key <TAB> [ Tab, ISO_Left_Tab ] ;
key <RTRN> [ Return ] ;
key <CAPS> [ Caps_Lock ] ;
key <NMLK> [ Num_Lock ] ;
key <LFSH> [ Shift_L ] ;
key <LCTL> [ Control_L ] ;
key <LWIN> [ Super_L ] ;
key <RTSH> [ Shift_R ] ;
key <RCTL> [ Control_R ] ;
key <RWIN> [ Super_R ] ;
key <MENU> [ Menu ] ;
// Beginning of modifier mappings.
modifier_map Shift Shift_L, Shift_R ;
modifier_map Lock Caps_Lock ;
modifier_map Control Control_L, Control_R ;
modifier_map Mod2 Num_Lock ;
modifier_map Mod4 Super_L, Super_R ;
// Fake keys for virtual<->real modifiers mapping:
key <LVL3> [ ISO_Level3_Shift ] ;
key <MDSW> [ Mode_switch ] ;
modifier_map Mod5 <LVL3>, <MDSW> ;
key <ALT> [ NoSymbol, Alt_L ] ;
include "altwin(meta_alt)"
key <META> [ NoSymbol, Meta_L ] ;
modifier_map Mod1 <META> ;
key <SUPR> [ NoSymbol, Super_L ] ;
modifier_map Mod4 <SUPR> ;
key <HYPR> [ NoSymbol, Hyper_L ] ;
modifier_map Mod4 <HYPR> ;
// End of modifier mappings.
key <OUTP> [ XF86Display ] ;
key <KITG> [ XF86KbdLightOnOff ] ;
key <KIDN> [ XF86KbdBrightnessDown ] ;
key <KIUP> [ XF86KbdBrightnessUp ] ;
;
hidden partial alphanumeric_keys
xkb_symbols "editing"
key <PRSC>
type= "PC_ALT_LEVEL2",
symbols[Group1]= [ Print, Sys_Req ]
;
key <SCLK> [ Scroll_Lock ] ;
key <PAUS>
type= "PC_CONTROL_LEVEL2",
symbols[Group1]= [ Pause, Break ]
;
key <INS> [ Insert ] ;
key <HOME> [ Home ] ;
key <PGUP> [ Prior ] ;
key <DELE> [ Delete ] ;
key <END> [ End ] ;
key <PGDN> [ Next ] ;
key <UP> [ Up ] ;
key <LEFT> [ Left ] ;
key <DOWN> [ Down ] ;
key <RGHT> [ Right ] ;
;
lenovo keyboard-layout remapping
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I've been googling around on how to reassign the right shift and up key and I'm having trouble with it and would like some guidance.
I'm running Ubuntu 16.04.
I tried the method mentioned in this post, as this person has the Lenovo Ideapad 510 and I have the Ideapad 710s (both have the same unfortunate keyboard design decision)
The method doesn't work for me as my Up key stopped worked and my right Shift key started acting as both the Up and the Shift key.
I found out that in Ubuntu 16.04, the way to remap the keys would be to go through /usr/share/x11/xkb/symbols
.
My laptop is using English (US), so I decided to switch around the Up and Shift_R key in the /usr/share/x11/xkb/symbols/pc
and then cleared the precompiled keymaps. My Up key stopped working but my Shift key remained the same.
I'm at a loss here.
Here is my unformatted pc file.
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105"
key <ESC> [ Escape ] ;
// The extra key on many European keyboards:
key <LSGT> [ less, greater, bar, brokenbar ] ;
// The following keys are common to all layouts.
key <BKSL> [ backslash, bar ] ;
key <SPCE> [ space ] ;
include "srvr_ctrl(fkey2vt)"
include "pc(editing)"
include "keypad(x11)"
key <BKSP> [ BackSpace, BackSpace ] ;
key <TAB> [ Tab, ISO_Left_Tab ] ;
key <RTRN> [ Return ] ;
key <CAPS> [ Caps_Lock ] ;
key <NMLK> [ Num_Lock ] ;
key <LFSH> [ Shift_L ] ;
key <LCTL> [ Control_L ] ;
key <LWIN> [ Super_L ] ;
key <RTSH> [ Shift_R ] ;
key <RCTL> [ Control_R ] ;
key <RWIN> [ Super_R ] ;
key <MENU> [ Menu ] ;
// Beginning of modifier mappings.
modifier_map Shift Shift_L, Shift_R ;
modifier_map Lock Caps_Lock ;
modifier_map Control Control_L, Control_R ;
modifier_map Mod2 Num_Lock ;
modifier_map Mod4 Super_L, Super_R ;
// Fake keys for virtual<->real modifiers mapping:
key <LVL3> [ ISO_Level3_Shift ] ;
key <MDSW> [ Mode_switch ] ;
modifier_map Mod5 <LVL3>, <MDSW> ;
key <ALT> [ NoSymbol, Alt_L ] ;
include "altwin(meta_alt)"
key <META> [ NoSymbol, Meta_L ] ;
modifier_map Mod1 <META> ;
key <SUPR> [ NoSymbol, Super_L ] ;
modifier_map Mod4 <SUPR> ;
key <HYPR> [ NoSymbol, Hyper_L ] ;
modifier_map Mod4 <HYPR> ;
// End of modifier mappings.
key <OUTP> [ XF86Display ] ;
key <KITG> [ XF86KbdLightOnOff ] ;
key <KIDN> [ XF86KbdBrightnessDown ] ;
key <KIUP> [ XF86KbdBrightnessUp ] ;
;
hidden partial alphanumeric_keys
xkb_symbols "editing"
key <PRSC>
type= "PC_ALT_LEVEL2",
symbols[Group1]= [ Print, Sys_Req ]
;
key <SCLK> [ Scroll_Lock ] ;
key <PAUS>
type= "PC_CONTROL_LEVEL2",
symbols[Group1]= [ Pause, Break ]
;
key <INS> [ Insert ] ;
key <HOME> [ Home ] ;
key <PGUP> [ Prior ] ;
key <DELE> [ Delete ] ;
key <END> [ End ] ;
key <PGDN> [ Next ] ;
key <UP> [ Up ] ;
key <LEFT> [ Left ] ;
key <DOWN> [ Down ] ;
key <RGHT> [ Right ] ;
;
lenovo keyboard-layout remapping
I've been googling around on how to reassign the right shift and up key and I'm having trouble with it and would like some guidance.
I'm running Ubuntu 16.04.
I tried the method mentioned in this post, as this person has the Lenovo Ideapad 510 and I have the Ideapad 710s (both have the same unfortunate keyboard design decision)
The method doesn't work for me as my Up key stopped worked and my right Shift key started acting as both the Up and the Shift key.
I found out that in Ubuntu 16.04, the way to remap the keys would be to go through /usr/share/x11/xkb/symbols
.
My laptop is using English (US), so I decided to switch around the Up and Shift_R key in the /usr/share/x11/xkb/symbols/pc
and then cleared the precompiled keymaps. My Up key stopped working but my Shift key remained the same.
I'm at a loss here.
Here is my unformatted pc file.
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105"
key <ESC> [ Escape ] ;
// The extra key on many European keyboards:
key <LSGT> [ less, greater, bar, brokenbar ] ;
// The following keys are common to all layouts.
key <BKSL> [ backslash, bar ] ;
key <SPCE> [ space ] ;
include "srvr_ctrl(fkey2vt)"
include "pc(editing)"
include "keypad(x11)"
key <BKSP> [ BackSpace, BackSpace ] ;
key <TAB> [ Tab, ISO_Left_Tab ] ;
key <RTRN> [ Return ] ;
key <CAPS> [ Caps_Lock ] ;
key <NMLK> [ Num_Lock ] ;
key <LFSH> [ Shift_L ] ;
key <LCTL> [ Control_L ] ;
key <LWIN> [ Super_L ] ;
key <RTSH> [ Shift_R ] ;
key <RCTL> [ Control_R ] ;
key <RWIN> [ Super_R ] ;
key <MENU> [ Menu ] ;
// Beginning of modifier mappings.
modifier_map Shift Shift_L, Shift_R ;
modifier_map Lock Caps_Lock ;
modifier_map Control Control_L, Control_R ;
modifier_map Mod2 Num_Lock ;
modifier_map Mod4 Super_L, Super_R ;
// Fake keys for virtual<->real modifiers mapping:
key <LVL3> [ ISO_Level3_Shift ] ;
key <MDSW> [ Mode_switch ] ;
modifier_map Mod5 <LVL3>, <MDSW> ;
key <ALT> [ NoSymbol, Alt_L ] ;
include "altwin(meta_alt)"
key <META> [ NoSymbol, Meta_L ] ;
modifier_map Mod1 <META> ;
key <SUPR> [ NoSymbol, Super_L ] ;
modifier_map Mod4 <SUPR> ;
key <HYPR> [ NoSymbol, Hyper_L ] ;
modifier_map Mod4 <HYPR> ;
// End of modifier mappings.
key <OUTP> [ XF86Display ] ;
key <KITG> [ XF86KbdLightOnOff ] ;
key <KIDN> [ XF86KbdBrightnessDown ] ;
key <KIUP> [ XF86KbdBrightnessUp ] ;
;
hidden partial alphanumeric_keys
xkb_symbols "editing"
key <PRSC>
type= "PC_ALT_LEVEL2",
symbols[Group1]= [ Print, Sys_Req ]
;
key <SCLK> [ Scroll_Lock ] ;
key <PAUS>
type= "PC_CONTROL_LEVEL2",
symbols[Group1]= [ Pause, Break ]
;
key <INS> [ Insert ] ;
key <HOME> [ Home ] ;
key <PGUP> [ Prior ] ;
key <DELE> [ Delete ] ;
key <END> [ End ] ;
key <PGDN> [ Next ] ;
key <UP> [ Up ] ;
key <LEFT> [ Left ] ;
key <DOWN> [ Down ] ;
key <RGHT> [ Right ] ;
;
lenovo keyboard-layout remapping
lenovo keyboard-layout remapping
edited Mar 8 at 22:39
![](https://i.stack.imgur.com/ypy8w.png?s=32&g=1)
![](https://i.stack.imgur.com/ypy8w.png?s=32&g=1)
galoget
2,1062820
2,1062820
asked Mar 8 at 21:45
sinykk
62
62
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
I was able to fix the issue thanks to the answer in this post.
Thanks to @Sparhawk I went to /usr/share/X11/xkb/keycodes/evdev
and simply switched the keycodes for the UP
(keycode 111) and RTSH
(keycode 62) for my keyboard.
I cleared the xkb cache and rebooted and it's done. Hopefully it will stick.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I was able to fix the issue thanks to the answer in this post.
Thanks to @Sparhawk I went to /usr/share/X11/xkb/keycodes/evdev
and simply switched the keycodes for the UP
(keycode 111) and RTSH
(keycode 62) for my keyboard.
I cleared the xkb cache and rebooted and it's done. Hopefully it will stick.
add a comment |Â
up vote
0
down vote
I was able to fix the issue thanks to the answer in this post.
Thanks to @Sparhawk I went to /usr/share/X11/xkb/keycodes/evdev
and simply switched the keycodes for the UP
(keycode 111) and RTSH
(keycode 62) for my keyboard.
I cleared the xkb cache and rebooted and it's done. Hopefully it will stick.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I was able to fix the issue thanks to the answer in this post.
Thanks to @Sparhawk I went to /usr/share/X11/xkb/keycodes/evdev
and simply switched the keycodes for the UP
(keycode 111) and RTSH
(keycode 62) for my keyboard.
I cleared the xkb cache and rebooted and it's done. Hopefully it will stick.
I was able to fix the issue thanks to the answer in this post.
Thanks to @Sparhawk I went to /usr/share/X11/xkb/keycodes/evdev
and simply switched the keycodes for the UP
(keycode 111) and RTSH
(keycode 62) for my keyboard.
I cleared the xkb cache and rebooted and it's done. Hopefully it will stick.
answered Mar 9 at 15:28
sinykk
62
62
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1013238%2fcant-seem-to-switch-shift-and-up-keys-on-laptop%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password