{"action":"closed","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/78","labels_url":"https://api.github.com/repos/systemd/systemd/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/78/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/78/events","html_url":"https://github.com/systemd/systemd/issues/78","id":85515755,"number":78,"title":"Add support for scancodes emitted on KBC on Alienware systems with Alienware graphics amplifier","user":{"login":"superm1","id":494526,"avatar_url":"https://avatars.githubusercontent.com/u/494526?v=3","gravatar_id":"","url":"https://api.github.com/users/superm1","html_url":"https://github.com/superm1","followers_url":"https://api.github.com/users/superm1/followers","following_url":"https://api.github.com/users/superm1/following{/other_user}","gists_url":"https://api.github.com/users/superm1/gists{/gist_id}","starred_url":"https://api.github.com/users/superm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superm1/subscriptions","organizations_url":"https://api.github.com/users/superm1/orgs","repos_url":"https://api.github.com/users/superm1/repos","events_url":"https://api.github.com/users/superm1/events{/privacy}","received_events_url":"https://api.github.com/users/superm1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemd/systemd/labels/keymap","name":"keymap","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-05T12:02:57Z","updated_at":"2015-06-14T12:34:38Z","closed_at":"2015-06-14T12:34:38Z","body":"Some Alienware notebooks and desktops support an external graphics\r\nhousing called the \"Alienware Graphics Amplifier\". It allows the usage\r\nof a larger or more modern graphics card than your gaming PC would\r\nalready support.  In order to provide a good experience, systems that\r\nsupport it can provide notification to the OS via the scancodes on the\r\nthe keyboard controller of events related to the cable.\r\n\r\nThe following 4 events are supported (and the presumed OS response):\r\n* Cable plugged in (An app on the existing display or terminal would\r\ntell the user to reboot the system to activate)\r\n* Undock cable pressed (An app would let the user know to reboot the\r\nsystem to complete undock process; also when supported by GFX driver,\r\ndriver can clean up and work without a reboot)\r\n* Surprise removal of cable (System reboots).\r\n\r\nHere's a patch for mapping these events to codes that can be recognized by a keycode Xorg can pick up.\r\n\r\n```\r\nFrom 747fa737562fd176d30ab8a79a82bd43fad06833 Mon Sep 17 00:00:00 2001\r\nFrom: Mario Limonciello <mario_limonciello@dell.com>\r\nDate: Wed, 27 May 2015 18:55:42 -0500\r\nSubject: [PATCH] Add support for Alienware graphics amplifier\r\n\r\nUnplugging and plugging in the cable will create various scancodes\r\non the keyboard controller.\r\n\r\nUserspace within X should be able to interact with these to show\r\ninteresting messages. Assign them to generic prog1/prog2.\r\n---\r\n hwdb/60-keyboard.hwdb | 5 +++++\r\n 1 file changed, 5 insertions(+)\r\n\r\ndiff --git a/hwdb/60-keyboard.hwdb b/hwdb/60-keyboard.hwdb\r\nindex 9c7e553..0a0700c 100644\r\n--- a/hwdb/60-keyboard.hwdb\r\n+++ b/hwdb/60-keyboard.hwdb\r\n@@ -144,6 +144,11 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pnAOA*:pvr*\r\n evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAlienware*:pn*\r\n  KEYBOARD_KEY_8a=ejectcd\r\n \r\n+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAlienware*:pn*:pvr*\r\n+ KEYBOARD_KEY_bf=!prog1                                 #graphics amplifier, cable plug-in event\r\n+ KEYBOARD_KEY_c1=!prog2                                 #graphics amplifier, undock-button event\r\n+ KEYBOARD_KEY_c2=!power                                 #graphics amplifier, surprise undock event\r\n+\r\n ###########################################################\r\n # Asus\r\n ###########################################################\r\n-- \r\n1.9.1\r\n```"}}