On 1 October 2014 21:13, Florian Jung <[email protected]> wrote:
> Hi Steve,
>
> Am 01.10.2014 21:59, schrieb Steve the Fiddle:
> > 1) Any idea why it works in a root terminal but not with "sudo"?
>
> yup: sudo echo stuff > file will execute "echo stuff" with root
> privilegies. Then, your (user) shell will redirect the stdout to the
> file, which obviously won't work.
>
Doh, of course. (I've been fighting with this too long ;-)
>
> echo 3072 | sudo tee /sys/class/rtc/rtc0/max_user_freq will do what you
> want; "tee" copies its input to your terminal AND to a file. when you
> launch tee via sudo, it'll work.
>
Yep, that works.
>
> > 2) Any idea how to make the setting "stick" across reboots?
>
> write a custom init script maybe? dunno :/
>
Pretty easy now that I've had a break from looking at it. I just added:
echo 3072 >/sys/class/rtc/rtc0/max_user_freq
to /etc/rc.local directly above the "exit" line.
However, it STILL didn't work (!&@*!) because the permissions to /dev/rtc
had reverted to root only.
Even though I had given group permission for the "audio" group, it reverted
to root only on reboot.
The solution to this is documented on
http://linuxmusicians.com/viewtopic.php?f=27&t=2191 and elsewhere:
1) Create a file:
/etc/udev/rules.d/40-timer-permissions.rules
2) Put the following lines in it:
KERNEL=="rtc0", GROUP="audio"
KERNEL=="hpet", GROUP="audio"
and that's it. Hooray :-)
Thanks for the pointer Flo.
So, for the benefit of other users, could this be documented more clearly
in the Muse FAQs?
Steve
>
> Cheers,
> Flo
>
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Lmuse-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lmuse-developer
>
>
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Lmuse-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmuse-developer