Tag Info

New answers tagged


Since I couldn't find a way to do this, I wrote my own script. I set it to run from /etc/rc.local (as local user) in the background so it would run when the computer is restarted. The script checks if the headphones are connected or not (run "amixer -c 0 contents" once headphones are connected and once not and find under which numid the headphones are). If ...


I spent a long time working with the same problem, based on lots of forum threads, and nothing helped. Then I tried this: $ alsactl restore That did it :)


Ok, so based on what I have learned from here, I am trying a new approach, using ACPI. Create a script, for pausing and unpausing VLC: sudo touch /etc/acpi/headphone_jack.sh sudo chmod +x /etc/acpi/headphone_jack.sh and place the following on this file: _pid=`pgrep vlc` _pid="${_pid% *}" DBUS_SESSION_BUS_ADDRESS=`grep -z DBUS_SESSION_BUS_ADDRESS ...


The current version of your script now contains a sleep 0.25 command. sleep is timer-based so doesn't use any processing cycles while sleeping… It does use a very tiny bit of CPU to set up the timer, but sleep 1 (sleep 1 second), sleep 60 (sleep for a minute) and sleep 86400 (sleep for a day) all use the same number CPU cycles. Using ACPI however is the ...


In most systems if not all, ACPI can handle this event. To test that: Run acpi_listen Unplug & replug headphones, example output: (mic/ears share in same jack on my laptop) jack/headphone HEADPHONE unplug jack/microphone MICROPHONE unplug jack/headphone HEADPHONE plug jack/microphone MICROPHONE plug Put your-script.sh in /etc/acpi/ Add an event ...


I do not know about configuring .asoundrc but what I can tell you is that you should probably run: sudo apt-get update sudo apt-get install pulseaudio In order to properly install Pulseaudio.


Just wanted to report that after upgrading to Kubuntu 15.04, and KDE 5, switching between bluetooth profiles works fine.


Ok, so you will need to do a few things for this: Detect when the headphones are unplugged; After the event in (1), send a "pause" command to VLC; Detect when the headphones are pluggd back in; After the event in (3), send a "play" command to VLC; For (1) and (3): You can use what is shown here. This answer contains a small procedure to find the ...


I remember having the exact same problem on my netbook when I was on the train. I as organising some party music, and was jumping through the music with my headphones in. Then someone asks me to turn down my music, and I look rather bemused at them, not realising that I was sharing my music with the rest of the train! The only solution I found was to use ...

Top 50 recent answers are included