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.
I'm on an emachines laptop, and on the top right side of it, next to the power buttons, it has 6 extra buttons to control volume, and email/web apps.. An example is shown here http://pcweb.mycom.co.jp/photo/artic...hines/007l.jpg
Although this is not my laptop's model, and the buttons i have are slightly different.
My question is how would i get them to work in linux? I have absolutely no idea where to start, and pressing them shows nothing in dmesg..
I'd take a pic of the ones i have if anyone wants to have a look at them.
It should be ~.Xsession , those files are usually used by graphical login programs (like KDM, GDM or XDM).
Your file contents seems fine except for "keucode 229 = XF86Search" note the "u". Try reading xmodmap man page, you may spot some details there.
Also you could try calling xmodmap with the expression, like: xmodmap -e "keycode 178 = XF86HomePage"
Edit: Also, check that your .xinitrc (or .Xsession as commented above) file calls xmodmap, they don't always do that.
Originally posted by gbonvehi It should be ~.Xsession , those files are usually used by graphical login programs (like KDM, GDM or XDM).
Your file contents seems fine except for "keucode 229 = XF86Search" note the "u". Try reading xmodmap man page, you may spot some details there.
haha.. didn't notice that.. (bad eyes.. bad..)
Yes fixing the typo made xmodmap run successfully.
Quote:
Edit: Also, check that your .xinitrc (or .Xsession as commented above) file calls xmodmap, they don't always do that.
I have this line in .xinitrc if it helps,
Code:
# load local modmap
test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap
Pressing a key now gives me good results in xev,
Code:
KeyPress event, serial 31, synthetic NO, window 0x2a00001,
root 0x40, subw 0x0, time 43564421, (174,-11), root:(651,574),
state 0x0, keycode 229 (keysym 0x1008ff1b, XF86Search), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 31, synthetic NO, window 0x2a00001,
root 0x40, subw 0x0, time 43564652, (174,-11), root:(651,574),
state 0x0, keycode 229 (keysym 0x1008ff1b, XF86Search), same_screen YES,
XLookupString gives 0 bytes:
So i guess i can continue assigning the keys in XFce.
Thanks alot! i didn't think it would all be this easy.
Im using Dropline Gnome ...
To be honest, the only keys that work fine was those that I configured using Keyboard Shortcut ... using .Xmodmap have no effect :/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.