Your message dated Wed, 12 Jul 2023 23:12:09 +0100
with message-id <[email protected]>
and subject line Re: Bug#585706: XF86 keys arent working during zsnes working
has caused the Debian Bug report #585706,
regarding libsdl1.2debian: media keys don't control the volume during 
full-screen games
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
585706: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585706
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libsdl1.2debian
Version: 1.2.13-5
Severity: wishlist

My laptop has separate keys for changing the sound volume up or down.
As shown by xev:

KeyPress event, serial 31, synthetic NO, window 0x2000001,
    root 0x66, subw 0x0, time 22030999, (172,175), root:(177,225),
    state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), 
same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x2000001,
    root 0x66, subw 0x0, time 22031006, (172,175), root:(177,225),
    state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), 
same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 31, synthetic NO, window 0x2000001,
    root 0x66, subw 0x0, time 22031966, (172,175), root:(177,225),
    state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), 
same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x2000001,
    root 0x66, subw 0x0, time 22031973, (172,175), root:(177,225),
    state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), 
same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Normally, gnome-settings-daemon 2.28.1-1 grabs these keys (see
plugins/media-keys/gsd-media-keys-manager.c), and when it gets
the events, it changes the sound volume and pops up a window
telling about it.  However, when I'm playing an SDL-based game in
full-screen mode, these keys have no effect, apparently because
SDL grabs the whole keyboard.  This happens with these games at
least:

ii  barrage   1.0.2-4                      Rather violent action game
ii  boswars   2.5-2                        futuristic real-time strategy
ii  gunroar   0.15.dfsg1-3                 360-degree gunboat shooter
ii  kq        0.99.cvs20070319-1.1.kon.1   adventure game in the spirit

(That is a custom build of kq; the patches are in bug 224610.)

In Bos Wars, I can easily pause the game, hit Ctrl+F to switch it
to windowed mode, and then press the keys; but the other games
don't seem to offer such a possibility.  KQ in particular has
the windowed/full-screen toggle and the volume control in a
configuration menu that can't even be accessed during a fight,
and the piece of music it plays during fights is the one most
likely to make other people in the room ask you to turn it down.

Anyway, because the same problem occurs in multiple games, it
seems best to fix it just once in SDL rather than separately in
each one.  If some game wants to use the media keys for its own
purposes, then let it do that; but the default should be to
control the sound volume.  SDL could either adjust the mixer on
its own or somehow forward the events to gnome-settings-daemon.
I don't know whether the latter is currently possible: g-s-d
probably ignores synthetic KeyPress events, and although a
MediaPlayerKeyPressed signal has been defined for use over D-Bus,
it looks like g-s-d can only send that one and not receive it.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libsdl1.2debian depends on:
ii  libsdl1.2debian-alsa          1.2.13-5   Simple DirectMedia Layer (with X11

libsdl1.2debian recommends no packages.

libsdl1.2debian suggests no packages.

-- no debconf information

Attachment: pgpaa1njueGqv.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Version: 1.2.64-5

On Sun, 13 Jun 2010 at 11:25:13 +0200, yellow wrote:
> XF86 keys arent working during zsnes working

libsdl1.2debian will be provided by sdl12-compat in Debian >= 13, and
should no longer grab keyboard input globally. (Tested with amoebax
under GNOME Shell, since zsnes has been removed from Debian.)

    smcv

--- End Message ---

Reply via email to