Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th February 2009, 05:35
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 132
Thanks: 2
Thanked 7 Times in 7 Posts
Question (SOLVED) Bluetooth on laptop...working but...

Hey all I have an Acer TravelMate C110, running Ubuntu 8.10, everything works great. My problem is the way I get the bluetooth on is by running this command each time the laptop boots up:

Code:
echo "1" > /proc/driver/acerhk/blueled
My question is, how can I have that command run automatically as the system starts up?


Thanks


--Steve

Last edited by pebkac; 27th February 2009 at 01:52. Reason: Solved
Reply With Quote
Sponsored Links
  #2  
Old 21st February 2009, 17:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

You can add the command to /etc/rc.local. Might also be possible enable this in /etc/sysctl.conf, although I don't know the directive.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 21st February 2009, 21:47
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 132
Thanks: 2
Thanked 7 Times in 7 Posts
Default

thanks, I will try this as soon as I get home.
Reply With Quote
  #4  
Old 22nd February 2009, 02:11
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 132
Thanks: 2
Thanked 7 Times in 7 Posts
Default

i pasted the command into /etc/rc.local, and nothing happens.
Reply With Quote
  #5  
Old 22nd February 2009, 20:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by pebkac View Post
i pasted the command into /etc/rc.local
Before the exit line?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 23rd February 2009, 21:31
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 132
Thanks: 2
Thanked 7 Times in 7 Posts
Default

Yes......

Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
setserial /dev/ttyS0 port 0x06f8 irq 6 autoconfigure
modprobe acerhk
echo "1" > /proc/driver/acerhk/blueled

exit 0
I did read this and it says ubuntu does not really use the rc.local file anymore....Here 11.6 It looks as if Debian does not use rc.local to customize the boot process; what facilities are provided?

So I tried it it mentions there and still no go....here is what is in that file...maybe I syntax or directive is wrong...not too sure...

/etc/init.d/bluet
Code:
#!/bin/bash
echo "1" > /proc/driver/acerhk/blueled
when I try and run /etc/init.d/bluet start I get this:
Code:
steve@steve-laptop:~$ sudo /etc/init.d/bluet start
[sudo] password for steve: 
sudo: /etc/init.d/bluet: command not found
steve@steve-laptop:~$
any other ideas?
Reply With Quote
  #7  
Old 24th February 2009, 19:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Please use full paths in /etc/rc.local (e.g. /sbin/modprobe instead of modprobe).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 25th February 2009, 16:56
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 132
Thanks: 2
Thanked 7 Times in 7 Posts
Default

well tried adding /sbin/modprobe instead but still dont work? thanks....
Reply With Quote
  #9  
Old 26th February 2009, 20:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by pebkac View Post
/etc/init.d/bluet
Code:
#!/bin/bash
echo "1" > /proc/driver/acerhk/blueled
when I try and run /etc/init.d/bluet start I get this:
Code:
steve@steve-laptop:~$ sudo /etc/init.d/bluet start
[sudo] password for steve: 
sudo: /etc/init.d/bluet: command not found
steve@steve-laptop:~$
any other ideas?
Did you make /etc/init.d/bluet executable?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 26th February 2009, 21:31
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 132
Thanks: 2
Thanked 7 Times in 7 Posts
 
Default

I did not think I did, so I did it and still nothing. I went ahead a made a new file and did the following and still no go....

Code:
steve@steve-laptop:~$ sudo chmod -x /etc/init.d/bluetoo
steve@steve-laptop:~$ ls /etc/init.d/bluetoo
/etc/init.d/bluetoo
steve@steve-laptop:~$ ls -l /etc/init.d/bluetoo
-rw-r--r-- 1 root root 51 2009-02-26 12:25 /etc/init.d/bluetoo
steve@steve-laptop:~$ sudo update-rc.d bluetoo defaults 19
update-rc.d: warning: /etc/init.d/bluetoo missing LSB style header
 Adding system startup for /etc/init.d/bluetoo ...
   /etc/rc0.d/K19bluetoo -> ../init.d/bluetoo
   /etc/rc1.d/K19bluetoo -> ../init.d/bluetoo
   /etc/rc6.d/K19bluetoo -> ../init.d/bluetoo
   /etc/rc2.d/S19bluetoo -> ../init.d/bluetoo
   /etc/rc3.d/S19bluetoo -> ../init.d/bluetoo
   /etc/rc4.d/S19bluetoo -> ../init.d/bluetoo
   /etc/rc5.d/S19bluetoo -> ../init.d/bluetoo
steve@steve-laptop:~$ /etc/init.d/bluetoo start
bash: /etc/init.d/bluetoo: Permission denied
steve@steve-laptop:~$ sudo /etc/init.d/bluetoo start
sudo: /etc/init.d/bluetoo: command not found
steve@steve-laptop:~$
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fail2ban not working linuxwannabe Installation/Configuration 1 25th January 2009 06:09
Urgent! pop server down, website down, ispconfig working gwa7 Installation/Configuration 4 8th November 2008 18:56
Bluetooth COnfiguration Problems eletha HOWTO-Related Questions 3 15th August 2008 18:14
DNS stop working MZH General 3 22nd February 2008 11:10
ftp not working pesja Installation/Configuration 3 17th July 2006 12:37


All times are GMT +2. The time now is 01:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.