NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Set numlock programmatically on embedded ui

Solved!
Go to solution

Hello

I am using NI Linux Real-time on CRIO-9037 with embedded UI enable. When ever the operating system boots up , the num-lock key is disable. I want to enable the num-lock key programmatically at start of my program.

0 Kudos
Message 1 of 3
(2,137 Views)
Solution
Accepted by topic author smojtabaei

Hi smojtabaei,

 

Embedded UI uses Xfce, so the methods for enabling numlock on that Desktop Environment should work on cRIO Embedded UI devices. There's a ton of documentation about this online so I recommend reading up if you're interested in learning more about Xfce and the options for it.

 

A quick search shows that what you ask can be done by editing the keyboards.xml file for the Embedded UI user (lvuser). This file can be found at /home/lvuser/.config/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml. In that file, you'll need to change the "Numlock" property value to "true," save the file, and then reboot the system.Numlock.png

 

Charlie J.
National Instruments
0 Kudos
Message 2 of 3
(2,108 Views)

Thank you for your help. This is worked for me.

0 Kudos
Message 3 of 3
(2,103 Views)