Skip to content

Conversation

@Githubguy132010
Copy link
Owner

Description

This pull request addresses issue #118 by adding additional systemd services and configurations to ensure comprehensive beep silencing across different environments (virtual consoles and X11/Wayland sessions).

Changes Made

1. Virtual Console Beep Disabling Service

Added a new systemd service that runs setterm -blength 0 for all virtual consoles:

  • File: airootfs/etc/systemd/system/no-console-beep.service
  • Purpose: Disables beeps in virtual console environments
  • Implementation: Uses a bash loop to apply the beep disabling settings to all virtual terminals

2. X11 Bell Disabling Script

Created an X11 initialization script that disables the X11 bell whenever an X11 session starts:

  • File: airootfs/etc/X11/xinit/xinitrc.d/50-no-bell.sh
  • Purpose: Disables the X11 bell in graphical environments
  • Implementation: Runs xset -b when X11 sessions start
  • Note: The file is set to be executable in the repository

3. Xorg Bell Configuration

Added a global Xorg configuration that disables the bell for all keyboard input devices:

  • File: airootfs/etc/X11/xorg.conf.d/50-no-bell.conf
  • Purpose: System-wide configuration to disable X11 bells
  • Implementation: Uses the BellTypeSoundOff option in an InputClass section

Benefits

  • Provides complete beep silencing across all system environments
  • Complements the existing kernel-level beep disabling
  • Ensures consistent quiet experience for users regardless of which interface they're using
  • Follows the principle of defense in depth by disabling beeps at multiple levels

Testing

  • Verified the syntax of all configuration files
  • Ensured the systemd service properly handles cases where terminals may not be writable
  • Confirmed that the X11 bell disabling script checks for the existence of xset

Fixes #118

@Githubguy132010 Githubguy132010 merged commit 8547f6a into main Apr 8, 2025
2 checks passed
@Githubguy132010 Githubguy132010 deleted the fix-issue-118-additional-systemd-services branch April 8, 2025 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add additional systemd services for complete beep silencing

2 participants