Re: [gentoo-user] mdev: Has anybody managed to get the keyboard and mouse to work under X?

2012-03-14 Thread Pandu Poluan
On Mar 15, 2012 8:19 AM, "Walter Dnes"  wrote:
>
> On Wed, Mar 14, 2012 at 03:20:48PM +, Alan Mackenzie wrote
> > Hi, Gentoo.
> >
> > As I've said a few times in the current threads, the only thing
> > preventing me from moving fully onto mdev is not having a working
> > keyboard and mouse (evdev??) under X.
> >
> > Has anybody else tried this, and if so, what results have you had?
>
>  I begin my USE variable with "-*" and add only the necessary stuff.
> If you want to run X without udev, then compile xorg-server with
> "USE=-udev".  I don't have evdev installed at all.  I've run X without
> an xorg.conf.  The only reason I have an xorg.conf now is to allow
> xrandr to force a weird 1536x864 video mode on my 1920x1080 monitor when
> watching one specific website.
>

Of course, needless to say (but I'll say it anyway), when you re-emerge X,
you should re-emerge X drivers.

Rgds,


Re: [gentoo-user] mdev: Has anybody managed to get the keyboard and mouse to work under X?

2012-03-14 Thread Walter Dnes
On Wed, Mar 14, 2012 at 03:20:48PM +, Alan Mackenzie wrote
> Hi, Gentoo.
> 
> As I've said a few times in the current threads, the only thing
> preventing me from moving fully onto mdev is not having a working
> keyboard and mouse (evdev??) under X.
> 
> Has anybody else tried this, and if so, what results have you had?

  I begin my USE variable with "-*" and add only the necessary stuff.
If you want to run X without udev, then compile xorg-server with
"USE=-udev".  I don't have evdev installed at all.  I've run X without
an xorg.conf.  The only reason I have an xorg.conf now is to allow
xrandr to force a weird 1536x864 video mode on my 1920x1080 monitor when
watching one specific website.

-- 
Walter Dnes 



Re: [gentoo-user] mdev: Has anybody managed to get the keyboard and mouse to work under X?

2012-03-14 Thread Pandu Poluan
On Mar 15, 2012 3:52 AM, "Alan Mackenzie"  wrote:
>
> Hi, Gentoo.
>
> As I've said a few times in the current threads, the only thing
> preventing me from moving fully onto mdev is not having a working
> keyboard and mouse (evdev??) under X.
>
> Has anybody else tried this, and if so, what results have you had?
>

Alan, could you post your "init" script here?

I just happened upon this:

http://blackfin.uclinux.org/gf/project/uclinux-dist/scmsvn/?action=browse&path=%2F%2Acheckout%2A%2Ftrunk%2Fuser%2Fbusybox%2Fbusybox-1.18.4%2Fdocs%2Fmdev.txt

and I think the script might need an "mdev -s" line.

Still a conjecture, no guarantees it will work, but if such line does not
exist in your "init" script, won't hurt to try...

Rgds,


RE: [gentoo-user] mdev: Has anybody managed to get the keyboard and mouse to work under X?

2012-03-14 Thread Mike Edenfield
> From: Alan Mackenzie [mailto:a...@muc.de]
> Sent: Wednesday, March 14, 2012 11:21 AM


> As I've said a few times in the current threads, the only thing preventing
me
> from moving fully onto mdev is not having a working keyboard and mouse
> (evdev??) under X.
> 
> Has anybody else tried this, and if so, what results have you had?

I have not tried it since they removed the HAL dependency, but I believe you
just need to compile xorg with USE=-udev and put the correct device
information into the xorg.conf file. 

What X uses udev for is to enumeration your devices when it starts, and
associate those devices automatically with the right drivers. From what
Pandu has said, X cannot be made to poll mdev for the information it needs
because the conversion is "backwards" from mdev's perspective: instead of
mdev sending new-device events out to listening userspace applications, X is
expecting to initiate a query into the device manager, which mdev cannot do.

However, if you configure that all manually then X has no more need of a
device manager, udev or otherwise.

--Mike