LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Logitech mouse scroll doesn't work on debian 8 in virtualbox (https://www.linuxquestions.org/questions/linux-newbie-8/logitech-mouse-scroll-doesnt-work-on-debian-8-in-virtualbox-4175600695/)

michele_deb 02-27-2017 12:04 PM

Logitech mouse scroll doesn't work on debian 8 in virtualbox
 
Hi folks,
I am a new Debian user, a :newbie:. I am also a new member of the forum.
I have experienced a problem with my wireless mouse (Logitech M185) on my Dedian 8, installed in a Virtual Machine (Virtual box).
When I try to scroll down in a page (browser or editors...), if I do this quickly, the bar goes up even if I want it down! It's a strange problem. If I move the mouse wheel slowly, it seems to work well.
Can you help me, please? Have you a solution for me?
Thanks in advance to all and sorry if I am in the wrong section (I hope no).

jefro 02-27-2017 03:01 PM

Hello and welcome to LQ, michele_deb.

Wonder if it is something like when the wheel drops down to a "click" that changes actions? I have a mouse that the wheel has two features. One is the wheel part and the other is the ability to drop down and click.

Sounds like you are off to a pretty good start if that is all that is wrong. Guess it could be an oddity of how the vm picked up the virtual mouse. Could be timing issue. Could be how the mouse is located on screen as to page down or side scroll deal.

Others may have a better solution.

michele_deb 02-27-2017 03:55 PM

Quote:

Originally Posted by jefro (Post 5676804)
Hello and welcome to LQ, michele_deb.

Wonder if it is something like when the wheel drops down to a "click" that changes actions? I have a mouse that the wheel has two features. One is the wheel part and the other is the ability to drop down and click.

Sounds like you are off to a pretty good start if that is all that is wrong. Guess it could be an oddity of how the vm picked up the virtual mouse. Could be timing issue. Could be how the mouse is located on screen as to page down or side scroll deal.

Others may have a better solution.

Thanks!Well, I get the problem just scrolling up and down the wheel.If I click on the wheel and it drops down, the mouse works regularly, the "circle" appears to move up and down the page.I agree with you regarding the fact that the issue could be related to how the VM picked up the virtual mouse, but I don't have any idea how to fix it. I tried diefferents mouse also, but I got always the same problem.

jefro 02-27-2017 04:20 PM

One report of similar problem. http://superuser.com/questions/93876...x-ubuntu-guest

michele_deb 02-27-2017 05:00 PM

Quote:

Originally Posted by jefro (Post 5676832)

In the link you sent me, they suggest to eject guestaddition.iso and than insert it again...so, I am not sure to have guestaddition installed in my debian guest, in anay case, how can I install it on debian OS guest? (I am on Windows 10)and try to see if it solve the problem?

DVOM 02-27-2017 09:34 PM

Quote:

Originally Posted by michele_deb (Post 5676848)
In the link you sent me, they suggest to eject guestaddition.iso and than insert it again...so, I am not sure to have guestaddition installed in my debian guest, in anay case, how can I install it on debian OS guest? (I am on Windows 10)and try to see if it solve the problem?

Before you even start, be sure you have the correct kernel-headers installed as well as "make" and "gcc".

In your debian guest, go to the "user interface" bar (or whatever it's called) and select "devices" and go down to "insert Guest Addisions CD image" that should put it on your desktop.

Open that up and find "VBoxLinuxAdditions.run". Now open a terminal in that folder (or 'cd" into it) and type "sudo sh VBoxLinuxAdditions.run", That will install it. Depending on if "sudo" doesn't work, first type "su" and hit enter and type your password, then type "sh VBoxLinuxAdditions.run"

I don't know why that one person ejected the GuestAdditions then re-inserted it. Once you have installed it you never have a need for it again.

michele_deb 02-28-2017 06:38 AM

Quote:

Originally Posted by DVOM (Post 5676923)
Before you even start, be sure you have the correct kernel-headers installed as well as "make" and "gcc".

In your debian guest, go to the "user interface" bar (or whatever it's called) and select "devices" and go down to "insert Guest Addisions CD image" that should put it on your desktop.

Open that up and find "VBoxLinuxAdditions.run". Now open a terminal in that folder (or 'cd" into it) and type "sudo sh VBoxLinuxAdditions.run", That will install it. Depending on if "sudo" doesn't work, first type "su" and hit enter and type your password, then type "sh VBoxLinuxAdditions.run"

I don't know why that one person ejected the GuestAdditions then re-inserted it. Once you have installed it you never have a need for it again.

Ok, I'll try it!

michele_deb 02-28-2017 11:21 AM

Quote:

Originally Posted by DVOM (Post 5676923)
Before you even start, be sure you have the correct kernel-headers installed as well as "make" and "gcc".

In your debian guest, go to the "user interface" bar (or whatever it's called) and select "devices" and go down to "insert Guest Addisions CD image" that should put it on your desktop.

Open that up and find "VBoxLinuxAdditions.run". Now open a terminal in that folder (or 'cd" into it) and type "sudo sh VBoxLinuxAdditions.run", That will install it. Depending on if "sudo" doesn't work, first type "su" and hit enter and type your password, then type "sh VBoxLinuxAdditions.run"

I don't know why that one person ejected the GuestAdditions then re-inserted it. Once you have installed it you never have a need for it again.

DVOM, kernel headers and gcc are OK!
After that, I tried and I got two errors:

1) I got an error when I try to "insert" the guestaddition iso in "devices":could not mount the media/drive vboxguestadditions.iso (just a little bit different because I am on windows!) Nevertheless I am able to see the guestaddition in media folder on Debian guest OS.It is strange I know.

2) I moved to media and started a terminal where is the file VBoxLinuxAdditions.run. I have typed the command you wrote to me and I got the following: sh: 0: Can't open VBoxLinuxAdditions.run

What's happened? Should be a problem of permission? (but I open the terminal as root!)

michele_deb 02-28-2017 12:00 PM

Dear friends, I solved the problem!!! I was able to run VBoxLInuxAdditions.run file and guest addittions were installed correctly. Now the mouse scrolling works perfectly and also the OS seems to be more "reactive". Basically the installation of guestaddittions is extremely important.
To run the file above, I have typed the following:

cd /media
mkdir vbox
sudo mount /dev/sr0 vbox/
cd vbox/


Thanks to all!

jefro 02-28-2017 09:07 PM

Great! Glad you fixed it and reported the solution.

Yes, when possible, guest additions (or similar names on other VM's) do generally do what you say. The speed gets faster, better integration.

I did have a Windows 10 client the other day on a linux host that just would not run with guest additions but that may be the first time in a long while it didn't work better.


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