MrMEEE / bumblebee-Old-and-abbandoned

OUTDATED!!!!! - Replaced by "The Bumblebee Project" and "Ironhide"
http://www.martin-juhl.dk/2011/08/ironhide-reporting-for-duty/
469 stars 50 forks source link

Asus 1215N cant boot without recovery mode #422

Closed ghost closed 13 years ago

ghost commented 13 years ago

hi,

I have a asus 1215N with ubuntu 10.10. so I tried to install bumblebee for switch off nvidia card for save battery. but now I cant boot ubuntu without recovery mode cuz a blank screen say: disabling nvidia card. but nothing happen. ıt freeze. only way to reboot is ctrl-alt-del:(

any suggestion....?

Gorkem

ArchangeGabriel commented 13 years ago

Yes, a suggestion : could you try to replace your enable and disable scripts by those linked here : https://github.com/MrMEEE/bumblebee/blob/master/install-files/ubuntu/bumblebee-enablecard.asus.1215N https://github.com/MrMEEE/bumblebee/blob/master/install-files/ubuntu/bumblebee-disablecard.asus.1215N

See if there are any changes, and come back with the results.

ghost commented 13 years ago

Hi, I replaced the files as you told. then,

gorkem@gorkem-1215N:~$ sudo /usr/local/bin/bumblebee-disablecard ERROR: Module nvidia does not exist in /proc/modules _DSM Disabling nVidia card succeeded. _PS3 Disabling nVidia card failed (Error: AE_AML_INFINITE_LOOP). gorkem@gorkem-1215N:~$

what I should to do?

ArchangeGabriel commented 13 years ago

Can you do that : modprobe acpi_call Then echo "\_SB.PCI0.P0P4.GFX0._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x1A {0x1,0x0,0x0,0x3}" > /proc/acpi/call And finally cat /proc/acpi/call Write here what the last command return or if the others commands returns something...

ghost commented 13 years ago

gorkem@gorkem-1215N:~$ modprobe acpi_call gorkem@gorkem-1215N:~$ echo "_SB.PCI0.P0P4.GFX0._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x1A {0x1,0x0,0x0,0x3}" > /proc/acpi/call gorkem@gorkem-1215N:~$ cat /proc/acpi/call {0x41, 0x00, 0x00, 0x11}gorkem@gorkem-1215N:~$

ArchangeGabriel commented 13 years ago

Ok, could you now call first the enablecard script and after that the disable script (as your card is already off right now).

ghost commented 13 years ago

when I look the additional drivers in ubuntu administration, my driver is "nvidia_current" and below says "this driver is activated but not currently in use"

ArchangeGabriel commented 13 years ago

Yep, that's normal.

ghost commented 13 years ago

gorkem@gorkem-1215N:~$ /usr/local/bin/bumblebee-enablecard _PS0 Enabling nVidia card succeeded. FATAL: Error inserting nvidia_current (/lib/modules/2.6.35-30-generic/updates/dkms/nvidia-current.ko): Operation not permitted gorkem@gorkem-1215N:~$ sudo /usr/local/bin/bumblebee-enablecard _PS0 Enabling nVidia card succeeded. FATAL: Error inserting nvidia_current (/lib/modules/2.6.35-30-generic/updates/dkms/nvidia-current.ko): No such device gorkem@gorkem-1215N:~$ /usr/local/bin/bumblebee-disablecard ERROR: Module nvidia does not exist in /proc/modules _DSM Disabling nVidia card succeeded. _PS3 Disabling nVidia card succeeded. gorkem@gorkem-1215N:~$ sudo /usr/local/bin/bumblebee-disablecard ERROR: Module nvidia does not exist in /proc/modules _DSM Disabling nVidia card succeeded. _PS3 Disabling nVidia card failed (Error: AE_AML_INFINITE_LOOP). gorkem@gorkem-1215N:~$

ArchangeGabriel commented 13 years ago

Ok, thank you for a so detailed error report, I already have the solution to the problem, as it was a feature that I was wanting to add, now that I know it's solving a bug, I will make it top priority !

How ever, it seems you're having one other problem : the no such device one. We are currently working on it, as it happen to a lot of users, but don't have any solution for it right now.

By the way, my fix should make your system usable, so the nvidia problem is not as urgent...

ArchangeGabriel commented 13 years ago

Ok, I'm really busy for right now, I have an idea of temporary fix that may also show us if it is the problem : could you please remove the content of enable and disable scripts and see what happen ? (replace them by blank file, because we need them to exist, but don't need them to do something).

ghost commented 13 years ago

I click wrong button sorry:) so what should I do now?? I'm agree if I turn back my old configuration. should I uninstall or what?

ArchangeGabriel commented 13 years ago

No, for now, just remove the content that is in enable and disable scripts.

ghost commented 13 years ago

hımm.. maybe I did mistake when installing bumblebee. can u tell me instructions about it?

ArchangeGabriel commented 13 years ago

Ok, did you install bumblebee via git or via PPA ?

I think we may try to reinstall it. I suggest you to do the followings :

sudo bumblebee-uninstall sudo apt-get install ppa-purge sudo ppa-purge ppa:ubuntu-x-swat/x-updates sudo ppa-purge ppa:xorg-edgers/ppa sudo apt-add-repository ppa:mj-casalogic/bumblebee sudo apt-get update sudo apt-get install bumblebee

And come back say if there is any change.

ghost commented 13 years ago

sudo bumblebee-uninstall I did this then it asks y/n. and I type y then blank screen shown then ubuntu start page opened. is it normal? Now I reboot pc so its boot normally. will I go on?

ghost commented 13 years ago

I got these, in this step gorkem@gorkem-1215N:~$ sudo ppa-purge ppa:xorg-edgers/ppa PPA to be removed: xorg-edgers ppa Warning: Could not find package list for PPA: xorg-edgers ppa gorkem@gorkem-1215N:~$

whats wrong?

ghost commented 13 years ago

I fixed last comment by the way.

ArchangeGabriel commented 13 years ago

For your last message, that's normal, don't worry !

For the precedent, please do the followings ; 1) run bumblebee-enablecard (with sudo) 2) replace bumble-enablecard and bumble-disablecard with blank files. 3) run the above list of commands

ghost commented 13 years ago

now I realize , I couldnt uninstall bumblebee cuz I did last step now and it say: gorkem@gorkem-1215N:~$ sudo apt-get install bumblebee Reading package lists... Done Building dependency tree
Reading state information... Done bumblebee is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. gorkem@gorkem-1215N:~$

so what do you think?

ArchangeGabriel commented 13 years ago

Ok, what does bumblebee-uninstall ?

ghost commented 13 years ago

it ask yes or no then I type y and enter. and blank screen show up 2 sec. later ubuntu opening page display! I checked the usr/local/bin folder, scripts still there. I think that means I couldnt uninstall it. whats wrong?

ArchangeGabriel commented 13 years ago

Did you make what I've said ?

1) run bumblebee-enablecard (with sudo) 2) replace bumble-enablecard and bumble-disablecard with blank files. 3) run bumble-uninstall

ghost commented 13 years ago

sorry I missed your comment:( now I did and no problem with uninstalling now. thanks.

so what do you think should I try installing again with you? like this, sudo apt-get install ppa-purge sudo ppa-purge ppa:ubuntu-x-swat/x-updates sudo ppa-purge ppa:xorg-edgers/ppa sudo apt-add-repository ppa:mj-casalogic/bumblebee sudo apt-get update sudo apt-get install bumblebee

ghost commented 13 years ago

by the way should I add repository these two before run? : sudo ppa-purge ppa:ubuntu-x-swat/x-updates sudo ppa-purge ppa:xorg-edgers/ppa cuz console says could not find package list for...

ArchangeGabriel commented 13 years ago

Ok, now that you have correctly uninstall bumblebee, just make this as you said : sudo apt-add-repository ppa:mj-casalogic/bumblebee sudo apt-get update sudo apt-get install bumblebee

Don't add the repositories, these command were here for precaution, now that I know you didn't use these repos, I know it safe to continue...

ghost commented 13 years ago

so continue without run these two: sudo ppa-purge ppa:ubuntu-x-swat/x-updates sudo ppa-purge ppa:xorg-edgers/ppa ?? did I understand right?

ArchangeGabriel commented 13 years ago

Exactly, because we don't need to run these commands more than once !

ghost commented 13 years ago

ok. thanks. I installed. when install finished console asks: select a configuration profile or manual ? which one should I select?

ArchangeGabriel commented 13 years ago

Select a configuration profile

ghost commented 13 years ago

I'll select, but which one should I select?

ArchangeGabriel commented 13 years ago

What is proposed to you (I can't guess it, as it is fetch from the DB...) ?

ghost commented 13 years ago

ok I selected and install completed. now what should I do?

ghost commented 13 years ago

gorkem@gorkem-1215N:~$ sudo apt-get install bumblebee Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: nvidia-current virtualgl The following NEW packages will be installed: bumblebee nvidia-current virtualgl 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/30.9MB of archives. After this operation, 90.0MB of additional disk space will be used. Do you want to continue [Y/n]? y Selecting previously deselected package nvidia-current. (Reading database ... 190688 files and directories currently installed.) Unpacking nvidia-current (from .../nvidia-current_275.09.07-0ubuntu2~maverick_i386.deb) ... Selecting previously deselected package virtualgl. Unpacking virtualgl (from .../virtualgl_2.2.2svn-6~maverick_i386.deb) ... Selecting previously deselected package bumblebee. Unpacking bumblebee (from .../bumblebee_2.0.0-8~maverick_i386.deb) ... Processing triggers for man-db ... Processing triggers for ureadahead ... Setting up nvidia-current (275.09.07-0ubuntu2~maverick) ... update-alternatives: using /usr/lib/nvidia-current/ld.so.conf to provide /etc/ld.so.conf.d/GL.conf (gl_conf) in auto mode. update-alternatives: warning: skip creation of /usr/lib32/vdpau/libvdpau_nvidia.so.1 because associated file /usr/lib32/nvidia-current/vdpau/libvdpau_nvidia.so.1 (of link group gl_conf) doesn't exist. update-alternatives: warning: skip creation of /usr/lib32/libvdpau_nvidia.so because associated file /usr/lib32/nvidia-current/vdpau/libvdpau_nvidia.so (of link group gl_conf) doesn't exist. update-initramfs: deferring update (trigger activated) Loading new nvidia-current-275.09.07 DKMS files... First Installation: checking all kernels... Building only for 2.6.35-30-generic Building for architecture i686 Building initial module for 2.6.35-30-generic Done.

nvidia-current.ko: Running module version sanity check.

depmod....

DKMS: install Completed. Setting up virtualgl (2.2.2svn-6~maverick) ... Processing triggers for python-gmenu ... Rebuilding /usr/share/applications/desktop.en_US.utf8.cache... Setting up bumblebee (2.0.0-8~maverick) ...

Setting up and Downloading Configuration... Please wait

15 33 50 75 100 Processing triggers for initramfs-tools ... update-initramfs: Generating /boot/initrd.img-2.6.35-30-generic Processing triggers for python-support ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place gorkem@gorkem-1215N:~$

ArchangeGabriel commented 13 years ago

Ok, could you replace your enable and disable scripts by those linked here : https://github.com/MrMEEE/bumblebee/blob/master/install-files/ubuntu/bumblebee-enablecard.asus.1215N https://github.com/MrMEEE/bumblebee/blob/master/install-files/ubuntu/bumblebee-disablecard.asus.1215N

Then try to run the followings : 1) sudo bumblebee-enablecard 2) sudo bumblebee-disablecard 3) sudo bumblebee-disablecard (yes, again)

Then report the terminal output.

ghost commented 13 years ago

I replaced and, first step:

gorkem@gorkem-1215N:/usr/local/bin$ sudo bumblebee-enablecard [sudo] password for gorkem: FATAL: Module acpi_call not found. _PS0 Enabling nVidia card succeeded. gorkem@gorkem-1215N:/usr/local/bin$

What is missing?

ArchangeGabriel commented 13 years ago

acpi_call ;)

In fact I've just see you post the installation output, and I don't see acpi_call anywhere...

I'm looking for a solution please wait...

ghost commented 13 years ago

ok:) thank you very much your help. I'm waiting...

ArchangeGabriel commented 13 years ago

Ok first run this and give me the result (or say me if there isn't result) : dkms status |grep acpi_call

ghost commented 13 years ago

there is no result....

ArchangeGabriel commented 13 years ago

Ok, so acpi_call is really not installed.

Here we go for a very long list of commands : sudo apt-get install dkms git ln -s /usr/lib/dkms/dkms_autoinstaller /etc/init.d/dkms update-rc.d dkms defaults rm -rf /usr/src/acpi_call* cd /tmp git clone http://github.com/mkottman/acpi_call.git mv acpi_call /usr/src/acpi_call-1.0 The following list should be copied/pasted in one time : echo 'PACKAGE_NAME="acpi_call" PACKAGE_VERSION="'$ACPICALLVERSION'" CLEAN="make clean" BUILT_MODULE_NAME[0]="acpi_call" DEST_MODULE_NAME[0]="acpi_call" MAKE[0]="make IGNORE_CC_MISMATCH=1 KDIR=$kernel_source_dir PWD=$dkms_tree/acpi_call/1.0/build" DEST_MODULE_LOCATION[0]="/updates/dkms/" AUTOINSTALL="yes"' > /usr/src/acpi_call-$ACPICALLVERSION/dkms.conf And finally : dkms add -m acpi_call -v 1.0 dkms build -m acpi_call -v 1.0 dkms install -m acpi_call -v 1.0

ghost commented 13 years ago

in this step;

gorkem@gorkem-1215N:/tmp$ echo 'PACKAGE_NAME="acpi_call"

PACKAGE_VERSION="'$ACPICALLVERSION'" CLEAN="make clean" BUILT_MODULE_NAME[0]="acpi_call" DEST_MODULE_NAME[0]="acpi_call" MAKE[0]="make IGNORE_CC_MISMATCH=1 KDIR=$kernel_source_dir PWD=$dkms_tree/acpi_call/1.0/build" DEST_MODULE_LOCATION[0]="/updates/dkms/" AUTOINSTALL="yes"' > /usr/src/acpi_call-$ACPICALLVERSION/dkms.conf bash: /usr/src/acpi_call-/dkms.conf: No such file or directory gorkem@gorkem-1215N:/tmp$

ArchangeGabriel commented 13 years ago

Yes, sorry, try again this step with : echo 'PACKAGE_NAME="acpi_call" PACKAGE_VERSION="1.0" CLEAN="make clean" BUILT_MODULE_NAME[0]="acpi_call" DEST_MODULE_NAME[0]="acpi_call" MAKE[0]="make IGNORE_CC_MISMATCH=1 KDIR=$kernel_source_dir PWD=$dkms_tree/acpi_call/1.0/build" DEST_MODULE_LOCATION[0]="/updates/dkms/" AUTOINSTALL="yes"' > /usr/src/acpi_call-1.0/dkms.conf

ghost commented 13 years ago

ok install complete now. I'll do followings now: 1) sudo bumblebee-enablecard 2) sudo bumblebee-disablecard 3) sudo bumblebee-disablecard (yes, again)

ghost commented 13 years ago

outputs:

gorkem@gorkem-1215N:/usr/local/bin$ sudo bumblebee-enablecard _PS0 Enabling nVidia card succeeded. gorkem@gorkem-1215N:/usr/local/bin$ sudo bumblebee-disablecard _DSM Disabling nVidia card succeeded. _PS3 Disabling nVidia card succeeded. gorkem@gorkem-1215N:/usr/local/bin$ sudo bumblebee-disablecard ERROR: Module nvidia does not exist in /proc/modules _DSM Disabling nVidia card succeeded. _PS3 Disabling nVidia card failed (Error: AE_AML_INFINITE_LOOP). gorkem@gorkem-1215N:/usr/local/bin$

ArchangeGabriel commented 13 years ago

Ok, perfect, we are ongoing to make it work !

Now try : 1) sudo bumblebee-enablecard 2) sudo bumblebee-disablecard

And give me the output (it's to see what happen if you try this after getting the error).

ghost commented 13 years ago

gorkem@gorkem-1215N:/usr/local/bin$ sudo bumblebee-enablecard _PS0 Enabling nVidia card succeeded. FATAL: Error inserting nvidia_current (/lib/modules/2.6.35-30-generic/updates/dkms/nvidia-current.ko): No such device gorkem@gorkem-1215N:/usr/local/bin$ sudo bumblebee-disablecard ERROR: Module nvidia does not exist in /proc/modules _DSM Disabling nVidia card succeeded. _PS3 Disabling nVidia card succeeded. gorkem@gorkem-1215N:/usr/local/bin$

wierd:)

ArchangeGabriel commented 13 years ago

So here is the problem : if you call twice the bumblebee-disablecard script, it results in a huge problem...

Can you try to run twice the enable script ? Or even more, to see what happen...

ghost commented 13 years ago

gorkem@gorkem-1215N:/usr/local/bin$ sudo bumblebee-enablecard _PS0 Enabling nVidia card succeeded. FATAL: Error inserting nvidia_current (/lib/modules/2.6.35-30-generic/updates/dkms/nvidia-current.ko): No such device gorkem@gorkem-1215N:/usr/local/bin$ sudo bumblebee-enablecard _PS0 Enabling nVidia card succeeded. FATAL: Error inserting nvidia_current (/lib/modules/2.6.35-30-generic/updates/dkms/nvidia-current.ko): No such device gorkem@gorkem-1215N:/usr/local/bin$ sudo bumblebee-enablecard _PS0 Enabling nVidia card succeeded. FATAL: Error inserting nvidia_current (/lib/modules/2.6.35-30-generic/updates/dkms/nvidia-current.ko): No such device gorkem@gorkem-1215N:/usr/local/bin$ sudo bumblebee-enablecard _PS0 Enabling nVidia card succeeded. FATAL: Error inserting nvidia_current (/lib/modules/2.6.35-30-generic/updates/dkms/nvidia-current.ko): No such device gorkem@gorkem-1215N:/usr/local/bin$ sudo bumblebee-enablecard _PS0 Enabling nVidia card succeeded. FATAL: Error inserting nvidia_current (/lib/modules/2.6.35-30-generic/updates/dkms/nvidia-current.ko): No such device gorkem@gorkem-1215N:/usr/local/bin$

all same

ArchangeGabriel commented 13 years ago

Ok... Could you try to reboot ? (You will probably be back to the blank screen, but no one knows).

ghost commented 13 years ago

I rebooted and it worked fine no blank screen shown up. it says bumblebee enablecard succeeded. but you know I wanna disable nvidia card when I use ubuntu cuz I wanna save batterylife.