← Back to team overview

sony-vaio-z-series team mailing list archive

Re: Nvidia/Intel switching nightmare.

 

Hi,

Excellent tutorial, this is just what was needed to pull together all of the information this group has provided so far. Good work.

There is a typo (/etc) on the line
	> sudo chmod +x /ect/init.d/switch-graphics

Also on my system (Z11WN) I did
	> sudo gedit /etc/modprobe.d/sony-laptop.conf
and created a file containing the following:
	options sony-laptop speed_stamina=3

Simply running
	> echo speed > /sys/devices/platform/sony-laptop/speed_stamina
switched the light on, but does not affect lspci output.

I was going to mention the kernel parameter too! Also I think 2 reboots are necessary.

Also on my system, the included xorg.conf failed to start. However running nvidia-xconfig after rebooting with the kernel parameter (i.e. once the lspci output only shows the nvidia card) worked.

Thanks,
Anthony.


Philipp Blanke wrote:
Hello Didine,

I just realized that I forgot the change to the kernel parameter at startup. In the attached PDF you will find this near the end.

Cheers,
Philipp

2009/6/7 Didine <didinux@xxxxxxxxx <mailto:didinux@xxxxxxxxx>>

    Hello Philipp,

    Thanks a lot for this tutorial ! I'll Try it and let you know if
    there is any problem.

    --
    Didine Wayde.



    On Sun, Jun 7, 2009 at 4:34 PM, Philipp Blanke
    <philipp.blanke@xxxxxxxxxxxxxx
    <mailto:philipp.blanke@xxxxxxxxxxxxxx>> wrote:

        Hi all.

        I just compiled a tutorial for the configuration of the graphic
        cards. See the attached ODT or PDF.

        Feedback welcome. Please point out errors.

        Cheers,
        Philipp

        2009/6/3 Didine Wayde <didinux@xxxxxxxxx <mailto:didinux@xxxxxxxxx>>

            No one to help ?

            Best,
            Didine.

            On Fri, 2009-05-29 at 23:14 +0200, Didine Wayde wrote:
             > Hello,
             >
             > Klaus, Julius, can you please format a newbie tutorial
            with all the
             > steps (where to put the script for switching between the
            two xorg.conf
             > etc.. ) to get this work.
             >
             > Thanks a lot.
             > Best regards,
             >
             >
             > On Fri, 2009-05-29 at 20:20 +0200, Julius Donnert wrote:
             > > Hi all,
             > >
             > > i can confirm, that this works on my Z21WN/B !!!!
             > >
             > > Thanks a lot Klaus, how did you find out ?
             > >
             > > This is quite a step forward, as we now _dont_ need an
            Xp cd /install
             > > anymore.
             > >
             > > Still i am not sure what exactly does the proper
            initialisation of the
             > > nvidia card. I did the following things:
             > >
             > > Boot with acpi_osi="!Windows 2006", without nvidia
            driver installed and
             > > with eva & matzes module in speed_stamina=3 mode. i
            reloaded it in
             > > intel/stamina mode
             > > I quit X, killed gdm and installed the nvidia driver
            and modified the
             > > xorg.conf. A modprobe nvidia gave, that the card was
            not properly
             > > initialised - a known result.
             > > I did an  "sudo halt" and at the next start, the nvidia
            card was
             > > working.
             > >
             > > Now the question is, can we make this work, so it
            recognises the Speed -
             > > Stamina switch ?
             > >
             > > Eva, Matze: Does the boot option give you a hint how to
            properly
             > > initialise the card ?
             > >
             > > it would be great, if we somehow managed to make it
            work only with a
             > > script and a reboot. So that the card is chosen on
            startup depending on
             > > the switch setting. Thats the second best option after
            on the fly
             > > switching, and actually as acceptable for me.
            Especially as Xorg ppl
             > > might take some years, until they are getting the
            infrastructure set up
             > > to handle this correctly ..
             > >
             > > Ciao
             > >
             > > Julius
             > >
             > >
             > >
             > >
             > > Klaus Addicks schrieb:
             > > > Hi all,
             > > >
             > > > switching works like a harm.
             > > > Just load Evas sony-laptop module with speed_stamina=3.
             > > > In my case i created a file called
            /etc/modprobe.d/sony-laptop.conf with
             > > > following line: options sony-laptop speed_stamina=3
             > > > You have to boot with this kernel parameter:
            acpi_osi="!Windows 2006"
             > > > Just put it in the kernel command line of your
            bootmanager.
             > > > Now you can switch between stamina and speed without
            booting to Windows.
             > > > But your laptop have to be completely poweroff!
             > > > For loading the correct xorg.conf, i use this little
            script before starting
             > > > xserver:
             > > >
             > > > #!/bin/sh
             > > > lspci | grep "00:02.1"
             > > > if [ $? -eq 0 ]; then
             > > >     cp /etc/X11/xorg.INTEL /etc/X11/xorg.conf
             > > > else
             > > >     cp /etc/X11/xorg.NVIDIA /etc/X11/xorg.conf
             > > > fi
             > > >
             > > > Greetings,
             > > > Klaus
             > > >
             > > >
             > > > Am Mittwoch 27. Mai 2009 21:58:08 schrieb Alexandre
            Kaspar:
             > > >
             > > >> The problem is actually that the module is great as
            long as you just
             > > >> want to use the intel graphic card.
             > > >> However, I suppose most people who bought the vaio-z
            did it since
             > > >> there was a possibility of using good advanced
            graphics (nvidia) as
             > > >> well as offering good running life (intel).
             > > >>
             > > >> Then, if you just get the running life (intel)
            working, you're missing
             > > >> something important (that's the case for me).
            Actually, I'm mostly
             > > >> using the nvidia card since I'm computing some
            opengl programs which
             > > >> need it. Therefore, I haven't even tested the module
            for the intel
             > > >> card since I know I currently have to be often on
            the nvidia switch.
             > > >> And since there's actually no way to switch from one
            to the other
             > > >> without going on win xp or using DSL, then I just
            stay on the nvidia
             > > >> state with acpi=ht.
             > > >> That's a problem since I can't use the intel one
            which would make the
             > > >> computer really useful. Now I can use the computer,
            but it isn't as
             > > >> portable (thinking of the battery life) as it should.
             > > >>
             > > >> However, I hope there'll be a solution. Some day,
            maybe...
             > > >>
             > > >> Alexandre Kaspar
             > > >>
             > > >
             > > >
             > > > _______________________________________________
             > > > Mailing list:
            https://launchpad.net/~sony-vaio-z-series
            <https://launchpad.net/%7Esony-vaio-z-series>
             > > > Post to     : sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx
            <mailto:sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx>
             > > > Unsubscribe :
            https://launchpad.net/~sony-vaio-z-series
            <https://launchpad.net/%7Esony-vaio-z-series>
             > > > More help   : https://help.launchpad.net/ListHelp
             > > >
             > > >
             > >
             > >
             > >
             > > _______________________________________________
             > > Mailing list: https://launchpad.net/~sony-vaio-z-series
            <https://launchpad.net/%7Esony-vaio-z-series>
             > > Post to     : sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx
            <mailto:sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx>
             > > Unsubscribe : https://launchpad.net/~sony-vaio-z-series
            <https://launchpad.net/%7Esony-vaio-z-series>
             > > More help   : https://help.launchpad.net/ListHelp
             >


            _______________________________________________
            Mailing list: https://launchpad.net/~sony-vaio-z-series
            <https://launchpad.net/%7Esony-vaio-z-series>
            Post to     : sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx
            <mailto:sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx>
            Unsubscribe : https://launchpad.net/~sony-vaio-z-series
            <https://launchpad.net/%7Esony-vaio-z-series>
            More help   : https://help.launchpad.net/ListHelp




-- Philipp Blanke
        Alte Dorfstr. 19
        29690 Schwarmstedt

        _______________________________________________
        Mailing list: https://launchpad.net/~sony-vaio-z-series
        <https://launchpad.net/%7Esony-vaio-z-series>
        Post to     : sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx
        <mailto:sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx>
        Unsubscribe : https://launchpad.net/~sony-vaio-z-series
        <https://launchpad.net/%7Esony-vaio-z-series>
        More help   : https://help.launchpad.net/ListHelp





--
Philipp Blanke
Alte Dorfstr. 19
29690 Schwarmstedt


------------------------------------------------------------------------

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



Follow ups

References