This is an old revision of the document!
Table of Contents
Tips and tricks
Lid and jack insertion events
You can use a lightweight https://github.com/gandro/input-event-daemon, it should listen on /dev/input/event4
for LID:0
and LID:1
events.
Video playback
To get maximum of the unaccelerated framebuffer driver you can use mplayer2
(it uses libraries with SMP support) and this ~/.mplayer/config
ao=alsa mixer-channel=Master vo=x11 zoom=1 sws=0 hardframedrop=1 lavdopts=fast=1:skiploopfilter=all
Watching Youtube
#!/bin/sh cookies_file=`mktemp /tmp/youtube-cookies.XXXXXX` rm $cookies_file url="`youtube-dl --cookies=$cookies_file -g --max-quality 35 $1`" mplayer -cookies -cookies-file $cookies_file -cache 2048 $url rm $cookies_file
Software sound mixing
To be able to hear simultaneous playback from different programs
copy this to /usr/share/alsa/cards/tegra-alc5632.conf
:
# default with dmix/dsnoop tegra-alc5632.pcm.default { @args [ CARD ] @args.CARD { type string } type asym playback.pcm { type plug slave.pcm { @func concat strings [ "dmix:CARD=" $CARD ",RATE=44100" ] } } capture.pcm { type plug slave.pcm { @func concat strings [ "dsnoop:CARD=" $CARD ",RATE=44100" ] } } }
Dedicated volume controls without PulseAudio
Add this to ~/.asoundrc
:
pcm.softvol { @args [ NAME ] @args.NAME.type string type softvol slave.pcm "default" control.name $NAME }
And use softvol:<custom name>
for the ALSA device, like this: aplay -Dsoftvol:“Aplay Dedicated” testmusic.wav
Handling bell events
You can use xkbevd
to play an arbitrary sound when an XkbBell event is generated. For URvxt
you need to tell it to use xkbbell
for bellCommand
. A better solution would be to extend input-events-daemon
to create a virtual input device capable of receiving a system bell, that way it'd work equally well for all programs even without X.
Wireless performance
- compat-wireless provides newer wireless drivers that work better but wireless extensions will not be enabled until the kernel is compiled with support for some old pre-mac80211 driver (to select
CONFIG_WIRELESS_EXT
). iw dev wlan0 set power_save off
to improve interactivity when a power-saving compatible AP is used