Comment 22 for bug 950160

Revision history for this message
Keng-Yu Lin (lexical) wrote : Re: Keyboard function key to switch between monitors no more works

After a few rounds of testing, I think there is different result to run g-s-d with and without the "--debug" argument.

This is what I do:
  kill -9 `pgrep "gnome-settings"`; gnome-settings-daemon --debug

And then press the video switch hotkey or super+p and observe if the xrandr-plugin is called. There will be log like:

(gnome-settings-daemon:21343): xrandr-plugin-DEBUG: applying
=== Applying Configuration Configuration ===
  Clone: false
  Output: (null) attached to VGA1
     status: off
     width: -1
     height: -1
     rate: -1
     primary: false
     position: -1 -1
  Output: BenQ 22" attached to HDMI1
     status: on
     width: 1920
     height: 1080
     rate: 60
     primary: true
     position: 0 0
  Output: (null) attached to DP1
     status: off
     width: -1
     height: -1
     rate: -1
     primary: false
     position: -1 -1
(gnome-settings-daemon:21343): xrandr-plugin-DEBUG: done handling fn-f7

However when testing without killing the g-s-d process first and without the --debug argument. The video switch does not work.

This could be a race of grabbing the key or some timing issue as it seems.