Re: OT: How to disable the lights on modern case fans

From: Ralf Mardorf <ralf-mardorf_at_riseup.net>
Date: Sat, 20 May 2023 12:46:34 UTC
On Sat, 2023-05-20 at 13:24 +0200, Tomek CEDRO wrote:
> xset(1) ?

Hi,

the tested operating system is an Arch Linux install, since one is on my
old computer and an identical copy of this Arch Linux install is on the
new computer. On the old computer the default beep is an audible beep.
On the new computer the default beep is a very silent click. Both are
using the same settings.

However, I haven't tested xset. Thank you for the pointer. I'm doing it
now.

• rocketmouse@archlinux ~ 
$ xset q | grep bell
  bell percent:  50    bell pitch:  400    bell duration:  100
• rocketmouse@archlinux ~ 
$ xset b 100 800 500
• rocketmouse@archlinux ~ 
$ printf "\a"
• rocketmouse@archlinux ~ 
$ printf "\a"
• rocketmouse@archlinux ~ 
$ xset q | grep bell
  bell percent:  100    bell pitch:  800    bell duration:  500

• root@archlinux /home/rocketmouse 
# xset q | grep bell
  bell percent:  100    bell pitch:  800    bell duration:  500
• root@archlinux /home/rocketmouse 
# sleep 1; printf "\a"; printf "\a"; printf "\a";printf "\a"
• root@archlinux /home/rocketmouse 
# sleep 1; printf "\a"; printf "\a"; printf "\a";printf "\a"
• root@archlinux /home/rocketmouse 
# xset b 100 400 100
• root@archlinux /home/rocketmouse 
# xset q | grep bell
  bell percent:  100    bell pitch:  400    bell duration:  100
• root@archlinux /home/rocketmouse 
# sleep 1; printf "\a"; printf "\a"; printf "\a";printf "\a"
• root@archlinux /home/rocketmouse 
# sleep 1; printf "\a"; printf "\a"; printf "\a";printf "\a"

The room's window is open. To hear anything from the PC speaker I have
to knee down to the opened computer case. What ever I do, I only get a
way to silent click noise.

The bell signals played by grub are very silent, but still loud enough
and not just click noises. FWIW if somebody of you should ever be forced
to migrate from your favourite bootloader to grub, too. There's no need
to configure the configs that generate grub.cfg or to learn how to write
those endless cryptic menu entries. Users are still free to write a
simple and clear grub.cfg.

• rocketmouse@archlinux ~ 
$ head -30 /boot/grub/grub.cfg
play 1920 440 1 0 1 880 2 0 1 880 1 0 1 440 2
set timeout=60
set color_normal=light-gray/black
set color_highlight=white/light-gray
set menu_color_normal=light-gray/black
set menu_color_highlight=white/light-gray
set default="1"
insmod efi_gop

menuentry " -- HAL 9000-m1 -----------------------------------------------------------------" {
        true
}

menuentry "    MemTest86 V10+ Free" {
        search --set=root --no-floppy --fs-uuid 3F5B-F698
        chainloader /EFI/memtest86/memtestx64.efi
}

menuentry " -- Arch Linux ------------------------------------------------------------------" {
        true
}

menuentry "    Arch Linux threadirqs" {
        search --no-floppy --set=root --label m1.archlinux
        linux /boot/vmlinuz-linux root=/dev/disk/by-label/m1.archlinux ro threadirqs ibt=off ipv6.disable=1
        initrd /boot/intel-ucode.img /boot/initramfs-linux.img
}

menuentry "    Arch Linux" {
        search --no-floppy --set=root --label m1.archlinux

Regards,
Ralf