Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] uinput and evdev
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 562

PostPosted: Mon Oct 05, 2009 12:31 pm    Post subject: [SOLVED] uinput and evdev Reply with quote

Hello!

I already have my mouse running with the evdev-driver. Now I wanted to use evdev for the keyboard as well.

I have some event-files in /dev/input/ having named symlinks (by udev: normal, special and extra)
My "normal" keyboard is working.
Then I have an additional event file for "special" keys that does not report any keypress (checked with xev) anymore.
And I have a uinput-driver that is creating an additinal event file ("extra") but xorg cant use it:
Code:
(**) Option "SendCoreEvents"
(**) Keyboard3: always reports core events
(**) Keyboard3: Device: "/dev/input/extra"
(EE) Unable to open evdev device "/dev/input/extra".
(II) UnloadModule: "evdev"
(EE) PreInit returned NULL for "Keyboard3"


In the config file I have for all three keyboards:
Code:
Section "InputDevice"
    Identifier      "Keyboard1"
    Driver          "evdev"
    Option          "AutoRepeat"    "500 30"
    Option          "XkbModel"      "evdev"
    Option          "XkbLayout"     "de"
    Option          "Device" "/dev/input/normal"
EndSection

...

Section "ServerLayout"
    Identifier          "Simple Layout"
    Screen              "Screen 2"
    InputDevice         "Mouse" "CorePointer"
    InputDevice         "Keyboard1" "CoreKeyboard"
    InputDevice         "Keyboard2" "SendCoreEvents"
    InputDevice         "Keyboard3" "SendCoreEvents"
EndSection


The main problem is the uinput events not working.
Its a stable amd64 system.


Last edited by lagalopex on Mon Oct 05, 2009 2:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Oct 05, 2009 12:43 pm    Post subject: Reply with quote

try adding this to xorg.conf
Code:
Section "ServerFlags"
        Option "AllowEmptyInput"   "false"
EndSection
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 562

PostPosted: Mon Oct 05, 2009 2:19 pm    Post subject: Reply with quote

Thanks. Now is gets loaded. And the reason why xev did not see an event was the fact that the key was bound to global action due to changes in the keycodes.

So everything is fine now!
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