Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] gentoo as vmware guest --> X not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
ats2
Apprentice
Apprentice


Joined: 22 Apr 2005
Posts: 297

PostPosted: Wed Jul 15, 2009 4:27 pm    Post subject: [SOLVED] gentoo as vmware guest --> X not working Reply with quote

Hi,

As I said in the title, I can't get X working for my gentoo guest inside vmware. I have set the video driver to vmware, the mouse to vmmouse, my rc.conf points to gdm, /etc/conf.d/xdm too but when I issue a 'startx', All I get is a x terminal without mouse or keyboard (I have to log via ssh and kill the whole thing to get keyboard back.)
I have set 'exec gnome-session' in .xinitrc too. What's more, I have no error messages in Xorg.0.log or in /var/log/messages.

So I'm stuck here. Any help ? :)

PS : I've checked xf86-input-vmmouse and xf86-video-vmware are installed. They are.


Last edited by ats2 on Thu Jul 16, 2009 4:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
forkboy
Apprentice
Apprentice


Joined: 24 Nov 2004
Posts: 200
Location: Blackpool, UK

PostPosted: Wed Jul 15, 2009 7:08 pm    Post subject: Reply with quote

Is hal running?
Code:
/etc/init.d/hald start
Back to top
View user's profile Send private message
FuzzyRay
Retired Dev
Retired Dev


Joined: 02 Oct 2003
Posts: 79

PostPosted: Wed Jul 15, 2009 8:23 pm    Post subject: Reply with quote

I had to add the following to my Xorg.conf to get keyboard and mouse working correctly for me in the vmware guest.

Code:
Section "ServerFlags"
        Option  "AutoAddDevices"    "false"
EndSection
Back to top
View user's profile Send private message
ats2
Apprentice
Apprentice


Joined: 22 Apr 2005
Posts: 297

PostPosted: Thu Jul 16, 2009 4:43 pm    Post subject: Reply with quote

I needed both actually: hal wasn't started (stupid of me) and the line in xorg.conf was necessary too.
Everything's okay now.
Thanks to you both :D
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sun Oct 11, 2009 6:01 pm    Post subject: Reply with quote

FuzzyRay wrote:
I had to add the following to my Xorg.conf to get keyboard and mouse working correctly for me in the vmware guest.

Code:
Section "ServerFlags"
        Option  "AutoAddDevices"    "false"
EndSection


For me keyboard and mouse were working properly, but mouse was not working in Unity mode. I tried applying this change, and it broke mouse for me, even in normal mode. Is there some way to force xorg to use vmmouse driver?
Back to top
View user's profile Send private message
s4e8
Guru
Guru


Joined: 29 Jul 2006
Posts: 309

PostPosted: Thu Oct 15, 2009 6:14 am    Post subject: Reply with quote

the vmmouse problem is: xf86-input-vmmouse install incorrect hal-probe-vmmouse. the right one is:
Code:

gentoo tmp # cat /usr/libexec/hal-probe-vmmouse
#!/bin/sh
# ................
[ -x /usr/bin/hal-set-property ] || exit 0
[ -x /usr/bin/vmmouse_detect ] || exit 0
/usr/bin/vmmouse_detect
if [ $? -eq 0 ]; then
   (
   for i in 0 1 2 3 4 5 6 7 8 9; do
   /usr/bin/hal-set-property --udi "$UDI" --key input.x11_driver --string "vmmouse"
   sleep 1
   done
   )&
fi

gentoo tmp # lshal -u /org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_logicaldev_input
udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_logicaldev_input'
  info.callouts.add = {'hal-probe-vmmouse'} (string list)
  info.capabilities = {'input', 'input.mouse'} (string list)
  info.category = 'input'  (string)
  info.parent = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port'  (string)
  info.product = 'ImPS/2 Generic Wheel Mouse'  (string)
  info.subsystem = 'input'  (string)
  info.udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_logicaldev_input'  (string)
  input.device = '/dev/input/event1'  (string)
  input.originating_device = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port'  (string)
  input.product = 'ImPS/2 Generic Wheel Mouse'  (string)
  input.x11_driver = 'vmmouse'  (string)
  linux.device_file = '/dev/input/event1'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'input'  (string)
  linux.sysfs_path = '/sys/devices/platform/i8042/serio1/input/input1/event1'  (string)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum