Debian Stretch 9: What changed to keyboard configuration (in X)?
Up to Debian 8, I could configure the keyboard this way:
setxkbmap -model pc105 -layout us -variant alt-intl
How do I achieve the same effect in Debian Stretch? What has changed?
I do remember that, at some Debian version, I had to do that command after every X
start, but it was still OK for me.
Since I installed Debian Stretch, that command will no longer take any effect. Yes, it does think it is working:
setxkbmap -query
rules: evdev
model: pc105
layout: us
variant: alt-intl
options: terminate:ctrl_alt_bksp
But it isn´t.
I managed to get it working eventually with:
ibus-setup #interactive
sudo ibus-daemon --xim &
But, apart from being interactive, that thing is random. Sometimes the keyboard is just going back to the crazy default layout it thinks it should apply (once even in the middle of a job coding interview!). I use English language:
echo $LANG
en_US.UTF-8
I selected Netherlands timezone and an international layout with deadkeys; that´s all. I never tried to set anything related to locales that aren´t the standard US-ish-ENG-ish things.
I hope the reason it was changed it is being very useful for many people, because, It´s difficult to understand why configuring such a basic thing just the way it has worked for decades had to become so complicated nowadays.
Things I already tried and had no effect, even after restarting:
1)
sudo dpkg-reconfigure keyboard-configuration
2)
setupcon
3)
sudo setupcon
4)
udevadm trigger --subsystem-match=input --action=change
5)
sudo apt-get install -y console-data console-setup console-locales keyboard-configuration
6)
sudo apt-get remove ibus -y
followed by an X restart.
7)
rm /var/lib/xkb/*.xkm
rm: cannot remove '/var/lib/xkb/*.xkm': No such file or directory
8)
setxkbmap -rules evdev -model evdev -layout us -variant alt-intl
Nothing of that made the configurations made by first setxkbmap
to take effect again and kept the same weird default.
Things I already tried and returned the keyboard to vanilla us
(without accents/deadkeys):
1)
setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl
2)
setxkbmap -rules evdev -model pc105 -layout us -variant altgr-intl
3)
setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl -option eys # no complain of bad options
4)
setxkbmap -rules evdev -model pc105 -layout us -variant altgr-intl -option #clears option
5)
setxkbmap -rules evdev -model pc105 -layout us -variant intl -option
6)
setxkbmap -rules evdev -model pc105 -layout us -variant altgr-intl -option terminate:ctrl_alt_bksp #control-alt-backspace option
debian keyboard xorg locale debian-stretch
add a comment |
Up to Debian 8, I could configure the keyboard this way:
setxkbmap -model pc105 -layout us -variant alt-intl
How do I achieve the same effect in Debian Stretch? What has changed?
I do remember that, at some Debian version, I had to do that command after every X
start, but it was still OK for me.
Since I installed Debian Stretch, that command will no longer take any effect. Yes, it does think it is working:
setxkbmap -query
rules: evdev
model: pc105
layout: us
variant: alt-intl
options: terminate:ctrl_alt_bksp
But it isn´t.
I managed to get it working eventually with:
ibus-setup #interactive
sudo ibus-daemon --xim &
But, apart from being interactive, that thing is random. Sometimes the keyboard is just going back to the crazy default layout it thinks it should apply (once even in the middle of a job coding interview!). I use English language:
echo $LANG
en_US.UTF-8
I selected Netherlands timezone and an international layout with deadkeys; that´s all. I never tried to set anything related to locales that aren´t the standard US-ish-ENG-ish things.
I hope the reason it was changed it is being very useful for many people, because, It´s difficult to understand why configuring such a basic thing just the way it has worked for decades had to become so complicated nowadays.
Things I already tried and had no effect, even after restarting:
1)
sudo dpkg-reconfigure keyboard-configuration
2)
setupcon
3)
sudo setupcon
4)
udevadm trigger --subsystem-match=input --action=change
5)
sudo apt-get install -y console-data console-setup console-locales keyboard-configuration
6)
sudo apt-get remove ibus -y
followed by an X restart.
7)
rm /var/lib/xkb/*.xkm
rm: cannot remove '/var/lib/xkb/*.xkm': No such file or directory
8)
setxkbmap -rules evdev -model evdev -layout us -variant alt-intl
Nothing of that made the configurations made by first setxkbmap
to take effect again and kept the same weird default.
Things I already tried and returned the keyboard to vanilla us
(without accents/deadkeys):
1)
setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl
2)
setxkbmap -rules evdev -model pc105 -layout us -variant altgr-intl
3)
setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl -option eys # no complain of bad options
4)
setxkbmap -rules evdev -model pc105 -layout us -variant altgr-intl -option #clears option
5)
setxkbmap -rules evdev -model pc105 -layout us -variant intl -option
6)
setxkbmap -rules evdev -model pc105 -layout us -variant altgr-intl -option terminate:ctrl_alt_bksp #control-alt-backspace option
debian keyboard xorg locale debian-stretch
1
What happens if you place thesetxkbmapdpkg
command in~/.xsessionrc
?
– harrymc
Oct 6 '18 at 15:28
Which exact distro & DE are you using?
– Xen2050
Oct 11 '18 at 20:52
Update: After 10 months "You've earned the "Popular Question" badge (Question with 1,000 views) for "Debian Stretch 9: What changed to keyboard configuration (in X)?"." , spent all my reputations on unsuccessful bounties. Those are for me clear signs that there is no solution.
– ribamar
Dec 20 '18 at 13:21
add a comment |
Up to Debian 8, I could configure the keyboard this way:
setxkbmap -model pc105 -layout us -variant alt-intl
How do I achieve the same effect in Debian Stretch? What has changed?
I do remember that, at some Debian version, I had to do that command after every X
start, but it was still OK for me.
Since I installed Debian Stretch, that command will no longer take any effect. Yes, it does think it is working:
setxkbmap -query
rules: evdev
model: pc105
layout: us
variant: alt-intl
options: terminate:ctrl_alt_bksp
But it isn´t.
I managed to get it working eventually with:
ibus-setup #interactive
sudo ibus-daemon --xim &
But, apart from being interactive, that thing is random. Sometimes the keyboard is just going back to the crazy default layout it thinks it should apply (once even in the middle of a job coding interview!). I use English language:
echo $LANG
en_US.UTF-8
I selected Netherlands timezone and an international layout with deadkeys; that´s all. I never tried to set anything related to locales that aren´t the standard US-ish-ENG-ish things.
I hope the reason it was changed it is being very useful for many people, because, It´s difficult to understand why configuring such a basic thing just the way it has worked for decades had to become so complicated nowadays.
Things I already tried and had no effect, even after restarting:
1)
sudo dpkg-reconfigure keyboard-configuration
2)
setupcon
3)
sudo setupcon
4)
udevadm trigger --subsystem-match=input --action=change
5)
sudo apt-get install -y console-data console-setup console-locales keyboard-configuration
6)
sudo apt-get remove ibus -y
followed by an X restart.
7)
rm /var/lib/xkb/*.xkm
rm: cannot remove '/var/lib/xkb/*.xkm': No such file or directory
8)
setxkbmap -rules evdev -model evdev -layout us -variant alt-intl
Nothing of that made the configurations made by first setxkbmap
to take effect again and kept the same weird default.
Things I already tried and returned the keyboard to vanilla us
(without accents/deadkeys):
1)
setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl
2)
setxkbmap -rules evdev -model pc105 -layout us -variant altgr-intl
3)
setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl -option eys # no complain of bad options
4)
setxkbmap -rules evdev -model pc105 -layout us -variant altgr-intl -option #clears option
5)
setxkbmap -rules evdev -model pc105 -layout us -variant intl -option
6)
setxkbmap -rules evdev -model pc105 -layout us -variant altgr-intl -option terminate:ctrl_alt_bksp #control-alt-backspace option
debian keyboard xorg locale debian-stretch
Up to Debian 8, I could configure the keyboard this way:
setxkbmap -model pc105 -layout us -variant alt-intl
How do I achieve the same effect in Debian Stretch? What has changed?
I do remember that, at some Debian version, I had to do that command after every X
start, but it was still OK for me.
Since I installed Debian Stretch, that command will no longer take any effect. Yes, it does think it is working:
setxkbmap -query
rules: evdev
model: pc105
layout: us
variant: alt-intl
options: terminate:ctrl_alt_bksp
But it isn´t.
I managed to get it working eventually with:
ibus-setup #interactive
sudo ibus-daemon --xim &
But, apart from being interactive, that thing is random. Sometimes the keyboard is just going back to the crazy default layout it thinks it should apply (once even in the middle of a job coding interview!). I use English language:
echo $LANG
en_US.UTF-8
I selected Netherlands timezone and an international layout with deadkeys; that´s all. I never tried to set anything related to locales that aren´t the standard US-ish-ENG-ish things.
I hope the reason it was changed it is being very useful for many people, because, It´s difficult to understand why configuring such a basic thing just the way it has worked for decades had to become so complicated nowadays.
Things I already tried and had no effect, even after restarting:
1)
sudo dpkg-reconfigure keyboard-configuration
2)
setupcon
3)
sudo setupcon
4)
udevadm trigger --subsystem-match=input --action=change
5)
sudo apt-get install -y console-data console-setup console-locales keyboard-configuration
6)
sudo apt-get remove ibus -y
followed by an X restart.
7)
rm /var/lib/xkb/*.xkm
rm: cannot remove '/var/lib/xkb/*.xkm': No such file or directory
8)
setxkbmap -rules evdev -model evdev -layout us -variant alt-intl
Nothing of that made the configurations made by first setxkbmap
to take effect again and kept the same weird default.
Things I already tried and returned the keyboard to vanilla us
(without accents/deadkeys):
1)
setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl
2)
setxkbmap -rules evdev -model pc105 -layout us -variant altgr-intl
3)
setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl -option eys # no complain of bad options
4)
setxkbmap -rules evdev -model pc105 -layout us -variant altgr-intl -option #clears option
5)
setxkbmap -rules evdev -model pc105 -layout us -variant intl -option
6)
setxkbmap -rules evdev -model pc105 -layout us -variant altgr-intl -option terminate:ctrl_alt_bksp #control-alt-backspace option
debian keyboard xorg locale debian-stretch
debian keyboard xorg locale debian-stretch
edited Oct 6 '18 at 13:53
ribamar
asked Feb 8 '18 at 14:36
ribamarribamar
217
217
1
What happens if you place thesetxkbmapdpkg
command in~/.xsessionrc
?
– harrymc
Oct 6 '18 at 15:28
Which exact distro & DE are you using?
– Xen2050
Oct 11 '18 at 20:52
Update: After 10 months "You've earned the "Popular Question" badge (Question with 1,000 views) for "Debian Stretch 9: What changed to keyboard configuration (in X)?"." , spent all my reputations on unsuccessful bounties. Those are for me clear signs that there is no solution.
– ribamar
Dec 20 '18 at 13:21
add a comment |
1
What happens if you place thesetxkbmapdpkg
command in~/.xsessionrc
?
– harrymc
Oct 6 '18 at 15:28
Which exact distro & DE are you using?
– Xen2050
Oct 11 '18 at 20:52
Update: After 10 months "You've earned the "Popular Question" badge (Question with 1,000 views) for "Debian Stretch 9: What changed to keyboard configuration (in X)?"." , spent all my reputations on unsuccessful bounties. Those are for me clear signs that there is no solution.
– ribamar
Dec 20 '18 at 13:21
1
1
What happens if you place the
setxkbmapdpkg
command in ~/.xsessionrc
?– harrymc
Oct 6 '18 at 15:28
What happens if you place the
setxkbmapdpkg
command in ~/.xsessionrc
?– harrymc
Oct 6 '18 at 15:28
Which exact distro & DE are you using?
– Xen2050
Oct 11 '18 at 20:52
Which exact distro & DE are you using?
– Xen2050
Oct 11 '18 at 20:52
Update: After 10 months "You've earned the "Popular Question" badge (Question with 1,000 views) for "Debian Stretch 9: What changed to keyboard configuration (in X)?"." , spent all my reputations on unsuccessful bounties. Those are for me clear signs that there is no solution.
– ribamar
Dec 20 '18 at 13:21
Update: After 10 months "You've earned the "Popular Question" badge (Question with 1,000 views) for "Debian Stretch 9: What changed to keyboard configuration (in X)?"." , spent all my reputations on unsuccessful bounties. Those are for me clear signs that there is no solution.
– ribamar
Dec 20 '18 at 13:21
add a comment |
2 Answers
2
active
oldest
votes
I was arount 3 hours dealing with this, on a Debian 9 with xfce4 there was no way to put default keyboard settings using any command even using the UI keyboard configuration of xfce4...
BUT...
this worked just fine:
echo '
# Set default keyboard for X:
sleep 2
if [ -n $DISPLAY ] ; then
setxkbmap -model pc105 -layout es -variant winkeys -print | xkbcomp - $DISPLAY
fi
'
| sudo tee -a ~/.xsessionrc
the sleep command is mandatory in order to get it working.
add a comment |
This worked for me:
sudo dpkg-reconfigure keyboard-configuration
sudo service keyboard-setup restart
And then restart
not for me -- it was the first thing I tried and surely I tried restarting it.
– ribamar
Oct 6 '18 at 13:54
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1293154%2fdebian-stretch-9-what-changed-to-keyboard-configuration-in-x%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I was arount 3 hours dealing with this, on a Debian 9 with xfce4 there was no way to put default keyboard settings using any command even using the UI keyboard configuration of xfce4...
BUT...
this worked just fine:
echo '
# Set default keyboard for X:
sleep 2
if [ -n $DISPLAY ] ; then
setxkbmap -model pc105 -layout es -variant winkeys -print | xkbcomp - $DISPLAY
fi
'
| sudo tee -a ~/.xsessionrc
the sleep command is mandatory in order to get it working.
add a comment |
I was arount 3 hours dealing with this, on a Debian 9 with xfce4 there was no way to put default keyboard settings using any command even using the UI keyboard configuration of xfce4...
BUT...
this worked just fine:
echo '
# Set default keyboard for X:
sleep 2
if [ -n $DISPLAY ] ; then
setxkbmap -model pc105 -layout es -variant winkeys -print | xkbcomp - $DISPLAY
fi
'
| sudo tee -a ~/.xsessionrc
the sleep command is mandatory in order to get it working.
add a comment |
I was arount 3 hours dealing with this, on a Debian 9 with xfce4 there was no way to put default keyboard settings using any command even using the UI keyboard configuration of xfce4...
BUT...
this worked just fine:
echo '
# Set default keyboard for X:
sleep 2
if [ -n $DISPLAY ] ; then
setxkbmap -model pc105 -layout es -variant winkeys -print | xkbcomp - $DISPLAY
fi
'
| sudo tee -a ~/.xsessionrc
the sleep command is mandatory in order to get it working.
I was arount 3 hours dealing with this, on a Debian 9 with xfce4 there was no way to put default keyboard settings using any command even using the UI keyboard configuration of xfce4...
BUT...
this worked just fine:
echo '
# Set default keyboard for X:
sleep 2
if [ -n $DISPLAY ] ; then
setxkbmap -model pc105 -layout es -variant winkeys -print | xkbcomp - $DISPLAY
fi
'
| sudo tee -a ~/.xsessionrc
the sleep command is mandatory in order to get it working.
answered Feb 26 at 5:31
BraianBraian
212
212
add a comment |
add a comment |
This worked for me:
sudo dpkg-reconfigure keyboard-configuration
sudo service keyboard-setup restart
And then restart
not for me -- it was the first thing I tried and surely I tried restarting it.
– ribamar
Oct 6 '18 at 13:54
add a comment |
This worked for me:
sudo dpkg-reconfigure keyboard-configuration
sudo service keyboard-setup restart
And then restart
not for me -- it was the first thing I tried and surely I tried restarting it.
– ribamar
Oct 6 '18 at 13:54
add a comment |
This worked for me:
sudo dpkg-reconfigure keyboard-configuration
sudo service keyboard-setup restart
And then restart
This worked for me:
sudo dpkg-reconfigure keyboard-configuration
sudo service keyboard-setup restart
And then restart
answered Aug 2 '18 at 0:10
David RamírezDavid Ramírez
11
11
not for me -- it was the first thing I tried and surely I tried restarting it.
– ribamar
Oct 6 '18 at 13:54
add a comment |
not for me -- it was the first thing I tried and surely I tried restarting it.
– ribamar
Oct 6 '18 at 13:54
not for me -- it was the first thing I tried and surely I tried restarting it.
– ribamar
Oct 6 '18 at 13:54
not for me -- it was the first thing I tried and surely I tried restarting it.
– ribamar
Oct 6 '18 at 13:54
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1293154%2fdebian-stretch-9-what-changed-to-keyboard-configuration-in-x%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
What happens if you place the
setxkbmapdpkg
command in~/.xsessionrc
?– harrymc
Oct 6 '18 at 15:28
Which exact distro & DE are you using?
– Xen2050
Oct 11 '18 at 20:52
Update: After 10 months "You've earned the "Popular Question" badge (Question with 1,000 views) for "Debian Stretch 9: What changed to keyboard configuration (in X)?"." , spent all my reputations on unsuccessful bounties. Those are for me clear signs that there is no solution.
– ribamar
Dec 20 '18 at 13:21