Package: hotkey-setup
Version: 0.1-23
Severity: normal

Hi,

Please find attached a patch to add support for Toshiba Satellite M40X.
It might also work with other similare Phoenix BIOS laptops.

It requires the out-of-tree omnibook kernel module to enable hotkey 
support. This module is not yet in Debian (but I own an ITP[1] for this 
package which hasn't yet been sponsored).

Cheers,
Julien

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=445602

-- Package-specific info:

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (150, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages hotkey-setup depends on:
ii  console-tools [console-u 1:0.2.3dbs-65.1 Linux console and font utilities
ii  discover                 2.1.2-3         hardware identification system
ii  dmidecode                2.9-1           Dump Desktop Management Interface 
ii  laptop-detect            0.13.7          attempt to detect a laptop
ii  libc6                    2.9-3           GNU C Library: Shared libraries

hotkey-setup recommends no packages.

hotkey-setup suggests no packages.

-- no debconf information
diff -ruN hotkey-setup-0.1/debian/changelog hotkey-setup-0.1.new/debian/changelog
--- hotkey-setup-0.1/debian/changelog	2008-06-27 09:22:49.000000000 +0200
+++ hotkey-setup-0.1.new/debian/changelog	2009-02-28 06:52:11.000000000 +0100
@@ -1,3 +1,10 @@
+hotkey-setup (0.1-23.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Added Toshiba Satellite M40X hotkeys
+
+ -- Julien Valroff <jul...@kirya.net>  Sat, 28 Feb 2009 06:51:42 +0100
+
 hotkey-setup (0.1-23) unstable; urgency=low
 
   * Avoid trying to kill thinkpad-keys if there is no process to
diff -ruN hotkey-setup-0.1/debian/init.d hotkey-setup-0.1.new/debian/init.d
--- hotkey-setup-0.1/debian/init.d	2008-06-27 09:21:18.000000000 +0200
+++ hotkey-setup-0.1.new/debian/init.d	2009-02-28 07:06:49.000000000 +0100
@@ -169,6 +169,15 @@
 	modprobe sony-laptop
 	;;
 
+	TOSHIBA*)
+	case "$name" in
+	    *Satellite\ M40X*)
+		modprobe omnibook # Needed to get hotkey events
+		. /usr/share/hotkey-setup/toshiba-satellite-m40x.hk
+	    ;;
+	esac
+	;;
+
 	*)
 	. /usr/share/hotkey-setup/default.hk	
     esac
diff -ruN hotkey-setup-0.1/toshiba-satellite-m40x.hk hotkey-setup-0.1.new/toshiba-satellite-m40x.hk
--- hotkey-setup-0.1/toshiba-satellite-m40x.hk	1970-01-01 01:00:00.000000000 +0100
+++ hotkey-setup-0.1.new/toshiba-satellite-m40x.hk	2009-02-28 07:22:48.000000000 +0100
@@ -0,0 +1,23 @@
+# Toshiba Satellite M40X
+
+# Multimedia keys
+setkeycodes e013 $KEY_MEDIA
+setkeycodes e077 $KEY_PLAYPAUSE
+setkeycodes e012 $KEY_STOP
+setkeycodes e039 $KEY_NEXTSONG
+setkeycodes e074 $KEY_PREVIOUSSONG
+
+# fn+<fx> keys
+setkeycodes e06e $KEY_LOCK           # fn+f1
+setkeycodes e064 $KEY_LIGHT          # fn+f2
+setkeycodes e017 $KEY_SLEEP          # fn+f3
+setkeycodes e018 $KEY_SUSPEND        # fn+f4
+setkeycodes e041 $KEY_PRESENTATION   # fn+f5
+setkeycodes e016 $KEY_CONNECT        # fn+f8
+
+setkeycodes e043 $KEY_VIDEOMODECYCLE # fn+space
+
+setkeycodes e01a $KEY_PROG1          # fn+1 (zoom out)
+setkeycodes e01b $KEY_PROG2          # fn+2 (zoom in)
+
+setkeycodes e015 $KEY_WLAN           # wifi killswitch

Reply via email to