Eee plasmoid

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
7.7
Description:

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.
Last changelog:

9 years ago

0.1.1 - Not a terrible amount: code refactor, and autorefresh every 5 seconds.
0.1 - Initial release.

GDR

6 years ago

It doesn't work (red X) on my 1005-px because there's an I/O error when reading camera state. Change this function and you will be fine:

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

6 years ago

I have error in plasmoid. Debian Sid, KDE 4,8.4, eeepc-acpi-scripts 1.1.12, Eee PC 1225B.

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

6 years ago

You will want to add the following to kernel parameters (/boot/grub/menu.lst):

acpi_osi=Linux

Then the eeepc_laptop module will likely load automatically; if not - modprobe it.

Report

CJPB

7 years ago

Hi,
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

8 years ago

Hi,

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

9 years ago

Hi there.

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

9 years ago

I know that this is a relatively noob thing to ask, but where can I find the file to change 'Kdesu' to 'kdesudo'?
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

9 years ago

Never mind...
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

9 years ago

Hi, this plasmoid is what I'm searching for.
Could you adapt it for all laptop ?

Could you tell me how to do that ?

Report

schmirrwurst

9 years ago

I though if the command in /sys are not the same, perhaps it could be configured with the widget configuration...

Report

YAFU

9 years ago

I have made the modifications replacing kdesu to kdesudo for kubuntu, and the correction mentioned by the user "bonaire"
This is the plasma for Kubuntu:

http://rapidshare.de/files/48014928/eee-plasmoid-0.1.1.plasmoid.html

Thanks!

Report

YAFU

9 years ago

Correction: plasma=plasmoid :)

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

9 years ago

Hello,

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

9 years ago

Hello,

i'd like to sea suppourt for en/disabling the ethernet port. Disabling this saves ~12 minutes on my eee.

Report

C

cfraz89

9 years ago

Ah, thats cool, how do you do this? Simply by removing the atl1e module?

Report

bonaire

9 years ago

Hello,

simple echo "0|1" > /sys/class/net/eth0/device/enable

Report

sekou

9 years ago

hi
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

C

cfraz89

9 years ago

Thanks, i'll definitely do that for the next one.

Report

ChemBro

10 years ago

I think, this plasmoid needs something like a refresh-button or should refresh itself every 30 sec or so, because if I enable (or disable) wifi on my EEE with Fn+F2, the eee-plasmoid doesn't recognizes it.

Report

C

cfraz89

9 years ago

Thank, thats a good idea, i'll implement that for the next version for sure.

Report

mck182

10 years ago

Although I don't have eee nor netbook at all, I'd like to say, that I like the idea and design of this plasmoid.

Very good job! :)

Report

Ace2016

10 years ago

You could modify /etc/sudoers to allow specific commands to be run without a password:

username ALL=NOPASSWD: /usr/bin/command

/usr/bin/command being a script which toggles the devices on/off

Report

9 years ago

0.1.1 - Not a terrible amount: code refactor, and autorefresh every 5 seconds.
0.1 - Initial release.

12345678910
9
product-maker mirkogennari Dec 03 2016 8 great
product-maker trfuns Nov 04 2011 8 great
product-maker leeon73 Oct 30 2011 8 great
product-maker onurtuhta Sep 16 2011 8 great
product-maker vladspbru Aug 28 2011 8 great
product-maker Nataly-kam Jul 13 2011 8 great
product-maker ghash Feb 01 2011 8 great
product-maker chemikk Jan 01 2011 8 great
product-maker bedahr Dec 06 2010 8 great
product-maker Count:51 Rating: 7.59
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.1.1
updated Jul 05 2009
added Apr 16 2009
downloads today
0
page views today 1
+