public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] trying to turn numlock automatically in my ttys under systemd
@ 2014-06-20  9:06 covici
  2014-06-20 15:06 ` Canek Peláez Valdés
  0 siblings, 1 reply; 11+ messages in thread
From: covici @ 2014-06-20  9:06 UTC (permalink / raw
  To: gentoo-user

Hi.  I want to turn numlock automatically, but I am using systemd and I
am having troubles doing this.  At someones suggestion in a previous
message (I think Canek's) I created
/etc/systemd/system/getty@service.d/numlock.conf with the following
contents

[Service]
ExecStartPost=/usr/bin/setleds -D -num </dev/%I


However, setleds dies with the following error:
Jun 19 14:24:55 ccs.covici.com setleds[4878]: KDGKBLED: Inappropriate
ioctl for device
Jun 19 14:24:55 ccs.covici.com setleds[4878]: Error reading current
flags setting. Maybe you are not on the console?

I tried to fool with chvt to make the console current, but no joy there.

Any assistance would be appreciated.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@ccs.covici.com


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-06-20 20:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-20  9:06 [gentoo-user] trying to turn numlock automatically in my ttys under systemd covici
2014-06-20 15:06 ` Canek Peláez Valdés
2014-06-20 16:40   ` Jc García
2014-06-20 17:08     ` Canek Peláez Valdés
2014-06-20 16:53   ` covici
2014-06-20 17:01     ` Jc García
2014-06-20 17:26       ` covici
2014-06-20 18:43         ` Jc García
2014-06-20 19:46           ` covici
2014-06-20 19:52             ` Michael Cook
2014-06-20 20:04               ` Jc García

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox