LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-29-2005, 01:43 PM   #1
Monkey 9
Member
 
Registered: Nov 2005
Location: The Netherlands.
Distribution: Debian-Sarge (2.4) / openSuSE 11.0.42 (Linux 2.6.25.9-3-default)/Knoppix 3.9 (2.6) /DSL 4.0.1 (2.4)
Posts: 138

Rep: Reputation: 15
dpkg-reconfigure xserver-xfree86, why?


Hello to all who read this.......

Since I use Debian-Sarge on an old laptop, I see everywhere I look in the forums the same problems.
And I ask me why? Why do we have to answer questions we do not know the answer to, and answering, make everything worse?
While during the install everything is automatically adjusted....
I simply cannot figure this out....

Like the wheel-mouse i didn't have while installing, and wanting to use.......
All my video-adjustments where allright, and now everything is messed up!

I cannot understand why, if you want to change your mouse, you have to reconfigure your xserversettings.....

And if I do, and answer the question about activating the mouse wheel with: 'Yes' , it still does not save it:
Mouse-wheel: 0

Now I only have cli, so donot need the mouse anymore.....
F**k! How can I make things right again?
Total reinstall, just for changing the mouse?

I do not know if some programmers get to see this message...
mouse-emu does not work....
(knoppix recognises any mice)

What is the command for the automated hardware-choice?

xdebconfigurator is not complete, speaks of ddcprobe, which is not available.....

even DSL (Damn Small Linux) recognizes and configures my wheel-mouse without any problem......

But I love my Debian! So probably i will install again, and get better at it every time...

One thing I know for sure: Many people would have less problems if there was better hardware detection assimilated into the debian installer (2.4) or a replacement update that would work.....

Thanks for the attention if you made it trough here......

M9.
 
Old 11-29-2005, 02:25 PM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,771

Rep: Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070
Well, it might be to late for this now, but next time you run dpkg-reconfigure you should back up your original copy of XF86Config file, so you can restore if it goes wrong.
 
Old 11-29-2005, 02:43 PM   #3
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,597

Rep: Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080
Moved: This thread is more suitable in Debian and has been moved accordingly to help your thread/question get the exposure it deserves.

--jeremy
 
Old 11-29-2005, 02:45 PM   #4
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
Yeah definetly back up your xserver config file. Just back up your whole /etc directory while your at it. Just make sure that permissions are set so that just anyone can't read it. There are a lot of sensitive data in there.

I agree that hardware detection is one of the few places where debian is a bit weak. Your problem is probably something to do with the monitor settings. Make sure horiz and vert refresh rates are correct and that you have the right resolution set in XF86Config. Also could the wrong video driver. Also I think there are two config files in there, maybe the right one is something like XF86Config-4. Not at my system right now so I can't say for sure.

Once you get X back up then you can try dpkg-reconfigure to get the mouse set up (but back up the conf file first)
 
Old 11-29-2005, 02:48 PM   #5
Monkey 9
Member
 
Registered: Nov 2005
Location: The Netherlands.
Distribution: Debian-Sarge (2.4) / openSuSE 11.0.42 (Linux 2.6.25.9-3-default)/Knoppix 3.9 (2.6) /DSL 4.0.1 (2.4)
Posts: 138

Original Poster
Rep: Reputation: 15
well,

I reconfigured, and reconfigured until the job was done.
Videosettings are allright...
But the wheel on my mouse still doesn't work......

M9.


Last edited by Monkey 9; 11-29-2005 at 02:53 PM.
 
Old 11-29-2005, 03:34 PM   #6
Monkey 9
Member
 
Registered: Nov 2005
Location: The Netherlands.
Distribution: Debian-Sarge (2.4) / openSuSE 11.0.42 (Linux 2.6.25.9-3-default)/Knoppix 3.9 (2.6) /DSL 4.0.1 (2.4)
Posts: 138

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by ssfrstlstnm
Yeah definetly back up your xserver config file. Just back up your whole /etc directory while your at it. Just make sure that permissions are set so that just anyone can't read it. There are a lot of sensitive data in there.

I agree that hardware detection is one of the few places where debian is a bit weak. Your problem is probably something to do with the monitor settings. Make sure horiz and vert refresh rates are correct and that you have the right resolution set in XF86Config. Also could the wrong video driver. Also I think there are two config files in there, maybe the right one is something like XF86Config-4. Not at my system right now so I can't say for sure.

Once you get X back up then you can try dpkg-reconfigure to get the mouse set up (but back up the conf file first)
Yep you are all right in this....(sigh)....
But as the kamikaze I am, dpkg-reconfigure is in my backpocket! (allmost..(!)
 
Old 11-29-2005, 03:53 PM   #7
Monkey 9
Member
 
Registered: Nov 2005
Location: The Netherlands.
Distribution: Debian-Sarge (2.4) / openSuSE 11.0.42 (Linux 2.6.25.9-3-default)/Knoppix 3.9 (2.6) /DSL 4.0.1 (2.4)
Posts: 138

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jeremy
Moved: This thread is more suitable in Debian and has been moved accordingly to help your thread/question get the exposure it deserves.

--jeremy
I humbly accept the changes to the better.....

tnx....
 
Old 11-29-2005, 04:00 PM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Why reconfigure the entire x-server just to tweak the mouse settings a little..

break out your text editor (vim, emacs, nano, pico or whatever ), backup the config file ( /etc/X11/XFree86-4.conf or /etc/X11/xorg.conf ) and edit the mouse settings manually. the configureation script is for quick and dirty setup I've always tweaked the file after setup was complete to correct the monitor settings, available resolutions or mouse settings. the config script settings worked but were not exactly what I wanted..


and yes the hardware support in the 2.4 kernel is weak, which is why I install Debian with the 2.6 kernel by using the linux26 option at the boot prompt during install...
 
Old 11-29-2005, 04:09 PM   #9
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Mouse wheel doesn't work? Open a terminal window, type "su" to become root and then type "nano /etc/X11/XF86Config-4". This will open the X configuration file in a text editor called "nano". Then you can scroll the page down with arrow key until you see this text: Section "InputDevice".
In my X configuration file that section looks like this:
Code:
Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "false"
        Option          "ZAxisMapping"          "4 5"
EndSection
The line that mentions ZAxisMapping is the one that enables mouse wheel. If your XF86Config-4 misses that line, then you can copy the line from the above example. After editing the file, hit "Ctrl" and "x" keys simultaneously to exit the text editor and then press "y" and "Enter" to save the edited file. You need to restart X server before changes take effect (just hit "Ctrl", "Alt" and "Backspace" keys at the same time).
 
Old 11-29-2005, 04:47 PM   #10
Monkey 9
Member
 
Registered: Nov 2005
Location: The Netherlands.
Distribution: Debian-Sarge (2.4) / openSuSE 11.0.42 (Linux 2.6.25.9-3-default)/Knoppix 3.9 (2.6) /DSL 4.0.1 (2.4)
Posts: 138

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by farslayer
Why reconfigure the entire x-server just to tweak the mouse settings a little..

break out your text editor (vim, emacs, nano, pico or whatever ), backup the config file ( /etc/X11/XFree86-4.conf or /etc/X11/xorg.conf ) and edit the mouse settings manually. the configureation script is for quick and dirty setup I've always tweaked the file after setup was complete to correct the monitor settings, available resolutions or mouse settings. the config script settings worked but were not exactly what I wanted..


and yes the hardware support in the 2.4 kernel is weak, which is why I install Debian with the 2.6 kernel by using the linux26 option at the boot prompt during install...
Helas, for my Pll 366 Celeron 'Mendocino', was 2.6 not an option, if you understand what I mean....

Thanks for your reply though....
 
Old 11-29-2005, 04:54 PM   #11
Monkey 9
Member
 
Registered: Nov 2005
Location: The Netherlands.
Distribution: Debian-Sarge (2.4) / openSuSE 11.0.42 (Linux 2.6.25.9-3-default)/Knoppix 3.9 (2.6) /DSL 4.0.1 (2.4)
Posts: 138

Original Poster
Rep: Reputation: 15
Talking

Quote:
Originally posted by Dead Parrot
Mouse wheel doesn't work? Open a terminal window, type "su" to become root and then type "nano /etc/X11/XF86Config-4". This will open the X configuration file in a text editor called "nano". Then you can scroll the page down with arrow key until you see this text: Section "InputDevice".
In my X configuration file that section looks like this:
Code:
Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "false"
        Option          "ZAxisMapping"          "4 5"
EndSection
The line that mentions ZAxisMapping is the one that enables mouse wheel. If your XF86Config-4 misses that line, then you can copy the line from the above example. After editing the file, hit "Ctrl" and "x" keys simultaneously to exit the text editor and then press "y" and "Enter" to save the edited file. You need to restart X server before changes take effect (just hit "Ctrl", "Alt" and "Backspace" keys at the same time).
Thank you for this advice, I am allmost sure this'll work!
I will get back here to tell you that this (hopefully) most valuable input did the trick!

(y're name reminds me of Monty Python Flying Circus: 'Hey Miss, I want to make a complaint: The Parrot you sold me, is an ex....etc..)
 
Old 11-29-2005, 05:42 PM   #12
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
apt-cache search linux-image
linux-image-2.6-386 - Linux kernel 2.6 image on 386-class machines
linux-image-2.6-686 - Linux kernel 2.6 image on PPro/Celeron/PII/PIII/P4 machines
linux-image-2.6.14-2-386 - Linux kernel 2.6.14 image on 386-class machines
linux-image-2.6.14-2-686 - Linux kernel 2.6.14 image on PPro/Celeron/PII/PIII/P4 machines

I don't see any reason it wouldn't work on a celeron....
 
Old 11-30-2005, 03:59 AM   #13
Monkey 9
Member
 
Registered: Nov 2005
Location: The Netherlands.
Distribution: Debian-Sarge (2.4) / openSuSE 11.0.42 (Linux 2.6.25.9-3-default)/Knoppix 3.9 (2.6) /DSL 4.0.1 (2.4)
Posts: 138

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by farslayer
apt-cache search linux-image
linux-image-2.6-386 - Linux kernel 2.6 image on 386-class machines
linux-image-2.6-686 - Linux kernel 2.6 image on PPro/Celeron/PII/PIII/P4 machines
linux-image-2.6.14-2-386 - Linux kernel 2.6.14 image on 386-class machines
linux-image-2.6.14-2-686 - Linux kernel 2.6.14 image on PPro/Celeron/PII/PIII/P4 machines

I don't see any reason it wouldn't work on a celeron....
Maybe because the version I've downloaded doesn't support something..
I tried this option, but could not connect to download the nessesary files...
So I quit the install....and choose 24...

2.4 with Icewm is realy small and fast! I do not want to loose this speed, and the space, I only have 4,5 Gig HD.
I am used to AMD 2800+ Athlon 64 bit (1802MHz), and PlV 1,8 GHz. I use 2.6 Kernells there, SuSE 10.0, and Knoppix 3.9. And I must say that DSL 2.0.1 also uses 2.4, looks good, and is incredibly fast on this old and slow machine...its a 386 version though....

And I would also have to reinstall everything?

linux-image-2.6.14-2-386 - Linux kernel 2.6.14 image on 386-class machines,

should have to work. I will download this image, burn it, and see what happens.
I can allways fall back if it doesn't......
 
Old 11-30-2005, 05:20 AM   #14
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
I don't know very much about kernels, but I do know that you do not have to reinstall Debian (ie, "everything") to update to a new kernel.

I also can't resist making a comment about your initial complaint. I don't see how you could possibly have been searching the forums much if you haven't yet run across DeadParrot's solution. This seems to be one of the most frequently asked and answered questions around. By reading here and searching Google I've managed now to configure my 7-button MS IntelliMouse Optical to not only scroll, but also to use "forward" and "back" in many applications such as Firefox. (That's why I use "6 7" instead of "4 5" for ZAxisMapping.)

I seldom ever run dpkg-reconfigure to make changes. I have several backups of /etc/X11/XF86Config-4 and am accumulating plenty of comments, because I have been editing the file a lot and inserting comments so that I don't forget what I changed and why.

Below I've pasted the settings I'm currently using for my mouse. Keep in mind that this is a Microsoft Intellimouse Optical, and you may have to change it for your mouse. Notice that I've made other changes in the past that are now commented out, namely "Configured Mouse" and "Generic Mouse". You need to know that when you change the Identifier entry (in this case I changed it to "IntelliMouse Optical"), you need to also modify the corresponding entry in Section "Server Layout" near the end of the file.
Code:
Section "InputDevice"
        Identifier      "IntelliMouse Optical"
        Driver          "mouse"
        Option          "CorePointer"
        # Option        "Device"                "/dev/mouse"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        # Option        "Emulate3Buttons"       "false"
        Option          "Buttons"               "7"
        Option          "ZAxisMapping"          "6 7"
EndSection
#Section "InputDevice"
#       Identifier      "Configured Mouse"
#       Driver          "mouse"
#       Option          "CorePointer"
#       Option          "Device"                "/dev/psaux"
#       Option          "Protocol"              "ImPS/2"
#       Option          "Emulate3Buttons"       "true"
#       Option          "ZAxisMapping"          "4 5"
#EndSection
#Section "InputDevice"
#       Identifier      "Generic Mouse"
#       Driver          "mouse"
#       Option          "SendCoreEvents"        "true"
#       Option          "Device"                "/dev/input/mice"
#       Option          "Protocol"              "ImPS/2"
#       Option          "Emulate3Buttons"       "true"
#       Option          "ZAxisMapping"          "4 5"
#EndSection
Making these changes sometimes caused X to fail to load. When that happened, I would simply log in to the terminal as root and try something else, using older backed-up XF86Config-4 files for comparison. I discovered this way that the Option "CorePointer" entry is necessary.

Here are a couple of hints for configuring a 7-button mouse, just in case you are using or will in the future use an Intellimouse. There is a pretty good and simple guide here:
http://dotnet.org.za/matt/articles/39097.aspx

I followed these instructions successfully, but not without trial and error. The 63xmodmap file (I had to create one) was giving me an error, so I deleted it and tried the commands at the prompt. Upon entering $BINARY -k -p -b "6 7" it said that the -p switch was deprecated, so I removed it. (Btw, I learned through this excercise that BINARY is being used as a variable that stands for imwheel in this case.) I also found some other references that listed "67" instead of "6 7", so I tried that. Now it works. Here is the content of my newly created file:
Code:
$ cat /etc/X11/Xsession.d/63xmodmap 
killall imwheel
xmodmap -e "pointer = 1 2 3 6 7 4 5"
BINARY=$(which imwheel)
At no time in all of this did I use dpkg-reconfigure to implement changes.
 
Old 11-30-2005, 06:27 AM   #15
Monkey 9
Member
 
Registered: Nov 2005
Location: The Netherlands.
Distribution: Debian-Sarge (2.4) / openSuSE 11.0.42 (Linux 2.6.25.9-3-default)/Knoppix 3.9 (2.6) /DSL 4.0.1 (2.4)
Posts: 138

Original Poster
Rep: Reputation: 15
Talking

Quote:
Originally posted by michapma
I don't know very much about kernels, but I do know that you do not have to reinstall Debian (ie, "everything") to update to a new kernel.

I also can't resist making a comment about your initial complaint. I don't see how you could possibly have been searching the forums much if you haven't yet run across DeadParrot's solution. This seems to be one of the most frequently asked and answered questions around.


I joined this forum yesterday, and I have to get used to read very much, and carefull, and take more time than I am used to..... I appologize for not knowing certain things yet, but I am very willing and able to learn......

Quote:
By reading here and searching Google I've managed now to configure my 7-button MS IntelliMouse Optical to not only scroll, but also to use "forward" and "back" in many applications such as Firefox. (That's why I use "6 7" instead of "4 5" for ZAxisMapping.)

I am very thankfull for this tip, because I own one on my Knoppix 3.9, which is as you will know also Debian..
Quote:
I seldom ever run dpkg-reconfigure to make changes. I have several backups of /etc/X11/XF86Config-4 and am accumulating plenty of comments, because I have been editing the file a lot and inserting comments so that I don't forget what I changed and why.

Yes mistakes have to be made, else there will be no progress.....for me there's yet much to learn, luckily....
Quote:
Below I've pasted the settings I'm currently using for my mouse. Keep in mind that this is a Microsoft Intellimouse Optical, and you may have to change it for your mouse. Notice that I've made other changes in the past that are now commented out, namely "Configured Mouse" and "Generic Mouse". You need to know that when you change the Identifier entry (in this case I changed it to "IntelliMouse Optical"), you need to also modify the corresponding entry in Section "Server Layout" near the end of the file.
Code:
Section "InputDevice"
        Identifier      "IntelliMouse Optical"
        Driver          "mouse"
        Option          "CorePointer"
        # Option        "Device"                "/dev/mouse"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        # Option        "Emulate3Buttons"       "false"
        Option          "Buttons"               "7"
        Option          "ZAxisMapping"          "6 7"
EndSection
#Section "InputDevice"
#       Identifier      "Configured Mouse"
#       Driver          "mouse"
#       Option          "CorePointer"
#       Option          "Device"                "/dev/psaux"
#       Option          "Protocol"              "ImPS/2"
#       Option          "Emulate3Buttons"       "true"
#       Option          "ZAxisMapping"          "4 5"
#EndSection
#Section "InputDevice"
#       Identifier      "Generic Mouse"
#       Driver          "mouse"
#       Option          "SendCoreEvents"        "true"
#       Option          "Device"                "/dev/input/mice"
#       Option          "Protocol"              "ImPS/2"
#       Option          "Emulate3Buttons"       "true"
#       Option          "ZAxisMapping"          "4 5"
#EndSection
Making these changes sometimes caused X to fail to load. When that happened, I would simply log in to the terminal as root and try something else, using older backed-up XF86Config-4 files for comparison. I discovered this way that the Option "CorePointer" entry is necessary.

Here are a couple of hints for configuring a 7-button mouse, just in case you are using or will in the future use an Intellimouse. There is a pretty good and simple guide here:
http://dotnet.org.za/matt/articles/39097.aspx

I followed these instructions successfully, but not without trial and error. The 63xmodmap file (I had to create one) was giving me an error, so I deleted it and tried the commands at the prompt. Upon entering $BINARY -k -p -b "6 7" it said that the -p switch was deprecated, so I removed it. (Btw, I learned through this excercise that BINARY is being used as a variable that stands for imwheel in this case.) I also found some other references that listed "67" instead of "6 7", so I tried that. Now it works. Here is the content of my newly created file:
Code:
$ cat /etc/X11/Xsession.d/63xmodmap 
killall imwheel
xmodmap -e "pointer = 1 2 3 6 7 4 5"
BINARY=$(which imwheel)
At no time in all of this did I use dpkg-reconfigure to implement changes.


I am glad the path is shown now, changes only have to be made if nessesary, and if one don't, he/she's allways confronted with shortage, and annoyance...
In my family, there are many machines, using all kind of OS's, network works, most of the time......
I have put my two sons on the path years ago, now they're also slowly turning from windows..
In my house everybody owns a laptop, (including my wife), and there are two desktops, AMD and P4, Home network owns about 250Gig. Maintaining all this takes time..
The Toshiba Satellite-2550CDT, subject of this thread, is mine, so all spare-time is used to get experienced, and skilled. To be armed for my hobby: Turning people of windows, towards Linux. (I am old Amiga-user, turned to windows in '95....
And let me tell you: Two decades of MS is more than enough! I was Lost+Found)......

Now the fun is back again! Adjusting EVERYTHING the way I want...

Last edited by Monkey 9; 11-30-2005 at 06:34 AM.
 
  


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
dpkg-reconfigure xserver-xfree86 HooX Linux - Newbie 6 01-10-2005 05:35 PM
dpkg-reconfigure xserver-xfree86 Advanced Now? elias4444 Debian 1 11-03-2004 06:27 PM
dpkg-reconfigure ethenconf ain't workin' sockknitter Debian 5 09-12-2004 04:18 PM
dpkg-reconfigure xserver doesnt save changes short101 Debian 5 09-06-2004 09:41 AM
dpkg-reconfigure xserver-xfree86 can't update XF86Config-4 file. lsj Linux - Newbie 1 03-27-2004 02:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:41 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
Open Source Consulting | Domain Registration