Re: [Sony-vaio-z-series] Nvidia/Intel switching and energy saving

2009-06-20 Thread Norbert Preining
On Do, 18 Jun 2009, Bernd Eggink wrote:
 iwconfig wlan0 power on

I can confirm that turning power on on wlan0 does actually save a lot of
energy, but ...

 With this setting and a running wlan I get lower power consumption than 
 with a powered down wlan. Without power management, consumption is 1 W 
 higher, and doesn't appear to depend much on the rfkill state.

Hmm, here I do see a difference, I am not sure, hard to test. I left it
running the same way for about 10min and then the usage was mor or less
the same.

BUt it is anyway good to know that turning power on amounts to more or
less the same as turning the device completely off, at least for me.

Thanks

Best wishes

Norbert

---
Dr. Norbert Preining prein...@logic.atVienna University of Technology
Debian Developer prein...@debian.org Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
RECULVER (n.)
The sort of remark only ever made during Any Questions.
--- Douglas Adams, The Meaning of Liff

___
Mailing list: https://launchpad.net/~sony-vaio-z-series
Post to : sony-vaio-z-series@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sony-vaio-z-series
More help   : https://help.launchpad.net/ListHelp


Re: [Sony-vaio-z-series] Nvidia/Intel switching and energy saving

2009-06-17 Thread Norbert Preining
On Di, 16 Jun 2009, Mario wrote:
 I'm not sure to understand the use of this new module: does it just
 switch off the nvidia card? In this case, I don't understand the
 difference with the old module (when used without parameters it disables
 the nvidia card).

Yes, but if I want dynamic switching using the stamina-speed hardware
switch I need to load the module with speed_stamina=3.

Well, a different solution would be to:
- blacklist the sony-laptop module
- load it only on demand in /etc/init.d/switch-graphics with
  speed-stamina=1|2 depending on the value of the hardware switch

 I guess it switches off the nvidia card only if the hardware button is
 switched in stamina mode. Is it correct?

No idea.

Best wishes

Norbert

---
Dr. Norbert Preining prein...@logic.atVienna University of Technology
Debian Developer prein...@debian.org Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
ADRIGOLE (n.)
The centrepiece of a merry-go-round on which the man with the tickets
stands unnervingly still.
--- Douglas Adams, The Meaning of Liff

___
Mailing list: https://launchpad.net/~sony-vaio-z-series
Post to : sony-vaio-z-series@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sony-vaio-z-series
More help   : https://help.launchpad.net/ListHelp


Re: [Sony-vaio-z-series] Nvidia/Intel switching and energy saving

2009-06-17 Thread Matthias Welwarsky
On Wednesday 17 June 2009 12:03:54 Norbert Preining wrote:
 On Di, 16 Jun 2009, Mario wrote:
  I'm not sure to understand the use of this new module: does it just
  switch off the nvidia card? In this case, I don't understand the
  difference with the old module (when used without parameters it disables
  the nvidia card).

 Yes, but if I want dynamic switching using the stamina-speed hardware
 switch I need to load the module with speed_stamina=3.

... and you can always switch speed/stamina via sysfs. no need for additional 
modules.


___
Mailing list: https://launchpad.net/~sony-vaio-z-series
Post to : sony-vaio-z-series@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sony-vaio-z-series
More help   : https://help.launchpad.net/ListHelp


Re: [Sony-vaio-z-series] Nvidia/Intel switching and energy saving

2009-06-17 Thread Norbert Preining
On Mi, 17 Jun 2009, Matthias Welwarsky wrote:
 ... and you can always switch speed/stamina via sysfs. no need for additional 
 modules.

Hmmm, I loaded the module with speed_stamina=3 and I get
$ cat /sys/devices/platform/sony-laptop/speed_stamina
speed
$
although my laptop is currently running the Intel graphics card and I am
running X?

Best wishes

Norbert

---
Dr. Norbert Preining prein...@logic.atVienna University of Technology
Debian Developer prein...@debian.org Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
TULSA (n.)
A slurp of beer which has accidentally gone down your shirt collar.
--- Douglas Adams, The Meaning of Liff

___
Mailing list: https://launchpad.net/~sony-vaio-z-series
Post to : sony-vaio-z-series@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sony-vaio-z-series
More help   : https://help.launchpad.net/ListHelp


Re: [Sony-vaio-z-series] Nvidia/Intel switching and energy saving

2009-06-17 Thread Norbert Preining
On Mi, 17 Jun 2009, Matthias Welwarsky wrote:
 ... and you can always switch speed/stamina via sysfs. no need for additional 
 modules.

Thanks Matthias,

I can confirm that using this switch-graphics /etc/init.d script:
#!/bin/sh
lspci | grep 00:02.0
# if we find the Intel chipset, use Intel drivers  settings
if [ $? -eq 0 ]; then
logger Setting graphics card to INTEL
cp /etc/X11/xorg.conf.INTEL /etc/X11/xorg.conf
ln -sf /usr/lib/libGL.so.1.INTEL /usr/lib/libGL.so.1
ln -sf /usr/lib/xorg/modules/extensions/libglx.so.INTEL
/usr/lib/xorg/modules/extensions/libglx.so
echo stamina  /sys/devices/platform/sony-laptop/speed_stamina
else
# otherwise use nVidia drivers  settings
logger Setting graphics card to NVIDIA
cp /etc/X11/xorg.conf.NVIDIA /etc/X11/xorg.conf
ln -sf /usr/lib/libGL.so.185.18.14 /usr/lib/libGL.so.1
ln -sf /usr/lib/xorg/modules/extensions/libglx.so.185.18.14
/usr/lib/xorg/modules/extensions/libglx.so
echo speed  /sys/devices/platform/sony-laptop/speed_stamina
fi

together with loading sony-laptop originally with speed_stamina=3 makes
everything work as expected:
- intel and nvidia can be selected with hardware switch when laptop is
  turned off
- energy usage is down to low levels:
  when I have gnome running, but all wireless modules turned off with
  rfkill switches and running only powertop with all suggestions I come
  down to
~10W with Intel card
~12W with nVidia card
  That is *very* fine.

Thanks a lot!!!

Best wishes

Norbert

---
Dr. Norbert Preining prein...@logic.atVienna University of Technology
Debian Developer prein...@debian.org Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
CORFU (n.)
The dullest person you met during the course of your holiday. Also the
only one who failed to understand that the exchanging of addresses at
the end of a holiday is merely a social ritual and is absolutely not
an invitation to phone you up and turn up unannounced on your doorstep
three months later.
--- Douglas Adams, The Meaning of Liff

___
Mailing list: https://launchpad.net/~sony-vaio-z-series
Post to : sony-vaio-z-series@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sony-vaio-z-series
More help   : https://help.launchpad.net/ListHelp


Re: [Sony-vaio-z-series] Nvidia/Intel switching and energy saving

2009-06-16 Thread Mario
Norbert Preining wrote:
 When loading sony-laptop with speed_stamina=3 nothing is touched at the
 graphics card side, so the other (not working) graphics card is not
 actually turned off, means it takes much more energy.

 Fortunately Matthew has written a simple module
   nvidia_control
 that turns off the nvidia graphic card.

I'm not sure to understand the use of this new module: does it just
switch off the nvidia card? In this case, I don't understand the
difference with the old module (when used without parameters it disables
the nvidia card).
I guess it switches off the nvidia card only if the hardware button is
switched in stamina mode. Is it correct?

Thanks,
Mario


___
Mailing list: https://launchpad.net/~sony-vaio-z-series
Post to : sony-vaio-z-series@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sony-vaio-z-series
More help   : https://help.launchpad.net/ListHelp


Re: [Sony-vaio-z-series] Nvidia/Intel switching and energy saving

2009-06-16 Thread Albert Vilella
Sorry to add more questions than answers but, will this new nvidia_control.c
code to switch off
the nvidia card with no reboot? Even if Xorg is still eons away from being
able to deal with
the hot switching, it would be great to have a hot hardware switch working
that could be
then coupled with an xserver restart, instead of a cold reboot.

Looking forward to it,

Cheers,

Albert.

On Tue, Jun 16, 2009 at 6:14 PM, Mario mario@gmail.com wrote:

 Norbert Preining wrote:
  When loading sony-laptop with speed_stamina=3 nothing is touched at the
  graphics card side, so the other (not working) graphics card is not
  actually turned off, means it takes much more energy.
 
  Fortunately Matthew has written a simple module
nvidia_control
  that turns off the nvidia graphic card.

 I'm not sure to understand the use of this new module: does it just
 switch off the nvidia card? In this case, I don't understand the
 difference with the old module (when used without parameters it disables
 the nvidia card).
 I guess it switches off the nvidia card only if the hardware button is
 switched in stamina mode. Is it correct?

 Thanks,
 Mario


 ___
 Mailing list: 
 https://launchpad.net/~sony-vaio-z-serieshttps://launchpad.net/%7Esony-vaio-z-series
 Post to : sony-vaio-z-series@lists.launchpad.net
 Unsubscribe : 
 https://launchpad.net/~sony-vaio-z-serieshttps://launchpad.net/%7Esony-vaio-z-series
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~sony-vaio-z-series
Post to : sony-vaio-z-series@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sony-vaio-z-series
More help   : https://help.launchpad.net/ListHelp