You are not logged in.
Input hotpluging works fine here, except that I'd like my mouse wheel tilt to send a mouse button event #8 instead of #6...
Until now you need to use xmodmap:
xmodmap -e "pointer 1 2 3 4 5 8 9 6 7"
Is it possible to integrate this into hal's fdi file? Usage of xmodmap is really against hotplugging IMO...
Thanx!
Offline
Anyone? :S
Offline
how did u get/make ur fdi configuration file?
so for ur mouse, it has more than 4 buttons, and u want to map another button to 8?
Offline
Well I don't have an fdi... yet
I have a Logitech VX Nano which has the 2 main buttons, wheel up, wheel down, wheel "tilt left" and right, two "back" and "previous" buttons, and a last one one button just above the wheel.
I can get 9 different buttons reported by xev. Right now to have the result I want, I need to execute the xmodmap command each time the computer boots or if I plug out/in the mouse (which I ofter do). As you can see from my first post I am inverting buttons 6 and 7 with buttons 8 and 9. This makes the wheel tilt left and right generates previous and forward in firefox and others.
I also have another mouse which I often connect. So I don't want a permanent xmodmap, in bashrc for example. Since there is hotplugging in X through hal, I though I could use that. So maybe there is something I can put in an fdi file which would not modify the driver parameters as it is always the case but would execute the xmodmap command or even switch the buttons by default (for this mouse).
Do you know if its possible?
Thanx
Offline
so u want the hal to recognise the 2nd mouse and make the button events change based on named hardware. that should be possible with the fdi file, just make sure the name of the mouse has the buttons mapped for both and hal just needs to read the configuration for that mouse. but the thing is, u have to know alot about ur hardware to make that configuration.
Offline
Yes that's it.
The thing is I don't know if there is a driver option for the key swapping. That would be the simplest solution...
Offline