LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2004, 05:44 PM   #1
narensr
Member
 
Registered: Apr 2004
Location: NY
Distribution: RHEL and Fedora
Posts: 30

Rep: Reputation: 15
Thinkpad buttons for SuSE9.1Pro


Hi,
I am using SuSE9.1Pro on my Thinkpad G40.
I installed thinkpad related utils like tpb, configure-thinkpad,tpctl ..etc which comes with SuSE9.1Pro DVD. But how to configure tpb.
If i run the command
tpb --osd=on --thinkpad="/usr/bin/X11/xterm -T ntpctl -e ntpctl"
on terminal all my Thinkpad buttons including AccessIBM button are working.
I want to automate this process. How to configure tpb to start automatically.

thanks/Naren
 
Old 08-14-2004, 06:07 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Just put your
Code:
tpb --osd=on --thinkpad="/usr/bin/X11/xterm -T ntpctl -e ntpctl"
in a bash-script, and add that to
~/.kde/Autostart
(assuming that you stuck with SuSE's default, KDE).


Cheers,
Tink
 
Old 08-14-2004, 06:14 PM   #3
narensr
Member
 
Registered: Apr 2004
Location: NY
Distribution: RHEL and Fedora
Posts: 30

Original Poster
Rep: Reputation: 15
if i have 5 user accounts i have to put this in 5 different places ..am i right ???
I am using WindowMaker or fluxbox most of the times.
So i need to do this in startup script.
 
Old 08-14-2004, 06:35 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
That's correct ... if it wasn't for the OSD bit you
could just stick it in the rc.local ... but since OSD
is X session specific you'll have to (depending on
how you start X/login in every users ~/.xsession
~/.xinitrc file ... (or at least a call to a shared
location).


Cheers,
Tink
 
Old 08-14-2004, 10:25 PM   #5
narensr
Member
 
Registered: Apr 2004
Location: NY
Distribution: RHEL and Fedora
Posts: 30

Original Poster
Rep: Reputation: 15
Hi,
i found something similar to what i want, but it is for Debian,
-----------------------configuring tpb on Debian system-----------------
hansolo:/etc/init.d# wget -q http://www.hardeman.nu/~david/thinkpad/tpb.rc
hansolo:/etc/init.d# mv tpb.rc tpb
hansolo:/etc/init.d# chmod 0755 tpb
hansolo:/etc/init.d# echo "MIXER ON" > /etc/tpbrc
hansolo:/etc/init.d# echo "OSDSHADOW 0" >> /etc/tpbrc
hansolo:/etc/init.d# echo "OSDALIGN center" >> /etc/tpbrc
hansolo:/etc/init.d# echo "FORWARD /usr/bin/setmixer pcm +10" >> /etc/tpbrc
hansolo:/etc/init.d# echo "BACKWARD /usr/bin/setmixer pcm -10" >> /etc/tpbrc
hansolo:/etc/init.d# update-rc.d tpb defaults 99
Adding system startup for /etc/init.d/tpb ...
/etc/rc0.d/K99tpb -> ../init.d/tpb
/etc/rc1.d/K99tpb -> ../init.d/tpb
/etc/rc6.d/K99tpb -> ../init.d/tpb
/etc/rc2.d/S99tpb -> ../init.d/tpb
/etc/rc3.d/S99tpb -> ../init.d/tpb
/etc/rc4.d/S99tpb -> ../init.d/tpb
/etc/rc5.d/S99tpb -> ../init.d/tpb
------------------end of conf-----------------------------------------------------------
i found this info at http://www.hardeman.nu/~david/thinkpad

But this is not working for SuSE , there is no update-rc.d command..
Please help me how to do the same thing for SuSE.

Regards/Naren
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 9.2 annoyances: thinkpad buttons, session locking deathkrush SUSE / openSUSE 1 12-01-2004 02:01 AM
Help a Noob Suse 9.1pro wooxy SUSE / openSUSE 4 10-18-2004 10:26 PM
SUSE9.1Pro - Cannot map network share (XP) neocookie Linux - Networking 0 10-07-2004 08:56 AM
Mounting tapedrive in SUSE9.1Pro morph26 Linux - Hardware 1 08-20-2004 01:38 PM
Installing SuSe 9.1pro alechi Linux - Software 2 06-03-2004 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration