← Back to team overview

sony-vaio-z-series team mailing list archive

Re: Nvidia/Intel switching nightmare.

 

Hi,you tried doing sudo make install? that works? Have you added the option
for the switch in the grub line? If your primary concern is stop the nvidia
card, using only the sony-laptop-zseries-0.9 module, by default puts the
nvidia card off.  And if you want to use the switch, i had to load the
zseries module with  the option 3 as it say in another reply, use the grub
line option, and the init script to switch betwenn the xorg.conf files. That
is what worked for me. If it works doing something diferent or not doing
something of this it would be good to know.
Bye
2009/7/12 Ji Yong Dijkhuis <jiyong.dijkhuis@xxxxxxxxx>

> I also tried the tutorial, but things are not working for me.
>
> I have a Z36 running Ubuntu 9.04 64 bit.
>
> The tar command didn't work for me, but Ubuntu can extract through the GUI.
>
> sudo make test gives an error (where can I find more info on my machine, if
> any?):
>
> jiyong@jiyong-laptop:~/sony-laptop-zseries-0.9$ make
> make -C /lib/modules/2.6.28-13-generic/build
> SUBDIRS=/home/jiyong/sony-laptop-zseries-0.9 modules
> make[1]: Entering directory `/usr/src/linux-headers-2.6.28-13-generic'
>   Building modules, stage 2.
>   MODPOST 2 modules
> make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-13-generic'
> jiyong@jiyong-laptop:~/sony-laptop-zseries-0.9$ sudo make test
> [sudo] password for jiyong:
> rmmod sony-laptop
> ERROR: Module sony_laptop does not exist in /proc/modules
> make: *** [test] Error 1
>
> And GRUB seems to have a problem updating on my machine.
> Sometimes the Stamina light comes up, but most of the time (from cold boot)
> there's no light at all.
>
> My main priority is to power down the NVidia to save battery.
>
> Any pointers?
>
> Ji Yong
>
>
> On Wed, Jun 24, 2009 at 12:13 PM, newway.liu@xxxxxxxxx <
> newway.liu@xxxxxxxxx> wrote:
>
>> Dear Philipp,
>>
>> first of all thank you for putting up such a useful tutorial!
>> However I've encountered some problem with the "cold switching" method
>> strictly following your pdf guide.
>>
>> When I've done everything you said, with my SONY Z11MN/B  turn off an on
>> (Ubuntu, 2.6.28-11-server) with SPEED mode.  Neither STAMINA nor SPEED
>> light turned on.
>>
>> when I looked at my xorg.conf and the /usr/lib/libGL.so.1
>> both indicate I am loading the INTEL configuration.
>>
>> However in my System -> Administration -> Hardware Drivers
>> the only item in the list "nvidia" is green
>> (this driver is activated and currently in use)
>>
>> yet System -> Administration -> NVIDIA X Server Settings
>> gives "You do not appear to be using the NVIDIA driver,
>> please edit your X conf... ..."
>>
>> only difference before following the tutorial is that my STAMINA light
>> used to be lit regardless which mode I choose (STAMINA/SPEED).
>>
>> Any ideas? Thank you!
>>
>> 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>
>>>            <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>
>>>            <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>
>>>            <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>
>>>            <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>
>>>            <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>
>>>            <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>
>>>        <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>
>>>        <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
>>> Unsubscribe : https://launchpad.net/~sony-vaio-z-series<https://launchpad.net/%7Esony-vaio-z-series>
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
>> --
>> I am not single, I'm romantically challenged.
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~sony-vaio-z-series<https://launchpad.net/%7Esony-vaio-z-series>
>> Post to     : 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
> Unsubscribe : https://launchpad.net/~sony-vaio-z-series<https://launchpad.net/%7Esony-vaio-z-series>
> More help   : https://help.launchpad.net/ListHelp
>
>

References