Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 have a Microsoft Digital Media Pro Keyboard. I followed many instructions over a long time trying to get special keys working. I finally figured out how to get some of them going, but have an issue I am lost with. Stats OS: SuSE 10.0 OSS 32bit DE: KDE Keyboard: Microsoft Digital Media Pro Keyboard X version: Xorg 6.8 XkbModel: microsoftprooem xorg.conf:
I am using the following list of commands: http://wiki.linuxquestions.org/wiki/...yboard_symbols which is for xfree86, but I don't seem to be able to find one for xorg, so I thought they may be the same. I have 12 extra keys available according to xev, so I made an xmodmap to add these keys with actions. I used actions from a list, which may be outdated and at fault, I don't know for sure. I am trying to map the following keys, and they are mapped, I know for sure, checked with xev, it reports they are indeed sending the signals I mapped.
However, only 3 buttons work: the VolumeUp and VolumeDown and Mute. All other buttons report to xev they are sending the signal, but X and KDE do nothing. Can anyone help me out?
I have 2 theories:
Does anyone at least know whether it is an issue in outdated bindings, like the XF86____ series is depreciated in XORG? I have looked and looked for keysyms in xorg, but haven't found anything other than the default unicode and so forth.
Or is it something like X doesn't have a defined player, and since system volume can be changed while other stuff isn't whole system, it isn't defined? All of it is defined in KDE, I double checked... so is there a way to let x know what my default home is, and browser, and media player, etc?
Yes, all the buttons work under Windows 2000 and XP. I could try more, but those are the only other drives I have that will boot on that tower, and it isn't worth installing 98 or 95 or 3.1 to test.
And 3 of the buttons work perfectly, the volume up, volume down, and mute buttons work great under SuSE 10.0, however the other 9 I can get to respond to xev do nothing after being assigned commands. There are other buttons(about another 12) that I can't yet get xev to recognize, so they do nothing at all.
I could try a generic keyboard or a logitech keyboard, but that isn't really the point. I know the keyboard works and it is the one I want to use on that tower, as my main tower has the logitech mx3000 with Laser mouse. It is just a matter of getting x to recognize the buttons(which I am 12 of 20some for so far) and then commands to register, then getting the commands towork. That is the part I seem stuck on.
Please don't go the bother of going back to XFree86, ou are 99% of the way home.
First, the XF86 key symbol database is fine. You know the "xmodmap" opeations have worked if xev shows the right symbols being generated.
Second, I am almost certain that your problem is simply that you have not told KDE what to do now that the new keys are there. By default, KDE does map the volume keys to mixer actions (or maybe to amarok actions -- I can't remember) but you must tell it what you want from the others.
This is done in the Hotkeys part of the KDE Desktop configuration pannel. The simplest option is to map a key to a simple command so XF86WWW runs "konqueror" (or whatever). If you get stuck I can look up the exact details (including DCOP commands to do things like lock the screen saver) because I set that up for someone but I am not at that machine now.
Don't worry, I had NO plans of reverting back to xfree. in fact in about a month I will be upgrading to xorg7.0 soon as I get back from vacation on the 18th of Dec. Though I will probably clone the drive first, just to make sure when I do, nothing horrible happens.
So in essence, what I can do, is use KDE to assign something like "ctrl+ f7" to "XF86AudioPlay" which I also assign to "Play when using amork"(for example?) in hotkeys? I will take a better look at hotkeys when I get home, but is that basically how it works?
BTW, Later on, I think I will write my whole on xKbModel for my keyboard, but first I want to make sure I can get what is recognized now working.
So in essence, what I can do, is use KDE to assign something like "ctrl+ f7" to "XF86AudioPlay" which I also assign to "Play when using amork"(for example?) in hotkeys?
Almost. The sequence of conversions from a key combination (ctrl+f7) to a keycode (162) to a key symbol (XF86AudioPlay) is done by the keyboard driver and X11 (including the xmodmap commands). You now need only bind XF86AudioPlay to the action you want. This last bit is done by KDE Hotkeys.
HOWEVER... You may find that KDE programs like amarok "do the right thing" without any further action if you choose the right key symbol in the first place. So, before trying to work out how to get amarok to start/stop playing, try to find out if amarok (or KDE) already understands any particlar key and use xmodmap to map your key codes to the key symbols that KDE understands (you need a KDE expert here -- I am a GNOME).
Running the command "kontact --module kmail" when the key associated with XF86Mail is pressed is simpler. You will need to do that using KDE Hotkeys configuration.
NOTE: On the distro I used (Mandriva 2006) I had to delete the Hotkey examples to get my own to work. Something in the examples was causing problems.
Okay, well I got
My Documents assigned to /home/redshirt,
Mail is Thunderbird,
Web/Home is FireFox,
Calculator is KCalc,
Sleep is Logout.
That is a start, thanks for the idea there, but rather than using HotKeys, you can actually just use keyboard shortcuts for those, which pops it up right away. So I have 5 more buttons mapped, yay!
However, I still can't figure out how to change the functions of play/pause, stop, back, and forward. I tried using hotkeys and even looked online some, it would appear I have to test for a particular player, then send an action only if it is running. I was hoping for a more general use, like play/pause does a play/pause signal in ANY open media player, or just the active one, and if something is playing it will pause it, if paused, unpause it. Which due to me not wanting to spend hours trying to code... is that possible?
Once I get those, I will see about getting other buttons to be recognized in xev, even if I have to draw my own damn xmodmap or something.
EDIT: After a few minutes, Web/Home, SLEEP, and My DOCS have died, while the other keys still work.
Apparently my edit was too quick, upon restarting x, all buttons currently mapped and assigned in keyboard shortcuts work perfectly. So I am almost home.
Anyone have any idea what kind of script I need to get those play, pause, stop, back, and forward buttons working though?
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Rep:
Quote:
Originally posted by RedShirt Anyone have any idea what kind of script I need to get those play, pause, stop, back, and forward buttons working though?
I use a script from http://ffm.junetz.de/members/jh/linux.php4 -- the website is in German, but the script should be fine to read for english speaking people. The script shows how to give commands to xmms or juk, depending on which of the two apps is currrently running.
Okay, well I guess that helps, just a matter of adding a few more media players, and finding out what command they should be using to do those actions... So I will have to look into Kaffeine and MPlayer too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.