LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices



Reply
 
Search this Thread
Old 04-19-2011, 02:41 AM   #1
h34th
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Rep: Reputation: 0
Xorg mouse support lost after env-update


New Gentoo install; Dell Dimension E510 with Nvidia GeForce 7300 LE, USB keyboard and optical mouse. Basic install went well, complete with custom (i.e. not genkernel) kernel.

To get usb keyboard/mouse and my nvidia card working with Xorg, I created a hybridized xorg.conf composed of the screen/device/monitor/display created by "nvidia-xorgconf" and the evdev input device section from what I believe was the xorg.conf.example generated during the Xorg emerge.

Everything was working as root, but when I changed to normal user, xterm complained about not being able to find "/bin/ksh" (my SHELL=/bin/ksh) and after about 3 seconds, Xorg would shut down. So I went into /etc/env.d/99local and commented out the SHELL=/bin/ksh line, ran "env-update" and then tried to "startx" again. The video still works, but X no longer sees my mouse (keyboard still works). This is true both as normal user and as root.

I don't know if I believe that this is all related to not using the default shell, but I cannot recall any other changes made to environment variables. Any thoughts would be greatly appreciated. Thanks.

(I know I should include config files, but not sure how. If you would like to see my config files, please explain a CLI way to cut-and-paste them w/o a mouse.)
 
Old 04-19-2011, 03:59 AM   #2
h34th
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
additional detail

I guess it really *is* all about SHELL: if I

Code:
SHELL=/bin/bash
or
Code:
SHELL=/bin/sh
Xorg works fine, regardless of whether the user is root or normal_user. So, I

su to root,
write a change to /etc/env.d/99local and
restart

... only to get
Code:
echo $SHELL 
/bin/ksh
Does anyone know of other files where SHELL is set? I'm stumped. Thanks.

(By the way: I also get

Code:
which ksh
/bin/ksh
but xterm complains that it cannot find "/bin/ksh". I suppose the best solution would be to help Xorg/xterm find ksh, as that *is* my preferred shell.)
 
Old 04-19-2011, 10:24 PM   #3
h34th
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
I finally changed SHELL to /bin/bash, but the behavior didn't change: xterm says it cannot find /bin/bash, and X closes after about 3 seconds. Does anyone know what's going on? I am looking for xterm config file documentation, I'll post if/when I am able to specify a shell file path in the xterm config file. Will also check my local profile to see if that can be changed.
 
Old 04-19-2011, 10:50 PM   #4
h34th
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
I found a workaround: I added the following line to my
/etc/X11/xinit/xinitrc

export SHELL=/bin/ksh

I believe I could have added that line to my /etc/make.conf or my .profile, but I'll try those later.

I still don't know why X couldn't "find" (execute?) whatever shell was defined in SHELL. Permissions? Any ideas let me know. Thanks.
 
  


Reply

Tags
evdev, mouseconfig, nvidia, usb, xorg


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
gentoo env-update AttributeError: 'module' object has no attribute 'env_update' linux_mopper Linux - Newbie 2 08-06-2008 02:20 PM
Xorg-server update causes buggy mouse operations w1k0 Slackware 11 07-03-2008 05:10 PM
recent dist-upgrade of xorg has killed my mouse (and thusly, xorg). Lokathor Debian 4 06-10-2006 05:52 AM
Lost mouse after reboot+lost modem BACTRATE Mandriva 3 04-07-2005 07:45 AM
Installing Gentoo - env-update problem SeT Linux - General 1 01-03-2004 05:10 AM


All times are GMT -5. The time now is 12:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration