All of lore.kernel.org
 help / color / mirror / Atom feed
* X-server problem using sdl with nvidia graphics
@ 2011-03-04  8:15 Juergen Gross
  2011-03-07 15:59 ` Stefano Stabellini
  0 siblings, 1 reply; 5+ messages in thread
From: Juergen Gross @ 2011-03-04  8:15 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

Hi,

I'm playing a little bit with Windows domU on Xen. My machine is a Notebook
with a nvidia card:

01:00.0 VGA compatible controller: nVidia Corporation G96M [Quadro FX 770M] 
(rev a1)

Xen is Xen 4.0.1 from SLES 11 SP1, Xserver is xorg 7.4-27.19.19.
When I use vnc as console for the domU, everything is okay. Using sdl will
blank my screen as soon as the domain is started and the sdl window should
appear. I can get the X screen again via switching to text console and back,
but the sdl window isn't there.
Starting the domain with sdl using an external DISPLAY works okay.

Has anybody seen this problem?
Any ideas how to solve it?

I tried with nv driver from SLES and nvidia driver from nvidia.com. Both
failed.

Guest configuration:

import os, re
arch = os.uname()[4]
if re.search('64', arch):
     arch_libdir = 'lib64'
else:
     arch_libdir = 'lib'
kernel = "/usr/lib/xen/boot/hvmloader"
device_model = '/usr/lib' + '/xen/bin/qemu-dm'
builder='hvm'
memory = 4096
shadow_memory = 32
name = "Win"
vif = [ 'type=ioemu, bridge=extbr1', 'type=ioemu, bridge=intbr1' ]
disk = [ 'phy:/dev/sda,ioemu:hda,w' ]
boot="c"
vcpus=1
acpi=1
apic=1
sdl=1
vnc=0
vncconsole=0
vncviewer=0
vncpasswd=''
vnclisten="0.0.0.0"
stdvga=0


Juergen

-- 
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@ts.fujitsu.com
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: X-server problem using sdl with nvidia graphics
  2011-03-04  8:15 X-server problem using sdl with nvidia graphics Juergen Gross
@ 2011-03-07 15:59 ` Stefano Stabellini
  2011-03-14  7:34   ` Juergen Gross
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Stabellini @ 2011-03-07 15:59 UTC (permalink / raw)
  To: Juergen Gross; +Cc: xen-devel@lists.xensource.com

On Fri, 4 Mar 2011, Juergen Gross wrote:
> Hi,
> 
> I'm playing a little bit with Windows domU on Xen. My machine is a Notebook
> with a nvidia card:
> 
> 01:00.0 VGA compatible controller: nVidia Corporation G96M [Quadro FX 770M] 
> (rev a1)
> 
> Xen is Xen 4.0.1 from SLES 11 SP1, Xserver is xorg 7.4-27.19.19.
> When I use vnc as console for the domU, everything is okay. Using sdl will
> blank my screen as soon as the domain is started and the sdl window should
> appear. I can get the X screen again via switching to text console and back,
> but the sdl window isn't there.
> Starting the domain with sdl using an external DISPLAY works okay.
> 
> Has anybody seen this problem?
> Any ideas how to solve it?
> 
> I tried with nv driver from SLES and nvidia driver from nvidia.com. Both
> failed.
> 
> Guest configuration:
> 
> import os, re
> arch = os.uname()[4]
> if re.search('64', arch):
>      arch_libdir = 'lib64'
> else:
>      arch_libdir = 'lib'
> kernel = "/usr/lib/xen/boot/hvmloader"
> device_model = '/usr/lib' + '/xen/bin/qemu-dm'
> builder='hvm'
> memory = 4096
> shadow_memory = 32
> name = "Win"
> vif = [ 'type=ioemu, bridge=extbr1', 'type=ioemu, bridge=intbr1' ]
> disk = [ 'phy:/dev/sda,ioemu:hda,w' ]
> boot="c"
> vcpus=1
> acpi=1
> apic=1
> sdl=1
> vnc=0
> vncconsole=0
> vncviewer=0
> vncpasswd=''
> vnclisten="0.0.0.0"
> stdvga=0
> 

try adding opengl=0

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: X-server problem using sdl with nvidia graphics
  2011-03-07 15:59 ` Stefano Stabellini
@ 2011-03-14  7:34   ` Juergen Gross
  2011-03-14 11:58     ` Stefano Stabellini
  0 siblings, 1 reply; 5+ messages in thread
From: Juergen Gross @ 2011-03-14  7:34 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: xen-devel@lists.xensource.com

Hi,

sorry for late reply, I was at home for 1 week :-)

On 03/07/11 16:59, Stefano Stabellini wrote:
> On Fri, 4 Mar 2011, Juergen Gross wrote:
>> Hi,
>>
>> I'm playing a little bit with Windows domU on Xen. My machine is a Notebook
>> with a nvidia card:
>>
>> 01:00.0 VGA compatible controller: nVidia Corporation G96M [Quadro FX 770M]
>> (rev a1)
>>
>> Xen is Xen 4.0.1 from SLES 11 SP1, Xserver is xorg 7.4-27.19.19.
>> When I use vnc as console for the domU, everything is okay. Using sdl will
>> blank my screen as soon as the domain is started and the sdl window should
>> appear. I can get the X screen again via switching to text console and back,
>> but the sdl window isn't there.
>> Starting the domain with sdl using an external DISPLAY works okay.
>>
>> Has anybody seen this problem?
>> Any ideas how to solve it?
>>
>> I tried with nv driver from SLES and nvidia driver from nvidia.com. Both
>> failed.
>>
>> Guest configuration:
>>
>> import os, re
>> arch = os.uname()[4]
>> if re.search('64', arch):
>>       arch_libdir = 'lib64'
>> else:
>>       arch_libdir = 'lib'
>> kernel = "/usr/lib/xen/boot/hvmloader"
>> device_model = '/usr/lib' + '/xen/bin/qemu-dm'
>> builder='hvm'
>> memory = 4096
>> shadow_memory = 32
>> name = "Win"
>> vif = [ 'type=ioemu, bridge=extbr1', 'type=ioemu, bridge=intbr1' ]
>> disk = [ 'phy:/dev/sda,ioemu:hda,w' ]
>> boot="c"
>> vcpus=1
>> acpi=1
>> apic=1
>> sdl=1
>> vnc=0
>> vncconsole=0
>> vncviewer=0
>> vncpasswd=''
>> vnclisten="0.0.0.0"
>> stdvga=0
>>
>
> try adding opengl=0

Doesn't help.


Juergen

-- 
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@ts.fujitsu.com
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: X-server problem using sdl with nvidia graphics
  2011-03-14  7:34   ` Juergen Gross
@ 2011-03-14 11:58     ` Stefano Stabellini
  2011-03-14 14:11       ` Juergen Gross
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Stabellini @ 2011-03-14 11:58 UTC (permalink / raw)
  To: Juergen Gross
  Cc: Konrad, xen-devel@lists.xensource.com, Rzeszutek Wilk,
	Stefano Stabellini

On Mon, 14 Mar 2011, Juergen Gross wrote:
> Hi,
> 
> sorry for late reply, I was at home for 1 week :-)
> 
> On 03/07/11 16:59, Stefano Stabellini wrote:
> > On Fri, 4 Mar 2011, Juergen Gross wrote:
> >> Hi,
> >>
> >> I'm playing a little bit with Windows domU on Xen. My machine is a Notebook
> >> with a nvidia card:
> >>
> >> 01:00.0 VGA compatible controller: nVidia Corporation G96M [Quadro FX 770M]
> >> (rev a1)
> >>
> >> Xen is Xen 4.0.1 from SLES 11 SP1, Xserver is xorg 7.4-27.19.19.
> >> When I use vnc as console for the domU, everything is okay. Using sdl will
> >> blank my screen as soon as the domain is started and the sdl window should
> >> appear. I can get the X screen again via switching to text console and back,
> >> but the sdl window isn't there.
> >> Starting the domain with sdl using an external DISPLAY works okay.
> >>
> >> Has anybody seen this problem?
> >> Any ideas how to solve it?
> >>
> >> I tried with nv driver from SLES and nvidia driver from nvidia.com. Both
> >> failed.
> >>
> >> Guest configuration:
> >>
> >> import os, re
> >> arch = os.uname()[4]
> >> if re.search('64', arch):
> >>       arch_libdir = 'lib64'
> >> else:
> >>       arch_libdir = 'lib'
> >> kernel = "/usr/lib/xen/boot/hvmloader"
> >> device_model = '/usr/lib' + '/xen/bin/qemu-dm'
> >> builder='hvm'
> >> memory = 4096
> >> shadow_memory = 32
> >> name = "Win"
> >> vif = [ 'type=ioemu, bridge=extbr1', 'type=ioemu, bridge=intbr1' ]
> >> disk = [ 'phy:/dev/sda,ioemu:hda,w' ]
> >> boot="c"
> >> vcpus=1
> >> acpi=1
> >> apic=1
> >> sdl=1
> >> vnc=0
> >> vncconsole=0
> >> vncviewer=0
> >> vncpasswd=''
> >> vnclisten="0.0.0.0"
> >> stdvga=0
> >>
> >
> > try adding opengl=0
> 
> Doesn't help.
> 

Considering that it looks like an xorg issue or a dom0 kernel issue,
could you try executing any other sdl based programs?
For example 'mplayer -vo sdl <your video>'?
If you can repro the issue with another application we can rule out that
is a qemu-xen bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: X-server problem using sdl with nvidia graphics
  2011-03-14 11:58     ` Stefano Stabellini
@ 2011-03-14 14:11       ` Juergen Gross
  0 siblings, 0 replies; 5+ messages in thread
From: Juergen Gross @ 2011-03-14 14:11 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: xen-devel@lists.xensource.com, Konrad Rzeszutek Wilk

On 03/14/11 12:58, Stefano Stabellini wrote:
> On Mon, 14 Mar 2011, Juergen Gross wrote:
>> Hi,
>>
>> sorry for late reply, I was at home for 1 week :-)
>>
>> On 03/07/11 16:59, Stefano Stabellini wrote:
>>> On Fri, 4 Mar 2011, Juergen Gross wrote:
>>>> Hi,
>>>>
>>>> I'm playing a little bit with Windows domU on Xen. My machine is a Notebook
>>>> with a nvidia card:
>>>>
>>>> 01:00.0 VGA compatible controller: nVidia Corporation G96M [Quadro FX 770M]
>>>> (rev a1)
>>>>
>>>> Xen is Xen 4.0.1 from SLES 11 SP1, Xserver is xorg 7.4-27.19.19.
>>>> When I use vnc as console for the domU, everything is okay. Using sdl will
>>>> blank my screen as soon as the domain is started and the sdl window should
>>>> appear. I can get the X screen again via switching to text console and back,
>>>> but the sdl window isn't there.
>>>> Starting the domain with sdl using an external DISPLAY works okay.
>>>>
>>>> Has anybody seen this problem?
>>>> Any ideas how to solve it?
>>>>
>>>> I tried with nv driver from SLES and nvidia driver from nvidia.com. Both
>>>> failed.
>>>>
>>>> Guest configuration:
>>>>
>>>> import os, re
>>>> arch = os.uname()[4]
>>>> if re.search('64', arch):
>>>>        arch_libdir = 'lib64'
>>>> else:
>>>>        arch_libdir = 'lib'
>>>> kernel = "/usr/lib/xen/boot/hvmloader"
>>>> device_model = '/usr/lib' + '/xen/bin/qemu-dm'
>>>> builder='hvm'
>>>> memory = 4096
>>>> shadow_memory = 32
>>>> name = "Win"
>>>> vif = [ 'type=ioemu, bridge=extbr1', 'type=ioemu, bridge=intbr1' ]
>>>> disk = [ 'phy:/dev/sda,ioemu:hda,w' ]
>>>> boot="c"
>>>> vcpus=1
>>>> acpi=1
>>>> apic=1
>>>> sdl=1
>>>> vnc=0
>>>> vncconsole=0
>>>> vncviewer=0
>>>> vncpasswd=''
>>>> vnclisten="0.0.0.0"
>>>> stdvga=0
>>>>
>>>
>>> try adding opengl=0
>>
>> Doesn't help.
>>
>
> Considering that it looks like an xorg issue or a dom0 kernel issue,
> could you try executing any other sdl based programs?
> For example 'mplayer -vo sdl<your video>'?
> If you can repro the issue with another application we can rule out that
> is a qemu-xen bug.

The "Color Mouse Demo" from http://www.libsdl.org/projects/cmouse/ works
fine.


Juergen

-- 
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@ts.fujitsu.com
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-14 14:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-04  8:15 X-server problem using sdl with nvidia graphics Juergen Gross
2011-03-07 15:59 ` Stefano Stabellini
2011-03-14  7:34   ` Juergen Gross
2011-03-14 11:58     ` Stefano Stabellini
2011-03-14 14:11       ` Juergen Gross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.