mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
![Kyle Evans](/assets/img/avatar_default.png)
The current situation is fairly confusing, where an integer is interpreted as a percent until you slap a decimal on it and magically it becomes an absolute value. Let's have a flag day in 14.0 and remove this shim entirely. Setting with percent can still be useful, so allow a trailing '%' to indicate as such. As a side effect, we tighten down the format allowed in the volume a little bit by ensuring there's no trailing garbage after the value once it's separated into left and right components. Reviewed by: christos, hselasky, pauamma_gundo.com (manpages) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D35101
75 lines
2 KiB
Plaintext
75 lines
2 KiB
Plaintext
# $FreeBSD$
|
|
#
|
|
# ASUS specific devd events
|
|
|
|
# The next blocks enable volume hotkeys that can be found on the Asus laptops
|
|
notify 0 {
|
|
match "system" "ACPI";
|
|
match "subsystem" "ASUS";
|
|
match "notify" "0x32";
|
|
action "mixer vol.volume=0";
|
|
};
|
|
|
|
notify 0 {
|
|
match "system" "ACPI";
|
|
match "subsystem" "ASUS";
|
|
match "notify" "0x31";
|
|
action "mixer vol.volume=-10%";
|
|
};
|
|
|
|
notify 0 {
|
|
match "system" "ACPI";
|
|
match "subsystem" "ASUS";
|
|
match "notify" "0x30";
|
|
action "mixer vol.volume=+10%";
|
|
};
|
|
|
|
# The next blocks enable volume hotkeys that can be found on the Asus EeePC
|
|
notify 0 {
|
|
match "system" "ACPI";
|
|
match "subsystem" "ASUS-Eee";
|
|
match "notify" "0x13";
|
|
action "mixer vol.volume=0";
|
|
};
|
|
|
|
notify 0 {
|
|
match "system" "ACPI";
|
|
match "subsystem" "ASUS-Eee";
|
|
match "notify" "0x14";
|
|
action "mixer vol.volume=-10%";
|
|
};
|
|
|
|
notify 0 {
|
|
match "system" "ACPI";
|
|
match "subsystem" "ASUS-Eee";
|
|
match "notify" "0x15";
|
|
action "mixer vol.volume=+10%";
|
|
};
|
|
|
|
# Enable user hotkeys that can be found on the Asus EeePC
|
|
# The four keys above the keyboard notify 0x1a through to 0x1d respectively
|
|
#notify 0 {
|
|
# match "system" "ACPI";
|
|
# match "subsystem" "ASUS-Eee";
|
|
# match "notify" "0x1a";
|
|
# action "";
|
|
#};
|
|
#notify 0 {
|
|
# match "system" "ACPI";
|
|
# match "subsystem" "ASUS-Eee";
|
|
# match "notify" "0x1b";
|
|
# action "";
|
|
#};
|
|
#notify 0 {
|
|
# match "system" "ACPI";
|
|
# match "subsystem" "ASUS-Eee";
|
|
# match "notify" "0x1c";
|
|
# action "";
|
|
#};
|
|
#notify 0 {
|
|
# match "system" "ACPI";
|
|
# match "subsystem" "ASUS-Eee";
|
|
# match "notify" "0x1d";
|
|
# action "";
|
|
#};
|