SONY(4)

πŸ“¦ version 11.0, in nixpkgs unstable

🌸 NAME 🌸

sony β€” Sony Miscellaneous Controller

okay so this is the sony(4) page from the Kernel Interfaces Manual, and it's giving main character energy for a controller that lives in some Sony notebook computers. bestie, we're about to talk about the sysctl(8) interface that the sony driver uses to access/modify settings of some built-in devices. vibe check: it's a Sony controller, and yes, that's the whole name. πŸ’–

✨ SYNOPSIS ✨

sony*    at acpi?

πŸ’… DESCRIPTION πŸ’…

Some Sony notebook computers have a controller that handles various built-in devices. The sony driver provides support for accessing/modifying the settings of some of these devices via the sysctl(8) interface. ✨

The following sysctl(8) variables are available, and yes bestie, they're literally listed right here:

  • hw.sony0.brt [R/W] β€” Controls current LCD brightness. Range [0-8]. 🌞
  • hw.sony0.pbr [R/W] β€” Controls power on LCD brightness. Range [0-8]. ⚑
  • hw.sony0.cdp [R/W] β€” Controls CD power. πŸ’Ώ
  • hw.sony0.pid [R/O] β€” Unknown (the page literally says Unknown, iykyk). πŸ«₯
  • hw.sony0.ctr [R/W] β€” Unknown. πŸ«₯
  • hw.sony0.pcr [R/W] β€” Unknown. πŸ«₯
  • hw.sony0.cmi [R/W] β€” Unknown. πŸ«₯
  • hw.sony0.ams [R/W] β€” Audio control (mute when 0). πŸ”‡
  • hw.sony0.hke [R/O] β€” Indicates a Host Key Event. Bits are set when an event occurs and cleared when this value is read. The following table describes the bit set for each button pressed β€” no cap, bestie: πŸ‘‡
    • 0x1000 β€” S1 button
    • 0x0800 β€” S2 button
    • 0x0200 β€” Fn + F10 (magnify)
    • 0x0100 β€” Mute button
    • 0x0020 β€” Fn + F12 (suspend to disk)
    • 0x0010 β€” Fn + F7 (LCD/external monitor)
    • 0x0008 β€” Fn + F6 (brighter backlight)
    • 0x0004 β€” Fn + F5 (darker backlight)
    • 0x0002 β€” Fn + F4 (volume up)
    • 0x0001 β€” Fn + F3 (volume down)

πŸŽ€ SEE ALSO πŸŽ€

go read these too, bestie, slay 🫢

πŸ¦‹ HISTORY πŸ¦‹

The sony driver appeared in NetBSD 4.0. ⭐

πŸ‘‘ AUTHORS πŸ‘‘

  • Sami Kantoluoto for the original driver and manual information. πŸ’–
  • Christos Zoulas for cleaning up the driver and this manual page. 🫢

πŸ’€ BUGS πŸ’€

  • The sony driver just parses integer values from the acpi(4) tree. It could be more intelligent and parse other controls. 😭
  • The sysctl(8) interface is not great. The names of the sysctl(8) tree are not self-explanatory. πŸ™ˆ
  • No validity checks are performed on the user input. Playing with random values and/or unknown controls can harm your machine. ⚠️
  • The name of the driver is too generic. πŸ’€

πŸ’Œ source/version: Debian Β· date: August 25, 2020 β€” mwah, that's the footer, bye bestie πŸ’… periodt

πŸ“¦ where this page comes from