Hi,
How can I enable CAPS en NUM lock on startup and prevent disabling them?
Thanks
[Solved] enable caps and numlock on startup and prevent toggle
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
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
[Solved] enable caps and numlock on startup and prevent toggle
Last edited by stefanv on 02 Oct 2017, 08:08, edited 1 time in total.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
enable caps and numlock on startup and prevent toggle
Hi Stefan,
Please try this parameter:
Thank you.
Please try this parameter:
Code: Select all
xdotool key Num_Lock Caps_Lock; setxkbmap -option caps:none; xmodmap -e 'keycode 77 ='
Please add [Solved] to your thread title if the solution was found.
enable caps and numlock on startup and prevent toggle
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
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
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
enable caps and numlock on startup and prevent toggle
Sorry - forgot to mention that you need to use 'run_command=' parameter:
If your num lock is on by default then you need to remove 'Num_Lock' string from 'run_command=' otherwise it will be toggled.
Code: Select all
run_command=xdotool key Num_Lock Caps_Lock; setxkbmap -option caps:none; xmodmap -e 'keycode 77 ='
Please add [Solved] to your thread title if the solution was found.
enable caps and numlock on startup and prevent toggle
Perfect! Works like a charm.
Thanks
Thanks