Hey ! thanks you safetycopy !

I add the solution in my first post for future users !

Many thanks

nop ! smile


last question, how i can rename this topic in [solved]topic ?

nop ! smile


last question, how i can rename this topic in [solved]topic ?

Hi all !

Unfortunately 'gksudo' tip doesn't work.

But i find a way to launch my tpb app automatically on startup and without ask password :

create the script: sudo nano /etc/init.d/launchtpb.sh

#! /bin/bash
chown myuser /dev/nvram
tpb &

make it executable:

sudo chmod +x /etc/init.d/launchtpb.sh

create a symbolic link in /etc/rcS.d/

sudo ln -s /etc/init.d/launchtpb.sh /etc/rcS.d/S75launchtpb.sh

restart crunchbang and enjoy !

Thinkpad users, i hope this tip can help you ! wink

root@Crunchbang:~# adduser chronoblade nvram
L'utilisateur « chronoblade » est déjà membre du groupe « nvram ».
root@Crunchbang:~# exit
exit
chronoblade@Crunchbang:~$ tpb 
Unable to open device /dev/nvram: Permission non accordée

  sad

Ouppsss ! After reboot that doesn't work !  I think

chown myuser /dev/nvram

is not persistent after reboot...
i need to find another way... hmm

Thanks you for your quick reply !

I tried to copy the /etc/tpbrc  in /home/user/.tpbrc  but no result...

when i start tpb i have privileges error:

chronoblade@Crunchbang:~$ tpb
Unable to open device /dev/nvram: Permission non accordée

so i tried:

chown myuser /dev/nvram

I don't know if it's good for the security, but it's work !

note: dpkg-reconfigure tpb tell me, that my user must be in the /dev/nvram group to run tpb wink

thanks you !


PS: If you tried some others thinkpad apps on crunchbang, i'm open !

Hello all !

to use tpb (Thinkpad buttons OSD) : http://www.thinkwiki.org/wiki/Tpb

definitive update :

you should install it:

sudo apt-get install tpb

add your user in nvram group:

sudo adduser YOURUSER nvram

open  openbox autostart.sh script:

nano /home/$USER/.config/openbox/autostart.sh

and put this command at the end:

(sleep 1s && tpb -d) &

then restart your crunchbang and it OK !

>> Thanks to Safetycopy  wink


You can also configure tpb with edit :

sudo nano /etc/tpbrc