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


Groups > linux.debian.user > #173108

Re: Xfce: Apply keyboard settings on USB plug

From Nicolas George <george@nsup.org>
Newsgroups linux.debian.user
Subject Re: Xfce: Apply keyboard settings on USB plug
Date 2016-10-02 11:00 +0200
Message-ID <snKMN-4yU-9@gated-at.bofh.it> (permalink)
References <snKjM-4o3-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

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


Thread

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

csiph-web