Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XFCE with two keyboards
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
widlokm
n00b
n00b


Joined: 22 Sep 2007
Posts: 52
Location: Poland

PostPosted: Thu Apr 16, 2015 10:33 am    Post subject: XFCE with two keyboards Reply with quote

Hello,

I have a question about using 2 different keyboards within one XFCE session. I recently connected new keyboard (and mouse) to my PC and add another master input device to X using:
xinput create-master "Aux", and then attached given input devices to it. Now xinput shows:
Code:

⎡ Virtual core pointer                       id=2   [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                 id=4   [slave  pointer  (2)]
⎜   ↳ Mouse0                                     id=6   [slave  pointer  (2)]
⎣ Virtual core keyboard                      id=3   [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                id=5   [slave  keyboard (3)]
    ↳ Keyboard0                                  id=8   [slave  keyboard (3)]
    ↳ Power Button                               id=10   [slave  keyboard (3)]
    ↳ UVC Camera (046d:0825)                     id=11   [slave  keyboard (3)]
⎡ Aux pointer                                id=12   [master pointer  (13)]
⎜   ↳ Mouse1                                     id=7   [slave  pointer  (12)]
⎜   ↳ Aux XTEST pointer                          id=14   [slave  pointer  (12)]
⎣ Aux keyboard                               id=13   [master keyboard (12)]
    ↳ Keyboard1                                  id=9   [slave  keyboard (13)]
    ↳ Aux XTEST keyboard                         id=15   [slave  keyboard (13)]

For me it looks perfectly OK, there are 2 mouse pointers each moved by different mouse. However I am not able to understand how Keyboard1 is in fact used by window manager or other applications. For example if I select an urxvt terminal with Aux pointer I can type in it using Keyboard1 as expected. But if I start eg. gvim then the new window responds only to Keyboard0, and it seems that I can not use Keyboard1 to control it. Can someone give me some info about such configuration (2 mouses, 2 keyboards, one session) or point me to right place? I was not able to find much information about such setups.

Thank You in advance,
Michael Widlok
Back to top
View user's profile Send private message
ferrelas
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2008
Posts: 107

PostPosted: Thu Apr 16, 2015 3:13 pm    Post subject: Reply with quote

I can't say that I have a lot of experience with setups like this, but it could be that the software isn't compatible with more than one core pointer.

I did have a similar setup at one point, two sets of input, for 2 vm:s with Diablo 2 in them (one computer LAN ftw), in that case, only the keyboard attached to the pointer that had last clicked would work, maybe it's something like that?
Back to top
View user's profile Send private message
widlokm
n00b
n00b


Joined: 22 Sep 2007
Posts: 52
Location: Poland

PostPosted: Sat Apr 18, 2015 12:15 pm    Post subject: Reply with quote

Hello Ferrelas, Hello Members,

If it would be like this, that the keyboard form pointer that was last clicked works I would be able to understand this. But for me it is not, and playing around I found out that some applications (firefox, piklab, gvim, urxvt) behaving different one from each other. There is also problem with XFCE window manager itself, for example it lets me move windows using only the first pointer. I thought that compatibility with 2 pointers (and keyboards) depends only on window manager and X server, but it seems that it is not.

It looks like this multi pointer X is still in very experimental phase.
If anyone knows any docs or places where I could learn something about multi pointer X and window managers please let me know.

Best Regards,
Michael Widlok

PS. I've just found this page :http://superuser.com/questions/367882/windows-manager-which-allows-multiple-active-windows-multiple-input-devices. That post is quite old, but results are exactly like mine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum