Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on Aug 11, 2012
  1. trivial Makefile fixes

    authored
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on Aug 5, 2012
  1. switcheroo: set dkms to autoinstall

    authored
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  2. switcheroo: Add slackware install targets

    authored
    From: Willy Sudiarto Raharjo <willysr@slackware-id.org>
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  3. switcheroo: update to new client ops introduced in 3.5

    authored
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on Jan 20, 2012
  1. Merge pull request #12 from ibloat/master

    authored
    compile against 3.2 kernels
  2. compile against 3.2 kernels

    ibloat authored
    *warning: not tested against older versions!*
Commits on Oct 8, 2011
  1. fix Makefile whitespace

    authored
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on Sep 19, 2011
  1. Merge pull request #6 from n0peration/patch-1

    authored
    Edited Makefile via GitHub
Commits on Sep 8, 2011
  1. @n0peration

    Edited Makefile via GitHub

    n0peration authored
  2. @n0peration

    Edited Makefile via GitHub

    n0peration authored
Commits on Jun 19, 2011
  1. Add dkms file for fedora

    authored
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on May 16, 2011
  1. byo-switcheroo: use sprintf

    authored
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  2. byo-switcheroo: Add model option to preload defaults

    authored
    Currently only supports "AsusUL30VT".  Also add a mdelay special
    command to allow configurable delays after powering on the device.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on May 14, 2011
  1. Build-Your-Own-Switcheroo

    authored
    Combining asus-switcheroo and acpi-call, this driver allows you to
    create your own, custom switcheroo acpi driver.  The module has the
    following options:
    
    parm:           dummy_client:Enable dummy VGA switcheroo client support (bool)
    
    Just as with asus-switcheroo, this allows for use w/o nouveau (or radeon)
    
    parm:           igd_vendor:int
    
    This distinguishes the PCI vendor ID of the integrated graphics.  The
    default is 0x8086 (Intel).
    
    parm:           switchto_igd:charp
    
    acpi_call style script to switch to IGD
    
    parm:           switchto_dis:charp
    
    acpi_call style script to switch to DIS
    
    parm:           power_state_igd_on:charp
    
    acpi_call style script to power IGD on (typically not used)
    
    parm:           power_state_igd_off:charp
    
    acpi_call style script to power IGD off (typically not used)
    
    parm:           power_state_dis_on:charp
    
    acpi_call style script to power DIS on
    
    parm:           power_state_dis_off:charp
    
    acpi_call style script to power DIS off
    
    There's also support for special callbacks using a "!" identifier.
    Currently, nouveau_fbcon_output_poll_changed is the only one defined.
    
    To get behavior identical to asus-switcher, I use these:
    
    MXMX 0x1
    MXDS 0x1
    _DSM
    {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x2 {0x12,0x0,0x0,0x0}
    !nouveau_fbcon_output_poll_changed
    
    MXMX 0x1
    MXDS 0x1
    _DSM
    {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x2 {0x11,0x0,0x0,0x0}
    
    _DSM
    {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x3 {0x1,0x0,0x0,0x0}
    
    _DSM
    {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x3 {0x2,0x0,0x0,0x0}
    
    Note that the acpi_call scripts are changeable at runtime by writing to
    the /sys/module/byo-switcheroo/parameters files.  The only options
    necessary at module load time are dummy_client (only if you wish to
    enable ot), and igd_vendor (only if you want to specify something other
    than Intel).
    
    Also note, this module does nothing more than register an empty handler
    unless you provide acpi_call scripts to run on switching.  If it doesn't
    work for you, find the right acpi_call script to make it work, and post
    the recipe for everyone else.
    
    acpi_call scripts can have commands separated by new lines or ';'.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on May 4, 2011
  1. asus-switcheroo: Fix arch install/uninstall

    authored
    Don't delete the whole line in rc.conf, just extract what we added.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on May 2, 2011
  1. asus-switcheroo: Add delay after powering on device

    authored
    Not sure how long this delay should be, but I've see dmesg errors
    about failing to transition the device to D0 that I expect might
    be due to lack of delay after powering the device on.  This seems
    to get rid of it.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on May 1, 2011
  1. asus-switcheroo: more fun with jprobes (and kretprobes!)

    authored
    When only using asus-switcheroo to power off the discrete graphics,
    it's not uncommon for the system to eventually lock up.  On my
    system, this often seems to be a result of nouveau getting an
    interrupt (it's on a shared irq, so it should expect this).  The
    interrupt handler goes out to read hardware, gets -1 back and
    proceeds to kill the system.  These probes free the interrupt
    handler prior to putting the device in D3hot, and re-request it
    after the device is returned to D0.  I've already submitted a
    patch upstream to do exactly this, but it hasn't yet been well
    received.  Like the i915-jprobe, this needs to be loaded prior
    to the driver, nouveau in this case.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on Apr 22, 2011
  1. asus-switcher: How does this work

    authored
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on Apr 21, 2011
  1. asus-switcher: Fix client register compile

    authored
    Looks like the reprobe arg went in after v2.6.37.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on Apr 20, 2011
  1. asus-switcheroo: Fix typos

    authored
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  2. asus-switcher: update to deploy i915-jprobe

    authored
    Update install targets and README with new status & instructions.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on Apr 19, 2011
  1. asus-switcheroo: Make nouveau reprobe

    authored
    Only newer kernels support the reprobe vga switcheroo callback, but
    this is the thing we need to get output going when we switch to
    discrete graphics.  The function we need isn't exported, so go
    through a sneaky kallsym trick to call it anyway.  With this,
    we get output on the LCD when we switch to nouveau discrete gfx.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  2. asus-switcheroo: Register i915 jprobe via workqueue

    authored
    This avoids hitting the BUGON from calling it from inside another probe
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  3. asus-switcheroo: Arch Linux install/uninstall

    authored
    From: Jorge Sousa <jorge.msl.sousa@gmail.com>
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  4. asus-switcheroo: i915 jprobe hack

    authored
    This is an attempt to work around i915 bugs when we switch over
    to discrete graphics.  It's far from perfect, needing to be loaded
    before i915 in the initramfs and hitting a BUG while registering
    a jprobe, but it seems to do the job.  Not even attempting to make
    this part of the install yet.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on Apr 18, 2011
  1. asus-switcheroo: More install targets

    authored
    Moves install to install-fedora, add uninstall-fedora,
    install-ubuntu and uninstall-ubuntu.  Also add .gitignore.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on Apr 17, 2011
  1. asus-switcher: README overhaul

    authored
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  2. asus-switcheroo: install target

    authored
    Add install target for Fedora
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  3. asus-switcheroo: Misc configs and printk changes

    authored
    Remove UL30VT specific printks and fix name of pm script file
    
    Add modprobe and dract configs
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  4. asus-switcher: push suspend/resume script out to it's own file

    authored
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  5. asus-switcheroo: rename

    authored
    I saw another Asus DSDT that seems like it might work with this
    code.  Drop the ul30vt from function names and such.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  6. ul30vt switcheroo: first pass at dummy client support

    authored
    Add a dummy-client module option that registers a vga switcheroo
    client.  This allows switching to the discrete graphics without
    nouveau loaded.  Once switched, the proprietary nvidia module
    can be loaded, though vt support dies.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Commits on Apr 15, 2011
  1. Add a README

    authored
    Hopefully it's nearly accurate
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  2. Initial, working VGA switcheroo for Asus UL30VT

    authored
    Note this is very experimental, use at your own risk.  I don't even
    know what some of these calls are doing.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Something went wrong with that request. Please try again.