Giter Site home page Giter Site logo

asus-switcheroo's People

Contributors

awilliam avatar n0peration avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

asus-switcheroo's Issues

i915_jprobe operation not permitted error

Running Arch 3.2.5 on a ul50vt, I've compiled everything and it looks fine except that at book I get 'error loading module i915_jprobe operation not permitted"

I've properly installed the files (manually doublechecking the steps in the makefile). I can see the vgaswticheroo/switch file, read it for the status of the two cards and echo commands to it all fine. I ran mkinitcpio -p linux after having added asus-switcheroo and i915-jprobe to the config file beforehand. I've also blacklisted nouveau and my rc.conf modules line reads "asus-switcheroo i915-jprobe nouveau-jprobe vboxdrv acpi_call". I've tried chmod 744 i915-jprobe.ko and also chmod 755 but every bootup gives me the error and everytime I try modprobe or insmod I get the same error.

Is there something I'm doing wrong? Or is there a better way to do this? I've honestly had a hard time telling whether or not the graphics cards actually switch when I echo the commands and restart X.

Asus N61Jv

i have installed asus-switcheroo on my laptop with opensuse 12.1 ,there was no problem with install, i can play with switching ON/OFF card but when i try to change to DIS display freeze in console and i cant go image back even if switch to IGD
also i 've some errors

ACPI Exception: AE_AML_BUFFER_LIMIT, Index (0x0000000000000003) is beyond end of object (20110623/exoparg2-418)
ACPI Error: Method parse/execution failed [SB.PCI0.GFX0._DSM](Node f2846428), AE_AML_BUFFER_LIMIT (20110623/psparse-536)
ACPI Error: Method parse/execution failed [SB.PCI0.PEGR.GFX0._DSM](Node f2854518), AE_AML_BUFFER_LIMIT (20110623/psparse-536)
] failed to evaluate _DSM: 12298

dmesg http://www.mediafire.com/?2a3bhg4l5igt7ay

CONFIG_VGA_SWITCHEROO=y
install nouveau /sbin/modprobe asus-switcheroo; /sbin/modprobe nouveau-jprobe; /sbin/modprobe --ignore-install nouveau
install i915 /sbin/modprobe i915-jprobe; /sbin/modprobe --ignore-install i915
options asus-switcheroo dummy_client=1
INITRD_MODULES="asus-switcheroo i915-jprobe nouveau-jprobe ahci"

Ubuntu : not working since kernel 3.2.0-25

Hello

Since kernel 3.2.0-25 asus-switcheroo freeze when echoing OFF to /sys/kernel/debug/vgaswitcheroo/switch
compilation and loading was ok with this kernel.

when booting on the same system with 3.2.0-24 or previous, it works like a charm.

Mathieu Vitry

does not work on hp pavilion dm3-1150el and kubuntu 12.04 (flashing line)

I tried on my hp pavilion dm3-1150el but does not work. I use kubuntu 12.04, i tried with kernel 3.2.0-34, 3.2.0-24 and 3.6.0, but when give the command:

echo DIS > /sys/kernel/debug/vgaswitcheroo/switch 

as root see flashing line.
I have decompiled my acpi and i have:

Method (MXMX, 1, NotSerialized)
{
...

Method (MXDS, 1, NotSerialized)
{
...

Method (_DSM, 4, NotSerialized)

Here you can find my acpi: http://paste.kde.org/626846/

/sys/kernel/debug/vgaswitcheroo directory gone missing after installing asus-switcheroo

Hey guys,

I was installing asus-switcheroo on my asus ul30vt with ubuntu natty (2.6.38-11-generic) unfortunately the /sys/kernel/debug/vgaswitcheroo directory disappears as soon as I reboot after the install.

Update: it seams to me to be a bug that the module sometimes does not load. I did a fresh install and it seams solved till now

Update 30.8.2011
when turning off the laptop with only nvidia enabled the directory goes missing. could some one confirm it whether it happens to them to would be nice to find out for the general public

Not compiling on Linux Kernel 3.5

I got this error when trying to compile asus-switcheroo on Linux Kernel 3.5
make
make -C /lib/modules/3.5.0-smp/build M=/home/willysr/Hybrid/asus-switcheroo modules
make[1]: Entering directory /usr/src/linux-3.5' CC [M] /home/willysr/Hybrid/asus-switcheroo/asus-switcheroo.o /home/willysr/Hybrid/asus-switcheroo/asus-switcheroo.c: In function ‘asus_switcheroo_init’: /home/willysr/Hybrid/asus-switcheroo/asus-switcheroo.c:320:13: warning: passing argument 2 of ‘vga_switcheroo_register_client’ from incompatible pointer type [enabled by default] In file included from /home/willysr/Hybrid/asus-switcheroo/asus-switcheroo.c:22:0: include/linux/vga_switcheroo.h:47:5: note: expected ‘const struct vga_switcheroo_client_ops *’ but argument is of type ‘void (*)(struct pci_dev *, enum vga_switcheroo_state)’ /home/willysr/Hybrid/asus-switcheroo/asus-switcheroo.c:320:13: error: too many arguments to function ‘vga_switcheroo_register_client’ In file included from /home/willysr/Hybrid/asus-switcheroo/asus-switcheroo.c:22:0: include/linux/vga_switcheroo.h:47:5: note: declared here make[2]: *** [/home/willysr/Hybrid/asus-switcheroo/asus-switcheroo.o] Error 1 make[1]: *** [_module_/home/willysr/Hybrid/asus-switcheroo] Error 2 make[1]: Leaving directory/usr/src/linux-3.5'
make: *** [default] Error 2

byo-switcheroo Kernel Panic w/kernel 3.0.1

Experiencing a kernel panic w/a NULL pointer being dereferenced on modprobe of the byo-switcheroo module, following your issue #3 suggestions. Used the 9231be9 commit on a Gentoo Linux box, vanilla kernel 3.0.1. Used a modded version of asus-switcheroo ebuild so that it would get the latest git commit, and install byo-switcheroo. Hardware is a Asus UL30JT, which reportedly works with the -VT info.

Make error

When I "sudo make install-ubuntu" I get the following error:

Makefile:81: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.

Probably no big deal, but it won't make.

"disassemble your DSDT" ?

How do I perform the step called "disassemble your DSDT"? Are there terminal commands I can type? Can you edit that step of the README to make it more n00b-friendly?

Possible missing firmware

when i try and make install-fedora i get the following error...

install -m 0644 -D asus-switcheroo.ko /lib/modules/2.6.40.4-5.fc15.x86_64/extra/asus-switcheroo/asus-switcheroo.ko
install -m 0644 -D byo-switcheroo.ko /lib/modules/2.6.40.4-5.fc15.x86_64/extra/asus-switcheroo/byo-switcheroo.ko
install -m 0644 -D i915-jprobe.ko /lib/modules/2.6.40.4-5.fc15.x86_64/extra/asus-switcheroo/i915-jprobe.ko
install -m 0644 -D nouveau-jprobe.ko /lib/modules/2.6.40.4-5.fc15.x86_64/extra/asus-switcheroo/nouveau-jprobe.ko
depmod -a
install -m 0755 asus-switcheroo-pm /etc/pm/sleep.d/75-asus-switcheroo-pm
install -m 0644 asus-switcheroo.conf-modprobe.d /etc/modprobe.d/asus-switcheroo.conf
install -m 0644 asus-switcheroo.conf-dracut /etc/dracut.conf.d/asus-switcheroo.conf
cp /boot/initramfs-2.6.40.4-5.fc15.x86_64.img /boot/initramfs-2.6.40.4-5.fc15.x86_64.img.bak
dracut -f /boot/initramfs-2.6.40.4-5.fc15.x86_64.img 2.6.40.4-5.fc15.x86_64
W: Possible missing firmware "nouveau/fuc41ad" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/fuc41ac" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/fuc409d" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/fuc409c" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/nvc4_fuc41ad" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/nvc4_fuc41ac" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/nvc4_fuc409d" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/nvc4_fuc409c" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/nvc3_fuc41ad" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/nvc3_fuc41ac" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/nvc3_fuc409d" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/nvc3_fuc409c" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/nvc0_fuc41ad" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/nvc0_fuc41ac" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/nvc0_fuc409d" for kernel module "nouveau.ko"
W: Possible missing firmware "nouveau/nvc0_fuc409c" for kernel module "nouveau.ko"
W: Possible missing firmware "ql2400_fw.bin" for kernel module "qla2xxx.ko"
W: Possible missing firmware "ql2322_fw.bin" for kernel module "qla2xxx.ko"
W: Possible missing firmware "ql2300_fw.bin" for kernel module "qla2xxx.ko"
W: Possible missing firmware "ql2200_fw.bin" for kernel module "qla2xxx.ko"
W: Possible missing firmware "ql2100_fw.bin" for kernel module "qla2xxx.ko"
W: Possible missing firmware "isci/isci_firmware.bin" for kernel module "isci.ko"
W: Possible missing firmware "cbfw_fc.bin" for kernel module "bfa.ko"
W: Possible missing firmware "ctfw_cna.bin" for kernel module "bfa.ko"
W: Possible missing firmware "ctfw_fc.bin" for kernel module "bfa.ko"
W: Possible missing firmware "aic94xx-seq.fw" for kernel module "aic94xx.ko"

any advice?

Compatibility with Kernel 2.6.38

Thanks for all the great work! I packaged this module for gentoo in the sunrise overlay and it was working great for kernel 2.6.36. However, when I upgraded to 2.6.38 things stopped working. The symptoms are:

  1. I don't have a /sys/kernel/debug/vgaswitcheroo anymore.
  2. The i915-jprobe module won't load. When I try to load it (as root, before other modules) I get: "operation not permitted" and dmesg reports "Failed register_jprobe for acpi_lid_notifier_register, -22"

The asus-switcheroo module loads with:

"Found VGA device 0000:00:02.0 (SB.PCI0.VGA_): IGD
Found VGA device 0000:01:00.0 (SB.PCI0.P0P1.VGA_): DIS
Asus switcheroo: detected DSM switching method SB.PCI0.P0P1.VGA_ handle"

in /var/log/messages.

Following the directions for switching to the nvidia card causes a black screen.

Any suggestions?

Can't compile today

I cannot compile asus_switcheroo anymore. I think it is linked to my upgrade to linux 3.2.

Here is the error:

/root/asus-switcheroo/asus-switcheroo.c:337:28: error: expected ')' before 'bool'
/root/asus-switcheroo/asus-switcheroo.c:338:32: error: expected ')' before string constant
/root/asus-switcheroo/asus-switcheroo.c:340:15: error: expected declaration specifiers or '...' before string constant
/root/asus-switcheroo/asus-switcheroo.c:341:20: error: expected declaration specifiers or '...' before string constant
/root/asus-switcheroo/asus-switcheroo.c:342:16: error: expected declaration specifiers or '...' before string constant
/root/asus-switcheroo/asus-switcheroo.c:343:16: error: expected declaration specifiers or '...' before string constant
make[2]: *** [/root/asus-switcheroo/asus-switcheroo.o] Error 1
make[1]: *** [module/root/asus-switcheroo] Error 2
make[1]: Leaving directory `/usr/src/linux-3.2.1-1-ARCH'
make: *** [default] Error 2

I don't understand the cause of the problem. It seems to want to use a module_param prototype with only one parameter (the syntax error disappears when I put only the first parameter). But I can't find where this prototype would be declared, I can only find the 3 parameter variant in my include files.

Adding #include <linux/moduleparam.h> at the beginning of the includes makes this go away.

Then I have those:
/root/asus-switcheroo/asus-switcheroo.c:341:15: error: expected declaration specifiers or '...' before string constant
/root/asus-switcheroo/asus-switcheroo.c:342:20: error: expected declaration specifiers or '...' before string constant
/root/asus-switcheroo/asus-switcheroo.c:343:16: error: expected declaration specifiers or '...' before string constant
/root/asus-switcheroo/asus-switcheroo.c:344:16: error: expected declaration specifiers or '...' before string constant

This is solved by including <linux/module.h>, so the moduleparam.h is no longer necessary.

I had to do this in several files (i915_jprobe, nouveau_jprobe, byo_switcheroo).

Then everything compiled…

I don't know if something changed in the 3.2 kernel headers…

Asus N53S

I'm running Debian Wheezy 64 Bits with the kernel version 2.6.38-2-amd64
I've compiled asus-switcheroo but I cannot find the folder /sys/kernel/debug/vgaswitcheroo/switch

And when it boots I'm getting Operation Not permitted when it try to load the i915_jprob module.

Thank you for your help

Sincerely
Wathek

No /sys/kernel/debug/vgaswitcheroo after loaded (Ubuntu 12.04)

I'm using Asus UL30Vt with a fresh install of Ubuntu 12.04 LTS. I tried install the module with "make install-ubuntu", the make process seems fine as i reboot and got these 4 modules loaded.

modprobe -l
...
extra/asus-switcheroo/asus-switcheroo.ko
extra/asus-switcheroo/byo-switcheroo.ko
extra/asus-switcheroo/nouveau-jprobe.ko
extra/asus-switcheroo/i915-jprobe.ko

Also found /sys/module/asus_switcheroo/ directory too.

I'm pretty sure the module had been loaded, The problem, however, is that the path /sys/kernel/debug/vgaswitcheroo doesn't seems to exists at all. I tried adding debugfs to /etc/fstab and its also not work too.

uname -a
3.2.0-24-generic #37-Ubuntu SMP x86_64 GNU/Linux

Apologize my newbie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.