* Re: [gentoo-user] Migration to xorg-x11 7.0 - Great except for one detail
[not found] <e9r4n1$95g$1@sea.gmane.org>
@ 2006-07-22 21:34 ` Benno Schulenberg
2006-07-23 7:00 ` [gentoo-user] " Remy Blank
0 siblings, 1 reply; 9+ messages in thread
From: Benno Schulenberg @ 2006-07-22 21:34 UTC (permalink / raw
To: gentoo-user
Remy Blank wrote:
> I had slightly changed the "inspiron" xkb mapping so that they
> generated the right events (XF86AudioPlay, XF86AudioStop,
> XF86AudioPrev, XF86AudioNext). Then, I defined a few keyboard
> shortcuts in the KDE control center to trigger come actions,
Please explain how you did this, or point me to a document, as I
don't see any Play or Stop or similar actions in Control Center >
Regional > Keyboard Shortcuts.
> In xorg-x11 7.0, the "inspiron" xkb mapping is already fixed, and
> xev shows that the right events are generated. But the shortcuts
> are not activated anymore. I am using KDE 3.5.2, and the
> shortcuts worked right before the update to xorg-x11.
> revdep-rebuild doesn't need to re-emerge anything.
Revdep-rebuild isn't perfect, but it seems unlikely that re-emerging
some KDE package would fix the problem. Trying won't hurt though.
Give kxkb, kdelibs, ksmserver and kcminit a shot.
Benno
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: Migration to xorg-x11 7.0 - Great except for one detail
2006-07-22 21:34 ` [gentoo-user] Migration to xorg-x11 7.0 - Great except for one detail Benno Schulenberg
@ 2006-07-23 7:00 ` Remy Blank
2006-07-23 10:15 ` Benno Schulenberg
0 siblings, 1 reply; 9+ messages in thread
From: Remy Blank @ 2006-07-23 7:00 UTC (permalink / raw
To: gentoo-user
Benno Schulenberg wrote:
> Remy Blank wrote:
>> I had slightly changed the "inspiron" xkb mapping so that they
>> generated the right events (XF86AudioPlay, XF86AudioStop,
>> XF86AudioPrev, XF86AudioNext). Then, I defined a few keyboard
>> shortcuts in the KDE control center to trigger come actions,
>
> Please explain how you did this, or point me to a document, as I
> don't see any Play or Stop or similar actions in Control Center >
> Regional > Keyboard Shortcuts.
The keys are defined in /usr/share/X11/xkb/symbols/inet, in my case in
the section 'xkb_symbols "inspiron"'. This maps the extra keys on my
laptop to XF86* key codes.
Then, in the control center, select the function for which you want to
assign a shortcut, press the button under "Shortcut for selected
action", and press the key you want to assign. This assigns one of the
XF86* key codes as a shortcut.
> Revdep-rebuild isn't perfect, but it seems unlikely that re-emerging
> some KDE package would fix the problem. Trying won't hurt though.
> Give kxkb, kdelibs, ksmserver and kcminit a shot.
I already did kdelibs without success, but I'll do the others today as
well. Thanks for the suggestion.
The thing that I find really strange is that the key are recognized,
they just don't work as shortcuts.
Thanks.
-- Remy
Remove underscore and suffix in reply address for a timely response.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: Migration to xorg-x11 7.0 - Great except for one detail
2006-07-23 7:00 ` [gentoo-user] " Remy Blank
@ 2006-07-23 10:15 ` Benno Schulenberg
[not found] ` <e9vka1$uin$1@sea.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: Benno Schulenberg @ 2006-07-23 10:15 UTC (permalink / raw
To: gentoo-user
Remy Blank wrote:
> Then, in the control center, select the function for which you
> want to assign a shortcut,
Yes, but as I said: there are no multimedia-related actions like
Play or Stop or Mute there, just windowing, editing and navigating
stuff. Do I need to emerge a certain KDE component for multimedia
actions to appear? Or do they come with a certain player, like
kplayer or kmplayer?
> The thing that I find really strange is that the key are
> recognized, they just don't work as shortcuts.
What happens if you reassign the same shortcuts? Maybe first back
up ~/.kde, and if it works, check what's different.
Benno
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: Migration to xorg-x11 7.0 - Great except for one detail
[not found] ` <e9vka1$uin$1@sea.gmane.org>
@ 2006-07-23 11:51 ` Benno Schulenberg
[not found] ` <ea050a$6mj$1@sea.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: Benno Schulenberg @ 2006-07-23 11:51 UTC (permalink / raw
To: gentoo-user
Remy Blank wrote:
> Benno Schulenberg wrote:
> > as I said: there are no multimedia-related actions
> > like Play or Stop or Mute there, [...]
>
> As far as I understand, the XF86* are key codes or events,
> defined and generated by the X server, in this case xorg-x11, and
> work exactly in the same way as normal keys.
Yes, please read what I write: I do have these keys, they do produce
the correct XF86* events, and I can assign these events to actions
such as "Run Command" or "Switch to Next Desktop". There are just
no actions like "Play", "Volume Down" or "Mute" that I could assign
XF86AudioPlay, XF86AudioLowerVolume or XF86AudioMute to. Where,
under what tab, under what heading do you have those actions?
> Reassigning them doesn't change the behavior, it still doesn't
> work.
Weird. Maybe you need to run ahead and upgrade to 3.5.3? 3.5.[0-2]
are known to be quite buggy.
Benno
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: Migration to xorg-x11 7.0 - Great except for one detail
[not found] ` <ea050a$6mj$1@sea.gmane.org>
@ 2006-07-23 21:14 ` Benno Schulenberg
2006-07-26 16:47 ` Remy Blank
0 siblings, 1 reply; 9+ messages in thread
From: Benno Schulenberg @ 2006-07-23 21:14 UTC (permalink / raw
To: gentoo-user
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
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: Migration to xorg-x11 7.0 - Great except for one detail
2006-07-23 21:14 ` Benno Schulenberg
@ 2006-07-26 16:47 ` Remy Blank
2006-07-27 10:55 ` Benno Schulenberg
0 siblings, 1 reply; 9+ messages in thread
From: Remy Blank @ 2006-07-26 16:47 UTC (permalink / raw
To: gentoo-user
Benno Schulenberg wrote:
> Meanwhile I've figured out
> how to create actions such as "Mute" and "Volume Up" and assign
> them shortcuts.
I didn't have to do anything to get those working, except make sure kmix
is loaded on login. It seems that it automatically interpreted the
volume controls correctly. And if I remember correctly, even if kmix
was't loaded, it was loaded by the first volume keypress.
Strangely enough, the volume keys have continued working after the
upgrade to xorg-x11 7.0.
> keycode 178 (keysym 0x1008ff18, XF86HomePage),
> keycode 160 (keysym 0x1008ff12, XF86AudioMute),
> keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume),
> keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume),
The following work with kmix:
keycode 160 (keysym 0x1008ff12, XF86AudioMute)
keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume)
keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume)
The following don't work as shortcuts:
keycode 162 (keysym 0x1008ff14, XF86AudioPlay)
keycode 164 (keysym 0x1008ff15, XF86AudioStop)
keycode 144 (keysym 0x1008ff16, XF86AudioPrev)
keycode 153 (keysym 0x1008ff17, XF86AudioNext)
> 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
Thanks for your suggestions. I'll try tonight.
-- Remy
Remove underscore and suffix in reply address for a timely response.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: Migration to xorg-x11 7.0 - Great except for one detail
2006-07-26 16:47 ` Remy Blank
@ 2006-07-27 10:55 ` Benno Schulenberg
2006-07-27 12:07 ` Remy Blank
0 siblings, 1 reply; 9+ messages in thread
From: Benno Schulenberg @ 2006-07-27 10:55 UTC (permalink / raw
To: gentoo-user
Remy Blank wrote:
> Benno Schulenberg wrote:
> > Meanwhile I've figured out
> > how to create actions such as "Mute" and "Volume Up" and assign
> > them shortcuts.
>
> I didn't have to do anything to get those working, except make
> sure kmix is loaded on login. It seems that it automatically
> interpreted the volume controls correctly.
Hmm, maybe nowadays KMix comes with its global shortcuts predefined,
here they were unset. When I now set them (and disabled the Input
Actions), they didn't work at first: logging out and back in was
required.
> The following don't work as shortcuts:
>
> keycode 162 (keysym 0x1008ff14, XF86AudioPlay)
> keycode 164 (keysym 0x1008ff15, XF86AudioStop)
> keycode 144 (keysym 0x1008ff16, XF86AudioPrev)
> keycode 153 (keysym 0x1008ff17, XF86AudioNext)
Which application should catch them? You've set them as Global
Shortcuts in that app? If you've done so and it still doesn't work,
try grepping through ~/.kde for XF86AudioStop and such: maybe they
are doubly defined somewhere. When still without luck, these
threads might give you some new idea:
http://forums.gentoo.org/viewtopic-t-442372.html
http://forums.gentoo.org/viewtopic-t-461748.html
Oh, and what do you have set in the Section "InputDevice"
in /etc/X11/xorg.conf ?
Benno
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: Migration to xorg-x11 7.0 - Great except for one detail
2006-07-27 10:55 ` Benno Schulenberg
@ 2006-07-27 12:07 ` Remy Blank
2006-07-28 22:40 ` Benno Schulenberg
0 siblings, 1 reply; 9+ messages in thread
From: Remy Blank @ 2006-07-27 12:07 UTC (permalink / raw
To: gentoo-user
Benno Schulenberg wrote:
> If you've done so and it still doesn't work,
> try grepping through ~/.kde for XF86AudioStop and such: maybe they
> are doubly defined somewhere.
Did that, but could only find one definition for each. Setting the
symlinks you suggested in your previous message didn't help either.
> When still without luck, these
> threads might give you some new idea:
>
> http://forums.gentoo.org/viewtopic-t-442372.html
> http://forums.gentoo.org/viewtopic-t-461748.html
I'll have a look at them, but that will be the last try. The problem is
not important enough to justify spending so much of your and my time on
it. I'll just assign alternative shortcuts using the Windows key.
> Oh, and what do you have set in the Section "InputDevice"
> in /etc/X11/xorg.conf ?
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "AutoRepeat" "250 30"
Option "XkbModel" "inspiron"
Option "XkbLayout" "ch(fr)"
EndSection
Thank you Benno for your time and patience, but if the threads above
don't help, I'll stop trying.
-- Remy
Remove underscore and suffix in reply address for a timely response.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: Migration to xorg-x11 7.0 - Great except for one detail
2006-07-27 12:07 ` Remy Blank
@ 2006-07-28 22:40 ` Benno Schulenberg
0 siblings, 0 replies; 9+ messages in thread
From: Benno Schulenberg @ 2006-07-28 22:40 UTC (permalink / raw
To: gentoo-user
Remy Blank wrote:
> The problem is not important enough to justify spending so much of
> your and my time on it.
It was worth my time: I now have working volume keys. :) I had
never bothered to find out how to make them work, as I seldom play
music. This was a nice occasion.
I still think that in your case there must be some double definition
somewhere: when I had doubly defined a key, it stopped working
altogether, performing neither of the two functions. A single
definition and logging back in was required to make it work again.
Benno
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-07-28 22:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <e9r4n1$95g$1@sea.gmane.org>
2006-07-22 21:34 ` [gentoo-user] Migration to xorg-x11 7.0 - Great except for one detail Benno Schulenberg
2006-07-23 7:00 ` [gentoo-user] " Remy Blank
2006-07-23 10:15 ` Benno Schulenberg
[not found] ` <e9vka1$uin$1@sea.gmane.org>
2006-07-23 11:51 ` Benno Schulenberg
[not found] ` <ea050a$6mj$1@sea.gmane.org>
2006-07-23 21:14 ` Benno Schulenberg
2006-07-26 16:47 ` Remy Blank
2006-07-27 10:55 ` Benno Schulenberg
2006-07-27 12:07 ` Remy Blank
2006-07-28 22:40 ` Benno Schulenberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox