[Solved] enable caps and numlock on startup and prevent toggle

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
Post Reply
stefanv
White ninja
White ninja
Posts: 6
Joined: 27 Sep 2017, 09:48
Distribution: kiosk

[Solved] enable caps and numlock on startup and prevent toggle

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.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4624
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

enable caps and numlock on startup and prevent toggle

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.

stefanv
White ninja
White ninja
Posts: 6
Joined: 27 Sep 2017, 09:48
Distribution: kiosk

enable caps and numlock on startup and prevent toggle

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

User avatar
fanthom
Site Admin
Site Admin
Posts: 4624
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

enable caps and numlock on startup and prevent toggle

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.

stefanv
White ninja
White ninja
Posts: 6
Joined: 27 Sep 2017, 09:48
Distribution: kiosk

enable caps and numlock on startup and prevent toggle

Post#5 by stefanv » 28 Sep 2017, 07:08

Perfect! Works like a charm.
Thanks

Post Reply