LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2002, 03:53 AM   #1
trentk
Member
 
Registered: Feb 2002
Location: Senoia,Ga
Distribution: Mandrake 8.1
Posts: 39

Rep: Reputation: 15
I've managed to lock myself out of X. I need help!!


Ok well I was trying to get my mousewheel to work under X and tried to edit my X86config file. I did and managed to not be able to get back into X. All I can access is the window where you initialy log on. I tried typing startx but it just gives me an error. Is there anyway I can go change my X11/X86Config file back from this screen. I could try VI or Emacs but have no idea what to do. Maybe just a format and fresh install???

BTW the only thing I changed was mouse1 to mouse0 and then something at the bottom of the mouse input device section. I still have the old file saved in there on the desktop of X as root user.:smash:
 
Old 02-19-2002, 04:46 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Hi,
If you have old config, no problem. Log as root. If you know exactly where your file is use
cp SOURCE /etc/X11/XF86Config-4
where source is the old config with its path.
If you don't know where is your old config, use
find / -name NAME
where NAME is the name the old config has. If there was no name change, it will be just
find / -name XF86Config-4
You'll get all XF86Config-4s there are in your system, so you can copy the right file beck to its place.

Good luck
Mara
 
Old 02-19-2002, 05:18 AM   #3
trentk
Member
 
Registered: Feb 2002
Location: Senoia,Ga
Distribution: Mandrake 8.1
Posts: 39

Original Poster
Rep: Reputation: 15
Hey thanks for the help. I tried the find and all it found was the same file in /etc/X11 that is messing me up. When I firsted went to edit it as root in X I made a backup and put it on the desktop but it doesn't find that one. Also, when I went to edit it I noticed there was a file called XF86Config old. Can I use that?

I can't beleive all this headache just to get my mouse wheel to work. Never again.

Oh and one other thing. I think I renamed the file on the desktop to something other than XF86. Is there a way I can see what's on the desktop? Yeah I know I should have wrote it down but it's late and I'm and idiot.

Last edited by trentk; 02-19-2002 at 05:21 AM.
 
Old 02-19-2002, 06:50 AM   #4
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Rep: Reputation: 30
yeah....

go to /home/chijtska/Desktop and then ls...

of all the stupidest things! no just kidding man, i have done way worse
 
Old 02-19-2002, 06:54 AM   #5
killjoy
Member
 
Registered: Mar 2001
Location: Atlanta,GA
Distribution: Red Hat, Mandrake
Posts: 66

Rep: Reputation: 15
That would depend on your window manager. If you do a "ls -al" in your "/root" dir (you did say it was on root's desktop?) you should see a ".<something>-desktop" dir. from there you should be able to hunt down your file.
Remember to log in as root or you won't see anything.
HIH
 
Old 02-19-2002, 11:01 AM   #6
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Is there not an old copy in the /etc/X11 directory?

Most editors will save a pre-edited copy of the original in the same directory? If you edited /etc/X11/XF86Config-4, try looking /etc/X11/~XF86Config-4 (or something). If it exists, then try copying it in place of the XF86Config-4 file (i.e. copy over the one without the tilde) and test.
 
Old 02-19-2002, 01:03 PM   #7
trentk
Member
 
Registered: Feb 2002
Location: Senoia,Ga
Distribution: Mandrake 8.1
Posts: 39

Original Poster
Rep: Reputation: 15
Ok thanks for the replies I'm off to try again. Is there not a command that will like display all the files in a directory? Like say if I wanted to know what files are on the desktop of"root" then it would show like home,trash and then the file I saved there?

Update:

Woohoo success. I cd to the X11 directory then ls and it showed me all the files in there. There was a XF86Config-4~ so I just did a cp with that one over the one I changed and presto, I have X back. The greatest feeling is that I didn't let the machine beat me.

Ok so one last question. Is there a "safe" way to get a mousewheel working with KDE?

Thanks again for the replies.

Last edited by trentk; 02-19-2002 at 01:18 PM.
 
Old 02-19-2002, 01:32 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well you "should" be able to use mouseconfig safely, but editing XF86Config-4 directly is ususally the clearest, easiest way to do it.

the basic wheel mouse config is

Section "InputDevice"

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"

EndSection

so you should only need to change (or add) the last two lines. just back up your file and edit it. i know linux can seem very flimsy and breakable at first, but you'l probably find that you'll see it as very robust. like that file controls X, if you screw it up, copy a backup over it, and it'll work.. bosh.
 
Old 02-19-2002, 03:44 PM   #9
trentk
Member
 
Registered: Feb 2002
Location: Senoia,Ga
Distribution: Mandrake 8.1
Posts: 39

Original Poster
Rep: Reputation: 15
Yeah see I thought if the axis mapping was in there the button would work. Anyway here's what mine looks like

identifier mouse1
driver mouse
option protocol mousemanplusPS/2
option /dev/mouse
option zaxismapping 4 5

#chordmiddle is an option for 3 button logitech mice

#option chordmiddle

When I go to control center and then mouse, in the test area I can push the scroll button down and it works but in web pages it won't scroll the page up and down.
 
  


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
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 17 07-12-2016 02:50 AM
Caps Lock & Scroll Lock Flashing thedug Linux - General 6 06-07-2008 09:43 PM
Caps Lock and Num Lock leds dont work! npc Linux - Hardware 2 11-08-2005 10:40 AM
Num, Scroll, Caps/Lock all Lock up Slackware Zamochit Linux - Newbie 0 10-18-2004 07:47 PM
RedHat 9.0 freezes with blinking Caps lock and Scroll lock queen-bee Linux - Software 0 07-30-2004 10:40 PM


All times are GMT -5. The time now is 02:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration