[systemd-devel] Someone working on gui for multiseat?

poma pomidorabelisima at gmail.com
Tue Feb 12 21:23:21 PST 2013


On 02/13/13 00:10, Lennart Poettering wrote:
> On Tue, 12.02.13 15:50, poma (pomidorabelisima at gmail.com) wrote:
> 
>>
>> On 02/11/13 21:30, Lennart Poettering wrote:
>> […]
>>> Of course, doing this via the command line is not user-frienldy, but
>>> maybe this will one day get fixed and somebody writes a proper UI for
>>> it...
>>>
>>
>> Regarding 'loginctl attach seat0 <sysfs>', the only thing really missing
>> is the 'sys' path completion, so one doesn't pars it via e.g. dmesg -t |
>> grep -P '(?=.*devices)(?=.*USB)', grep -B1 sys /var/log/Xorg.0.log, tree
>> /sys/class/drm, etc.
>> Behind the wheel, dri/drm device 'sys' path doesn't show up in dmesg,
>> nor in Xorg.*.log. - cc'ing dri-devel.
> 
> "loginctl seat-status" shows you a tree of devices, with their sysfs paths.
> 

Although I've used it for attaching devices, I failed to mention it.
Sorry old lad.
The basic idea is, rather than copy/paste from 'seat-status' to
'attach', this should be something like embedded 'seat-status' in the
process of attaching the devices, with command completion.

loginctl attach seat-2 - now hiting the TAB shows up ONLY common sys
path of all ATTACHABLE devices i.e.:

loginctl attach seat-2 [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1. [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.0 [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.0/input/input [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.0/input/input5
[SPACE] [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1. [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.0 [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.0/input/input6
[SPACE] [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1. [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.1 [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.1/input/input [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.1/input/input7
[SPACE] [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1. [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.1 [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.1/input/input [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.1/input/input8
[SPACE] [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1. [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.1 [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.1/input/input9
[SPACE] [TAB] \
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.2/input/input10 [ENTER]
FINITO

loginctl seat-status seat-2(descriptive lines omitted)
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.0/input/input5
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.0/input/input6
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.1/input/input7
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.1/input/input8
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.1/input/input9
/sys/devices/pci0000:00/0000:00:04.0/usb2/2-9/2-9:1.2/input/input10

This is an example of a single device(5 modules/inputs), but in actual
show up should be ALL attachable devices.

Et voilà.
poma




More information about the systemd-devel mailing list