Ubuntu 7.04 and Virtual PC 2007 – Mouse Issue Workaround (sort of)

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:
http://arcanecode.wordpress.com/2007/10/18/installing-ubuntu-710-under-virtual-pc-2007/


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.

[Picture of Ubuntu 7 menus]

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.

[Picture of Keyboard Accessibility window]

Now press the TAB key to get on the Basic tab. Press the RIGHT ARROW key twice to get the Mouse Keys highlighted.

[Picture of Keyboard Accessibility window]

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.

About these ads

52 Responses to “Ubuntu 7.04 and Virtual PC 2007 – Mouse Issue Workaround (sort of)”

  1. Michael Wexler Says:

    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.

  2. The Sean Blog : Ubuntu 7.04 (Feisty Fawn) in Virtual PC 2007 Says:

    [...] Arcane Code (great site BTW) has posted a workaround to allow you to use your keyboard as a mouse here: http://arcanecode.wordpress.com/2007/04/25/ubuntu-704-and-virtual-pc-2007-mouse-issue-workaround-sor… [...]

  3. Gordon Says:

    Hi,
    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

  4. Josia Rocke Says:

    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?

  5. kyleseidel.com » Blog Archive » Gotta Love Comcast Speed Says:

    [...] mode. Cool, that works. Now there is a new problem. The mouse doesn’t work. But there is a way around that using the number pad which sucks juevos on a laptop. Turns out this “little” mouse [...]

  6. Zer0bkps Says:

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

  7. Russ Says:

    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?

  8. h Says:

    Hi there,

    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?

  9. h Says:

    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.

  10. Teddy Says:

    Thanks, that helped me. btw Ubuntu 6.06 doesn’t have this issue.

  11. Top Posts « WordPress.com Says:

    [...] Ubuntu 7.04 and Virtual PC 2007 – Mouse Issue Workaround (sort of) OK, thanks to a suggestion I saw on the Ubuntu forums, I found a workaround for the no mouse issue, of sorts. This […] [...]

  12. Wubu Says:

    For kubuntu, alt-f1, run command, mouse, then tab right right right tab space enter (or something along those lines)

  13. arcanecode Says:

    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.
    –Arcane

  14. Crazy Says:

    How do you apply the patch that John proposes?

    arcanecode >> Your link that should outline the steps is dead?

    - Crazy

  15. arcanecode Says:

    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.

    Arcane

  16. Brendan Says:

    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/

  17. Dee Says:

    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 ?

  18. fsg Says:

    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.

  19. alienduce Says:

    Thank you for your detailed post. Now I have my ubuntu working. I, like Dee, wish to have the scroll wheel working. Any hint?

    Regards.

  20. Cory Foy Says:

    Thanks a bunch! I was trying to track down why the mouse wouldn’t work, and this worked like a charm.

  21. Paul Hickman Says:

    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:

    http://arcanecode.wordpress.com/2007/04/23/ubuntu-704-and-virtual-pc-2007-no-mouse-issue/

  22. Toast Says:

    Thanks Spanky Mcgoo

    Worked like a charm

  23. Guida: Utilizzare il mouse in Virtual PC 2007 con Ubuntu Fiesty Fawn « Nicopi Says:

    [...] Post originale in lingua inglese (Parte 1) Post originale in lingua inglese (Parte 2) [...]

  24. Virtual PC 2007 - Page 2 - Technology Questions: Desktops, Notebooks, Tablet PCs, UMPCs, MID, and Mobile PCs Says:

    [...] working with VPC2007 – you just need to enable the accessibility functions to use MouseKeys (see Arcane Code Ubuntu 7.04 and Virtual PC 2007 – Mouse Issue Workaround (sort of) ) and then add "i8042.noloop" to your boot parameters to stopped having the problem again [...]

  25. LFS, Fiery and Voodoo? « David Remy’s Blog Says:

    [...] was not working at all due to the VM mouse support. I did however find a workaround and a patch here but when I tested VirtualBox I was so pleased that I didn’t want to mess with it [...]

  26. Random bits of Tech » Blog Archive » Problems installing Ubuntu 7.04 on VirtualPC 2007 Says:

    [...] This does not solve all my problems as the mouse refuses to work – evidently this is a much more serious issue. Look this link to find out more about why the mouse pointer won’t work. [...]

  27. EdH Says:

    Does anyone know if the forthcoming Ubuntu 7.10 fixes this?

  28. michael Says:

    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

  29. Robin Says:

    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!

  30. Robin Says:

    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.

    Installed image
    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.

  31. Tim Says:

    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.

  32. -probz- Says:

    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!

  33. arcanecode Says:

    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.

  34. kirel Says:

    To fsg:
    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.

  35. Bob Trembley Says:

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

    help?

  36. Tigger1 Says:

    All,
    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

  37. Virtual PC and Ubuntu « Rhonda Tipton’s WebLog Says:

    [...] Ubuntu 7.04 and Virtual PC 2007 – Mouse Issue Workaround (sort of) [...]

  38. FUNside » Blog Archive » Setting up Linux with Virtual PC Says:

    [...] Ubuntu 7.04 and Virtual PC 2007 – Mouse Issue Workaround (sort of) [...]

  39. Srki Says:

    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…

  40. Максим Says:

    Хм… что-то у меня ссылка не открывается, которую указали. Это у всех так, или только у меня?

  41. Fred Galas Says:

    [..] A bit unrelated, but I rather liked this site post [..]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 100 other followers

%d bloggers like this: