Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 285189 Details for
Bug 381361
Configure videocards using vga_switcheroo during boot
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Add vga_switcheroo option
0001-Add-vga_switcheroo-options.patch (text/plain), 1.28 KB, created by
Kirill Elagin
on 2011-08-31 21:05:16 UTC
(
hide
)
Description:
Add vga_switcheroo option
Filename:
MIME Type:
Creator:
Kirill Elagin
Created:
2011-08-31 21:05:16 UTC
Size:
1.28 KB
patch
obsolete
>From 9aea6114011606582a6a1adb1a0945a1f1d52f92 Mon Sep 17 00:00:00 2001 >From: Kirill Elagin <kirelagin@gmail.com> >Date: Thu, 1 Sep 2011 00:14:05 +0400 >Subject: [PATCH] Add vga_switcheroo options > >--- > defaults/linuxrc | 23 +++++++++++++++++++++++ > 1 files changed, 23 insertions(+), 0 deletions(-) > >diff --git a/defaults/linuxrc b/defaults/linuxrc >index 7aa11e3..b5f088a 100755 >--- a/defaults/linuxrc >+++ b/defaults/linuxrc >@@ -246,6 +246,10 @@ do > # fi > # fi > # ;; >+ # vga_switcheroo >+ vga_switcheroo\=*) >+ VGA_SWITCHEROO=`parse_opt "${x}"` >+ ;; > esac > done > >@@ -285,6 +289,25 @@ else > good_msg 'Skipping module load; no modules in the ramdisk!' > fi > >+# Issue vga_switcheroo commands >+if [ -n "$VGA_SWITCHEROO" ] >+then >+ local SWITCH_PATH="/sys/kernel/debug/vgaswitcheroo/switch" >+ mount -t debugfs none /sys/kernel/debug || bad_msg "Couldn't mount debugfs!" >+ if [ ! -f "$SWITCH_PATH" ] >+ then >+ warn_msg "vga_switcheroo is not initialized!" >+ else >+ local IFS="," >+ for c in $VGA_SWITCHEROO >+ do >+ good_msg "Echoing \"$c\" to $SWITCH_PATH" >+ echo "$c" > $SWITCH_PATH >+ done >+ fi >+fi >+ >+ > # Apply scan delay if specified > sdelay > >-- >1.7.3.4 >
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 381361
: 285189 |
285197
|
285199
|
310155
|
310307