Advertisement
Lekensteyn

Untitled

Aug 6th, 2011
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/bin/bash
  2. VGL_COMPRESS=xv
  3. VGL_DISPLAY=:8
  4. VGL_DRIVER=/usr/lib/nvidia-current
  5. fifo=/tmp/bumblebee.fifo
  6.  
  7. # notify that we want X to start
  8. echo 1 > "$fifo"
  9.  
  10. # here, an acknowledge message should be received
  11.  
  12. vglrun -c $VGL_COMPRESS -d $VGL_DISPLAY -ld $VGL_DRIVER "$@"
  13.  
  14. # notify that we're done
  15. echo 1 > "$fifo"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement