From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B172C13888F for ; Tue, 20 Oct 2015 18:49:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4631621C03F; Tue, 20 Oct 2015 18:49:16 +0000 (UTC) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E6EE021C018 for ; Tue, 20 Oct 2015 18:49:14 +0000 (UTC) Received: by wijp11 with SMTP id p11so61450915wij.0 for ; Tue, 20 Oct 2015 11:49:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=O006ftTkm6wPJNRoOdNoSh875p4pl5cA7TvG28U5E9M=; b=x2jD1edn1NCYYgoxn+aR1GpG6Y9EixZkkO/fwu3EgkKSw4bWcs5l3SmQF6EZmr4iRx fMcoqG5caJ2eKs9khJPTqrAs9Csdzpfo24PYdIi/owB/0Qm/zh81xXPKPKCDLdAPfRVd h4S6AAuXUFMEwTdv8+fyW5mF1gwAXlE+yfzn0hUUXatdQSYnwdWeaORovwR7u9atewKQ 9FKqO8NTJ2ONeeSsUjQrbc2XNug/r3+MUIUdSOuuZCNy3IvrhC1ljU57LoNx5Pl9UCpH twBrDjiOZ0TiIMW8lA4WbYEr2aHD7uimwmqfFWR0KZxm46JhmEHNKJUcHfaBcBy9XbwB hmaw== X-Received: by 10.180.88.201 with SMTP id bi9mr5976690wib.21.1445366953458; Tue, 20 Oct 2015 11:49:13 -0700 (PDT) Received: from [172.20.0.41] ([105.210.195.59]) by smtp.googlemail.com with ESMTPSA id gd10sm5456871wjb.47.2015.10.20.11.49.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2015 11:49:12 -0700 (PDT) Subject: Re: [gentoo-user] Can I suppress the bleep when shutting down? To: gentoo-user@lists.gentoo.org References: <20151020161029.GC1781@acm.fritz.box> <20151020164439.GA6901@acm.fritz.box> <20151020172248.GA32751@mgpc.ncp.de> <13261105.QqkL9bx2a2@thetick> From: Alan McKinnon Message-ID: <56268C76.4080201@gmail.com> Date: Tue, 20 Oct 2015 20:48:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <13261105.QqkL9bx2a2@thetick> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 1eb398ce-998c-4904-bf91-9fb8302c906f X-Archives-Hash: f38737a464929bc2456de40013d77e0f On 20/10/2015 19:57, Marc Joliet wrote: > On Tuesday 20 October 2015 19:22:48 Matthias Gerstner wrote: >> Hi Alan, >> >>> I simply want to disable that one particular beeping at shutdown time. >> >> well this topic made me curious where the beep is coming from. >> >> It does originate from the shutdown command itself which is part of the >> sys-apps/sysvinit package. In this package's source you find can a file >> "src/dowall.c", where you will in turn find a function "wall(...)". >> >> This is the function where the warning messages will be produced that >> show up in the terminal and the message is produced like this: >> >> snprintf(line, sizeof(line), >> "\007\r\nBroadcast message from %s@%s %s(%s):\r\n\r\n", >> user, hostname, tty, date); >> >> The "\007" is the beep you're getting. It's a bell character that you >> can produce manually by doing this, too: >> >> echo -e "\007" >> >> Unfortunately the bell character is hard coded into the warning message. >> Also there seems to be no way to suppress the warning message. > [...] > > If it's caused by the call to wall(), then maybe the --no-wall option to > shutdown will help? I don't have that option in my ~arch shutdown -- Alan McKinnon alan.mckinnon@gmail.com