Gustin Johnson wrote: > You can use sudo to run the script, but it > should not be within the script.
Okay, I decided to separate setting up HPET and restoring the session and it's fine. Thank you :). However, I still guess it's not optimal. I prefer to run the script one time and not 2 times and I don't want restore an audio session by running the script with sudo and launching applications in the script by su username command. spinymouse-s...@64studio:~/Desktop$ cat start-session #!/bin/sh [snip] if [ $USER = "root" ] ; then [snip (HPET)] else [snip (session handling)] fi exit 0 spinymouse-s...@64studio:~/Desktop$ sudo sh start-session /etc/sysctl.conf dev.hpet.max-user-freq Value= /proc/sys/dev/hpet/max-user-freq Value=64 Make sure that the value is set to 1024 /proc/sys/dev/hpet/max-user-freq Value=1024 spinymouse-s...@64studio:~/Desktop$ sh start-session Restoring session :) ###################################################################### # Project/ song: /mnt/music/[snip]/[snip] # Dec/26/2009 Ralf Mardorf # ralf.mardorf at alice-dsl dot net # # License for all artwork in the folder /[snip]: # Creative Commons # by-nc-sa = Attribution-NonCommercial- ShareAlike # http://creativecommons.org/licenses/by-nc-sa/3.0/ # Namensnennung-NichtKommerziell-Weitergabe unter gleichen Bedingungen # http://creativecommons.org/licenses/by-nc-sa/3.0/de/ ###################################################################### jackd -Rch -dalsa -dhw:0 -r96000 -p512 -n2 -Xseq jackdmp 1.9.3 [snip] _______________________________________________ 64studio-users mailing list [email protected] http://lists.64studio.com/mailman/listinfo/64studio-users
