Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] evdev issues when starting X / KDM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Mon Aug 13, 2012 12:01 am    Post subject: [SOLVED] evdev issues when starting X / KDM Reply with quote

Hi all,

I'm just starting out on my Gentoo journey this year!! Seems it's even harder work than Arch... 8O

Anyway I can start a X-session or KDM (I have the full KDE Desktop emerged). Both appear to work perfectly... However only my notebooks touchpad (synaptics) works when I start an X session. I can get any built-in keyboard input or a USB mouse/keyboard to work at all. I can't even switch back to a TTY console (unless I can access it with my touchpad graphically e.g. in KDM). Keyboard input is working fine in the TTY consoles... Bit frustrating. I presume I've misconfigured evdev or something...

/var/log/Xorg.0.log

/etc/X11/xorg.rules.d/10-evdev.conf

I've definitely xf86-input-evdev emerged.

From my make.conf file:
Code:
## DEVICES ##
INPUT_DEVICES="evdev synaptics keyboard"
VIDEO_CARDS="radeon"
LIRC_DEVICES="audio audio_alsa serial pctv"


I'm not even sure what else I can try now... I've been banging my head up against a wall with this one for a couple of weeks... I've followed both of the Gentoo wiki pages on Xorg input to the letter... Am I missing something from my kernel config?? How to troubleshoot the lack evdev support?

Thanks for any help you can give!!
Bob


Last edited by BobWya on Tue Aug 14, 2012 4:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Mon Aug 13, 2012 1:10 am    Post subject: Reply with quote

BobWya,

Welcome to gentoo :D

Your log is littered with
Code:
Failed to load module "evdev" (module does not exist, 0)

which should provide a clue :wink:

Start with changing /etc/make.conf with INPUT_DEVICES="evdev synaptics" and running:
Code:
emerge -uavDN --with-bdeps=y @world

and see if that takes care of the problem.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Aug 13, 2012 4:58 am    Post subject: Reply with quote

if you are missing something from your kernel config, it'd be this

needs:
Code:

 Symbol: INPUT_EVDEV [=y]
  │ Type  : tristate
  │ Prompt: Event interface
  │   Defined at drivers/input/Kconfig:129
  │   Depends on: !S390 && !UML && INPUT [=y]
  │   Location:
  │     -> Device Drivers
  │       -> Input device support
  │         -> Generic input layer (needed for keyboard, mouse, ...) (INPUT [=y])


if you happen to have /proc/config.gz (its presence or lack thereof is determined by a kernel config setting) you can check with

Code:

zgrep EVDEV /proc/config.gz

_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Mon Aug 13, 2012 2:34 pm    Post subject: Reply with quote

cach0rr0 wrote:
...

if you happen to have /proc/config.gz (its presence or lack thereof is determined by a kernel config setting) you can check with

Code:

zgrep EVDEV /proc/config.gz


Good call about checking the /proc/ interface (i.e. the "actual" running kernel - not the one I thought I'd built!!)

Sadly no joy...
Code:
CONFIG_INPUT_EVDEV=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
CONFIG_USB_PWC_INPUT_EVDEV=y


Bob
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Mon Aug 13, 2012 2:48 pm    Post subject: Reply with quote

BillWho wrote:

Welcome to gentoo :D

Your log is littered with
Code:
Failed to load module "evdev" (module does not exist, 0)

which should provide a clue :wink:

Start with changing /etc/make.conf with INPUT_DEVICES="evdev synaptics" and running:
Code:
emerge -uavDN --with-bdeps=y @world

and see if that takes care of the problem.


Thanks and I appreciate the prompt responses!!

Yeh I kind of noticed that as well (the evdev module missing bit)... Do you think it matters if it is a module in the kernel or compiled in?? It looks like I've built it into the monolithic kernel image (y rather than m)...

I originally had INPUT_DEVICES="evdev synaptics" (but tried adding "keyboard" in desperation!)
Anyway reverted back and rebuilt @world. Many hours later 8) - same problem only the touchpad works in X.
The TTY consoles have full support for my builtin notebook keyboard and external USB keyboards.

I double checked and the xorg-drivers/xf86-input-evdev module is definitely emerged...

I'd never heard of evdev - before I started playing about with Gentoo - so I'm at a bit of a loss as to what to do next... I tried compiling up kernel version 3.3.8 (was using 3.5.0) - but no joy still...

Thanks,
Bob
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Mon Aug 13, 2012 8:40 pm    Post subject: Reply with quote

BobWya,

Strange days for sure :? Is there an evdev_drv.so file :?:
Code:
ls -l /usr/lib64/xorg/modules/input/evdev_drv.so

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Mon Aug 13, 2012 11:31 pm    Post subject: Reply with quote

BillWho wrote:
BobWya,

Strange days for sure :? Is there an evdev_drv.so file :?:
Code:
ls -l /usr/lib64/xorg/modules/input/evdev_drv.so


Urmmm it's not there... Weird huh? I only see:
Code:
synaptics_drv.so


I tried compiling evdev as a kernel module. It is loaded (lsmod) and unloading it before launching an X Session stops the Synaptic driver working as well. So clearly it's working...

It guess it's an xorg-driver-evdev problem. What have I done wrong then?? :oops:
How would I troubleshoot this? Perhaps query what files the package has installed - to try and work out why I can't see the module file??

Thanks for your help btw... 8)
Bob
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Mon Aug 13, 2012 11:52 pm    Post subject: Reply with quote

BobWya,

Getting stranger yet, but at least it explains the Xorg log error 8O

I know you said that you checked for xf86-input-evdev, but lets have a second look - paste back:
Code:
equery l -p x11-drivers/xf86-input-evdev

If you get an error with equery then:
Code:
emerge app-portage/gentoolkit

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Tue Aug 14, 2012 4:48 pm    Post subject: Reply with quote

BillWho wrote:
BobWya,

Getting stranger yet, but at least it explains the Xorg log error 8O

I know you said that you checked for xf86-input-evdev, but lets have a second look - paste back:
Code:
equery l -p x11-drivers/xf86-input-evdev

If you get an error with equery then:
Code:
emerge app-portage/gentoolkit


@BillWho

No problems with the equery. Just showed that one version of the driver was installed. However I thought - "I've recompiled the kernel - now what if I re-emerge the xf86-input-evdev ebuild?"... So anyway I tried this and the evdev X11 driver module was built this time and everything is working... 8) In fact I'm typing this response from Gentoo (in firefox - not elinks :lol: ) now!!

Must have been that kernel change (I have tried all the deep emerging before and the INPUT_DEVICES setting has included evdev since day one).. Must be one of those gotcha's where a Kernel module should not be compiled into the kernel...

Anyway thanks for you help... I never would have stumbled across the solution without your suggestion (about the Xorg driver module)!!

All the best,
Bob :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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