LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-21-2005, 03:38 PM   #1
madiyaan
Member
 
Registered: Apr 2003
Posts: 69

Rep: Reputation: 15
mouse third button scroll problem/ reboot command help


hey all,
i'm running fedora core 3 linux with Gnome as my default window manager and it's running pretty smooth. I just have two questions related to this... rather annoyances that I want to fix.
The first one relates to the third button of the mouse. In windows, if you press this button, a round scroll-button appears on the screen and if you move your mouse relative to that, you can scroll the page left-right and up-down. In linux, though, this doesn't happen. Does anyone have any idea how to fix this? I went into the mouse settings in the gnome configuration GUI, but I couldn't find the option to do this.
The second is concerning the reboot command. I have a dual-boot system and I want to issue the reboot command from linux such that the next time it boots, it automatically selects windows and boots in windows. (if you don't press a key, my computer default boots into linux). I've tried reeboot -image windows, but that doesn't work. i know that there is a way to do this, cause if you reboot using the GUI, it gives you an option of rebooting in windows mode (it must be issuing a command in the background with the appropriate parameters).
Please help me with these problems, linux gurus.
THanks, and warmest regards,
 
Old 02-21-2005, 04:17 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
"Does anyone have any idea how to fix this?"

What leads you to believe that this is 'broken' behaviour? IAC, does the scroll button work at all (i.e. can you roll it to at least scroll up and down?). If not then you need to add "Option" "ZAxisMapping" "4 5" to the mouse section of your /etc/X11/xorg.conf (or xf86config) file.
 
Old 02-21-2005, 05:07 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Try pressing the [CTRL] or [ALT] key while moving the mouse wheel. It may cause the window to move left<->right. This may depend on how the mouse is setup in your XF86Config.

You could change the default in your lilo.conf (lilo) or menu.lst (grub) file. If you change the lilo.conf file you need to rerun /sbin/lilo as root.

You haven't mentioned which session manager you are referring to. It may use the 'rdev' command or something similar to change the default setting on the fly. However, this can be a dangerous way of doing things, and rdev isn't recommended for newer kernels.

Sample Grub menu.lst extract
default 0
timeout 8

title linux
kernel (hd0,4)/vmlinuz root=/dev/hda7 vga=791
initrd (hd0,4)/initrd
title windows
chainloader(hd0,0)+1

In this example, changing the default from 0 to 1 will result in windows being booted by default.

You could make two copies of this file, lets name them menu.linux and menu.windows, which differ only in the default entry.

Then to make things convenient, you could have a script that copies one or the other to menu.lst. This would need to be done as root, which makes things less convenient unless you add a sudo entry (using visudo) allowing you to do this.

Using the Session Manager, it you want to change the setting on the fly would still be the most convenient.

One other option exists for some computers if you have windows on one drive and linux on the other. Let's suppose that Windows XP is installed on /dev/hda (C:\) normally, and that Linux is installed on /dev/hdb with lilo or grub installed to /dev/hdb.
You can select your default boot device in bios. Your bios may have a quick select key that you can press to select the booting device on the fly.
This would be a method you could use if another user of the computer didn't want to be bothered with a linux menu entry. ( Such as if he or she were a Microsoft employee )
 
Old 02-22-2005, 02:56 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Earlier, I wasn't at my Linux computer.

Shift-wheel will go forward-back in history.
Wheel alone goes up and down.
Control-wheel text larger/smaller.

What you are seeing in windows is the Logitech windows driver program, so I wouldn't call not having it a defect to be fixed. The options are just different. I don't care for the windows Logitech driver myself, because I to often accidently activate it, and using the wheel without it in windows still gets you up and down.

For comparison, here is my input device section from /etc/X11/XF86Config:
Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Buttons" "5"
Option "Device" "/dev/input/mice"
Option "Name" "Autodetection"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
EndSection


Some programs such as kuickshow may behave differently and scroll left<->right if you press one of the control keys while moving the mouse wheel.

Last edited by jschiwal; 02-22-2005 at 06:04 PM.
 
Old 03-16-2005, 12:36 AM   #5
madiyaan
Member
 
Registered: Apr 2003
Posts: 69

Original Poster
Rep: Reputation: 15
Thank you for your reply, but you did not address any questions in my earlier post (sorry if I was cryptic in my first post). Here are my questions again:

1) If you CLICK and HOLD the middle mouse button in Windows, it will scroll the screen according to the position of the mouse relative to it's position when the middle button was first pressed. It also displays a small circle on the screen where the original mouse position was when the middle button was pressed. I haven't seen this behaviour in any Linux installation.

2) My KDE session manager does not change grub/lilo settings on the fly. This I can say because the default installation isn't changed when I reboot my computer again.
I'm in KDE, let's say and I click on restart in Windows. The computer restarts in Windows mode. When I restart again, it doesn't restart in Windows, but shows the old lilo menu with the same default image and time-out value (in seconds).

GURUS: Is there a way to issue a reboot command so my computer will restart in Windows? I say this cause I want to remotely ssh into my machine and issue this command and restart in Windows, while keeping my default image as Linux so I can go into Linux from within Windows (using Remote Desktop) by restart.

I hope I have explained my problems thoroughly without any doubt. If not, then please let me know. Sorry about my English, as it is not my native language.

Regards,
 
Old 03-16-2005, 10:13 AM   #6
RockmanExe
Member
 
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Rep: Reputation: 30
@madiyaan:

This is not a solution, but a comment to support what you're asking.
About 1) I know it's possible, since it was the behavior the mouse had by clicking on the middle button within Firefox, This was in Mandrake 10.0, a small circle appeared and the screen scrolled up and down though, not sideways.
Now on Slackware 10.1 when i click the middle mouse from Firefox, it loads the home page, which i don't like

Regards
 
  


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
Mouse Scroll Button doesn't work with Logitech PS/2 MOuse. duffmckagan Slackware 10 12-02-2008 11:27 PM
3 button mouse (scroll button) Spyiish Slackware 24 07-23-2005 01:37 PM
Configuring my mouse scroll button. slackware1299 Slackware 25 04-14-2005 09:38 PM
Mouse scroll button Kernel 2.6.5 Slackware 2 05-18-2004 11:50 PM
mouse scroll button ? johnyy Linux - Software 1 09-16-2003 12:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:37 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