[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: backlight infomation request



At 10:50 01/03/26 +0900, sato@ba2.so-net.ne.jp wrote:
>vrc4172pwmのパラメータテーブルにMC/R520Aのパラメータを追加して、
>GENERICにも追加しました。

hpckbdkeymap.h に添付の patch をあてて液晶輝度の制御が出来る事を
確認しました。
suspend 時も液晶がきちんと落ちます。
Index: hpckbdkeymap.h
===================================================================
RCS file: /cvs/cvsroot/syssrc/sys/dev/hpc/hpckbdkeymap.h,v
retrieving revision 1.7
diff -u -r1.7 hpckbdkeymap.h
--- hpckbdkeymap.h	2001/03/24 17:33:12	1.7
+++ hpckbdkeymap.h	2001/03/26 12:34:50
@@ -302,7 +302,7 @@
 /*30	k	j	h	g	4	3	2	1	*/
 /*38	i	u	y	t	-	caps	del	esc	*/
 /*40	alt_R	-	-	-	BS	p	TAB	Fn	*/
-/*48	-	alt_L	-	-	f12	f11	f10	f9	*/
+/*48	-	alt_L	-	-	pgdn	pgup	f10	f9	*/
 /*50	-	-	ctrl	-	f8	f7	f6	f5	*/
 /*58	-	-	-	shift	f4	f3	f2	f1	*/
 /*----------------------------------------------------------------------*/
@@ -314,12 +314,22 @@
 /*28*/	 51,	 50,	 49,	 48,	IGN,	IGN,	 11,	 10,
 /*30*/	 37,	 36,	 35,	 34,	  5,	  4,	  3,	  2,
 /*38*/	 23,	 22,	 21,	 20,	IGN,	 58,	 14,	  1,
-/*40*/	184,	IGN,	IGN,	IGN,	 14,	 25,	 15,	IGN,
-/*48*/	IGN,	 56,	IGN,	IGN,	 88,	 87,	 68,	 67,
+/*40*/	184,	IGN,	IGN,	IGN,	 14,	 25,	 15,	219,
+/*48*/	IGN,	 56,	IGN,	IGN,	 81,	 73,	 68,	 67,
 /*50*/	IGN,	IGN,	 29,	IGN,	 66,	 65,	 64,	 63,
 /*58*/	IGN,	IGN,	IGN,	 42,	 62,	 61,	 60,	 59,
 };
 
+static const keysym_t mobilepro_cmdmap[] = {
+/*	pos      command		normal		shifted		*/
+	KC(219), KS_Cmd,		KS_Meta_L,	KS_Multi_key,
+	KC(73),  KS_Cmd_BrightnessUp,	KS_KP_Prior,	KS_KP_9,
+	KC(81),  KS_Cmd_BrightnessDown,	KS_KP_Next,	KS_KP_3,
+	KC(51),  KS_Cmd_ContrastDown,	KS_comma,	KS_less,
+	KC(52),  KS_Cmd_ContrastUp,	KS_period,	KS_greater,
+	KC(57),  KS_Cmd_BacklightToggle,KS_space,
+};
+
 /* NEC MobilePro 750c by "Castor Fu" <castor@geocast.com> */
 static u_int8_t mobilepro750c_keytrans[] = {
 /*00	right	\	p	.	y	b	z	space	*/
@@ -581,7 +591,7 @@
 	{	&platid_mask_MACH_NEC_MCR_520A,
 		mobilepro_keytrans,
 		NULL,
-		NULLCMDMAP,
+		CMDMAP(mobilepro_cmdmap),
 		KB_US },
 	{	&platid_mask_MACH_NEC_MCR_530A,
 		mobilepro_keytrans,