Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #243219

Re: xmodmap settings lost when (usb) keyboard reattached.

Path csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Anssi Saari <as@sci.fi>
Newsgroups linux.debian.user
Subject Re: xmodmap settings lost when (usb) keyboard reattached.
Date Fri, 17 Dec 2021 11:40:01 +0100
Message-ID <DviOB-UT-3@gated-at.bofh.it> (permalink)
References <DuFNi-18I-15@gated-at.bofh.it> <DuFWW-1rk-3@gated-at.bofh.it>
X-Mailbox-Line From debian-user-request@lists.debian.org Fri Dec 17 10:37:22 2021
Old-Return-Path <gldu-debian-user-2@m.gmane-mx.org>
X-Amavis-Spam-Status No, score=-6 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, MDO_CABLE_TV3=0.5] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.6
X-Injected-Via-Gmane http://gmane.org/
Organization An impatient and LOUD arachnid
MIME-Version 1.0
Content-Type text/plain
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock sha1:m5M6ZVTgOnc80w07Gcex39dRxEM=
X-Mailing-List <debian-user@lists.debian.org> archive/latest/784008
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/sm0fsqrwm9j.fsf@lakka.kapsi.fi
Approved robomod@news.nic.it
Lines 28
Sender robomod@news.nic.it
X-Original-Date Fri, 17 Dec 2021 12:36:56 +0200
X-Original-Message-ID <sm0fsqrwm9j.fsf@lakka.kapsi.fi>
X-Original-References <alpine.DEB.2.21.2112151648230.2492@einstein.home.woodall.me.uk> <20211215170820.GB15958@zira.vinc17.org>
Xref csiph.com linux.debian.user:243219

Show key headers only | View raw


Vincent Lefevre <vincent@vinc17.net> writes:

> In the past, I wrote a script, put in the /etc/pm/sleep.d directory:
>
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633849#92
>
> but there were some issues with it, as I mentioned there.

It's also not directly applicable when the issue isn't related to
pm-utils or suspend or hibernate. I have the same annoyance as the OP,
USB keyboard connected to a USB switch so that I can switch between my
work and personal computers in my home office easily. I have an alias fk
for fix keyboard which just runs xmodmap with some input, basically it
sets Alt_R to Mode_switch and then maps a bunch of chars (20 total)
behind mode_switch.

What I see in my script where I switch the USB is a little weird. I can
run xmodmap from the script but it doesn't apply the layout. No error
either. I've tried to use a delay and that sometimes works but not
consistently. I've also tried to monitor for changes in xmodmap output
even up to a minute since that changes some time after the keyboard is
plugged in, after a while Alt_R appears on the mod1 line of xmodmap
output.

What I found just now as I played with this is that if I have just one
call xmodmap then things work. I had a leftover second call to xmodmap
which makes caps to control but I don't need that with my current
keyboard.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

xmodmap settings lost when (usb) keyboard reattached. Tim Woodall <debianuser@woodall.me.uk> - 2021-12-15 18:00 +0100
  Re: xmodmap settings lost when (usb) keyboard reattached. Vincent Lefevre <vincent@vinc17.net> - 2021-12-15 18:10 +0100
    Re: xmodmap settings lost when (usb) keyboard reattached. Anssi Saari <as@sci.fi> - 2021-12-17 11:40 +0100
  Re: xmodmap settings lost when (usb) keyboard reattached. John Crawley <john@bunsenlabs.org> - 2021-12-16 03:30 +0100
  Re: xmodmap settings lost when (usb) keyboard reattached. David Wright <deblis@lionunicorn.co.uk> - 2021-12-17 18:00 +0100

csiph-web