
Eee plasmoid
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
This is a simple applet for monitoring and controlling the state of the EeePC's peripherals:
-Card Reader
-Webcam
-Wireless
-Bluetooth
This is mainly useful to save battery power, eg by turning off the radios when they're not used.
Complete with nice little tooltips.
Simply click on an icon to toggle its state.
It uses the interface of the eeepc_laptop module.
I wrote this because I did not know of a nice way to do this in kde without resorting to running the echo commands manually, or compiling a gtk-base tray applet.
Based off the nice little Suspend Plasmoid:
http://www.kde-look.org/content/show.php/Suspend+Applet?content=101780
Known bug: Has funny spacing in panel. Does anyone know how to fix the large seemingly fixed spacing in the panels?
Todo: Would be sweet to use policykit instead of kdesu, will have to look into it.
Note: If you are using a (k)ubuntu system, you may not have the kdesu command. If this is so, you can either:
- Edit contents/main.py and replace the 'kdesu' in line 47 with 'kdesudo'.
- Or symlink kdesu to kdesudo.
11 years ago
0.1.1 - Not a terrible amount: code refactor, and autorefresh every 5 seconds.
0.1 - Initial release.
11 years ago
0.1.1 - Not a terrible amount: code refactor, and autorefresh every 5 seconds.
0.1 - Initial release.
GDR
8 years ago
def checkEnabled(self):
try:
f = open(self.fullfile).read().strip()
self.enabled = True if f is '1' else False
except IOError:
self.enabled = False
Report
kma21
8 years ago
Plasmoid says:
Quote:/sys/devices/platform/eeepc doesn't seem to exist, is the eeepc_laptop module loaded?
Quote:lsmod | grep eee
eeepc_wmi 12564 0
asus_wmi 18726 1 eeepc_wmi
Quote:ls /sys/devices/platform/eeepc-wmi/
cpufv driver hwmon input modalias power rfkill subsystem touchpad uevent
Any ideas?
Report
GDR
8 years ago
acpi_osi=Linux
Then the eeepc_laptop module will likely load automatically; if not - modprobe it.
Report
CJPB
9 years ago
i'm trying to adapt you plasmoid to do the same thing on my thinkpad. I don't know any programming though :|
I've made the proper adjustments with regard to the devices and such... but the command is not working. When i click an icon i'm prompt to insert the password but then i get an error... can not bla bla bla
In the terminal, the same command works as root (su), but if i do "kdesu echo..." it doesn't work. Complains about permissions. The kdesu works with other commands though, kdesu yast2 works fine for instance.
Any guess as to why i can get over this?
regards,
Carlos
Report
nufrix
10 years ago
maybe i am doing something wrong, but i can't run this plasmoid. I installed it properly and without any trouble, but when i try tu run it, it show this message:
/sys/devices/platform/eeepc doesn't seem to exist, is the eeepc_laptop module loaded
I know that there is a module missing, but i can't find it in the repositories of my Kubuntu 10.10. I really like the idea of this plasmoid, but i can't try it :(
Report
ChemBro
11 years ago
I'm running KDE 4.4 on Arch Linux/KDEmod with plasma-netbook and the eee-plasmoid doesn't work for me. It says something like "cannot initialize python-script".
Does this plasmoid work in KDE 4.4? I need it on my eee. :-( It's very useful.
Report
Josefpatch
11 years ago
I am also still getting the hang of using the terminal, so if you give me instructions to be used in it, please give me the complete command.
(I only know the basics)
Report
Josefpatch
11 years ago
Right after I posted it, I figured it out.
I originally downloaded the widget using the widget app built into Kubuntu 9.10. Uninstalled that, and downloaded the one straight from the site.
Report
schmirrwurst
11 years ago
Could you adapt it for all laptop ?
Could you tell me how to do that ?
Report
schmirrwurst
11 years ago
Report
YAFU
11 years ago
This is the plasma for Kubuntu:
http://rapidshare.de/files/48014928/eee-plasmoid-0.1.1.plasmoid.html
Thanks!
Report
YAFU
11 years ago
And you need to install this package to work on Kubuntu:
sudo apt-get install plasma-scriptengine-python
Instead, you get an error about this:
"could not create a python scriptengine"
Bye!
Report
bonaire
11 years ago
I get an error while installing this version, because plasma does not accept the folder hierarchy of the plasmoid.
It is
eee-plasmoid-0.1.1.plasmoid
eee-plasmoid-0.1.1.plasmoid/eee-plasmoid/
eee-plasmoid-0.1.1.plasmoid/eee-plasmoid/contents/
eee-plasmoid-0.1.1.plasmoid/eee-plasmoid/metadata.desktop
...
but it should be
eee-plasmoid-0.1.1.plasmoid
eee-plasmoid-0.1.1.plasmoid/contents/
eee-plasmoid-0.1.1.plasmoid/metadata.desktop
...
my system: kde-4.2.4 on Slackware-13RC1
cu
Report
bonaire
11 years ago
i'd like to sea suppourt for en/disabling the ethernet port. Disabling this saves ~12 minutes on my eee.
Report
cfraz89
11 years ago
Report
bonaire
11 years ago
simple echo "0|1" > /sys/class/net/eth0/device/enable
Report
sekou
11 years ago
it would be a good idea to add caps-lock status notifier because eees don't have them. it will look good on the panel.
Report
cfraz89
11 years ago
Report
ChemBro
11 years ago
Report
cfraz89
11 years ago
Report
mck182
11 years ago
Very good job! :)
Report
Ace2016
11 years ago
username ALL=NOPASSWD: /usr/bin/command
/usr/bin/command being a script which toggles the devices on/off
Report