First one is, how do you tell X(Xfree86) to use multiple mice/other input devices? I have a PS/2 mouse, which works if it's the only thing plugged in. I also have two USB devices, a trackball and a graphics tablet. One always takes precedence over the others if more than one is plugged in, which is an unhappy situation to say the least
Second one I think is more WM-related...I'm using IceWM, and it has shutdown options, only they can't be used because I'm not running as root. I set up sudo so that I can shutdown in the console by going through it, but I don't know how to change the command that is being sent(which is just a typical "shutdown -r/-h now")...or how to directly change the shutdown permissions. Either one would work, I think.
Those are the two I can remember; I'm pretty sure I ran into a few other things that I've just been working around, but I guess I'll just ask later then
mouse - mice:
Section "InputDevice" Driver "mouse" Identifier "Mouse" Option "Device" "/dev/input/mice" Option "Name" "Autodetection" Option "Protocol" "imps/2" Option "Vendor" "Sysp" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" Driver "mouse" Identifier "Mouse" Option "Device" "/dev/psaux" Option "InputFashion" "Mouse" Option "Name" "PS/2-Mouse" Option "Protocol" "ps/2" EndSection
and then under
Section "ServerLayout" Identifier "Layout[all]" InputDevice "Keyboard" "CoreKeyboard" InputDevice "Mouse" "CorePointer" InputDevice "Mouse" "SendCoreEvents" Option "Clone" "off" Option "Xinerama" "off" Screen "Screen" # Screen "Screen" relative "Screen" 1 0 EndSection
make sure that you have one CorePointer and the other mice/inputdevs SendCoreEvents
it also can be that in the BIOS of your machine it is setup that only one input is alowed at once (a lot of Acer machines has this as default)
IceWM i dont know, so i'm sorry that i'm no help there
The impossible missions are the only ones which succeed.
Please take a look at the Wiki:
http://wiki.archlinux.org/index.php/User can shutdown or reboot
which gives you a number of ways other than using sudo to allow a non-root user to shut down. This should allow you to leave the ICEwm commands alone by, for example changing the permissions on the underlying utilities.
Okay, I've got it rebooting now. But my mouse settings don't seem to be working. With this config all that happens is that two events are recieved for every one sent(at least with the mousewheel - I'm unsure if the rest is changed actually). Now I'm suspecting it's a kernel thing, or something to do with which devices I'm requesting, because IIRC restarting X alone with different devices in won't change the behavior, only a reboot does. I haven't been desperate to use all my inputs at once though so this hasn't bugged me enough to really look though.
Section "ServerLayout" Identifier "XFree86 Configured" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "PS/2 Mouse" "CorePointer" InputDevice "USB Mouse" "SendCoreEvents" Option "Clone" "off" EndSection Section "InputDevice" Identifier "PS/2 Mouse" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device" "/dev/psaux" Option "Emulate3Buttons" "false" Option "Emulate3Timeout" "70" Option "SendCoreEvents" "true" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" Identifier "USB Mouse" Driver "mouse" Option "Device" "/dev/input/mice" Option "InputFashion" "Mouse" Option "Protocol" "IMPS/2" Option "ZAxisMapping" "4 5" Option "Buttons" "5" EndSection
Have you tried using hotplug for USB devices ?
I'd love to try using hotplug, if I only understood it LOL.
I see that it starts services for various input devices including USB but I don't have a clue how to go from that to telling X to use what it finds. Or will it all magically work with the current config by adding hotplug? *confusion*
I fell a How-To coming on....
pacman -S hotplug
in /etc/rc.conf :
DAEMONS=(syslogd klogd cups !pcmcia network crond netfs xinetd hotplug portmap fam kdm)
in /etc/fstab :
none /proc/bus/usb usbfs defaults,mode=666 0 0
chown -R <yourusername>.users /proc/bus/usb/*
use either Usbview or info centre in KDE to see if devices are found....
Okay, hotplug is working now. At first it only managed to lock up the cursor to have two devices in, but I found this HOWTO, which did the trick...almost.
InputDevice "Mouse1" "AlwaysCore"
This is the line that cleared everything up. Before it was using "SendCoreEvents"...
When I plug in the trackball hotplug has problems:
USB 1-1: Device not accepting address 5, error -110
But as it turns out it works anyway So great, it's all working. Thanks everyone, it was kind of tricky but now I'm in good shape.
Okay, actually it's not all working. It works if I plug in my USB devices after I boot. It doesn't work at all if I leave them there. Must be a kernel issue....but I can get around it so I don't care.