Posts

Showing posts with the label audio

quick change audio output 3

Well, I couldn't resist plugging away at this and I must say I'm pretty pleased with the results. here's the full script: #!/bin/bash status="$(cat /sys/class/drm/card0-HDMI-A-1/status)" if [ "${status}" = disconnected ] then pactl set-card-profile 0 output:analog-stereo+input:analog-stereo notify-send -i /usr/share/icons/Mint-X/status/48/notification-audio-volume-high.png "Audio Output" "Laptop Speakers" exit elif [ "${status}" = connected ] then pactl set-card-profile 0 output:hdmi-stereo+input:analog-stereo notify-send -i /usr/share/icons/Mint-X/status/48/notification-audio-volume-high.png "Audio Output" "HDMI" exit fi Which I openly admit I got from the dude on that thread, but hey! it's simple enough that I like to think I'd've got there myself without too much trouble. And I've tarted up the notify-send statements so they look professional, with a wee volume icon and a standard...

quick change audio output 2

Reasonable success. further down the thread (on February 1st, 2012, 02:00 AM) dar270785 gives a script for dynamically selecting the output, according to the same method I was working out in my previous post. (s)he doesn't use grep for this, but the principle's the same. I tried following those instructions, but although the script works when run manually, it doesn't do so automagically when the HDMI cable is plugged in. I guess that's what the whole /etc/udev/rules.d/ bit is about, but I'm not sure what's going wrong for me. I made sure the script names were right and rebooted the lappy, but no effect. So in the meantime I've settled for a script that's kept in /usr/local/bin (called audioselect.sh), and I've tied it to an F9 key shortcut. I'm a bit bothered by the fact that it doesn't actually just toggle the output. If I can't get it to autodetect the HDMI device, and have to press a button, I'd like the button to do a s...

quick change audio output

Currently when I plug the laptop into the tv via HDMI I have to manually switch the audio from analogue stereo to hdmi digital (or whatever) by right-clicking the volume applet, choosing preferences, changing to the hardware tab, scrolling up and down trying to remember which profile to use... it's a hassle. So I want to improve on that. My own efforts got nowhere so I searched and found this forum page . The script itself doesn't work for me ("Sink 9 does not exist") which I'm kind of relieved about because that might have been too easy. It's enough of a lead to show me that a small bash script should do the job though and I've already learned: * that by putting executable files in /usr/local/bin (and doing chown 755 if necessary) they can be run like any other program. * that devices have (at least hdmi has) a status file in their folder that's just a text file listing the device status. Run cat /sys/class/drm/card0-HDMI-A-1/status to see. h...

probook #! changes 2

cont. * removed myself from audio group deluser <user> audio * tinkered with the tint2rc, but it's backed up so not really an issue * 15 and 16 from "Round off your Crunchbang Waldorf" ICA Client (citrix receiver): OK, I thought I'd streamlined this before , before I got this done much quicker this time!  Forget compiling nspluginwrapper, manually creating those missing directories, editing the post-install script, etc. Here's what happened today on the probook. From this page followed these instructions: 1) Enable 32 bit architecture: % dpkg --add-architecture i386 (check, if you like) dpkg --print-architecture  amd64 dpkg --print-foreign-architectures i386 2) Add 32 bit repositories to /etc/apt/sources.list deb [arch=amd64,i386] http://http.us.debian.org/debian/ unstable main contrib non-free  While you're in there, add: deb http://ftp.au.debian.org/debian/ squeeze main contrib non-free from the advice here . 3) Up...