1 |
Hi. I want to turn numlock automatically, but I am using systemd and I |
2 |
am having troubles doing this. At someones suggestion in a previous |
3 |
message (I think Canek's) I created |
4 |
/etc/systemd/system/getty@service.d/numlock.conf with the following |
5 |
contents |
6 |
|
7 |
[Service] |
8 |
ExecStartPost=/usr/bin/setleds -D -num </dev/%I |
9 |
|
10 |
|
11 |
However, setleds dies with the following error: |
12 |
Jun 19 14:24:55 ccs.covici.com setleds[4878]: KDGKBLED: Inappropriate |
13 |
ioctl for device |
14 |
Jun 19 14:24:55 ccs.covici.com setleds[4878]: Error reading current |
15 |
flags setting. Maybe you are not on the console? |
16 |
|
17 |
I tried to fool with chvt to make the console current, but no joy there. |
18 |
|
19 |
Any assistance would be appreciated. |
20 |
|
21 |
-- |
22 |
Your life is like a penny. You're going to lose it. The question is: |
23 |
How do |
24 |
you spend it? |
25 |
|
26 |
John Covici |
27 |
covici@××××××××××.com |