From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pz0-f42.google.com (mail-pz0-f42.google.com [209.85.210.42]) by speech.braille.uwo.ca (Postfix) with ESMTP id 9F6B9C1A39D for ; Thu, 7 Oct 2010 05:46:05 -0400 (EDT) Received: by pzk10 with SMTP id 10so108642pzk.29 for ; Thu, 07 Oct 2010 02:46:05 -0700 (PDT) Received: by 10.143.10.21 with SMTP id n21mr377146wfi.287.1286444763676; Thu, 07 Oct 2010 02:46:03 -0700 (PDT) Received: from lnx3.holmesgrown.com (ip72-208-185-148.ph.ph.cox.net [72.208.185.148]) by mx.google.com with ESMTPS id x1sm2021397wfd.20.2010.10.07.02.46.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 Oct 2010 02:46:02 -0700 (PDT) Date: Thu, 7 Oct 2010 02:45:58 -0700 From: Steve Holmes To: speakup@braille.uwo.ca Subject: Re: Configuring grub / grub2 to indicate the boot menu items Message-ID: <20101007094558.GA2066@lnx3.holmesgrown.com> Mail-Followup-To: speakup@braille.uwo.ca References: <4CAAACDA.6000006@gmail.com> <83CCE4DB87414FF0913B1E1AF9744C12@randy3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83CCE4DB87414FF0913B1E1AF9744C12@randy3> User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.13 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2010 09:46:05 -0000 OK, I got it to work with the new grub configurations. Let me describe what I did here. With my grub2 setup on my archlinux system, I went into the 10linux script found in /etc/grub.d; I believe this file is a standard issue script for all distros using grub2. Not sure if any of it was customized by Arch developers or not. I looked for the second occurrence of linux_entry. The first occurrence is a function definition so we don't want to change anything there. The next or second occurrence from the top will build the first menu option in your grub.cfg file. The first quoted string following the 'linux_entry' call specifies the menu title. It currently begins with the variable ${OS}. I just stuck a Ctrl-G in front of this variable and immediately following the opening quote mark. Myself, I used emacs to do this by pressing c-q followed by the Ctrl-G character. After that, I saved and closed the file and did grub-mkconfig -o /boot/grub/grub.cfg to regenerate the grub.cfg file. On my system, I do not have a update-grub command. Dunno if that is a local Arch modification or if update-grub is just on other distros. Anyway, I looked at grub.cfg for good measure and saw the ^G in the right spot. I reboot and I have the beep on the top menu item with this new configuration. It works like it always did before too. The only side effect for me is I have to re-figure how to get the right parms in for me to have a nice big display again. But that's another issue for me to work out. I had been using an old grub.cfg for a long time and never got around to using the new config file system for grub. On Tue, Oct 05, 2010 at 08:12:09AM -0400, Kitty Litter wrote: > I am hardly a grub 2 expert but you need to edit > /etc/default/grub and uncomment the line grub_init_tune and modify > the tempo, frequency and duration to get the desired beep. Then you > must run update-grub as root to incorporate these changes into > /boot/grub/grub.cfg. You aren't supposed to edit this file directly. > If you try putting a ctrl-g in the title of a menu in > /etc/grub.d/10_linux you will get a beep when you press enter on an > item but not when you arrow passed it, at least that was the > behavior when I tried it 6 months ago. After you run update-grub you > can look at /boot/grub/grub.cfg to see what order the menu items > will be in. The menu items don't appear to wrap so if you want the > last item you could arrow down a bunch of times and press enter. > Remember you must run update-grub to incorporate these changes into > grub.cfg. Also, info grub for grub docs. > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup