Advertisement
Guest User

rockbox script for openwrt on zipit

a guest
Sep 17th, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.76 KB | None | 0 0
  1. HEADPHONE=`amixer sget Headphone | grep -m1 "%]" | cut -d "[" -f2 | cut -d "]" -f1`
  2. SPEAKER=`amixer sget Speaker | grep -m1 "%]" | cut -d "[" -f2 | cut -d "]" -f1`
  3. BASS=`amixer sget Bass | grep -m1 "%]" | cut -d "[" -f2 | cut -d "]" -f1`
  4. TREBLE=`amixer sget Treble | grep -m1 "%]" | cut -d "[" -f2 | cut -d "]" -f1`
  5.  
  6. # Set speaker vol to 0 for rockbox.
  7. amixer -q sset "Speaker" 0%      
  8. #amixer -q sset "Headphone" 95%
  9.  
  10. # Headphone or Line-out tone settings.
  11. amixer -q sset "Bass" 47%
  12. amixer -q sset "Treble" 47%    
  13.  
  14. export SDL_AUDIODRIVER=dsp
  15. export SDL_NOMOUSE=1
  16. export SDL_VIDEO_FBCON_ROTATION="CCW"
  17. rockbox.bin
  18.  
  19. # Restore Speaker volume and tone settings.
  20. amixer -q sset "Speaker" $SPEAKER
  21. amixer -q sset "Bass" $BASS
  22. amixer -q sset "Treble" $TREBLE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement