Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 272523 Details for
Bug 366503
New ebuild x11-drivers/asus-switcheroo for Asus laptops with nvidia cards
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild
asus-switcheroo-0.1.ebuild (text/plain), 2.27 KB, created by
nickrobbins
on 2011-05-08 20:30:13 UTC
(
hide
)
Description:
ebuild
Filename:
MIME Type:
Creator:
nickrobbins
Created:
2011-05-08 20:30:13 UTC
Size:
2.27 KB
patch
obsolete
># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/app-misc/usbirboy/usbirboy-0.2.1-r1.ebuild,v 1.15 2008/05/16 20:49:40 zzam Exp $ > >inherit linux-mod eutils git > >DESCRIPTION="modules to turn off nvidia card for asus laptops" >HOMEPAGE="https://github.com/awilliam/asus-switcheroo" >EGIT_REPO_URI="git://github.com/awilliam/asus-switcheroo.git" >#SRC_URI="${PN}.tgz" > >SLOT="0" >KEYWORDS="amd64 x86" >LICENSE="GPL-2" >IUSE=" >video_cards_intel >video_cards_nouveau >video_cards_nvidia" > >DEPEND="sys-power/pm-utils" >RDEPEND="${DEPEND}" > >MODULE_NAMES="asus-switcheroo(extra/asus-switcheroo:${S}) " >use video_cards_intel && MODULE_NAMES="${MODULE_NAMES} i915-jprobe(extra/asus-switcheroo:${S})" >use video_cards_nouveau && MODULE_NAMES="${MODULE_NAMES} nouveau-jprobe(extra/asus-switcheroo:${S})" > >BUILD_TARGETS="default" > >src_unpack() { > git_src_unpack >} > >pkg_setup() { > linux-mod_pkg_setup || die >} > > >src_compile(){ > linux-mod_src_compile || die > >} > >src_install(){ > linux-mod_src_install || die > exeinto /etc/pm/sleep.d > doexe asus-switcheroo-pm || die > > > if use video_cards_nvidia ; then > insinto /etc/modprobe.d > newins "${FILESDIR}"/asus-switcheroo.conf-nvidia asus-switcheroo.conf > > newinitd "${FILESDIR}"/switcheroo.rc switcheroo > > exeinto /opt/bin > newexe "${FILESDIR}"/switcheroo-to-nvidia.sh switcheroo-to-nvidia > > insinto /etc/X11 > doins "${FILESDIR}"/xorg.conf-nvidia > > elif use video_cards_nouveau ; then > insinto /etc/modprobe.d > newins asus-switcheroo.conf-modprobe.d asus-switcheroo.conf > fi >} > > >pkg_postinst() { > elog "If debugfs isn't automatically mounted for you," > elog " add this to your /etc/fstab:" > elog "" > elog " debugfs /sys/kernel/debug debugfs defaults 0 0" > elog "" > elog "Remember to add asus_switcheroo to /etc/modules.autoload.d/kernel-2.*" > > if use video_cards_nvidia ; then > elog "" > elog "This ebuild has installed a system for switching" > elog "to the nVidia card and driver. This system requires" > elog "that you use the supplied xorg.conf for nVidia" > elog "and no xorg.conf for the intel card. The switching" > elog "is handled by the command switcheroo-to-nvidia" > elog "and the switcheroo init.d script." > fi > > > linux-mod_pkg_postinst >} > >pkg_postrm() { > linux-mod_pkg_postrm >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 366503
:
272523
|
272525
|
272527
|
272529
|
272531
|
272533