SlackwareThis Forum is for the discussion of Slackware 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.
before i start working on the keyboard, i am trying to get my mouse working correctly. if i manually type xmodmap -e "pointer = 1 2 3 6 7 4 5" my mouse works as it should. i tried putting this command in .Xmodmap bot on my home directory as well as in the .Xmodmap in /usr/X11R6/lib/X11/xinit/. (both at different times of course, and with the command, pointer = 1 2 3 6 7 4 5, both with and without -e). i also tried the full command xmodmap -e "pointer = 1 2 3 6 7 4 5" in rc.local with no success as well. i also tried the command in xinitrc with no results.
i searched the forum and tried all the recommendations without success. can someone please help me here so i can move on and get frustration from my keyboard.
it need having nothing in it at all, it is just one of the possible files that is sourced when X loads. there are loads of alternatives, i just try to stick to as few as possible.
ok i tried all the suggestions and still get the same thing. im thinking the Xmodmap is not loading. there is a reference pointing to in in xinitrc but i just dont know anymore of why this isnt working.
Hm. Well, tazdevil77 said he had it in quotes and it worked, but I would have suggested removing the quotes. I only have keycodes and no pointer settings but, IIRC, it was very picky about the file syntax and didn't work with quoted lines. Maybe you've already done that, too, but if not, the only thing I can think to try is
Code:
pointer = 1 2 3 6 7 4 5
Might try 'xmodmap -pp' and/or change your .xinitrc to read
Code:
if [ -f $usermodmap ]; then
xmodmap -verbose $usermodmap > wtf
fi
and do 'less wtf' after starting X just to see what's going on.
just in case anyone else runs in to this. turns out the file does not like to have commented lines in it. i took out everything but the command, pointer = 1 2 3 6 7 4 5 and now it loads up correctly.
Argh. I feel like I should have thought of that. Were you using hashes? Because you can comment the file, but I think you have to use X comments - a bang instead of a shell-style hash. Congrats on getting it going.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.