without Secure Boot. Document that. Change the default to KBD_NUMLOCK="no". (boo#1212141) - kbdsettings-nox86.patch: Update and return missing chunk. OBS-URL: https://build.opensuse.org/package/show/Base:System/kbd?expand=0&rev=180
45 lines
1.2 KiB
Diff
45 lines
1.2 KiB
Diff
--- a/kbdsettings
|
|
+++ b/kbdsettings
|
|
@@ -25,24 +25,6 @@
|
|
fi
|
|
/usr/bin/setleds -D -$param < /dev/$tty
|
|
;;
|
|
- bios)
|
|
- if [ -x /usr/libexec/kbd/numlockbios ]; then
|
|
- bios=$(/usr/libexec/kbd/numlockbios 2>/dev/null)
|
|
- else
|
|
- bios=$(/usr/lib/kbd/numlockbios 2>/dev/null)
|
|
- fi
|
|
- if [ $param = "num" ]; then
|
|
- if [ "$bios" = "on" ]; then
|
|
- touch /run/numlock-on
|
|
- /usr/bin/setleds -D +$param < /dev/$tty
|
|
- elif [ "$bios" = "off" -o "$bios" = "unknown" ]; then
|
|
- rm -f /run/numlock-on
|
|
- /usr/bin/setleds -D -$param < /dev/$tty
|
|
- fi
|
|
- else
|
|
- echo "Value $confval invalid for $conf"
|
|
- fi
|
|
- ;;
|
|
*)
|
|
echo "error: unknown value $confval in $conf"
|
|
;;
|
|
--- a/sysconfig.keyboard
|
|
+++ b/sysconfig.keyboard
|
|
@@ -15,11 +15,10 @@
|
|
# Keyboard repeat rate (2.0 - 30.0)
|
|
KBD_RATE=""
|
|
|
|
-## Type: list(bios,yes,no)
|
|
-## Default: bios
|
|
+## Type: yesno
|
|
+## Default: no
|
|
#
|
|
-# NumLock on? ("yes" or "no" or "bios" for BIOS setting)
|
|
-# "bios" requires access to BIOS settings. Does not work with Secure Boot and falls back to "no" there.
|
|
+# NumLock on? ("yes" or "no")
|
|
# This setting may interfere with GNOME /org/gnome/settings-daemon/peripherals/keyboard/remember-numlock-state DConf key.
|
|
KBD_NUMLOCK="no"
|
|
|