LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mouse third button scroll problem/ reboot command help (https://www.linuxquestions.org/questions/linux-newbie-8/mouse-third-button-scroll-problem-reboot-command-help-293114/)

madiyaan 02-21-2005 03:38 PM

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,

Komakino 02-21-2005 04:17 PM

"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.

jschiwal 02-21-2005 05:07 PM

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 :) )

jschiwal 02-22-2005 02:56 AM

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.

madiyaan 03-16-2005 12:36 AM

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,

RockmanExe 03-16-2005 10:13 AM

@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


All times are GMT -5. The time now is 03:22 AM.