From: Chris Brannon <chris@the-brannons.com>
To: "Speakup is a screen review system for Linux."
<speakup@linux-speakup.org>
Subject: Re: weird speakup or hardware bug?
Date: Sat, 29 Jun 2013 10:16:43 -0700 [thread overview]
Message-ID: <87ehbkltvo.fsf@mushroom.PK5001Z> (raw)
In-Reply-To: <20130628020032.GA2443@vibrator.the-brannons.com> (Deedra Waters's message of "Thu, 27 Jun 2013 19:00:33 -0700")
Deedra Waters <deedra@the-brannons.com> 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 ===
prev parent reply other threads:[~ UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
Deedra Waters
` covici
` D. Curtis Willoughby
` Chris Brannon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ehbkltvo.fsf@mushroom.PK5001Z \
--to=chris@the-brannons.com \
--cc=speakup@linux-speakup.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).