
Switchy
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
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
9 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
9 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
admiral0
10 years ago
Report
ademmer1977
9 years ago
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
admiral0
9 years ago
Also what distro are you using?
Report
ademmer1977
9 years ago
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
10 years ago
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
10 years ago
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
admiral0
10 years ago
Report
admiral0
10 years ago
I'd call it an epic fail mate :D
Report
Ireyon
10 years ago
Report
bitcrazy
10 years ago
Report