Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries:
https://porteus-kiosk.org/contact.html
-
stefanv
- White ninja

- Posts: 6
- Joined: 27 Sep 2017, 09:48
- Distribution: kiosk
Post#1
by stefanv » 27 Sep 2017, 09:54
Hi,
How can I enable CAPS en NUM lock on startup and prevent disabling them?
Thanks
Last edited by
stefanv on 02 Oct 2017, 08:08, edited 1 time in total.
stefanv
-
fanthom
- Moderator Team

- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#2
by fanthom » 27 Sep 2017, 13:15
Hi Stefan,
Please try this parameter:
Code: Select all
xdotool key Num_Lock Caps_Lock; setxkbmap -option caps:none; xmodmap -e 'keycode 77 ='
Thank you.
Please add [Solved] to your thread title if the solution was found.
fanthom
-
stefanv
- White ninja

- Posts: 6
- Joined: 27 Sep 2017, 09:48
- Distribution: kiosk
Post#3
by stefanv » 28 Sep 2017, 06:24
Hi,
Thanks for your swift response
Added this line to settings report, but result is not as expected:
num lock on, but still able to switch it on and off
caps lock off, still able to switch it on and off
Using kiosk 4.5
Any idea?
Brgds
stefanv
-
fanthom
- Moderator Team

- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#4
by fanthom » 28 Sep 2017, 06:52
Sorry - forgot to mention that you need to use 'run_command=' parameter:
Code: Select all
run_command=xdotool key Num_Lock Caps_Lock; setxkbmap -option caps:none; xmodmap -e 'keycode 77 ='
If your num lock is on by default then you need to remove 'Num_Lock' string from 'run_command=' otherwise it will be toggled.
Please add [Solved] to your thread title if the solution was found.
fanthom
-
stefanv
- White ninja

- Posts: 6
- Joined: 27 Sep 2017, 09:48
- Distribution: kiosk
Post#5
by stefanv » 28 Sep 2017, 07:08
Perfect! Works like a charm.
Thanks
stefanv