From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by befuddled.reisers.ca (Postfix, from userid 65534) id 9D7751EF6AF; Sat, 29 Jun 2013 13:16:46 -0400 (EDT) Received: from hurricane.the-brannons.com (hurricane.the-brannons.com [64.62.188.119]) by befuddled.reisers.ca (Postfix) with ESMTP id 779A41EF08B for ; Sat, 29 Jun 2013 13:16:45 -0400 (EDT) Received: from localhost (unknown [IPv6:2602:4b:af3c:ae00:12bf:48ff:fe7c:5584]) by hurricane.the-brannons.com (Postfix) with ESMTPSA id DD7B178769 for ; Sat, 29 Jun 2013 10:17:44 -0700 (PDT) From: Chris Brannon To: "Speakup is a screen review system for Linux." Subject: Re: weird speakup or hardware bug? References: <20130628020032.GA2443@vibrator.the-brannons.com> Date: Sat, 29 Jun 2013 10:16:43 -0700 In-Reply-To: <20130628020032.GA2443@vibrator.the-brannons.com> (Deedra Waters's message of "Thu, 27 Jun 2013 19:00:33 -0700") Message-ID: <87ehbkltvo.fsf@mushroom.PK5001Z> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.2 X-BeenThere: speakup@linux-speakup.org X-Mailman-Version: 2.1.15 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: Sat, 29 Jun 2013 17:16:46 -0000 Deedra Waters writes: > I'm not even sure where to begin. switching from arch to gentoo seems to > have changed certain things like my ethernet now works? > > But, what's happening here is that for all of my consoles, speakup has > the numlock as on and i have to change it before i can use speakup > commands. Anyone seen this before? I shouldn't let this thread dangle; we found a solution. Basically, use setleds to set the current and default state of the numlock at boot time. There's a script to do this which is distributed with OpenRC on Gentoo. But it sets the numlock, instead of clearing it. I made a new script based on that one, but mine disables the numlock instead. If you're on Gentoo, you can put the following script in /etc/init.d and add it to your boot runlevel. Don't overwrite their numlock script with it; give it a name of its own. === BEGIN SCRIPT === #!/sbin/runscript description="Disable numlock for consoles" ttyn=${rc_tty_number:-${RC_TTY_NUMBER:-12}} depend() { need localmount keyword -openvz -prefix -vserver -lxc } _setleds() { [ -z "$1" ] && return 1 local dev=/dev/tty t= i=1 retval=0 [ -d /dev/vc ] && dev=/dev/vc/ while [ $i -le $ttyn ]; do setleds -D "$1"num < $dev$i || retval=1 : $(( i += 1 )) done return $retval } stop() { true } start() { ebegin "Disabling numlock on ttys" _setleds - eend $? "Failed to disable numlock" } === END SCRIPT ===