Switchy

Plasma 4 Widgets

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

4
Score 78.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:

8 years ago

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

C

admiral0

8 years ago

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

Report

ademmer1977

8 years ago

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?

Report

C

admiral0

8 years ago

Could you please post backtrace? It would really be useful here.

Also what distro are you using?

Report

ademmer1977

8 years ago

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

Report

ademmer1977

8 years ago

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

Report

ademmer1977

8 years ago

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

Report

C

admiral0

8 years ago

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

Report

C

admiral0

8 years ago

lol, even comments are sync'd.

I'd call it an epic fail mate :D

Report

9

Ireyon

8 years ago

It's all opendesktop.org ;)

Report

bitcrazy

8 years ago

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

Report

8 years ago

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

12345678910
10
product-maker axed Jun 26 2011 9 excellent
product-maker pejakm Jan 30 2011 9 excellent
product-maker Ireyon Jan 28 2011 9 excellent
product-maker rangerGR Jan 18 2011 9 excellent
product-maker Znurre Jan 05 2011 9 excellent
product-maker vitoubien Jan 03 2011 9 excellent
product-maker deabru Jan 02 2011 9 excellent
product-maker dreamsoul Jan 02 2011 9 excellent
product-maker SeaJey Jan 02 2011 9 excellent
product-maker ruman Jan 02 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
alvanx
Jan 09 2013
lei00
Nov 27 2012
ObiWahn
Jan 03 2011
siv
Jan 02 2011
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.0
updated Jun 02 2011
added Jan 02 2011
downloads 24h
0
pageviews 24h 2