You are not logged in.
I I am using this guide to control my fan and it's working splendidly from root. I'd like to be able to use the same commands as my regular user from the commandline to control the fan.
This is where my commandline fu falls a bit short. I figure it's something to do with making a new group, then giving this group some special no-password permissions in the sudoers file and maybe finish off with some bash aliases, but I am not really sure how to go about this or whether there is a more elegant solution.
Any script wizards care to help?
Last edited by b9anders (2012-06-10 15:01:06)
Offline
By default, only root has write access to /proc/acpi.
Check the Installing Gentoo on a ThinkPad T410 on ThinkWiki to learn about how to get around this 'limitation'. Relevant section pasted below:
The default file permissions in /proc/acpi/ibm/* do not grant write access for users. I created the group "ibm", added my users to it and now I
chown root:ibmand
chmod 0774the files in /proc/acpi/ibm/ on startup. If you don't want to do this you might use:
sudo sh -c "echo "foo" > /proc/acpi/ibm/whatever"but you need to install sudo and modify your sudoers file.
Follow this concept and work out your own solution.
Mateusz Loskot | github | archlinux-config
Arch (x86-64) | ThinkPad T400 | Intel P8600| Intel i915
Arch (x86-64) | ThinkPad W700 | Intel T9600 | NVIDIA Quadro FX 2700M
Offline
I may need to start a new thread for this, but I figured I'd ask in here first:
I've discovered that after suspending to ram, my fan gets stuck at 'auto' level and rarely spins higher than 3500. It doesn't respond to any commands to change the level of spinning and does not respond properly to dangerously high temperatures either. How do I go about troubleshooting this?
Offline