20-video-quirk-pm-sony.fdi 30-keymap-module-sony-laptop.fdi patches

Brouard Nicolas nicolas.brouard at libertysurf.fr
Wed Mar 12 02:45:04 PDT 2008


Concerning the Sony Z1RMP quirk, your quirks "vbe_post" and
"vbemode_restore" aren't enough, you need noframebuffer (vga=0) at boot
and to disallow the wide screen in the bios otherwise you can't work in
a tty terminal (it has been reported some years ago on kernel.org and is
still true on the sony-Z1XMP which I got recently).
I add a comment in the fdi.
I also added the sony-Z1XMP.

--- 20-video-quirk-pm-sony.fdi~	2008-02-18 11:25:08.000000000 +0100
+++ 20-video-quirk-pm-sony.fdi	2008-03-12 10:36:14.000000000 +0100
@@ -22,6 +22,11 @@
       <match key="system.hardware.product" string_outof="VGN-TX5MN_W;PCG-TR2A(UC);VGN-UX50">
 	<merge key="power_management.quirk.vbemode_restore" type="bool">true</merge>
       </match>
+      <!-- machines which need other kinds of quirk -->
+      <!-- Note:
+           - PCG-Z1RPM or PCG-Z1XMP: To resume from X you no framebuffer vga=0 at boot, 
+               to resume correctly on tty you need to disallow the wide screen in the bios.
+	   -->
       <match key="system.hardware.product" contains_outof="PCG-Z1RMP;PCG-Z1XMP">
 	<merge key="power_management.quirk.vbe_post" type="bool">true</merge>
 	<merge key="power_management.quirk.vbemode_restore" type="bool">true</merge>
--- 30-keymap-module-sony-laptop.fdi~	2008-03-12 10:23:26.000000000 +0100
+++ 30-keymap-module-sony-laptop.fdi	2008-03-12 10:24:40.000000000 +0100
@@ -6,7 +6,7 @@
          You can find the scancodes in the kernel source of the module (drivers/misc/sony-laptop.c) -->
     <match key="input.product" string="Sony Vaio Keys">
       <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" prefix="Sony">
-        <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" string_outof="VGN-S1XP(GB);VGN-SZ3XWP_C">
+        <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" string_outof="PCG-Z1RMP;PCG-Z1XMP;VGN-S1XP(GB);VGN-SZ3XWP_C">
           <append key="input.keymap.data" type="strlist">0x06:mute</append> <!-- Fn+F2 mute -->
           <append key="input.keymap.data" type="strlist">0x07:volumedown</append> <!-- Fn+F3 mixer down -->
           <append key="input.keymap.data" type="strlist">0x08:volumeup</append> <!-- Fn+F4 mixer up -->

Cheers,

Nicolas Brouard
PS: I already reported on a Lenovo R61...(but without a patch).

Concerning the keymap I added both Z1RMP and Z1XMP:

 
-- 
Brouard Nicolas <nicolas.brouard at libertysurf.fr>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 843 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20080312/019f75e5/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch2.txt
Type: text/x-patch
Size: 1004 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20080312/019f75e5/attachment-0001.bin 


More information about the hal mailing list