
Switchy
Source (link to git-repo or to original if based on someone elses unmodified work):
Description:
Switchable graphics is relatively new, but it's cool to have the GPUs under control. Prerequisites are:
->vga switcheroo kernel module
->open source drivers for both cards
This plasmoid shows status and can switch between GPUs. Helper program is needed (vgad).
Compile (look at README file)
copy vgad to /usr/bin
add "vgad &" without quotes to /etc/rc.local Last changelog:
->vga switcheroo kernel module
->open source drivers for both cards
This plasmoid shows status and can switch between GPUs. Helper program is needed (vgad).
Compile (look at README file)
copy vgad to /usr/bin
add "vgad &" without quotes to /etc/rc.local
== 0.1 ==
Added basic functionality.
== 0.2 ==
Actual switching
Helper program
KDE session integration
== 0.3 ==
Fixed 2 severe bugs
== 1.0 ==
Refactored whole ui
Added functionality to vgac
Cleaned up code
Ratings & Comments
10 Comments
There's something wrong with vga_switcheroo. Does it work without the plasmoid? Is the path correct?
Switching cards in runlevel 3 using "ECHO DIS > /sys/kernel/debug/vgaswitcheroo/switch" for discrete and "ECHO IGD > /sys/kernel/debug/vgaswitcheroo/switch" for integrated graphics works fine. Here is the content of my switch file: 0:IGD:+:Pwr:0000:00:02.0 1:DIS: :Off:0000:01:00.0 Nevertheless, Switchy crashes (even 1.0 release). Any suggestions?
Could you please post backtrace? It would really be useful here. Also what distro are you using?
I am using openSUSE 11.4 64bit with KDE SC 4.6.3. My integrated graphics card is an Intel Arrandale chipset (uses free i915 driver) and the discrete adapter as an ATI MobilityRadeon 5650 (uses the free radeon driver). My XOrg stack is version 7.6_1.9.3. Let me know wether you need any more information or contact me on Skype (andreas.demmer), ICQ (103924771) or Jabber (andreas.demmer.1977@googlemail.com). The backtrace is following: Application: Plasma-Miniprogramm-Anzeige (plasmoidviewer), signal: Segmentation fault [KCrash Handler] #6 isPowered (path=<value optimized out>) at /home/ademmer/Source/other/Switchy/videoinfo.cpp:62 #7 VideoInfo::getInfo (path=<value optimized out>) at /home/ademmer/Source/other/Switchy/videoinfo.cpp:128 #8 0x00007fdd80b3ad6d in Switchy::updateApplet (this=0x7c0e90) at /home/ademmer/Source/other/Switchy/switchy.cpp:143 #9 0x00007fdd80b3af89 in Switchy::init (this=0x7c0e90) at /home/ademmer/Source/other/Switchy/switchy.cpp:179 #10 0x00007fdd97cfcfe4 in Plasma::Containment::addApplet (this=0x78d4e0, applet=0x7c0e90, pos=..., delayInit=false) at /usr/src/debug/kdelibs-4.6.3/plasma/containment.cpp:921 #11 0x00007fdd97cfd307 in Plasma::ContainmentPrivate::addApplet (this=0x8324b0, name=..., args=<value optimized out>, appletGeometry=..., id=<value optimized out>, delayInit=false) at /usr/src/debug/kdelibs-4.6.3/plasma/containment.cpp:2311 #12 0x0000000000408c8c in _start ()
plasmoidviewer switchy plasmoidviewer(25729)/plasma main: setting FormFactor to "planar" plasmoidviewer(25729)/plasma main: setting Location to "floating" plasmoidviewer(25729)/plasma main: setting containment to "null" plasmoidviewer(25729)/plasma main: setting auth policy plasmoidviewer(25729)/libplasma Plasma::Corona::Corona: !!{} STARTUP TIME 57490819 Corona ctor start plasmoidviewer(25729)/plasma main: just load applet plasmoidviewer(25729)/plasma FullView::addApplet: adding applet "switchy" in "null" plasmoidviewer(25729)/kdecore (KSycoca): Trying to open ksycoca from "/var/tmp/kdecache-ademmer/ksycoca4" plasmoidviewer(25729)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0) plasmoidviewer(25729)/libplasma Plasma::AppletPrivate::init: Check your constructor! You probably want to be passing in a Service::Ptr or a QVariantList with a valid storageid as arg[0]. plasmoidviewer(25729)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0) "" () 0 KCrash: Application 'plasmoidviewer' crashing... KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit sock_file=/home/username/.kde4/socket-envy/kdeinit4__0
Dr. Konqui report: Application: Plasma-Miniprogramm-Anzeige (plasmoidviewer), signal: Segmentation fault [KCrash Handler] #6 isPowered (path=<value optimized out>) at /home/ademmer/Downloads/Switchy/videoinfo.cpp:59 #7 VideoInfo::getInfo (path=<value optimized out>) at /home/ademmer/Downloads/Switchy/videoinfo.cpp:114 #8 0x00007f3880a157d0 in Switchy::init (this=0x896cd0) at /home/ademmer/Downloads/Switchy/switchy.cpp:80 #9 0x00007f3896be1e14 in Plasma::Containment::addApplet (this=0x881a20, applet=0x896cd0, pos=..., delayInit=false) at /usr/src/debug/kdelibs-4.6.0/plasma/containment.cpp:921 #10 0x00007f3896be2137 in Plasma::ContainmentPrivate::addApplet (this=0x87c700, name=..., args=<value optimized out>, appletGeometry=..., id=<value optimized out>, delayInit=false) at /usr/src/debug/kdelibs-4.6.0/plasma/containment.cpp:2311 #11 0x0000000000408c8c in _start ()
Strange. I posted on kde-look only. Maybe platforms communicate, that's why they are "polluted"
lol, even comments are sync'd. I'd call it an epic fail mate :D
It's all opendesktop.org ;)
Useful plasmoid for someone with 2 gpus. But please keep kde-look and kde-apps separated. There is enough pollution by qt-apps here. Plasmoids should be presented on kde-look.org, and not cross posted