驱动天空论坛 -> SONY VAIO笔记本专区 -> 个人提取的sony nvidia显卡亮度调节代码,基本全面 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

1377495 2012-02-17 17:39
年前在研究旧版(for vista)的sony官方驱动时偶然发现了用来键盘调节亮度的代码,当时发现了三种代码分别对应三种显示器的硬件ID,今日研究最新版的sony官方驱动时发现9组代码,和旧版驱动上的基本不相同,但是在我的8400M GS上测试可用,驱动修改添加代码的方法是我总结的,不知道是否完全正确,因为我只有一台sony的电脑,欢迎测试
代码如下:
[FAEIDS_630_640_addreg]
HKR,,OverrideEdidFlags0,%REG_BINARY%,7C,00,00,00,00,00,FF,FF,04,00,00,00,08,02,36,7F
HKR,,OverrideEdidFlags1,%REG_BINARY%,36,7f,45,00,00,00,ff,ff,0d,00,00,00,41,3e,0f,42,c9,10,00,00,18,e0,2e,a0,a0,50,84,58,32,20,50,cc,0f,42,c9,10,00,00,18,00,00,00,fc,00,4e,76,69,64,69,61,20,44,65,66,61,75,6c,00,00,00,fc,00,74,20,46,6c,61,74,20,50,61,6e,65,6c,00,00
HKR,,OverrideEdidFlags2,%REG_BINARY%,36,7f,4a,00,00,00,ff,ff,0d,00,00,00,41,3e,0f,42,c9,10,00,00,18,98,3a,90,40,61,1a,c2,41,60,82,cc,0f,42,c9,10,00,00,18,00,00,00,fc,00,4e,76,69,64,69,61,20,44,65,66,61,75,6c,00,00,00,fc,00,74,20,46,6c,61,74,20,50,61,6e,65,6c,00,00
HKR,,Panel0B,%REG_SZ%,",MS_,,0045"
HKR,,Panel0C,%REG_SZ%,",MS_,,004A"
[FAEIDS_78_addreg]
HKR,,OverrideEdidFlags0,%REG_BINARY%,7C,00,00,00,00,00,FF,FF,04,00,00,00,08,02,36,7F
HKR,,OverrideEdidFlags1,%REG_BINARY%,36,7f,fa,08,00,00,ff,ff,0d,00,00,00,15,6A,29,17,00,EA,A8,E0,99,57,4B,92,25,1C,50,54,00,00,00,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,37,2F,90,84,61,B1,1E,30,20,30,26,00,98,E6,10,00,00,18,9C,27,90,90,61,B1,1E,30,20,30,26,00,98,E6,10,00,00,18,00,00,00,FC,00,4E,76,69,64,69,61,20,44,65,66,61,75,6C,00,00,00,FC,00,74,20,46,6C,61,74,20,50,61,6E,65,6C,00,00
HKR,,OverrideEdidFlags2,%REG_BINARY%,36,7f,25,00,00,00,ff,ff,0d,00,00,00,15,6A,29,17,00,EA,A8,E0,99,57,4B,92,25,1C,50,54,00,00,00,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,69,3A,80,18,71,38,36,40,50,32,4A,00,99,E6,10,00,00,18,BB,30,80,20,71,38,32,40,50,32,4A,04,99,E6,10,00,00,18,00,00,00,FC,00,4E,76,69,64,69,61,20,44,65,66,61,75,6C,00,00,00,FC,00,74,20,46,6C,61,74,20,50,61,6E,65,6C,00,00
HKR,,Panel01,%REG_SZ%,",MS_,,08FA"
HKR,,Panel02,%REG_SZ%,",MS_,,0025"
HKR,,Panel03,%REG_SZ%,",MS_,,0025"
[FAEIDS_81_addreg]
HKR,,OverrideEdidFlags0,%REG_BINARY%,7C,00,00,00,00,00,FF,FF,04,00,00,00,08,02,36,7F
HKR,,OverrideEdidFlags1,%REG_BINARY%,36,7f,4A,00,00,00,ff,ff,0d,00,00,00,15,6A,2B,1B,00,EA,A8,E0,99,57,4B,92,25,1C,50,54,00,00,00,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,40,38,90,08,62,1A,2A,40,62,C4,5A,00,B1,0F,11,00,00,18,40,38,90,D0,62,1A,96,40,62,C4,5A,00,B1,0F,11,00,00,18,00,00,00,FC,00,4E,76,69,64,69,61,20,44,65,66,61,75,6C,00,00,00,FC,00,74,20,46,6C,61,74,20,50,61,6E,65,6C,00,00
HKR,,Panel01,%REG_SZ%,",MS_,,004A"
[FAEIDS_82_addreg]
HKR,,OverrideEdidFlags0,%REG_BINARY%,7C,00,00,00,00,00,FF,FF,04,00,00,00,08,02,36,7F
HKR,,OverrideEdidFlags1,%REG_BINARY%,36,7f,4A,00,00,00,ff,ff,0d,00,00,00,48,37,40,38,90,D0,62,1A,96,40,62,C4,5A,00,42,C9,10,00,00,18,00,00,00,FC,00,4E,76,69,64,69,61,20,44,65,66,61,75,6C,00,00,00,FC,00,74,20,46,6C,61,74,20,50,61,6E,65,6C,00,00
HKR,,OverrideEdidFlags2,%REG_BINARY%,36,7f,26,00,00,00,ff,ff,0d,00,00,00,48,37,DC,32,80,B4,70,B0,28,40,1A,34,5B,00,42,C9,10,00,00,18,00,00,00,FC,00,4E,76,69,64,69,61,20,44,65,66,61,75,6C,00,00,00,FC,00,74,20,46,6C,61,74,20,50,61,6E,65,6C,00,00
HKR,,Panel01,%REG_SZ%,",MS_,,004A"
HKR,,Panel02,%REG_SZ%,",MS_,,0026"
[FAEIDS_84_addreg]
HKR,,OverrideEdidFlags0,%REG_BINARY%,7C,00,00,00,00,00,FF,FF,04,00,00,00,08,02,36,7F
HKR,,OverrideEdidFlags1,%REG_BINARY%,36,7f,26,00,00,00,ff,ff,0d,00,00,00,48,37,DC,32,80,B4,70,B0,28,40,1A,34,5B,00,42,C9,10,00,00,18,00,00,00,FC,00,4E,76,69,64,69,61,20,44,65,66,61,75,6C,00,00,00,FC,00,74,20,46,6C,61,74,20,50,61,6E,65,6C,00,00
HKR,,Panel01,%REG_SZ%,",MS_,,0026"
[FAEIDS_MS0026_addreg]
HKR,,OverrideEdidFlags0,%REG_BINARY%,7C,00,26,00,00,00,FF,FF,04,00,00,00,08,02,36,7F
HKR,,Panel04,%REG_SZ%,",MS_,,0026"
[FAEIDS_MS0040_addreg]
HKR,,OverrideEdidFlags0,%REG_BINARY%,7C,00,40,00,00,00,FF,FF,04,00,00,00,08,02,36,7F
HKR,,Panel01,%REG_SZ%,",MS_,,0040"
HKR,,Panel02,%REG_SZ%,",MS_,,0040"
HKR,,Panel04,%REG_SZ%,",MS_,,0040"
HKR,,Panel05,%REG_SZ%,",MS_,,0040"
[FAEIDS_MS0045_addreg]
HKR,,OverrideEdidFlags0,%REG_BINARY%,7C,00,45,00,00,00,FF,FF,04,00,00,00,08,02,36,7F
HKR,,Panel01,%REG_SZ%,",MS_,,0045"
HKR,,Panel02,%REG_SZ%,",MS_,,0045"
每个[ ]跟下个[ ]之间的内容即为一种代码;其中MS0045,MS0040,MS0026等能确认代表的是显示器的硬件ID(不必全部对应)其它的是否代表硬件ID不能确认,猜想应该是,即使不是也一定和显示器的代号有关。
添加亮度调节代码的方法:
首先通过显卡硬件ID查找驱动中的控制文件对应的是哪个Section(章节)如sony的8400M GS的硬件ID为PCI\VEN_10DE&DEV_0427&SUBSYS_9008104D 其对应的Section为%NVIDIA_DEV.0427.9008.104D% = Section002
找到[ Section002]将亮度调节代码复制到该章节中,并在章节中添加上AddReg = FAEIDS_MS0040_addreg ( [ ]中的文字)
完整修改好的sony nvidia 8400M GS显卡,所用显示屏为MS0040文件如下:
[Section002]
AddReg = FAEIDS_MS0040_addreg
AddReg = nv_DRS_addreg
AddReg = nv_FTS_addreg
AddReg = nv_commonBase_addreg
AddReg = nv_commonDisplayModes_addreg__02
AddReg = nv_controlPanel_addreg
AddReg = nv_global_addreg
AddReg = nv_miscBase_addreg__02
AddReg = nv_opengl_addreg
AddReg = nv_timingRestrictions_addreg__01
CopyFiles = nv_Drs_copyfiles
CopyFiles = nv_cplSetup_copyfiles
CopyFiles = nv_license_copyfiles
CopyFiles = nv_sysDrivers_copyfiles
CopyFiles = nv_system32_copyfiles
DelFiles = nv_sysDrivers_delfiles
DelFiles = nv_system32_delfiles
DelFiles = nv_system64_delfiles
DelReg = nv_clearRegistrySwitches_delreg
FeatureScore = E6
RegisterDLLs = nv_common_registerdll__02
[Section002.CoInstallers]
AddReg = nv_commonCoinstaller_addreg
CopyFiles = nv_coinstaller_copyfiles
[Section002.GeneralConfigData]
MaximumDeviceMemoryConfiguration = 128
MaximumNumberOfDevices = 4

[FAEIDS_MS0040_addreg]
HKR,,OverrideEdidFlags0,%REG_BINARY%,7C,00,40,00,00,00,FF,FF,04,00,00,00,08,02,36,7F
HKR,,Panel01,%REG_SZ%,",MS_,,0040"
HKR,,Panel02,%REG_SZ%,",MS_,,0040"
HKR,,Panel04,%REG_SZ%,",MS_,,0040"
HKR,,Panel05,%REG_SZ%,",MS_,,0040"

[Section002.Services]
AddService = nvlddmkm, 0x00000002, nv_nvlddmkm_serviceInstall
驱动安装时应该是可以升级安装的,如果先卸载原驱动再安装时重启后一定先确认设备管理器中的显卡上有无黄色叹号,如果有请刷新硬件待安装上系统自认的驱动重启后再装新驱动,否则可能不能调亮度

本修改方法适用于自行修改nvidia公版驱动为兼容sony硬件后不能用键盘调节亮度的情形,如果连修改公版驱动的方法都还不会的先自行补课后再来研究

ghost_80 2012-02-25 10:05
楼主,怎样确定本机显示器的硬件ID?还有就是A卡和I卡的驱动调节有没有代码了?

风声水影 2012-02-25 20:52
楼主是高手呀

鬼哭神嚎 2012-02-25 21:09
也就是需要知道显示器的硬件ID,是读取显示器都EDID信息吗?

可以用AIDA64看下相关信息。


1377495 2012-03-03 15:59
aida64可以看到,电脑的设备管理器中也看得到

cs502cs 2012-09-10 18:28
显示屏幕的硬件ID为:MONITOR\SNY06FA
要用哪个代吗,谢谢!
机器是VPCZ127FC

猫猪兽 2012-10-02 01:39
你好,我的显示器ID为HSD03E9,请问要用那个代码呢,机器型号是VPCM128jc的上网本,拜托了,XP驱动用不了,用win7慢得像龟速。

猫猪兽 2012-10-02 02:11
不好意思了,这才是id:PCI\VEN_8086&DEV_A011&SUBSYS_9075104D&REV_00
,请问应该用哪个代码。

wzwcfei 2014-02-10 08:22
我的代码是这个Monitor\SNY05FA
用哪个呢?



查看完整版本: [-- 个人提取的sony nvidia显卡亮度调节代码,基本全面 --] [-- top --]



Powered by PW v6.8 Code ©2003-2010
Time 0.118677 second(s),query:2 Gzip enabled