Unofficial MSIwWind Homepage
Unofficia MSI Wind Homepage MSI Wind Forums MSI Wind Wiki MSI Wind Links MSI Wind Images IRC MSI Wind Chat


It is currently Sat Jul 04, 2009 12:47 pm

All times are UTC


Forum rules


No new topics allowed. Forums are not meant to be a tutorial archive. If you intend to write a new topic here, we strongly advice you to make it a wiki article instead. Click here to go to our wiki. If there is a topic from another subforum that should be moved here, alert a moderator.



Post new topic Reply to topic  [ 74 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Wed Oct 29, 2008 6:37 pm 
Offline
Wind Guru
User avatar

Joined: Thu Sep 25, 2008 12:40 am
Posts: 144
Location: Under a Rug
Netbooks: Wind, Aspire One
i really like my setup for switching back and forth to headphones and in NO WAY take any credit for the solution but just thought i would post how i am handling it.

there are several ways to do this but i wanted to be able to easily switch back and forth and i also did not want anything added to my Dock or Menu Bar.

you will need this:

1. CHUD and switch which you can find here.
2. Quicksilver which you can get here.

then:

1. unzip #1 from above and then install CHUD

2. place the switch.sh file from #1 above in your user name's Library folder

3. open terminal in your applications folder (under Utilities) and in terminal type the following:

cd Library
chmod 755 switch.sh

then exit terminal

4. open "Script Editor" in the "AppleScript" folder in your Applications

5. in script editor type:

do shell script "path/to/switch.sh" user name "your user name" password "your password" with administrator privileges

HOWEVER when you type this you are going to be replacing "path/to/switch.sh" with your path to the switch.sh file. so the easiest way to know what it is would be to go to the switch file on your Wind which you placed in your user name's Library folder and then left click it and hit "Get Info" and look where it says "Where" in the info at that is your path.

for example mine looks like this:

Image

so my script would look like this:

do shell script "/Users/OSX86/Library/switch.sh" user name "OSX86" password "**********" with administrator privileges

and then also replace "your user name" and "your password" with your information as i did above.

6. hit compile in the script editor and then go to your menu bar and while in script editor hit "File" and then "Save as" and name it something like HeadPhones and save it to your desktop.

7. take the script you just placed in your desktop and move it to your "Scripts" folder which is located in Your Hard Drive(s) name (NOT User Name) under "Devices" in Finder then inside "Library" then "Scripts"

8. install Quicksilver and run it through the setup making sure you at least install the "plug-in" for "Terminal" for now and also create a shortcut key to bring it up when you need it. you can pick whatever you want but on the Wind i choose ALT + q so that after i am finished with this setup you can always bring up Quicksilver by what you choose the shortcut to be here.

9. when quicksilver starts you can "type to search" in that box for "headphones" script that we created but as you will see it will find it as you type. if it does not find it then you can alternatively just drag the script file into the search box. however lets not hit execute yet

10. go to settings (little wheel in upper right hand corner of search box) and choose "Custom Triggers"

11. in the bootm of the Custom Triggers box you will see a + sign and hit that and choose "Hot key"

12. choose "headphones" in the "Select an item" box and the "Action" box should be Run and "Command" Headphones (Run) and click save

13. now that you have a Custom Trigger for HeadPhones go to the end of that line and set a Trigger Hot Key setup by left clicking under trigger and for reference i choose "ALT then H" so that now you will just hold ALT and then hit "H" to toggle from your headphones to your laptop speakers.

14. almost there now. lets go back to preferences in Quicksilver and:

- check "Start at login"
- uncheck Warn before, Enable advanced, Show icon in dock, and Show icon in menu bar. if you already have it in your dock then you will need to right click on it and "Remove From Dock" and then it will not come back again.
- i choose to check "Check for updates" as well as auto and background install

15. Enjoy hitting ALT+H or whatever you choose to go back and forth to your headphones without any icons or dock items.

Remember you can always go back to work with Quicksilver by either hitting the short cut keys you selected in the beginning of the Quicksilver setup or by choosing it in your applications folder.

good luck

_________________
U100, 250GB HDD 7200RPM, 2GB RAM, Extreme N Wifi, Triple Boot (OS X, XP, Ubuntu)


Last edited by fletch33 on Thu Oct 30, 2008 5:53 pm, edited 4 times in total.

Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Wed Oct 29, 2008 7:41 pm 
Offline
Wind Guru
User avatar

Joined: Wed Aug 13, 2008 1:42 pm
Posts: 332
Location: Diemen - Netherlands
Netbooks: MSI Wind Pink
Thanks Fletch. Looks like a good guide.

_________________
I love my Pink Wind

Pink MSI Wind 2GB RAM, 80GB HD, 6 cell battery


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Wed Oct 29, 2008 7:41 pm 
Offline
Wind Guru
User avatar

Joined: Sun Oct 05, 2008 3:30 pm
Posts: 398
Location: Belgium
Netbooks: MSI Wind U100 (Black)
Thanks mate, gonna try this tonight in two hours or so!

_________________
MSI Wind 2.0GHz (24% oc'ed), 2GB RAM, 3 cell and 9 cell batteries and Gigabyte Aircruiser GN-W101GT, 80GB
running on OS X Leopard 10.5.6 (MSIWindOSX86) with BIOS 1.0B and Windows XP through VirtualBox 2.2.2
Xbench of 61.02


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Wed Oct 29, 2008 8:38 pm 
Offline
Wind Guru

Joined: Mon Oct 13, 2008 8:10 pm
Posts: 176
Works perfectly. Thanks for the tip, fletch. One thing I noticed was that the search box in Quicksilver was not finding my headphones script. If this happens to you just drag the script onto the search box and carry on as described.


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Wed Oct 29, 2008 8:47 pm 
Offline
Wind Guru
User avatar

Joined: Thu Sep 25, 2008 12:40 am
Posts: 144
Location: Under a Rug
Netbooks: Wind, Aspire One
grunk wrote:
Works perfectly. Thanks for the tip, fletch. One thing I noticed was that the search box in Quicksilver was not finding my headphones script. If this happens to you just drag the script onto the search box and carry on as described.


thanks i will add that

_________________
U100, 250GB HDD 7200RPM, 2GB RAM, Extreme N Wifi, Triple Boot (OS X, XP, Ubuntu)


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Wed Oct 29, 2008 9:02 pm 
Offline
Wind User

Joined: Wed Sep 03, 2008 3:49 pm
Posts: 28
Netbooks: MSI Wind U100
Galaxy Black
2G Memory
Works purrrrfect!

Nicely done. ;) Thanks


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Wed Oct 29, 2008 9:21 pm 
Offline
Wind User

Joined: Wed Sep 03, 2008 3:49 pm
Posts: 28
Netbooks: MSI Wind U100
Galaxy Black
2G Memory
just a question how do you hide the the application that is running under the dock? I have quicksilver running but don't want to see it on my dock. Thanks


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Wed Oct 29, 2008 9:59 pm 
Offline
Wind Master

Joined: Wed Oct 29, 2008 9:54 pm
Posts: 65
Location: Minsk, BY
Netbooks: MSI Wind U100, 2Gb RAM, 6 cell, 320Gb HDD, Synaptics, OSX 10.5.6 Retail
erwinquita, check #14 of this manual

oh, and fletch, thank you!


Last edited by Paul- on Wed Oct 29, 2008 10:06 pm, edited 1 time in total.

Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Wed Oct 29, 2008 10:04 pm 
Offline
Wind Guru
User avatar

Joined: Sun Oct 05, 2008 3:30 pm
Posts: 398
Location: Belgium
Netbooks: MSI Wind U100 (Black)
It's working. Thanks a lot flech33!!!

_________________
MSI Wind 2.0GHz (24% oc'ed), 2GB RAM, 3 cell and 9 cell batteries and Gigabyte Aircruiser GN-W101GT, 80GB
running on OS X Leopard 10.5.6 (MSIWindOSX86) with BIOS 1.0B and Windows XP through VirtualBox 2.2.2
Xbench of 61.02


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Wed Oct 29, 2008 10:23 pm 
Offline
Member

Joined: Wed Oct 01, 2008 9:14 am
Posts: 17
Hi fletch,

You're great for this tutorial.
Very easy to implement and it works as expected.

Next challenge is now to execute automatically the script when the jack cable enter physically in the WIND :shock:


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Thu Oct 30, 2008 4:48 am 
Offline
New Member

Joined: Wed Oct 22, 2008 7:10 am
Posts: 6
EDIT: nevermind, setuid doesn't work with shell scripts.

not sure if someone brought this up already, but if you make switch.sh setuid to root (ie it runs as root), then you wouldn't have to enter in your user name or password.

sudo chown root:wheel /path/to/switch.sh
sudo chmod 6755 /path/to/switch.sh


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Thu Oct 30, 2008 5:57 am 
Offline
Wind Master
User avatar

Joined: Sat Aug 30, 2008 4:27 pm
Posts: 68
thank you very much for this shortcut script,... very very usefull no more typing password :P

_________________
Black Windtosh, single OSX 10.5.5, 2Gb, (still)80Gb, 1.09 bios


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Thu Oct 30, 2008 7:15 am 
Offline
Wind User

Joined: Fri Jul 25, 2008 10:28 pm
Posts: 45
Netbooks: MSI Wind
The username in the AppleScript command caused me a bit of grief. I ended up inserting my Admin user name/password rather than my regular user account. Works like a charm. Thanks to everyone for putting this together.


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Thu Oct 30, 2008 10:47 am 
Offline
Wind Guru
User avatar

Joined: Mon Sep 22, 2008 4:58 am
Posts: 169
Location: The Third World!
Netbooks: Black MSI Wind

Mac OSX Leopard 10.5.5 (WindOSX86)
Windows Vista Ultimate 32bit
Intel Atom 1.6GHz
2GB Kingston DDR667 Ram
160GB Toshiba Hardisk

-- I call her Mishi!
thanks for this tip man!

_________________

Never let a computer know you’re in a hurry...


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Thu Oct 30, 2008 4:18 pm 
Offline
New Member

Joined: Tue Oct 14, 2008 9:22 pm
Posts: 3
great guide fletch33! mad props! :geek:


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Thu Oct 30, 2008 7:47 pm 
Offline
New Member

Joined: Sun Aug 10, 2008 3:21 pm
Posts: 5
GREAT!!!!

simply great.

thx.


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Fri Oct 31, 2008 10:33 am 
Offline
New Member

Joined: Fri Oct 17, 2008 1:24 pm
Posts: 4
excellent work! I believe that is the best solution so far! It works fine! One little thing though...the shortcut ALT+H doesn't work in my case! weird...I haven't used in any other way...ALT+S works fine! :)


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Sun Nov 02, 2008 4:16 am 
Offline
Member

Joined: Wed Aug 06, 2008 8:55 am
Posts: 13
thanks for the tips, but too many things to do for me

i just stopped before the QuickSilver step : created & saved my script from the script editor to an executable, added a wonderful Speaker Icon, put it in the dock, and switch from SPK to HP in one single click

so easy, and very efficient.

the sound quality from the headphone plug is really great !

many thanks to all the great people that solved this issue


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Sun Nov 02, 2008 1:26 pm 
Offline
Wind Guru
User avatar

Joined: Thu Sep 25, 2008 12:40 am
Posts: 144
Location: Under a Rug
Netbooks: Wind, Aspire One
very wrote:
thanks for the tips, but too many things to do for me

i just stopped before the QuickSilver step : created & saved my script from the script editor to an executable, added a wonderful Speaker Icon, put it in the dock, and switch from SPK to HP in one single click


the title of this thread " Headphones Easy Switch Setup (detailed How-To) w/ No Icons"

glad it worked for ya but i started this thread to explain how i was able to find an easy setup without having to have any Dock or Menu Bar items. when im using my external monitor i dont mind the Icons/Menu items but when using the wind as it comes then the less Dock/Menu Bar items the better.

_________________
U100, 250GB HDD 7200RPM, 2GB RAM, Extreme N Wifi, Triple Boot (OS X, XP, Ubuntu)


Top
 Profile E-mail  
 
 Post subject: Re: Headphones Easy Switch Setup (detailed How-To) w/ No Icons
PostPosted: Mon Nov 03, 2008 10:23 am 
Offline
Member

Joined: Wed Aug 06, 2008 8:55 am
Posts: 13
Yep, i do agree with you :) your solution is clearly the best if you look to gain space, and space on our netbook is a luxury :D


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 74 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO

Contact US  --   Forums  --   Wiki  --   Images