sony_acpi.txt 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. ACPI Sony Notebook Control Driver (SNC) Readme
  2. ----------------------------------------------
  3. Copyright (C) 2004- 2005 Stelian Pop <stelian@popies.net>
  4. This mini-driver drives the ACPI SNC device present in the
  5. ACPI BIOS of the Sony Vaio laptops.
  6. It gives access to some extra laptop functionalities. In
  7. its current form, this driver is mainly useful for controlling the
  8. screen brightness, but it may do more in the future.
  9. You should probably start by trying the sonypi driver, and try
  10. sony_acpi only if sonypi doesn't work for you.
  11. Usage:
  12. ------
  13. Loading the sony_acpi module will create a /proc/acpi/sony/
  14. directory populated with a couple of files.
  15. You then read/write integer values from/to those files by using
  16. standard UNIX tools.
  17. The files are:
  18. brightness current screen brightness
  19. brightness_default screen brightness which will be set
  20. when the laptop will be rebooted
  21. cdpower power on/off the internal CD drive
  22. Note that some files may be missing if they are not supported
  23. by your particular laptop model.
  24. Example usage:
  25. # echo "1" > /proc/acpi/sony/brightness
  26. sets the lowest screen brightness,
  27. # echo "8" > /proc/acpi/sony/brightness
  28. sets the highest screen brightness,
  29. # cat /proc/acpi/sony/brightness
  30. retrieves the current screen brightness.
  31. Development:
  32. ------------
  33. If you want to help with the development of this driver (and
  34. you are not afraid of any side effects doing strange things with
  35. your ACPI BIOS could have on your laptop), load the driver and
  36. pass the option 'debug=1'.
  37. REPEAT: DON'T DO THIS IF YOU DON'T LIKE RISKY BUSINESS.
  38. In your kernel logs you will find the list of all ACPI methods
  39. the SNC device has on your laptop. You can see the GBRT/SBRT methods
  40. used to get/set the brightness, but there are others.
  41. I HAVE NO IDEA WHAT THOSE METHODS DO.
  42. The sony_acpi driver creates, for some of those methods (the most
  43. current ones found on several Vaio models), an entry under
  44. /proc/acpi/sony/, just like the 'brightness' one. You can create
  45. other entries corresponding to your own laptop methods by further
  46. editing the source (see the 'sony_acpi_values' table, and add a new
  47. structure to this table with your get/set method names).
  48. Your mission, should you accept it, is to try finding out what
  49. those entries are for, by reading/writing random values from/to those
  50. files and find out what is the impact on your laptop.
  51. Should you find anything interesting, please report it back to me,
  52. I will not disavow all knowledge of your actions :)
  53. Bugs/Limitations:
  54. -----------------
  55. * This driver is not based on official documentation from Sony
  56. (because there is none), so there is no guarantee this driver
  57. will work at all, or do the right thing. Although this hasn't
  58. happened to me, this driver could do very bad things to your
  59. laptop, including permanent damage.
  60. * The sony_acpi and sonypi drivers do not interact at all. In the
  61. future, sonypi could use sony_acpi to do (part of) its business.
  62. * spicctrl, which is the userspace tool used to communicate with the
  63. sonypi driver (through /dev/sonypi) does not try to use the
  64. sony_acpi driver. In the future, spicctrl could try sonypi first,
  65. and if it isn't present, try sony_acpi instead.