← Back to team overview

ubuntu-multiseat team mailing list archive

Re: Lightdm and Xephyr multiseat fun

 

Daniel,

I've rewritten the command line populating logic for Xephyr. Now -keybd and
-mouse options are passed only if such devices are found.

Take a look, please!

CANTATE DOMINO CANTICUM NOVUM
QUIA MIRABILIA FECIT

Laércio


2014-03-06 15:09 GMT-03:00 Laércio de Sousa <lbsousajr@xxxxxxxxx>:

> Hum.. I've got it. In its current state, multi-seat-xephyr always expects
> for a keyboard AND a mouse for a given seat. In your case, however, there's
> no keyboard. OK, this must be fixed.
>
> There's another point where your case is different from mine: you have
> separate screens for each head of your graphics card, so you can pass
> "-hostx-display :90.0" or "-hostx-display :90.1" for each seat. In your
> case, it will also be useful to pass option "-fullscreen" to Xephyr,
> instead of setting geometry with "-screen" option. I'll work on it later.
>
> CANTATE DOMINO CANTICUM NOVUM
> QUIA MIRABILIA FECIT
>
> Laércio
>
>
> 2014-03-06 14:19 GMT-03:00 Daniel J Blueman <daniel@xxxxxxxxx>:
>
> Since I don't have these devices [1], we see Xephyr crash [2] when
>> failing to open the passed devices. We should only add the args if the
>> entry exists in /dev/input/by-seat of course. I'll fix that tomorrow.
>>
>> Have you had any success configuring Xephyr with a separate xorg.conf
>> for input devices? I'll try to add my touchscreen input via that if
>> so.
>>
>> Thanks,
>>   Daniel
>>
>> -- [1]
>>
>> # ls -l /dev/input/by-seat/
>> total 0
>> lrwxrwxrwx 1 root root 9 Mar  6 23:59 seat0.mouse -> ../mouse0
>> lrwxrwxrwx 1 root root 9 Mar  6 23:59 seat0.mouse-event -> ../event2
>>
>> -- [2]
>>
>> Failed to open evdev device /dev/input/by-seat/seat0.kbd-event
>> (EE)
>> (EE) Backtrace:
>> (EE) 0: /usr/bin/Xephyr (xorg_backtrace+0x49) [0xb7736799]
>> (EE) 1: /usr/bin/Xephyr (0xb75a4000+0x196504) [0xb773a504]
>> (EE) 2: (vdso) (__kernel_rt_sigreturn+0x0) [0xb758140c]
>> (EE) 3: /lib/i386-linux-gnu/libc.so.6 (0xb6fd5000+0x857d6) [0xb705a7d6]
>> (EE) 4: /usr/bin/Xephyr (0xb75a4000+0x157c7e) [0xb76fbc7e]
>> (EE) 5: /usr/bin/Xephyr (0xb75a4000+0x158607) [0xb76fc607]
>> (EE) 6: /usr/bin/Xephyr (0xb75a4000+0x14c813) [0xb76f0813]
>> (EE) 7: /usr/bin/Xephyr (0xb75a4000+0x4b42d) [0xb75ef42d]
>> (EE) 8: /usr/bin/Xephyr (0xb75a4000+0x20a1a) [0xb75c4a1a]
>> (EE) 9: /lib/i386-linux-gnu/libc.so.6 (__libc_start_main+0xf5)
>> [0xb6fee905]
>> (EE) 10: /usr/bin/Xephyr (0xb75a4000+0x20df8) [0xb75c4df8]
>> (EE)
>> (EE) Segmentation fault at address 0x0
>> (EE)
>> Fatal server error:
>> (EE) Caught signal 11 (Segmentation fault). Server aborting
>>
>> On 6 March 2014 23:50, Daniel J Blueman <daniel@xxxxxxxxx> wrote:
>> > Neat!
>> >
>> > Now, /var/log/lightdm/x-0.log ends with:
>> > Failed to open evdev device /dev/input/by-seat/seat0.mouse-event
>> > Failed to open evdev device /dev/input/by-seat/seat0.kbd-event
>> > and x-1.log:
>> > Failed to open evdev device /dev/input/by-seat/seat1.mouse-event
>> > Failed to open evdev device /dev/input/by-seat/seat1.kbd-event
>> >
>> > It turns out that Ubuntu 13.10 and 14.04 don't ship with these udev
>> rules:
>> > http://comments.gmane.org/gmane.comp.sysutils.systemd.devel/16776
>> >
>> > Thus we should probably package them too and upstream the changes. You
>> > see them on your SuSE setup?
>> >
>> > Dan
>> >
>> > On 6 March 2014 23:30, Laércio de Sousa <lbsousajr@xxxxxxxxx> wrote:
>> >>
>> >> 2014-03-06 12:20 GMT-03:00 Daniel J Blueman <daniel@xxxxxxxxx>:
>> >>
>> >>> In fact, since lightdm 1.8.2 on ubuntu 13.04 configured as per the
>> >>> example passes '-sharevts', 'harevts' is incorrectly taken as a second
>> >>> seat name and thus fails validation.
>> >>>
>> >>> '-novtswitch' is also passed and fails the option parsing. Since I
>> >>> don't have write access to that branch, I've generated a patch [1].
>> >>> I'm not sure if you can add my LP ID 'watchmaker' or not.
>> >>
>> >>
>> >> Thanks for your efforts. Could you send me a merge request in
>> Launchpad?
>> >> Just in case:
>> >>
>> >> 1. bzr branch lp:multi-seat-xephyr <your-branch>
>> >>
>> >> 2. cd <your-branch>
>> >>
>> >> 3. make your changes and commit
>> >>
>> >> 4. bzr push lp:~watchmaker/multi-seat-xephyr/<your-launchpad-branch>
>> >>
>> >> 5. Go to
>> >> https://code.launchpad.net/~watchmaker/multi-seat-xephyr/
>> <your-launcpad-branch>
>> >>
>> >> 6. Click on "Propose for merging".
>> >>
>> >> Regards,
>> >>
>> >>
>> >> CANTATE DOMINO CANTICUM NOVUM
>> >> QUIA MIRABILIA FECIT
>> >>
>> >> Laércio
>> >
>> >
>> >
>> > --
>> > Daniel J Blueman
>>
>>
>>
>> --
>> Daniel J Blueman
>>
>
>

References