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


Groups > linux.debian.user > #173105 > unrolled thread

Xfce: Apply keyboard settings on USB plug

Started byFlorian Weimer <fw@deneb.enyo.de>
First post2016-10-02 10:30 +0200
Last post2016-10-02 11:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  Xfce: Apply keyboard settings on USB plug Florian Weimer <fw@deneb.enyo.de> - 2016-10-02 10:30 +0200
    Re: Xfce: Apply keyboard settings on USB plug Nicolas George <george@nsup.org> - 2016-10-02 11:00 +0200

#173105 — Xfce: Apply keyboard settings on USB plug

FromFlorian Weimer <fw@deneb.enyo.de>
Date2016-10-02 10:30 +0200
SubjectXfce: Apply keyboard settings on USB plug
Message-ID<snKjM-4o3-5@gated-at.bofh.it>
I'm using the Xfce desktop environment on Debian jessie.  The keyboard
is plugged into a KVM switch which issues a USB disconnect if I switch
to another machine.  Once I switch back, the USB connection comes back
again, but the keyboard settings are gone.  This affects both the
changes in keyboard repeat/delay I configured within Xfce, and the
modmap I set with Xmodmap on session start.

Is there are simple solution to restore the keyboard settings, one
which is less hackish than watching for USB-related messages in dmesg?

[toc] | [next] | [standalone]


#173108

FromNicolas George <george@nsup.org>
Date2016-10-02 11:00 +0200
Message-ID<snKMN-4yU-9@gated-at.bofh.it>
In reply to#173105
Le primidi 11 vendémiaire, an CCXXV, Florian Weimer a écrit :
> I'm using the Xfce desktop environment on Debian jessie.  The keyboard
> is plugged into a KVM switch which issues a USB disconnect if I switch
> to another machine.  Once I switch back, the USB connection comes back
> again, but the keyboard settings are gone.  This affects both the
> changes in keyboard repeat/delay I configured within Xfce, and the
> modmap I set with Xmodmap on session start.
> 
> Is there are simple solution to restore the keyboard settings, one
> which is less hackish than watching for USB-related messages in dmesg?

I had the same problem with the keyboard on the sleeve of a hybrid
laptop/tablet, and I wrote the following program:

http://nsup.org/~george/comp/misc/xi2watch.c

It watches for XInput 2 events and executes a given command with the events
details in the environment.

Regards,

-- 
  Nicolas George

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web