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:
0.1.1 - Not a terrible amount: code refactor, and autorefresh every 5 seconds. 0.1 - Initial release.
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
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.
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
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 :(
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.
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)
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.
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!
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!
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
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.
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
Ratings & Comments
22 Comments
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
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?
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.
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
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 :(
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.
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)
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.
Hi, this plasmoid is what I'm searching for. Could you adapt it for all laptop ? Could you tell me how to do that ?
I though if the command in /sys are not the same, perhaps it could be configured with the widget configuration...
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!
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!
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
Hello, i'd like to sea suppourt for en/disabling the ethernet port. Disabling this saves ~12 minutes on my eee.
Ah, thats cool, how do you do this? Simply by removing the atl1e module?
Hello, simple echo "0|1" > /sys/class/net/eth0/device/enable
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.
Thanks, i'll definitely do that for the next one.
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.
Thank, thats a good idea, i'll implement that for the next version for sure.
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! :)
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