Update: October 18, 2007 – Ubuntu 7.10 was released, the install for it is a bit more straight forward. If you haven’t installed 7.04 yet, I’d suggest giving 7.10 a try. Complete instructions here:
Update: A reader named John posted a link to a fix, see my post on May 17 (http://shrinkster.com/p2w) for full details. But keep reading this post, as you’ll need the info here to implement the fix. OK, thanks to a suggestion I saw on the Ubuntu forums, I found a workaround for the no mouse issue, of sorts. This won’t give you the mouse back, but it will let you use Ubuntu 7.04 using keyboard control.
First, let me take a second to explain what the issue is. There was a bug in the kernel code that affected many different distros of Linux. Apparently the kernel was not finding PS/2 style mice. Some work has been done and now most PS/2 style mice are now being found.
Except, sadly for the ones being emulated. Both VMWare and VirtualPC emulate a PS/2 style mouse, and are not getting found by the kernel. Remember, it doesn’t matter what type of mouse you have hooked up to the host box (I have two mice, a Logitech MediaPlay and Microsoft Travel mouse, both USB). It only matters what the virtual machine is telling the guest OS (Ubuntu), which is PS/2 style mouse.
OK, that explained let’s play with Ubuntu some. Fire up Virtual PC, then use the CD menu to either capture an ISO image or capture the CD Drive you have the Ubuntu Desktop disk in.
When the menu appears, select “Start Ubuntu in Safe Graphics Mode” by hitting the down arrow once and pressing Enter. If you fail to do this, you’ll get garbled graphics.
Once Ubuntu gets fully loaded, press the left ALT key plus F1 (Left ALT+F1, remember VPC takes over the right ALT). This should highlight the Applications menu. Press the right arrow twice to System, then down once to Preferences. Now press the right key once to get to Accessibility, then right again. Finally go down to Keyboard Accessibility and press ENTER.
When the Keyboard Accessibility Preferences window appears, you should already be on the “Enable keyboard accessibility features”. (You can tell you’re on it because of the little ‘dancing ants’ rectangle around it.) Just press the SPACE BAR to check this on, as you see below.
Now press the TAB key to get on the Basic tab. Press the RIGHT ARROW key twice to get the Mouse Keys highlighted.
Press TAB again to get to the “Enable Mouse Keys” and press the SPACE BAR to check it on. Now tab on down to the Close button and press ENTER.
What you just did was turn the numeric keypad into your mouse. When you press left (number 4 ), the mouse moves left, press the up arrow (number 8 ) mouse goes up, and so on. The angles work, pressing 7 (the home key on my keypad) moves up and to the left, for exampe. Finally, the number 5 key works as the mouse click.
One thing to be aware of, these only work with the numeric keys. It will not work with the standard arrow keys. Laptop owners with compact keyboards are in for a painful experience, you’ll have to hit NUMLOCK to activate the mouse, then turn Numlock off to be able to type letters again.
Well there you go, a way you can use Ubuntu 7.04 in Virtual PC 2007. Not the greatest solution, but might work for you until the kernel issue gets fixed.
I’d like to give credit where it’s due, in reading through the Ubuntu forums I saw someone suggest using keyboard accessibility to work around the no mouse issue. After playing with it some, I decided it was worth documenting and hence this post. I’d like to give credit but haven’t found the original post since then, so if someone happens to notice it in the forums please let me know so I can give credit for the idea to the original poster.
51 thoughts on “Ubuntu 7.04 and Virtual PC 2007 – Mouse Issue Workaround (sort of)”
I first saw this suggested by Tod Pike in the bug https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/87262/comments/6 but don’t know if that was the first mention.
I am no computer geek by any stretch of the imaginination, but I was shown UBUNTU yesterday by a friend of mine (who is into IT ) and have decided to partition my windows and use Linux and download UBUNTU so although it may take a while to understand I will be back to your site frequently. many thanks
Well, it works. I’m a noob at Linux, but the network admin for a large church. Testing things out…native mouse features would be good. BTW, is there any vmadditions?
the mouse trick isn’t so bad on a lappy, some allow you to hold the FN button and press the corresponding number key without having to turn on the number lock, like my Dell Xps 😉
How can this be done on Kubuntu?
I’ve managed to use Alt+F1, etc. to get to system settings but I can’t seem to select anything from that point on using the keyboard (seems to be a weakness of KDE).
Is there any way accessibility options can be run from Konsole?
It’s rather strange it doesn’t work for me, even though I’m following your directions to the letter. I get the setting dialogs and everything, but the numeric keyboard just won’t move the mouse anywhere. It’s not the first set-back I’ve had with Ubuntu though :(.
It’s all very strange since I’m using MS Virtual PC 2007 and 7.04 of Ubuntu, and my keyboard is a regular Logitech UltraX Media Keyboard. Any ideas?
Me again: it just didn’t work before I had installed it to the virtual harddrive, for some reason. Plus now, DHCP connecting to the internet doesn’t work: if I set IP and everything from ipconfig in Windows, then Windows loses the connection. Hmm. Wonderful.
Thanks, that helped me. btw Ubuntu 6.06 doesn’t have this issue.
For kubuntu, alt-f1, run command, mouse, then tab right right right tab space enter (or something along those lines)
Here is a patch that fixed the problem for me.
Thanks for the link John, I just tested it and it worked great.
Everyone, please see my post for May 17 at http://shrinkster.com/p2w , it outlines what I did to install the patch.
How do you apply the patch that John proposes?
arcanecode >> Your link that should outline the steps is dead?
Lige meget fandt hen til din side via dette link:
– Crazy 🙂
Sorry Crazy, for some reason the comment decided the comma after the p2w was part of the link. I edited the comment to put a space after the p2w, should work OK now. Thanks for the catch.
to enable the number keypad as a mouse in kde simply press Shift+NumLock
There are also a couple of other methods here: http://dot.kde.org/1011980732/1011993769/
thanks for the workaround ! Mouse is working… Now I wish that the scroll wheel worked. Got use to having that feature while in my browser… any hints ?
I know the discussion is about ms virtual pc (2007) – just needed an alternative to all this hassle 🙂 . I had the same issues with graphics, mouse and keyboard drivers. Plus that MS VPC 2007 seamed a bit slow for my likeing, so I replaced it with InnoTek VirtualBox (also free), and runs like a charm. (didn’t have to boot in safe graphics mode, had mouse and keyboard right away) Plus I can allocate up to 128M to the Ubuntu graphics.
Thank you for your detailed post. Now I have my ubuntu working. I, like Dee, wish to have the scroll wheel working. Any hint?
This fix the mouse problem for me.
Thanks a bunch! I was trying to track down why the mouse wouldn’t work, and this worked like a charm.
I resovled the mouse problems without the need for a patch – all that is necessary is to add an option to the kernel when booting – see my comment on the original post:
Thanks Spanky Mcgoo
Worked like a charm
I have translate yours post in Italian. Thanks
Does anyone know if the forthcoming Ubuntu 7.10 fixes this?
Hi, there is an easier solution for the no mouse problem on the ubuntu site, that worked for me. You just have to add a kernel boot parameter: https://help.ubuntu.com/community/HowToConfigureUbuntuForMicrosoftVirtualPC2004#head-524e61921cc473b8ce0c16f5b57f105d72435c8a
Michael’s sollution worked! Just add the extra parameter at the end of the boot line and the mouse will work in Virtual PC 2007!
This is the solution:
Captured Live CD
Press F6 to access the Boot Options line.
Type i8042.noloop at the end of the line.
Press enter to accept the changes and then press enter again to boot.
At boot press the Esc key enter the grub menu screen.
Make sure your kernel boot line is selected.
Press e to edit the kernel boot line.
Type i8042.noloop at the end of the line.
Press enter to accept the changes and then b to boot.
Once logged into Ubuntu, open the /boot/grub/menu.lst as root.
Add i8042.noloop to the end of the kernel boot lines.
Thanks so much! Your instructions are so helpful and I appreciate you posting this so quickly. Just got a new PC and install VPC 2007 and Ubuntu 7.10 on it and this helped me getting up and running quickly.
I can’t use the mouse even though I start the Ubuntu 7.04 in safe graphics mode.and when i press ALT+F1 nothing happens.I need help asap!
Probz – See my post on installing Ubuntu 7.10, the same instructions for it should work on 7.04. Link is over on the left under Top Posts. Specifically what you need is the i8042.noloop fix.
If you ever see this post, thank you very much for the note about “innotek VirtualBox”. I had never heard of it before, but it seems to be very well done. MUCH faster than Microsoft Virtual PC 2007, as well as more customizable, and I had no problems installing Ubuntu 7.10 (mouse works, graphics work, etc.).
I am quite impressed.
After I’ve entered the i8042.noloop, I press Enter and NOTHING happens.
ALL other keys seem to work fine – arrows, F-Keys, but Enter refuses to do anything…..
I am new to ubantu and VPC.At the install screen 6/7 I can only enter one password I can not go to the 2nd password field with tab or right arrow. Consequently I can not proceed with the install.
Would be grateful if some one can help
My friend has just set me up to use joy pad (Sony-like for comp) instead of the keyboard…Sadly he is just smilleing and doesn’t want to tell me how…I bet it’s something simple…
Хм… что-то у меня ссылка не открывается, которую указали. Это у всех так, или только у меня?
[..] A bit unrelated, but I rather liked this site post [..]