Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

3
Become a Fan
7.6

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:

== 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

admiral0

There's something wrong with vga_switcheroo. Does it work without the plasmoid? Is the path correct?

ademmer1977

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?

admiral0

Could you please post backtrace? It would really be useful here. Also what distro are you using?

ademmer1977

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 ()

ademmer1977

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

ademmer1977

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 ()

admiral0

Strange. I posted on kde-look only. Maybe platforms communicate, that's why they are "polluted"

admiral0

lol, even comments are sync'd. I'd call it an epic fail mate :D

Ireyon

It's all opendesktop.org ;)

bitcrazy

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

Pling
0 Affiliates
Details
license
version 1.0
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

More Plasma 4 Extensions from admiral0:

Wattson
admiral0
last update date: 13 years ago

Score 6.8

LogView
admiral0
last update date: 16 years ago

Score 5.8

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 13 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 16 years ago

Score 5.0

blaKjaK
werevire
last update date: 15 years ago

Score 5.0