Bug#578672: qemu-kvm: kvm kills my screen saver / power manager

2010-06-02 Thread Gary Dale

On 23/05/10 04:01 AM, Michael Tokarev wrote:

06.05.2010 04:29, Gary Dale wrote:


When I use virt-manager to start the Windows XP virtual machine, the
screen saver works normally. However, I'm back having to use the kvm
command to launch it and the screen  power saver issue is back.


Can you please try setting SDL_VIDEO_ALLOW_SCREENSAVER=1 before
starting kvm, something like this:

 $ SDL_VIDEO_ALLOW_SCREENSAVER=1 kvm 

and see if it fixes the problem?

See http://www.libsdl.org/faq.php?action=listentriescategory=9#90

Thanks!

/mjt



It seems to work, but the power saver didn't kick in. The latest release 
of KDE4 doesn't seem to have a power saver control anywhere, so I think 
it's using the BIOS values, which may have been set longer than I 
allowed the test to run.






--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#578672: qemu-kvm: kvm kills my screen saver / power manager

2010-05-23 Thread Michael Tokarev

06.05.2010 04:29, Gary Dale wrote:


When I use virt-manager to start the Windows XP virtual machine, the
screen saver works normally. However, I'm back having to use the kvm
command to launch it and the screen  power saver issue is back.


Can you please try setting SDL_VIDEO_ALLOW_SCREENSAVER=1 before
starting kvm, something like this:

 $ SDL_VIDEO_ALLOW_SCREENSAVER=1 kvm 

and see if it fixes the problem?

See http://www.libsdl.org/faq.php?action=listentriescategory=9#90

Thanks!

/mjt



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#578672: qemu-kvm: kvm kills my screen saver / power manager

2010-05-23 Thread Gary Dale

On 23/05/10 04:01 AM, Michael Tokarev wrote:

06.05.2010 04:29, Gary Dale wrote:


When I use virt-manager to start the Windows XP virtual machine, the
screen saver works normally. However, I'm back having to use the kvm
command to launch it and the screen  power saver issue is back.


Can you please try setting SDL_VIDEO_ALLOW_SCREENSAVER=1 before
starting kvm, something like this:

 $ SDL_VIDEO_ALLOW_SCREENSAVER=1 kvm 

and see if it fixes the problem?

See http://www.libsdl.org/faq.php?action=listentriescategory=9#90

Thanks!

/mjt

Thanks Michael. I actually found out what I was doing wrong with 
virt-manager (have to add myself to the libvirt group) so I'm using it 
again. I even removed my shortcut to the kvm command so I'd have to 
recreate it reasonable facsimile to do the test. I'll give it a try in 
the next day or two.


If kvm is using SDL, wouldn't that imply that the Gnome/x screensaver is 
also killed? Or do you have code to prevent that?




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#578672: qemu-kvm: kvm kills my screen saver / power manager

2010-05-05 Thread Gary Dale
Further to below, I did a reinstall of Squeeze into a clean partition 
(kept my /home partition though) and the problem is still there.


When I use virt-manager to start the Windows XP virtual machine, the 
screen saver works normally. However, I'm back having to use the kvm 
command to launch it and the screen  power saver issue is back.


I gather virt-manager takes a different approach since I don't have to 
do anything special to grab or release the mouse. However it's doing it, 
it doesn't interfere with the screen saver. Unfortunately virt-manager 
isn't working right now so I'm back struggling with the screen/power 
saver again.  :(



Michael Tokarev wrote:

21.04.2010 21:43, Gary Dale wrote:

Michael Tokarev wrote:

21.04.2010 21:13, Gary Dale wrote:

Package: qemu-kvm
Version: 0.12.3+dfsg-4
Severity: normal

Every time my Windows XP/Pro virtual machine starts or retarts, it
takes
out my screen saver and screen power manager. I have to manually
restart

[]

It's not specific to any desktop environment. In order to pass all
keyboard
events to guest, kvm grabs input devices (keyboard and mouse), and
with them
grabbed xscreensaver does not kick in. This is how things work. You can
make kvm SDL window inactive by switching to some other window, and
your
screen saver should work again. Think of it like as if your screen has
been given to your guest, and it's guest's responsibility now to run a
screen saver. Kvm itself does not have any code to deactivate screen
saver, it only grabs input (especially if no -usbdevice tablet
specified),
since it's the only way how to pass all keyboard events to a guest.



It's not that simple. I rarely have the virtual machine window selected
but the screensaver still doesn't kick in. Nor does de-selecting the
virtual machine's window restore the screensaver.


Ok, that's now how things work on my side.  Maybe it really is
kde-specific.  I just tested with lxde (with xscreensaver package) -
the screen saver kicks in (I've set it to trigger after 1 minute)
even if kvm window is active (but not grabbing kbd/mouse).  When
I hit (without -usbdevice tablet) the kvm window, it grabs input,
at which point the host screeen saver does not trigger anymore.
Hitting Ctrl+Alt to release the grab makes local screen saver
work again.

I've no kde handy, and no place to install it either.

/mjt



I understand.

My KDE setup is specific to Debian/Squeeze - I let the KDE4 installer 
blow away my old KDE setup. But it does go back to the initial KDE4 
appearance in Squeeze.


Is there anything you can think of that may cause this? Anything I can 
check to get further information about it (I can't see anything in 
syslog or messages indicating a problem)?


This problem is annoying because I don't know how  to ensure the KDE 
screensaver/power saver is active. I believe that KDE doesn't use the 
xcreensaver - at least not directly. Anyway, there is no specific 
launcher for it that I'm aware of. Usually adjusting the screen and 
power saver settings gets it to restart but not always. Sometimes it 
takes a couple of tries but today it just doesn't want to restart.


One point I forgot to mention is that the screensaver does appear to 
work while the virtual machine window is selected (after I've restarted 
it) and the keyboard/mouse are grabbed. I've had to ungrab the 
keyboard/mouse several times to stop the screensaver when it kicks in. 
The KDE screensaver doesn't seem to recognize keyboard or mouse activity 
in the KVM window, so the screen fades to black as I'm working in the 
KVM window. It's annoying.  :)







--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#578672: qemu-kvm: kvm kills my screen saver / power manager

2010-04-21 Thread Gary Dale

Package: qemu-kvm
Version: 0.12.3+dfsg-4
Severity: normal

Every time my Windows XP/Pro virtual machine starts or retarts, it takes 
out my screen saver and screen power manager. I have to manually restart 
them. This has been happening since I first installed qemu-kvm and has 
survived re-installation of both Squeeze and Windows XP/Pro.


I don't know if this is specific to KDE4 or if it affects other 
desktops. Sorry.



-- Package-specific info:


/proc/cpuinfo:

processor: 0
vendor_id: AuthenticAMD
cpu family: 16
model: 4
model name: AMD Phenom(tm) II X4 940 Processor
stepping: 2
cpu MHz: 800.000
cache size: 512 KB
physical id: 0
siblings: 4
core id: 0
cpu cores: 4
apicid: 0
initial apicid: 0
fpu: yes
fpu_exception: yes
cpuid level: 5
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt 
pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc 
extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic 
cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt

bogomips: 6026.46
TLB size: 1024 4K pages
clflush size: 64
cache_alignment: 64
address sizes: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor: 1
vendor_id: AuthenticAMD
cpu family: 16
model: 4
model name: AMD Phenom(tm) II X4 940 Processor
stepping: 2
cpu MHz: 800.000
cache size: 512 KB
physical id: 0
siblings: 4
core id: 1
cpu cores: 4
apicid: 1
initial apicid: 1
fpu: yes
fpu_exception: yes
cpuid level: 5
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt 
pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc 
extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic 
cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt

bogomips: 6027.48
TLB size: 1024 4K pages
clflush size: 64
cache_alignment: 64
address sizes: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor: 2
vendor_id: AuthenticAMD
cpu family: 16
model: 4
model name: AMD Phenom(tm) II X4 940 Processor
stepping: 2
cpu MHz: 800.000
cache size: 512 KB
physical id: 0
siblings: 4
core id: 2
cpu cores: 4
apicid: 2
initial apicid: 2
fpu: yes
fpu_exception: yes
cpuid level: 5
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt 
pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc 
extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic 
cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt

bogomips: 6027.49
TLB size: 1024 4K pages
clflush size: 64
cache_alignment: 64
address sizes: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor: 3
vendor_id: AuthenticAMD
cpu family: 16
model: 4
model name: AMD Phenom(tm) II X4 940 Processor
stepping: 2
cpu MHz: 800.000
cache size: 512 KB
physical id: 0
siblings: 4
core id: 3
cpu cores: 4
apicid: 3
initial apicid: 3
fpu: yes
fpu_exception: yes
cpuid level: 5
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt 
pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc 
extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic 
cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt

bogomips: 6027.49
TLB size: 1024 4K pages
clflush size: 64
cache_alignment: 64
address sizes: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate




-- System Information:
Debian Release: squeeze/sid
 APT prefers testing
 APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages qemu-kvm depends on:
ii  adduser 3.112add and remove users and groups
ii  bridge-utils1.4-5Utilities for configuring 
the Linu
ii  iproute 20100224-3   networking and traffic 
control too
ii  libaio1 0.3.107-7Linux kernel AIO access 
library -
ii  libasound2  1.0.22-2 shared library for ALSA 
applicatio
ii  libbluetooth3   4.60-1   Library to use the 

Bug#578672: qemu-kvm: kvm kills my screen saver / power manager

2010-04-21 Thread Michael Tokarev

21.04.2010 21:13, Gary Dale wrote:

Package: qemu-kvm
Version: 0.12.3+dfsg-4
Severity: normal

Every time my Windows XP/Pro virtual machine starts or retarts, it takes
out my screen saver and screen power manager. I have to manually restart
them. This has been happening since I first installed qemu-kvm and has
survived re-installation of both Squeeze and Windows XP/Pro.

I don't know if this is specific to KDE4 or if it affects other
desktops. Sorry.


It's not specific to any desktop environment.  In order to pass all keyboard
events to guest, kvm grabs input devices (keyboard and mouse), and with them
grabbed xscreensaver does not kick in.  This is how things work.  You can
make kvm SDL window inactive by switching to some other window, and your
screen saver should work again.  Think of it like as if your screen has
been given to your guest, and it's guest's responsibility now to run a
screen saver.  Kvm itself does not have any code to deactivate screen
saver, it only grabs input (especially if no -usbdevice tablet specified),
since it's the only way how to pass all keyboard events to a guest.

See also https://bugzilla.redhat.com/show_bug.cgi?id=569830

/mjt



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#578672: qemu-kvm: kvm kills my screen saver / power manager

2010-04-21 Thread Gary Dale

Michael Tokarev wrote:

21.04.2010 21:13, Gary Dale wrote:

Package: qemu-kvm
Version: 0.12.3+dfsg-4
Severity: normal

Every time my Windows XP/Pro virtual machine starts or retarts, it takes
out my screen saver and screen power manager. I have to manually restart
them. This has been happening since I first installed qemu-kvm and has
survived re-installation of both Squeeze and Windows XP/Pro.

I don't know if this is specific to KDE4 or if it affects other
desktops. Sorry.


It's not specific to any desktop environment.  In order to pass all 
keyboard
events to guest, kvm grabs input devices (keyboard and mouse), and 
with them

grabbed xscreensaver does not kick in.  This is how things work.  You can
make kvm SDL window inactive by switching to some other window, and your
screen saver should work again.  Think of it like as if your screen has
been given to your guest, and it's guest's responsibility now to run a
screen saver.  Kvm itself does not have any code to deactivate screen
saver, it only grabs input (especially if no -usbdevice tablet 
specified),

since it's the only way how to pass all keyboard events to a guest.

See also https://bugzilla.redhat.com/show_bug.cgi?id=569830

/mjt

It's not that simple. I rarely have the virtual machine window selected 
but the screensaver still doesn't kick in. Nor does de-selecting the 
virtual machine's window restore the screensaver.





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#578672: qemu-kvm: kvm kills my screen saver / power manager

2010-04-21 Thread Michael Tokarev

21.04.2010 21:43, Gary Dale wrote:

Michael Tokarev wrote:

21.04.2010 21:13, Gary Dale wrote:

Package: qemu-kvm
Version: 0.12.3+dfsg-4
Severity: normal

Every time my Windows XP/Pro virtual machine starts or retarts, it takes
out my screen saver and screen power manager. I have to manually restart

[]

It's not specific to any desktop environment. In order to pass all keyboard
events to guest, kvm grabs input devices (keyboard and mouse), and with them
grabbed xscreensaver does not kick in. This is how things work. You can
make kvm SDL window inactive by switching to some other window, and your
screen saver should work again. Think of it like as if your screen has
been given to your guest, and it's guest's responsibility now to run a
screen saver. Kvm itself does not have any code to deactivate screen
saver, it only grabs input (especially if no -usbdevice tablet specified),
since it's the only way how to pass all keyboard events to a guest.



It's not that simple. I rarely have the virtual machine window selected
but the screensaver still doesn't kick in. Nor does de-selecting the
virtual machine's window restore the screensaver.


Ok, that's now how things work on my side.  Maybe it really is
kde-specific.  I just tested with lxde (with xscreensaver package) -
the screen saver kicks in (I've set it to trigger after 1 minute)
even if kvm window is active (but not grabbing kbd/mouse).  When
I hit (without -usbdevice tablet) the kvm window, it grabs input,
at which point the host screeen saver does not trigger anymore.
Hitting Ctrl+Alt to release the grab makes local screen saver
work again.

I've no kde handy, and no place to install it either.

/mjt



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#578672: qemu-kvm: kvm kills my screen saver / power manager

2010-04-21 Thread Gary Dale

Michael Tokarev wrote:

21.04.2010 21:43, Gary Dale wrote:

Michael Tokarev wrote:

21.04.2010 21:13, Gary Dale wrote:

Package: qemu-kvm
Version: 0.12.3+dfsg-4
Severity: normal

Every time my Windows XP/Pro virtual machine starts or retarts, it 
takes
out my screen saver and screen power manager. I have to manually 
restart

[]
It's not specific to any desktop environment. In order to pass all 
keyboard
events to guest, kvm grabs input devices (keyboard and mouse), and 
with them

grabbed xscreensaver does not kick in. This is how things work. You can
make kvm SDL window inactive by switching to some other window, and 
your

screen saver should work again. Think of it like as if your screen has
been given to your guest, and it's guest's responsibility now to run a
screen saver. Kvm itself does not have any code to deactivate screen
saver, it only grabs input (especially if no -usbdevice tablet 
specified),

since it's the only way how to pass all keyboard events to a guest.



It's not that simple. I rarely have the virtual machine window selected
but the screensaver still doesn't kick in. Nor does de-selecting the
virtual machine's window restore the screensaver.


Ok, that's now how things work on my side.  Maybe it really is
kde-specific.  I just tested with lxde (with xscreensaver package) -
the screen saver kicks in (I've set it to trigger after 1 minute)
even if kvm window is active (but not grabbing kbd/mouse).  When
I hit (without -usbdevice tablet) the kvm window, it grabs input,
at which point the host screeen saver does not trigger anymore.
Hitting Ctrl+Alt to release the grab makes local screen saver
work again.

I've no kde handy, and no place to install it either.

/mjt



I understand.

My KDE setup is specific to Debian/Squeeze - I let the KDE4 installer 
blow away my old KDE setup. But it does go back to the initial KDE4 
appearance in Squeeze.


Is there anything you can think of that may cause this? Anything I can 
check to get further information about it (I can't see anything in 
syslog or messages indicating a problem)?


This problem is annoying because I don't know how  to ensure the KDE 
screensaver/power saver is active. I believe that KDE doesn't use the 
xcreensaver - at least not directly. Anyway, there is no specific 
launcher for it that I'm aware of. Usually adjusting the screen and 
power saver settings gets it to restart but not always. Sometimes it 
takes a couple of tries but today it just doesn't want to restart.


One point I forgot to mention is that the screensaver does appear to 
work while the virtual machine window is selected (after I've restarted 
it) and the keyboard/mouse are grabbed. I've had to ungrab the 
keyboard/mouse several times to stop the screensaver when it kicks in. 
The KDE screensaver doesn't seem to recognize keyboard or mouse activity 
in the KVM window, so the screen fades to black as I'm working in the 
KVM window. It's annoying.  :)






--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org