Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
LeaveNotify event, serial 27, synthetic NO, window 0x2800001,
root 0xb5, subw 0x2800002, time 758237, (45,44), root:(138,129),
mode NotifyGrab, detail NotifyVirtual, same_screen YES,
focus YES, state 0
KeyPress event, serial 27, synthetic NO, window 0x2800001,
root 0xb5, subw 0x2800002, time 758240, (45,44), root:(138,129),
state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 27, synthetic NO, window 0x2800001,
root 0xb5, subw 0x2800002, time 758240, (45,44), root:(138,129),
state 0x8, keycode 100 (keysym 0xff51, Left), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 27, synthetic NO, window 0x2800001,
root 0xb5, subw 0x2800002, time 758240, (45,44), root:(138,129),
state 0x8, keycode 100 (keysym 0xff51, Left), same_screen YES,
XLookupString gives 0 bytes:
KeyRelease event, serial 27, synthetic NO, window 0x2800001,
root 0xb5, subw 0x2800002, time 758240, (45,44), root:(138,129),
state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
EnterNotify event, serial 27, synthetic NO, window 0x2800001,
root 0xb5, subw 0x2800002, time 758327, (45,44), root:(138,129),
mode NotifyUngrab, detail NotifyVirtual, same_screen YES,
focus YES, state 0
KeymapNotify event, serial 27, synthetic NO, window 0x0,
keys: 4294967221 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
i hope, all that belongs to left side button.
but as u see there appears Alt_L and Left, as set in .imwheelrc
# 2: X behaviour:
whereever i test it, it just seems to behave like the LEFT key, without the ALT_L button...
the left and right side buttons are just Left and Right keyboard buttons.....
It's just a text file, the . means that it's a hidden file so check to see if you have one already with the command 'ls -al ~/.imwheelrc', if you don't then just create one in a text editor.
Thanks Mr Aussie. I still have a few more questions:
#1 how do you display hidden files?
#2 Are there any online reference to linux commands that allows me to search for commands by their function instead of alphabetical order?
#3 I have a keyboard with special function keys. How do I assign them to perform certain functions like starting a program, adjust volume, enter sleep mode...etc?
Originally posted by SGFHK321
Thanks Mr Aussie. I still have a few more questions:
#1 how do you display hidden files?
In a terminal do the command "ls -al" (without the quotes).
Quote:
#2 Are there any online reference to linux commands that allows me to search for commands by their function instead of alphabetical order?
Yes, in fact you have installed on your computer a reference to linux commands called "man", you use the man command to display a 'man page' with instructions on how to use a command, in fact there is a man page on the man command which you display by typing "man man" in a terminal. As an exercise type "man ls" to see the man page for the ls command.
Quote:
#3 I have a keyboard with special function keys. How do I assign them to perform certain functions like starting a program, adjust volume, enter sleep mode...etc?
One very important point that might help some of you: xmodmap only works on the mouse that is configured as the CorePointer. If you have more than one mice and xmodmap doesn't seem to do anything, that might be your problem.
Does anyone know a way around this? :-) Can imwheel be used to remap 6/7 and 4/5 on only one of the devices, the way 'pointer = 1 2 3 6 7 4 5' does?
I've got scrolling working OK on the wheel, but left and right buttons still don't work. I wasn't able to run these commands when I login, because when I create a file called ~/.xinitrc and put the above 2 commands into it, even thought i have the #!/bin/bash line at the beginning, it will still not allow me to login. It kicks me back to the login screen. The only way to login is by logging in as root and then renaming that file to a .bak and then I can login again.
Can someone suggest an alternate place where I can store these commands and it will start them properly when I login? I'm running Suse 9.1.
Also, when I run...
xmodmap -e "pointer = 1 2 3 6 7 4 5"
I can scroll the wheel and it's doing forward and backward in Firefox. So it seems like I'm nearly there.
Has anyone considered putting all this together in a nice howto that can be posted on the site?? I think it would be excellent.
i'm not sure how to get it to work with imwheel but i would like to learn. just using modmap i have zaxismapping 6 7, and then use xmodmap lines in my kde autostart to switch 4/5 and 6/7. i heard that if you don't use 6 7 zaxismapping then the side buttons don't get activated? do they all show up when you run xev?
mine works in firefox because firefox recognizes 6 and 7 as back and forward. not in other programs, so if i can use imwheel to map them to alt+l and alt+r it would be nice, but this works for now.
i also can't figure out how to get a program to startup with X. i have libranet and .xsession, .xinitrc don't work. ked autostart works, but only for kde of course. .bashrc works, but it runs the program every time you start bash.
I had somke problem with my Intellimouse on Mandrake 10.1 and after having tried many solutions, I found that the best one was to get rid of that imwheel program.!!!!!! And now, imy mouse works just fine in Firefox!
Thought some of you might be interested by this....
I tink the problem in my situation is, I cannot get imwheel to start. xev shows output for the side buttons and my wheel scrolls fine... just wanna get the side buttons binded to alt left and alt right...
fj@AZCOM:~> imwheel
ERROR: Couldn't write pid to pid file
Perhaps you want the -p option to avoid this...
Otherwise you may SUID root the imwheel executable.
: Permission denied
The funny thing is that that happens even when I'm root!
When I ran that,
AZCOM:/home/fj # imwheel -k -b -p "67"
imwheel: ERROR: buttons: #0: - is not a number!
I've read through this thread over the past few days trying to configure my Intellimouse Side Buttons. It almost works. The problem I'm having is that XEV shows buttons 6 AND 2 for the left side button and 7 AND 3 for the right side button. IOW, I'm getting two button press events for each of the side buttons. This makes for some very strange, but almost correct, behavior in firefox and other places. Any thoughts?
Debian 2.6.8
NVIDIA card and X installation from their run file
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.