You are not logged in.

#1 2009-03-20 12:25:41

big_gie
Member
Registered: 2005-01-19
Posts: 637

Xmodmap feature in hal?

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

#2 2009-04-01 01:33:40

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Xmodmap feature in hal?

Anyone? :S

Offline

#3 2009-04-01 03:11:03

darthaxul
Member
Registered: 2008-09-24
Posts: 156

Re: Xmodmap feature in hal?

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

#4 2009-04-01 13:10:21

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Xmodmap feature in hal?

Well I don't have an fdi... yet tongue
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 wink

Offline

#5 2009-04-01 21:21:45

darthaxul
Member
Registered: 2008-09-24
Posts: 156

Re: Xmodmap feature in hal?

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

#6 2009-04-03 14:04:13

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Xmodmap feature in hal?

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

Board footer

Powered by FluxBB