Comment 24 for bug 539477

Revision history for this message
Michael Terry (mterry) wrote :

Chris, regarding your statement about g-s-d being the wrong place, I initially tended to agree. But after talking with pitti, it appears the Linux input stack is not meant to be able to 'merge' keypresses like Super_L+p into a different press. It's only really good at translating one press into another. So the ideal solution (udev mapping) seems not workable.

So we have to do it in desktop-space. Then, my gut reaction is to add an entry to the GNOME Keybindings screen that defaults to Mod4+p for switching video mode, because hardcoding a keybinding in g-s-d that normally would be available for users to use seems bad. But... this is a BIOS hardcoded key press. Allowing the user to change 'video-switch' to a different key would just be letting the user break their 'display' keyboard key. Seems like it should be at least as hardcoded as the previous VIDEOSWITCHMODE presses were.

So that led me to the g-s-d patch you see above.