Remy Blank wrote:
> Benno Schulenberg wrote:
> > There are just no actions like "Play", "Volume Down" or "Mute"
> > that I could assign XF86AudioPlay, XF86AudioLowerVolume or
> > XF86AudioMute to.
>
> Ok, I get it, sorry. I don't want to assign them to "Play" or
> other audio actions. I want XF86AudioPlay to lock the the session
> (Lock session) and XF86AudioStop to logout (Log Out). I assigned
> the key codes, but nothing happens when I press the keys.
See below for some vague suggestions. Meanwhile I've figured out
how to create actions such as "Mute" and "Volume Up" and assign
them shortcuts. It's done in the Control Center under Regional >
Input Actions. First press New Group. If the group appears where
you don't want it, drag it to before Examples, it will then appear
as a top-level group at the end. Then in that group create a New
Action, give it a name, like "Mute", and select the Action type as
Keyboard Shortcut -> Command/URL. Then go to the Keyboard Shortcut
tab and assign it a shortcut, like XF86AudioMute. Then go to
Command/URL Settings and fill in the related command, like "dcop
kmix Mixer0 toggleMute 0". Press Apply. And so on for other
actions.
> It was just strange that the keys stopped working right
> after the xorg-x11 update to 7.0.
Then it is most likely related. Maybe the numbers changed, the
codes that X assigns to XF86AudioPlay and such? An extract from
xev for some of the extra keys on my Logitech keyboard (this is for
Xorg 6.8, which I'm still using, so you might be able to check
whether in Xorg 7.0 the keysyms changed):
keycode 178 (keysym 0x1008ff18, XF86HomePage),
keycode 160 (keysym 0x1008ff12, XF86AudioMute),
keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume),
keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume),
But maybe KDE is looking in the old place /usr/lib/X11 for keyboard
files, which for Xorg 7.0 moved to /usr/share/X11. It might be
trying to read /usr/lib/X11/XKeysymDB but not find it. You could
try a symlink: ln -s ../../share/X11/XKeysymDB /usr/lib/X11/
Or maybe link to ../share/X11 the entire /usr/lib/X11
Benno
--
[email protected] mailing list