Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52771 - numlockx, gentoo FAQ, and gnome 2.6
Summary: numlockx, gentoo FAQ, and gnome 2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-02 05:40 UTC by John Ratliff
Modified: 2004-07-04 08:50 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Ratliff 2004-06-02 05:40:22 UTC
I am trying to get numlock to start when I use X. When I used gnome 2.4, the directions from the Gentoo FAQ

"How do I get numlock to start on boot? 

If you log on graphically, or want numlock to be activated when you issue startx, then you must emerge numlockx and add /usr/X11R6/bin/numlockx to /etc/X11/xinit/xinitrc (for startx) or /etc/X11/Sessions/ (for any graphical login manager) such as /etc/X11/Sessions/Gnome for GDM.

If you work in commandline, you only need to rc-update add numlock default and numlock will be activated on the next reboot."

worked great. I just added /usr/X11R6/bin/numlockx to the /etc/X11/Sessions/Gnome file and it was fine.

However, in gnome 2.6, this doesn't work. I'm not entirely sure, but I don't even think this file is used in gnome 2.6.

My "evidence": I added this line to the file
echo "sometext" > /tmp/mygnomesessionfile.tmp

When I login from gdm, no numlockx and no /tmp/mygnomesessionfile.tmp.

If I add numlockx to the file /etc/X11/gdm/Init/Default as suggested by bug 35682 (http://bugs.gentoo.org/show_bug.cgi?id=35682), numlockx will start.

This is all well and good, but is the FAQ wrong? Should it be updated? Or is there something wrong with the gnome 2.6 ebuild?

I am using gnome-base/gnome-2.6. No ~arch.

Just checking... Thanks...
Comment 1 John Ratliff 2004-06-02 15:40:50 UTC
After a suggestion on the gentoo-user mailing list, I decided to modify this by using the gnome-session-properties program. I'd never seen this before, but it seems to be a good solution, too.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2004-07-02 08:35:43 UTC
Care to elaborate a bit more on the precise location inside "gnome-session-properties"? I'd like to update the Gentoo FAQ with this information...
Comment 3 John Ratliff 2004-07-03 14:10:00 UTC
No problem.

Start gnome-session-properties. It's in /usr/bin, so you can start it from a terminal.

Click on the Startup Properties tab at the top of the window.
Click the Add Button. You can either browse for it, or it's under /usr/X11R6/bin/numlockx.
The default order is probably fine. That's just like the rc.d numbers, so if it needs to happen before or after some other program.

Then just logout and log back in and numlock will be on in gnome. Maybe there is an analog in kde, but I don't use K, so I don't know.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2004-07-04 08:50:40 UTC
Thank you very much.
Fixed in CVS.