@rsphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget3/translations/zh_CN/admin-guide/laptops/sony-laptopmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget3/translations/zh_TW/admin-guide/laptops/sony-laptopmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget3/translations/it_IT/admin-guide/laptops/sony-laptopmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget3/translations/ja_JP/admin-guide/laptops/sony-laptopmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget3/translations/ko_KR/admin-guide/laptops/sony-laptopmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget3/translations/sp_SP/admin-guide/laptops/sony-laptopmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h)Sony Notebook Control Driver (SNC) Readmeh]h)Sony Notebook Control Driver (SNC) Readme}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhM/var/lib/git/docbuild/linux/Documentation/admin-guide/laptops/sony-laptop.rsthKubh block_quote)}(ht- Copyright (C) 2004- 2005 Stelian Pop - Copyright (C) 2007 Mattia Dongili h]h bullet_list)}(hhh](h list_item)}(h9Copyright (C) 2004- 2005 Stelian Pop h]h paragraph)}(hhh](h&Copyright (C) 2004- 2005 Stelian Pop <}(hhhhhNhNubh reference)}(hstelian@popies.neth]hstelian@popies.net}(hhhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:stelian@popies.netuh1hhhubh>}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubh)}(h6Copyright (C) 2007 Mattia Dongili h]h)}(h5Copyright (C) 2007 Mattia Dongili h](h#Copyright (C) 2007 Mattia Dongili <}(hhhhhNhNubh)}(hmalattia@linux.ith]hmalattia@linux.it}(hhhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:malattia@linux.ituh1hhhubh>}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]bullet-uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXThis mini-driver drives the SNC and SPIC device present in the ACPI BIOS of the Sony Vaio laptops. This driver mixes both devices functions under the same (hopefully consistent) interface. This also means that the sonypi driver is obsoleted by sony-laptop now.h]hXThis mini-driver drives the SNC and SPIC device present in the ACPI BIOS of the Sony Vaio laptops. This driver mixes both devices functions under the same (hopefully consistent) interface. This also means that the sonypi driver is obsoleted by sony-laptop now.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hFn keys (hotkeys):h]hFn keys (hotkeys):}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hhhhhKubh)}(hXSome models report hotkeys through the SNC or SPIC devices, such events are reported both through the ACPI subsystem as acpi events and through the INPUT subsystem. See the logs of /proc/bus/input/devices to find out what those events are and which input devices are created by the driver. Additionally, loading the driver with the debug option will report all events in the kernel log.h]hXSome models report hotkeys through the SNC or SPIC devices, such events are reported both through the ACPI subsystem as acpi events and through the INPUT subsystem. See the logs of /proc/bus/input/devices to find out what those events are and which input devices are created by the driver. Additionally, loading the driver with the debug option will report all events in the kernel log.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj;hhubh)}(hXThe "scancodes" passed to the input system (that can be remapped with udev) are indexes to the table "sony_laptop_input_keycode_map" in the sony-laptop.c module. For example the "FN/E" key combination (EJECTCD on some models) generates the scancode 20 (0x14).h]hXThe “scancodes” passed to the input system (that can be remapped with udev) are indexes to the table “sony_laptop_input_keycode_map” in the sony-laptop.c module. For example the “FN/E” key combination (EJECTCD on some models) generates the scancode 20 (0x14).}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj;hhubeh}(h]fn-keys-hotkeysah ]h"]fn keys (hotkeys):ah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hBacklight control:h]hBacklight control:}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphhhhhKubh)}(hIf your laptop model supports it, you will find sysfs files in the /sys/class/backlight/sony/ directory. You will be able to query and set the current screen brightness:h]hIf your laptop model supports it, you will find sysfs files in the /sys/class/backlight/sony/ directory. You will be able to query and set the current screen brightness:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjphhubh)}(hX====================== ========================================= brightness get/set screen brightness (an integer between 0 and 7) actual_brightness reading from this file will query the HW to get real brightness value max_brightness the maximum brightness value ====================== ========================================= h]htable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK)uh1jhjubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h brightnessh]h brightness}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h6get/set screen brightness (an integer between 0 and 7)h]h6get/set screen brightness (an integer between 0 and 7)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hactual_brightnessh]hactual_brightness}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hEreading from this file will query the HW to get real brightness valueh]hEreading from this file will query the HW to get real brightness value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hmax_brightnessh]hmax_brightness}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hj-ubah}(h]h ]h"]h$]h&]uh1jhj*ubj)}(hhh]h)}(hthe maximum brightness valueh]hthe maximum brightness value}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hjDubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhK#hjphhubeh}(h]backlight-controlah ]h"]backlight control:ah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hPlatform specific:h]hPlatform specific:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK-ubh)}(htLoading the sony-laptop module will create a /sys/devices/platform/sony-laptop/ directory populated with some files.h]htLoading the sony-laptop module will create a /sys/devices/platform/sony-laptop/ directory populated with some files.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hjhhubh)}(hTYou then read/write integer values from/to those files by using standard UNIX tools.h]hTYou then read/write integer values from/to those files by using standard UNIX tools.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjhhubh)}(hThe files are:h]hThe files are:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hjhhubh)}(hXQ====================== ========================================== brightness_default screen brightness which will be set when the laptop will be rebooted cdpower power on/off the internal CD drive audiopower power on/off the internal sound card lanpower power on/off the internal ethernet card (only in debug mode) bluetoothpower power on/off the internal bluetooth device fanspeed get/set the fan speed ====================== ========================================== h]j)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK*uh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(hbrightness_defaulth]hbrightness_default}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hDscreen brightness which will be set when the laptop will be rebootedh]hDscreen brightness which will be set when the laptop will be rebooted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hcdpowerh]hcdpower}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h"power on/off the internal CD driveh]h"power on/off the internal CD drive}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h audiopowerh]h audiopower}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK;hjOubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(hhh]h)}(h$power on/off the internal sound cardh]h$power on/off the internal sound card}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK;hjfubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hlanpowerh]hlanpower}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h*power on/off the internal bluetooth deviceh]h*power on/off the internal bluetooth device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hfanspeedh]hfanspeed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hget/set the fan speedh]hget/set the fan speed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhK7hjhhubh)}(h^Note that some files may be missing if they are not supported by your particular laptop model.h]h^Note that some files may be missing if they are not supported by your particular laptop model.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhjhhubh)}(hExample usage::h]hExample usage:}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKEhjhhubh literal_block)}(hA# echo "1" > /sys/devices/platform/sony-laptop/brightness_defaulth]hA# echo "1" > /sys/devices/platform/sony-laptop/brightness_default}hj_sbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1j]hhhKGhjhhubh)}(h@sets the lowest screen brightness for the next and later rebootsh]h@sets the lowest screen brightness for the next and later reboots}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKIhjhhubj^)}(hA# echo "8" > /sys/devices/platform/sony-laptop/brightness_defaulth]hA# echo "8" > /sys/devices/platform/sony-laptop/brightness_default}hj}sbah}(h]h ]h"]h$]h&]jmjnuh1j]hhhKMhjhhubh)}(hAsets the highest screen brightness for the next and later rebootsh]hAsets the highest screen brightness for the next and later reboots}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKOhjhhubj^)}(h:# cat /sys/devices/platform/sony-laptop/brightness_defaulth]h:# cat /sys/devices/platform/sony-laptop/brightness_default}hjsbah}(h]h ]h"]h$]h&]jmjnuh1j]hhhKShjhhubh)}(hretrieves the valueh]hretrieves the value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKUhjhhubj^)}(h9# echo "0" > /sys/devices/platform/sony-laptop/audiopowerh]h9# echo "0" > /sys/devices/platform/sony-laptop/audiopower}hjsbah}(h]h ]h"]h$]h&]jmjnuh1j]hhhKYhjhhubh)}(hpowers off the sound cardh]hpowers off the sound card}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK[hjhhubj^)}(h9# echo "1" > /sys/devices/platform/sony-laptop/audiopowerh]h9# echo "1" > /sys/devices/platform/sony-laptop/audiopower}hjsbah}(h]h ]h"]h$]h&]jmjnuh1j]hhhK_hjhhubh)}(hpowers on the sound card.h]hpowers on the sound card.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKahjhhubeh}(h]platform-specificah ]h"]platform specific:ah$]h&]uh1hhhhhhhhK-ubh)}(hhh](h)}(hRFkill control:h]hRFkill control:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKeubh)}(hXMore recent Vaio models expose a consistent set of ACPI methods to control radio frequency emitting devices. If you are a lucky owner of such a laptop you will find the necessary rfkill devices under /sys/class/rfkill. Check those starting with sony-* in::h]hMore recent Vaio models expose a consistent set of ACPI methods to control radio frequency emitting devices. If you are a lucky owner of such a laptop you will find the necessary rfkill devices under /sys/class/rfkill. Check those starting with sony-* in:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKfhjhhubj^)}(h)# grep . /sys/class/rfkill/*/{state,name}h]h)# grep . /sys/class/rfkill/*/{state,name}}hjsbah}(h]h ]h"]h$]h&]jmjnuh1j]hhhKkhjhhubeh}(h]rfkill-controlah ]h"]rfkill control:ah$]h&]uh1hhhhhhhhKeubh)}(hhh](h)}(h Development:h]h Development:}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hhhhhKoubh)}(hIf you want to help with the development of this driver (and you are not afraid of any side effects doing strange things with your ACPI BIOS could have on your laptop), load the driver and pass the option 'debug=1'.h]hIf you want to help with the development of this driver (and you are not afraid of any side effects doing strange things with your ACPI BIOS could have on your laptop), load the driver and pass the option ‘debug=1’.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKqhj*hhubhdefinition_list)}(hhh]hdefinition_list_item)}(h