This hack works for me:
--- a/drivers/platform/x86/intel-vbtn.c
+++ b/drivers/platform/x86/intel-vbtn.c
@@ -35,8 +35,18 @@ static const struct acpi_device_id intel_vbtn_ids[] = {
 
 /* In theory, these are HID usages. */
 static const struct key_entry intel_vbtn_keymap[] = {
-       { KE_IGNORE, 0xC0, { KEY_POWER } },     /* power key press */
-       { KE_KEY, 0xC1, { KEY_POWER } },        /* power key release */
+    { KE_IGNORE, 0xC0, { KEY_POWER } },             /* power key press */
+    { KE_KEY, 0xC1, { KEY_POWER } },                /* power key release */
+    { KE_IGNORE, 0xC2, { KEY_F13 } },               /* SUPER key press */
+    { KE_KEY, 0xC3, { KEY_F14 } },                  /* SUPER key release */
+    { KE_IGNORE, 0xC4, { KEY_VOLUMEUP } },          /* vol up key press */
+    { KE_KEY, 0xC5, { KEY_VOLUMEUP } },             /* vol up key release */
+    { KE_IGNORE, 0xC6, { KEY_VOLUMEDOWN } },        /* vol down key press */
+    { KE_KEY, 0xC7, { KEY_VOLUMEDOWN } },           /* vol down key release */
+    { KE_IGNORE, 0xC8, { KEY_ROTATE_DISPLAY } },    /* rotate key press */
+    { KE_KEY, 0xC9, { KEY_ROTATE_DISPLAY } },       /* rotate key release */
+    { KE_KEY, 0xCC, { KEY_F15 } },                  /* turn display to laptop 
mode */
+    { KE_KEY, 0xCD, { KEY_F16 } },                  /* turn display to tablet 
mode */
        { KE_END },
 };

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1629415

Title:
  Broken hardware buttons on Dell XPS 12-9Q33

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  System Ubuntu 16.04
  Kernel 4.4.0-36 and newer break the hardware volume control buttons on Dell 
XPS 12-9Q33.
  On key press kernel reports:
  intel-vbtn INT33D6:00: unknown event index 0xc6
  intel-vbtn INT33D6:00: unknown event index 0xc7
  --- 
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  halbamy    1631 F.... pulseaudio
   /dev/snd/controlC0:  halbamy    1631 F.... pulseaudio
  CurrentDesktop: Unity
  DistroRelease: Ubuntu 16.04
  HibernationDevice: RESUME=UUID=d26cee8a-01a4-4c7d-bba9-9573c01d1ca5
  InstallationDate: Installed on 2016-03-15 (200 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307)
  MachineType: Dell Inc. XPS 12-9Q33
  Package: linux (not installed)
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-38-generic 
root=UUID=94f9e5d4-c056-4277-97b7-8cad719003c8 ro
  ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-38-generic N/A
   linux-backports-modules-4.4.0-38-generic  N/A
   linux-firmware                            1.157.3
  Tags:  xenial
  Uname: Linux 4.4.0-38-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dialout dip lpadmin mythtv plugdev sambashare sudo 
vboxusers
  _MarkForUpload: True
  dmi.bios.date: 03/03/2015
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: A08
  dmi.board.name: XPS 12-9Q33
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A08
  dmi.chassis.type: 8
  dmi.chassis.vendor: Dell Inc.
  dmi.chassis.version: Not Specified
  dmi.modalias: 
dmi:bvnDellInc.:bvrA08:bd03/03/2015:svnDellInc.:pnXPS12-9Q33:pvrA08:rvnDellInc.:rnXPS12-9Q33:rvrA08:cvnDellInc.:ct8:cvrNotSpecified:
  dmi.product.name: XPS 12-9Q33
  dmi.product.version: A08
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1629415/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to