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


Groups > linux.debian.user > #160488

Re: Xorg reconfigure on keyboard/VGA screen connect with systemd?

From Julien Cristau <jcristau@debian.org>
Newsgroups linux.debian.user
Subject Re: Xorg reconfigure on keyboard/VGA screen connect with systemd?
Date 2015-11-12 16:40 +0100
Message-ID <qu28G-2eq-33@gated-at.bofh.it> (permalink)
References <qtToJ-5fA-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Nov 12, 2015 at 18:49:00 +1300, martin f krafft wrote:

> Hello,
> 
> Can I use systemd to automatically run scripts as the owner of an
> X session when a USB keyboard or a VGA screen are connected to the
> local machine? Or what other mechanism would you use?
> 
It should be easy enough to write an X client listening for DeviceNotify
(for new input devices) or ConfigureNotify (for output changes) on the
root window.  gnome-settings-daemon has a "hotplug-command" under
org.gnome.settings-daemon.peripherals.input-devices in its settings that
can do the former at least.

Cheers,
Julien

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


Thread

Xorg reconfigure on keyboard/VGA screen connect with systemd? martin f krafft <madduck@madduck.net> - 2015-11-12 07:20 +0100
  Re: Xorg reconfigure on keyboard/VGA screen connect with systemd? Andreas Henriksson <andreas@fatal.se> - 2015-11-12 14:40 +0100
  Re: Xorg reconfigure on keyboard/VGA screen connect with systemd? Julien Cristau <jcristau@debian.org> - 2015-11-12 16:40 +0100

csiph-web