mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 06:50:37 +00:00

Support the newly introduced charge_types sysfs attribute as a replacement for the custom `battery_life_extender` attribute. Setting charge_types to `Long Life` enables battery life extending mode. This change is similar to the recent Ideapad patch adding support for charge_types. Signed-off-by: Jelle van der Waa <jvanderwaa@redhat.com> Link: https://lore.kernel.org/r/20250702182844.107706-1-jvanderwaa@redhat.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
What: /sys/devices/platform/samsung/performance_level
|
|
Date: January 1, 2010
|
|
KernelVersion: 2.6.33
|
|
Contact: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
|
Description: Some Samsung laptops have different "performance levels"
|
|
that can be modified by a function key, and by this
|
|
sysfs file. These values don't always make a whole lot
|
|
of sense, but some users like to modify them to keep
|
|
their fans quiet at all costs. Reading from this file
|
|
will show the current performance level. Writing to the
|
|
file can change this value.
|
|
|
|
Valid options:
|
|
- "silent"
|
|
- "normal"
|
|
- "overclock"
|
|
|
|
Note that not all laptops support all of these options.
|
|
Specifically, not all support the "overclock" option,
|
|
and it's still unknown if this value even changes
|
|
anything, other than making the user feel a bit better.
|
|
|
|
What: /sys/devices/platform/samsung/usb_charge
|
|
Date: December 1, 2011
|
|
KernelVersion: 3.3
|
|
Contact: Corentin Chary <corentin.chary@gmail.com>
|
|
Description: Use your USB ports to charge devices, even
|
|
when your laptop is powered off.
|
|
1 means enabled, 0 means disabled.
|
|
|
|
What: /sys/devices/platform/samsung/lid_handling
|
|
Date: December 11, 2014
|
|
KernelVersion: 3.19
|
|
Contact: Julijonas Kikutis <julijonas.kikutis@gmail.com>
|
|
Description: Some Samsung laptops handle lid closing quicker and
|
|
only handle lid opening with this mode enabled.
|
|
1 means enabled, 0 means disabled.
|