LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-29-2014, 01:27 PM   #1
gopyan
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Rep: Reputation: Disabled
When X starts NumLock being enabled


Hello Friends.
Please, help me out.

System RHEL 6.4. Linux kernel - 2.4.32.

We have strange problem. When X starts Numlock is being enabled, but in console mode it disable. When I switch to console mode Numlock is become OFF, when I back to X mode , Numlock is become on. How I can do, that Numlock is always OFF???

Please, don't suggest me numlockx utility. It absent in this linux distribution.
Please, don't suggest me this bash script, because it is for console mode. We need X mode.

for tty in /dev/tty[1-6]; do
/usr/bin/setleds -D +num < $tty




Please, don't suggest this code


#include <X11/extensions/XTest.h>
#include <X11/keysym.h>

int main(void)
{
Display* disp = XOpenDisplay(NULL);
if (disp == NULL) return 1;
XTestFakeKeyEvent(disp, XKeysymToKeycode(disp, XK_Num_Lock),
True, CurrentTime);
XTestFakeKeyEvent(disp, XKeysymToKeycode(disp, XK_Num_Lock),
False, CurrentTime );
XCloseDisplay(disp);
return 0;
}

I compile it, it don't work. Please, help.
P.S. This behavoir observed both under root and under ordinary user.
 
Old 07-29-2014, 02:34 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
numlockx is in rpmforge

contact your redhat tech support for installing and CONFIGURING
"yum-plugin-priorities"

Code:
su -
yum install yum-plugin-priorities
--- reboot and ----
yum install rpmforge-release
yum install numlockx
and CONFIGURE !!! rpmforge so as to NOT replace system files

Last edited by John VV; 07-29-2014 at 02:35 PM.
 
Old 07-29-2014, 10:29 PM   #3
gopyan
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for attention to my problem.

As you see, my linux is very old. My server is special and i haven't any connection to internet. I haven't yum. Main packet manager on this comp is rpm.
 
Old 07-29-2014, 10:54 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
6.4 is not "Very Old" it was released in Feb. 2013
the current in the 6 series is 6.5

contact redhat for the instructions for "offline" installing of software

You did buy the REQUIRED redhat support contract ? right ?

now there WAS back in 1996 RH 6.0 ( this was NOT!!!! RHEL 6.0 from 2010)
 
Old 07-29-2014, 11:33 PM   #5
gopyan
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Excuse me - RHEL 6.2. Please, see to kernel version.

NO. I didn't buy support contract. We use system which is port of RHEL 6.2.
Maybe exists other ways instead of install numlockx packet?????
 
Old 07-30-2014, 12:40 AM   #6
gopyan
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
But..........stop. I have some news.

When I create new user and invoke 'startx' Numlock don't switch to ON state, it remain in OFF state.

It need to me. How to find out what difference between ROOT and NEW_USER settings.
 
Old 07-30-2014, 03:55 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,937

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
In most of these deals I see the numblock will be off on first use. When a user presses the numblock on it then returns on when any other log on conditions exist.
 
Old 07-30-2014, 04:10 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
from gnome
system / preferences / start up applications
click the "options" tab
and set to
"Automatically remember running applications when logging out"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Webcam problem: It starts working when plugged in, but stops when it's enabled phodopus Slackware 5 08-27-2010 03:01 AM
Mandriva 2009 starts installation and then monitor starts rolling showing color lines HubertHickey Linux - Newbie 6 12-18-2008 12:24 AM
Two Fluxbox Versions - Root starts newest,User starts oldest fortezza Linux - Software 1 05-21-2006 01:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 12:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration