关闭键盘背光索尼(VAIO SVF1521DCXW)

我有一台索尼vaio笔记本电脑适合15E型号SVF1521DCXW ,我想关闭它的键盘背光。 它没有键盘上的phisycalfunction快捷键。 我可以在Windows操作系统中使用VAIO Control Center关闭它,但我不知道如何在Ubuntu 14.04中将其关闭。

我通过运行sudo dmidecode -s system-product-name获得SVF1521DCXW

首先在我的机器上不存在/sys/devices/platform/sony-laptop/kbd_backlight文件。

默认情况下,键盘背光保持关闭; 当我按任意键时它会打开15秒钟,如果我没有触摸任何键,它会再次关闭。

重要提示:所有尝试在电池和交流电源上都有相同的结果

ls -l /sys/devices/platform/sony-laptop/命令显示如下文件/指示符/符号链接(我删除了额外的属性并将其突出显示为[]。所有这些都是root所有者。):

 [-]r--r--r-- 1 battery_care_health [-]rw-r--r-- 1 battery_care_limiter [l]rwxrwxrwx 1 driver -> ../../../bus/platform/drivers/sony-laptop [-]r--r--r-- 1 modalias [d]rwxr-xr-x 2 power [l]rwxrwxrwx 1 subsystem -> ../../../bus/platform [-]rw-r--r-- 1 touchpad [-]rw-r--r-- 1 uevent 

如果我运行lsmod命令,会加载哪些模块:

 Module Size Used by sony_laptop 54219 0 uvcvideo 80885 0 videobuf2_vmalloc 13216 1 uvcvideo videobuf2_memops 13362 1 videobuf2_vmalloc videobuf2_core 40664 1 uvcvideo videodev 134688 2 uvcvideo,videobuf2_core rfcomm 69160 0 bnep 19624 2 bluetooth 391136 10 bnep,rfcomm snd_hda_codec_hdmi 46368 1 snd_hda_codec_realtek 65580 1 microread_mei 12811 0 microread 13420 1 microread_mei mei_phy 13881 1 microread_mei crc_ccitt 12707 1 microread hci 44425 2 mei_phy,microread snd_hda_intel 56451 3 snd_hda_codec 192906 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel snd_hwdep 13602 1 snd_hda_codec nfc 95012 2 hci,microread intel_rapl 18773 0 x86_pkg_temp_thermal 14205 0 intel_powerclamp 14705 0 coretemp 13435 0 kvm_intel 143109 0 kvm 451552 1 kvm_intel snd_pcm 102099 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel crct10dif_pclmul 14289 0 crc32_pclmul 13113 0 ghash_clmulni_intel 13216 0 snd_page_alloc 18710 2 snd_pcm,snd_hda_intel snd_seq_midi 13324 0 snd_seq_midi_event 14899 1 snd_seq_midi snd_rawmidi 30144 1 snd_seq_midi aesni_intel 55624 1683 aes_x86_64 17131 1 aesni_intel lrw 13286 1 aesni_intel gf128mul 14951 1 lrw glue_helper 13990 1 aesni_intel ablk_helper 13597 1 aesni_intel lib80211_crypt_tkip 17619 0 cryptd 20359 844 ghash_clmulni_intel,aesni_intel,ablk_helper snd_seq 61560 2 snd_seq_midi_event,snd_seq_midi snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi snd_timer 29482 2 snd_pcm,snd_seq joydev 17381 0 serio_raw 13462 0 wl 4207846 0 lib80211 14381 2 wl,lib80211_crypt_tkip cfg80211 484040 1 wl lpc_ich 21080 0 rtsx_pci_ms 18151 0 snd 69322 17 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi memstick 16966 1 rtsx_pci_ms soundcore 12680 1 snd mei_me 18627 0 mei 82276 3 mei_phy,mei_me,microread_mei mac_hid 13205 0 parport_pc 32701 0 ppdev 17671 0 lp 17759 0 binfmt_misc 17468 1 parport 42348 3 lp,ppdev,parport_pc rtsx_pci_sdmmc 23274 0 nouveau 1097199 1 i915 783805 4 mxm_wmi 13021 1 nouveau wmi 19177 2 mxm_wmi,nouveau ttm 85150 1 nouveau i2c_algo_bit 13413 2 i915,nouveau psmouse 106678 0 ahci 25819 2 drm_kms_helper 55071 2 i915,nouveau libahci 32716 1 ahci drm 303102 8 ttm,i915,drm_kms_helper,nouveau r8169 67581 0 rtsx_pci 46202 2 rtsx_pci_ms,rtsx_pci_sdmmc mii 13934 1 r8169 video 19476 2 i915,nouveau 

这是运行modinfo sony-laptop的输出:(注:见最后两行)

 filename: /lib/modules/3.13.0-37-generic/kernel/drivers/platform/x86/sony-laptop.ko version: 0.6 license: GPL description: Sony laptop extras driver (SPIC and SNC ACPI device) author: Stelian Pop, Mattia Dongili srcversion: 5C6E050349475558A231C59 alias: acpi*:SNY6001:* alias: acpi*:SNY5001:* depends: intree: Y vermagic: 3.13.0-37-generic SMP mod_unload modversions signer: Magrathea: Glacier signing key sig_key: 2C:B1:13:3B:35:F9:5A:9E:24:DE:AB:EE:B1:2B:A4:49:BC:BA:BB:C9 sig_hashalgo: sha512 parm: debug:set this to 1 (and RTFM) if you want to help the development of this driver (int) parm: no_spic:set this if you don't want to enable the SPIC device (int) parm: compat:set this if you want to enable backward compatibility mode (int) parm: mask:set this to the mask of event you want to enable (see doc) (ulong) parm: camera:set this to 1 to enable Motion Eye camera controls (only use it if you have a C1VE or C1VN model) (int) parm: minor:minor number of the misc device for the SPIC compatibility code, default is -1 (automatic) (int) parm: kbd_backlight:set this to 0 to disable keyboard backlight, 1 to enable it (default: no change from current value) (int) parm: kbd_backlight_timeout:meaningful values vary from 0 to 3 and their meaning depends on the model (default: no change from current value) (int) 

如果运行modinfo sony_laptop则输出相同^^(注意:下划线而不是modinfo sony_laptop

我尝试的是如下:

1.通过以下命令重新加载modprobe模块:

 sudo modprobe -r sony_laptop # <- No output. back to command prompt. And with -l option I get modprobe: invalid option -- 'l' sudo modprobe -v sony_laptop kbd_backlight=0 

在上面输出第二个命令:(对于使用sony_laptop和/或sony-laptop进行尝试。我也将kbd_backlight=0更改为kbd-backlight=0并且我没有得到错误并给了我以下输出)

 insmod /lib/modules/3.13.0-35-generic/kernel/drivers/platform/x86/sony-laptop.ko kbd_backlight=0 

结果:没有变化。

2.通过传递此命令重新编码modprobe模块:

 sudo modprobe -v sony_laptop kbd_backlight_timeout=3 kbd_backlight=0 

输出:没什么。
所以我从这个post中尝试了所有的东西。
结果:没有变化。

3. ls -l /sys/class/leds

输出:总计0(实际上没什么)

4.尝试创建文件

  1. cat /etc/modprobe.d/sony-laptop.conf
  2. cat /etc/modprobe.d/options.conf
  3. cat /sys/class/leds/smc::kbd_backlight/brightness

输出:没有这样的文件或目录。

扩展第4步中的选项1:我在/etc/modprobe.d创建了一个名为sony-laptop.conf的文件,并在文件/etc/modprobe.d添加了sony-laptop kbd_backlight=0选项,保存并重新启动计算机。 它不起作用(即使我不重启),我从那里删除了文件。

扩展第4步中的选项2:我在/etc/modprobe.d创建了一个名为options.conf的文件,并在文件/etc/modprobe.d添加了options sony-laptop kbd_backlight=0 options command is part of command here (Yes options command is part of command here ),保存并重新启动电脑。 它不起作用(即使我不重启),我从那里删除了文件。

扩展第4步中的选项3:我在步骤3中已经提到过,我没有任何文件;)

结果 (适用于所有选项):Nochange

5.尝试在许多站点上安装一些建议的包:

 sudo apt-get install nvidia-bl-dkms pommed 

输出: E: Unable to locate package nvidia-bl-dkms

如果它有帮助我添加: lshw命令的一部分:

 *-serial UNCLAIMED description: SMBus product: 7 Series/C210 Series Chipset Family SMBus Controller vendor: Intel Corporation physical id: 1f.3 bus info: pci@0000:00:1f.3 version: 04 width: 64 bits clock: 33MHz configuration: latency=0 resources: memory:d1815000-d18150ff ioport:4040(size=32) 

可以在聊天室询问任何问题 ;)

替换旧的和过时的答案

更新(2015年4月16日):已报告错误,可在此处获取 。 当前的错误状态是:
status: CONFIRMED Patch released, waiting for test/merge!
importance: MEDIUM
assigned to: UNASSIGNED

通过与KasiyA的聊天和Ubuntu Linux开发人员的佐证,这个问题就是一个bug。 因此,除非AU上的成员是官方内核开发人员(Jon Skeet可能?),否则此错误无法解决。

我认为这应该在适当的地区报道,就在这里 。

对于错误标题,放置内核模块的名称( sony-laptop )和错误的简要描述( “笔记本电脑键盘背光不关闭”

对于内容,请完整描述错误。 描述哪些有效,哪些无效。 还包括以下资源:

  • 这个页面 。 它包含到目前为止您尝试过的内容的信息。
  • 聊天 。 这包含调试信息和一些尝试的东西。 开发人员可以对此进行排序。
  • 补丁(es) 。 如果可以找到补丁(在这种情况下),请确保包含它。 它将节省开发人员的时间。 并且,您的错误会更快地得到解决。

此外,错误(通常)按重要性顺序处理。 让你的错误听起来很重要,但不要夸大。

当你的bug得到解决时,快乐! 你刚刚进入正式的Linux内核更新日志!

另外:请务必遵循错误报告页面上的任何说明。 你给开发人员的东西越多,他们的工作越容易,你的bug就越快解决。

旧post:
尝试从SourceForge下载Vaio控制中心 。

要安装它,请运行以下步骤:

  1. 打开终端
  2. cd ~/Downloads
  3. mkdir ~/.VCC
  4. mv vaio-control-center-0.1.tar.bz2 ~/.VCC
  5. cd ~/.VCC
  6. tar -xjvf vaio-control-center-0.1.tar.bz2
  7. make -j12
  8. chmod +x vaio-control-center
  9. ./vaio-control-center

如果需要,您可以在桌面上创建指向控制中心的链接。 只需创建一个指向~/.VCC/vaio-control-center的.desktop条目。

进入应用程序后,查找背光选项菜单并尝试进行调整。

注意:为此,您必须安装QT Core和QT Dev!

编辑(灵感来自MGodby的评论):确保安装了qt4-qmake 还要确保conf文件位于/usr/share/qt/mkspecs/linux-g++-64/qmake.conf 如果需要,请将符号链接指向正确的位置。

在略微不相关的说明中,您是否尝试过使用modprobe和sony-laptop而不是sony_laptop

在一个稍微不那么无关的说明中,您是否尝试过更新到最新的内核?

这个怎么样:

  1. 编辑(或创建) /etc/modprobe.d/options.conf
  2. 添加options sony-laptop kbd_backlight=01
  3. 更新intial ramdisk sudo update-initramfs -u
  4. 重启

资料来源: http : //ubuntuforums.org/showthread.php?t = 1865782

这是我发现的一个工具,试图为viao F系列提供更好的支持

以下是安装说明

 git clone https://code.google.com/p/vaio-f11-linux.control-center/ cd vaio-f11-linux.control-center ./compile ./run