relation between kernel input events and leds

2011-12-14 Thread Rafał Mużyło
This might not be 100% on-topic for this list, but it's the closest list
I'm familiar with.

I've got a mouse without a horizontal wheel. I've came across a piece of
code, that was written for for emulating mouse buttons via keyboard.
It grabs input/event* nodes and uses uinput to substitute certain
mouse/keyboard combinations for the desired mouse buttons.
I've modified it to use shift+wheel as hwheel.

It worked, but there's one unfortunate side effect, I just can't fix.
Both in console and in X pressing CapsLock/Numlock toggles its state,
but not the relevant keyboard led.

The original code comes from something called mouseemu, but I've taken
0.15 of it and applied *some* of the Debian patches (then added some of my own 
chages - I'm near the point of a working libudev hotplug monitor), so it 
differs in a few places.

Now, my question is: what is so special about keyboard led events, that
they don't get toggled, even though the states do ?
Is it something about timing/order of events ? Do I need to read and
process a certain number of events in one go ?

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: help with xorg.conf

2011-12-14 Thread Alan Coopersmith

On 12/14/11 14:08, James Strother wrote:

Problem 1: Unable to access config file at non-default location as non-root
-
This seems like an extremely simple problem, but I'm stumped.  I have
written an alt.conf file, and place it into /etc/X11/xorg.conf.d.  The
file exists, is owned by root, and has permissions of 644.  It shows
up on ls just fine:

$ ls /etc/X11/xorg.conf.d
alt.conf

But I can't actually get Xorg to find or use that file:

$ Xorg :1 -config alt.conf


/etc/X11/xorg.conf.d is not the location for alternate configuration files - 
it's used for config file fragments to be used by *ALL* Xorg instances run on

the system.

The xorg.conf man page lists the directories you can put alternate configuration
files in (I just noticed that Xorg(1) man page does not, though it does point 
you off to the xorg.conf man page for the full list).


For instance, for testing, I have a /etc/X11/xorg.conf.dummy config file that
loads the dummy driver, which I can run with Xorg -config xorg.conf.dummy, and
in our OS packages, we ship /usr/lib/X11/xorg.conf.vesa so that the OS installer
can run Xorg -config xorg.conf.vesa when the normal drivers fail on the LiveCD
and the user chooses the VESA mode option from the grub menu instead.


I expected this to connect to the graphics card at PCI:12:0:0 in order
to create a one monitor screen.  However, Xorg actually connects to
both cards and then only displays on the graphics card at PCI:8:0:0.
I have tried setting AutoAddDevices/AutoEnableDevices to false in
ServerFlags without success.


The AutoAddDevices/AutoEnableDevices flags only apply to input devices
not video cards.  (I can't explain the rest of your issue here, just
that bit.)

--
-Alan Coopersmith-alan.coopersm...@oracle.com
 Oracle Solaris Platform Engineering: X Window System

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com