To run tpb as a normal user, the user must be in the nvram group (As stated 
above). This can be done by running the command:
   sudo adduser <username> nvram

To fix up the init script so that the stopping works, simply add the following 
line to the stop) part of the switch. The file I have attached is a 
demonstration of this.
   killall tpb

Finally, to make the program run on startup, navigate through the menu
System->Preferences->Sessions and add a new startup program. Name it
"Thinkpad Button" and the command should be "tpb -d".

I could not get the init script in /etc/rc2.d/S99tpb (symbolic link to
/etc/init.d/tpb) to work though.

** Attachment added: "Fixed version of /etc/init.d/tpb"
   http://launchpadlibrarian.net/16091617/tpb%20fixed

-- 
Cannot run tpb as normal user
https://bugs.launchpad.net/bugs/158262
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to