Xephyr - Attach specific mouse device without be root?

Tiago Vignatti vignatti at c3sl.ufpr.br
Mon Nov 17 19:12:15 PST 2008


Hi,

simon at mungewell.org escreveu:
> Hi all,
> I'm playing with using Xephyr for an emulator for the Sugar desktop (OLPC
> stuff), I am attempting to bind a specific mouse (event input) to Xephyr
> and made had some progress.
> 
> However the biggest problem is that I can only get Xephyr to attach an
> event source if it is run as root. ie:
> --
> sudo Xephyr :5 -mouse evdev,,device=/dev/input/event8
> --
> 
> Is there a method to allow this without being root, but instead as a
> normal user without root permissions?

I don't want that others users on the system see everything that I'm 
typing. But if you really want that feature, you can play with udev (or 
{Console, Device}Kit?) and create some rules for a given group.


> As expected the permissions of the event device are 'crw-rw---- 1 root
> root 13, 71 2008-11-12 21:24 /dev/input/event8'
> 
> [It seems that a normal Xserver can achieve this when run directly from a
> VT, so why not for Xephyr?]

note that you have to get superuser permissions to start a normal X server.


Cheers,

-- 
Tiago Vignatti
C3SL - Centro de Computação Científica e Software Livre
www.c3sl.ufpr.br



More information about the xorg mailing list