Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] jack cannot use realtime scheduling
@ 2020-03-12 21:44 VoidDuck
  2020-03-13 14:47 ` VoidDuck
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-12 21:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1361 bytes --]

New issue by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051

Description:
Hello,

I tried many different settings but I definitely cannot get jack to run with realtime priority on Void, while it works fine on other distributions.

I checked everything described on https://jackaudio.org/faq/linux_rt_config.html and https://github.com/jackaudio/jackaudio.github.com/wiki/Cgroups but it still does not work.

Here is what I get when running `jackd -R -d alsa`:

> JACK server starting in realtime mode with priority 10
> self-connect-mode is "Don't restrict self connect requests"
> Cannot lock down 82280346 byte memory area (Cannot allocate memory)
> audio_reservation_init
> Acquire audio card Audio0
> creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
> configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
> ALSA: final selected sample format for capture: 32bit integer little-endian
> ALSA: use 2 periods for capture
> ALSA: final selected sample format for playback: 32bit integer little-endian
> ALSA: use 2 periods for playback
> Cannot use real-time scheduling (RR/10) (1: Operation not permitted)
> AcquireSelfRealTime error

### System
* xuname:  
  *Void 5.4.24_1 x86_64 GenuineIntel uptodate rF*
* package:  
  *jack-1.9.14_1*

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
@ 2020-03-13 14:47 ` VoidDuck
  2020-03-13 16:59 ` daniel-eys
                   ` (23 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-13 14:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 294 bytes --]

New comment by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598756307

Comment:
For your information, I just tried the same in a root session and it works perfectly there, so the problem definitely is on the user permissions side.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
  2020-03-13 14:47 ` VoidDuck
@ 2020-03-13 16:59 ` daniel-eys
  2020-03-13 17:13 ` VoidDuck
                   ` (22 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: daniel-eys @ 2020-03-13 16:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 230 bytes --]

New comment by daniel-eys on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598821053

Comment:
Your user is definitely added to the audio group?
```sh
groups | grep audio
```


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
  2020-03-13 14:47 ` VoidDuck
  2020-03-13 16:59 ` daniel-eys
@ 2020-03-13 17:13 ` VoidDuck
  2020-03-13 17:22 ` daniel-eys
                   ` (21 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-13 17:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 148 bytes --]

New comment by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598826774

Comment:
Yes.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (2 preceding siblings ...)
  2020-03-13 17:13 ` VoidDuck
@ 2020-03-13 17:22 ` daniel-eys
  2020-03-13 19:41 ` jrigg
                   ` (20 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: daniel-eys @ 2020-03-13 17:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

New comment by daniel-eys on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598830639

Comment:
What's the output of `ulimit -l` for your user?
It should output `unlimited`.


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (3 preceding siblings ...)
  2020-03-13 17:22 ` daniel-eys
@ 2020-03-13 19:41 ` jrigg
  2020-03-13 19:43 ` jrigg
                   ` (19 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jrigg @ 2020-03-13 19:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 400 bytes --]

New comment by jrigg on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598883168

Comment:
What happens if you do
`export JACK_NO_AUDIO_RESERVATION=TRUE`
before starting jackd? That disables jackdbus and runs plain jackd.

I have the above set permanently in .bashrc and jackd has always worked properly with realtime priority on my Void system. 

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (4 preceding siblings ...)
  2020-03-13 19:41 ` jrigg
@ 2020-03-13 19:43 ` jrigg
  2020-03-13 22:16 ` VoidDuck
                   ` (18 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jrigg @ 2020-03-13 19:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

New comment by jrigg on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598883168

Comment:
What happens if you do
`export JACK_NO_AUDIO_RESERVATION=TRUE`
before starting jackd? That disables jackdbus and runs plain jackd.

I have the above set permanently in .bashrc and jackd has always worked properly with realtime priority on my Void system.  I didn't have to do any special configuration apart from setting that environment variable.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (5 preceding siblings ...)
  2020-03-13 19:43 ` jrigg
@ 2020-03-13 22:16 ` VoidDuck
  2020-03-13 22:16 ` VoidDuck
                   ` (17 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-13 22:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 392 bytes --]

New comment by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598952802

Comment:
> What's the output of `ulimit -l` for your user?
> It should output `unlimited`.
I get `64`...


> What happens if you do
> `export JACK_NO_AUDIO_RESERVATION=TRUE`
> before starting jackd?
Nothing special. I get the same output as usual.


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (6 preceding siblings ...)
  2020-03-13 22:16 ` VoidDuck
@ 2020-03-13 22:16 ` VoidDuck
  2020-03-13 22:37 ` daniel-eys
                   ` (16 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-13 22:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

New comment by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598952802

Comment:
> What's the output of `ulimit -l` for your user?
> It should output `unlimited`.

I get `64`...


> What happens if you do
> `export JACK_NO_AUDIO_RESERVATION=TRUE`
> before starting jackd?

Nothing special. I get the same output as usual.


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (7 preceding siblings ...)
  2020-03-13 22:16 ` VoidDuck
@ 2020-03-13 22:37 ` daniel-eys
  2020-03-13 22:57 ` VoidDuck
                   ` (15 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: daniel-eys @ 2020-03-13 22:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 457 bytes --]

New comment by daniel-eys on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598959076

Comment:
> I get `64`...

This is the issue here.
The jack package installs `/etc/security/limits.d/jack.conf` which permits the audio group to access higher resource limits:
`@audio	-	memlock	unlimited`.

After adding your user to the audio group, have you logged out and in again for the change to take effect?


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (8 preceding siblings ...)
  2020-03-13 22:37 ` daniel-eys
@ 2020-03-13 22:57 ` VoidDuck
  2020-03-13 23:45 ` daniel-eys
                   ` (14 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-13 22:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

New comment by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598964777

Comment:
Definitely, my user has been in the audio group since I installed the system.

In `/etc/group` I have `audio:x:12:myuser`

In `/etc/security/limits.d/jack.conf` I have
`@audio  -       rtprio  99`
`@audio  -       memlock unlimited`

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (9 preceding siblings ...)
  2020-03-13 22:57 ` VoidDuck
@ 2020-03-13 23:45 ` daniel-eys
  2020-03-13 23:47 ` daniel-eys
                   ` (13 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: daniel-eys @ 2020-03-13 23:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 426 bytes --]

New comment by daniel-eys on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598974747

Comment:
And you did a re-login after adding your user to audio? (There needs to be a new session such that pam picks up and sets all limits)
Have you manually changed `memlock` within `/etc/security/*` perhaps somewhere?
Memlock should be set to unlimited for all audio group members.


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (10 preceding siblings ...)
  2020-03-13 23:45 ` daniel-eys
@ 2020-03-13 23:47 ` daniel-eys
  2020-03-13 23:50 ` daniel-eys
                   ` (12 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: daniel-eys @ 2020-03-13 23:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

New comment by daniel-eys on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598974747

Comment:
And you did a re-login after adding your user to audio? (There needs to be a new session such that pam picks up and sets all limits)
Have you manually changed `memlock` within `/etc/security/*` perhaps somewhere?
Memlock should be set to unlimited for all audio group members (when jack is installed).

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (11 preceding siblings ...)
  2020-03-13 23:47 ` daniel-eys
@ 2020-03-13 23:50 ` daniel-eys
  2020-03-13 23:52 ` daniel-eys
                   ` (11 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: daniel-eys @ 2020-03-13 23:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 455 bytes --]

New comment by daniel-eys on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598974747

Comment:
Because there needs to be a new session such that pam picks up and sets all limits, that's why it's important to re-login after adding a user to the audio group.
Have you manually changed `memlock` within `/etc/security/*` perhaps somewhere?
Memlock should be set to unlimited for all audio group members.


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (12 preceding siblings ...)
  2020-03-13 23:50 ` daniel-eys
@ 2020-03-13 23:52 ` daniel-eys
  2020-03-13 23:56 ` VoidDuck
                   ` (10 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: daniel-eys @ 2020-03-13 23:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

New comment by daniel-eys on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598974747

Comment:
Because there needs to be a new session such that pam picks up and sets all limits, that's why it's important to re-login after adding a user to the audio group.
Have you manually changed `memlock` within `/etc/security/*` perhaps somewhere?
Memlock should be set to unlimited for all audio group members (when jack is installed).


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (13 preceding siblings ...)
  2020-03-13 23:52 ` daniel-eys
@ 2020-03-13 23:56 ` VoidDuck
  2020-03-13 23:56 ` VoidDuck
                   ` (9 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-13 23:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 447 bytes --]

New comment by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598976577

Comment:
Don't worry, I have been logging in and out dozens of times in my attempts to get jack working properly...

The only other memlock-related setting I can find in `/etc/security` is `limits.d/10-gcr-memlock.conf`:
`# Increate max locked memory to 1024KB for the users group.`
`@users - memlock 1024`


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (14 preceding siblings ...)
  2020-03-13 23:56 ` VoidDuck
@ 2020-03-13 23:56 ` VoidDuck
  2020-03-14  1:12 ` daniel-eys
                   ` (8 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-13 23:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

New comment by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598976577

Comment:
Don't worry, I have been logging in and out dozens of times in my attempts to get jack working properly...

The only other memlock-related setting I can find in `/etc/security` is `limits.d/10-gcr-memlock.conf`:
> `# Increate max locked memory to 1024KB for the users group.`
> `@users - memlock 1024`

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (15 preceding siblings ...)
  2020-03-13 23:56 ` VoidDuck
@ 2020-03-14  1:12 ` daniel-eys
  2020-03-14  9:12 ` VoidDuck
                   ` (7 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: daniel-eys @ 2020-03-14  1:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 448 bytes --]

New comment by daniel-eys on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-598990967

Comment:
Right, this restricts the group `users` to limit memlock to 1024KB.
But you said your memlock limit is still at 64. (which is definitely the issue here)
I'm not really sure why jack.conf is not properly picked up and setting memlock to unlimited. :/
Are you able to manually `ulimit -l unlimited`?


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (16 preceding siblings ...)
  2020-03-14  1:12 ` daniel-eys
@ 2020-03-14  9:12 ` VoidDuck
  2020-03-14 16:19 ` daniel-eys
                   ` (6 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-14  9:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

New comment by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-599031499

Comment:
No, it does not work either.
`bash: ulimit: max locked memory: cannot modify limit: Operation not permitted`

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (17 preceding siblings ...)
  2020-03-14  9:12 ` VoidDuck
@ 2020-03-14 16:19 ` daniel-eys
  2020-03-14 18:07 ` VoidDuck
                   ` (5 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: daniel-eys @ 2020-03-14 16:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

New comment by daniel-eys on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-599089667

Comment:
I'm running a bit out of ideas here.
Fresh void iso, logging in as `anon` user (anon is in the audio group)

```sh
[anon@void-live ~]$ ulimit -l
64
```

After installing `jack` and re-login:

```sh
[anon@void-live ~]$ ulimit -l
unlimited
```

Are there maybe any `ulimit`s set in your global bash-setup?
Any modifications within `/etc/pam.d/`?


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (18 preceding siblings ...)
  2020-03-14 16:19 ` daniel-eys
@ 2020-03-14 18:07 ` VoidDuck
  2020-03-14 23:18 ` VoidDuck
                   ` (4 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-14 18:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 430 bytes --]

New comment by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-599112537

Comment:
I could not find anything related in /etc/pam.d/ nor in my bash settings.

However I tried logging in as user in text mode and there `ulimit -l` gave me `unlimited` indeed. Back to the graphical interface (I use Xfce and LightDM) I get `64` again... may the problem come from LightDM?

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (19 preceding siblings ...)
  2020-03-14 18:07 ` VoidDuck
@ 2020-03-14 23:18 ` VoidDuck
  2020-03-14 23:18 ` [ISSUE] [CLOSED] " VoidDuck
                   ` (3 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-14 23:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 364 bytes --]

New comment by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-599146673

Comment:
That's it! If I start Xfce from command line without using LightDM I keep the unlimited memlock. Unless someone has an idea about solving that problem I'm just getting rid of LightDM. Thank you @daniel-eys for your help.

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [ISSUE] [CLOSED] jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (20 preceding siblings ...)
  2020-03-14 23:18 ` VoidDuck
@ 2020-03-14 23:18 ` VoidDuck
  2020-03-14 23:37 ` daniel-eys
                   ` (2 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-14 23:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1364 bytes --]

Closed issue by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051

Description:
Hello,

I tried many different settings but I definitely cannot get jack to run with realtime priority on Void, while it works fine on other distributions.

I checked everything described on https://jackaudio.org/faq/linux_rt_config.html and https://github.com/jackaudio/jackaudio.github.com/wiki/Cgroups but it still does not work.

Here is what I get when running `jackd -R -d alsa`:

> JACK server starting in realtime mode with priority 10
> self-connect-mode is "Don't restrict self connect requests"
> Cannot lock down 82280346 byte memory area (Cannot allocate memory)
> audio_reservation_init
> Acquire audio card Audio0
> creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
> configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
> ALSA: final selected sample format for capture: 32bit integer little-endian
> ALSA: use 2 periods for capture
> ALSA: final selected sample format for playback: 32bit integer little-endian
> ALSA: use 2 periods for playback
> Cannot use real-time scheduling (RR/10) (1: Operation not permitted)
> AcquireSelfRealTime error

### System
* xuname:  
  *Void 5.4.24_1 x86_64 GenuineIntel uptodate rF*
* package:  
  *jack-1.9.14_1*

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (21 preceding siblings ...)
  2020-03-14 23:18 ` [ISSUE] [CLOSED] " VoidDuck
@ 2020-03-14 23:37 ` daniel-eys
  2020-03-14 23:51 ` VoidDuck
  2020-03-15  1:30 ` daniel-eys
  24 siblings, 0 replies; 26+ messages in thread
From: daniel-eys @ 2020-03-14 23:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 802 bytes --]

New comment by daniel-eys on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-599148013

Comment:
Interesting, so lightdm caused this.
Looking at `/etc/pam.d/lightdm`, lightdm seems to delegate pam to `pam_elogind.so` (?), but I don't really know where/when/how elogind sets limits for its sessions.
One workaround would be to explicitly load `pam_limits` (the pam module responsible for setting resource limits) by adding

`session required pam_limits.so`

to `/etc/pam.d/lightdm`, like so:
```
...
# Setup session
session   required pam_unix.so
session   required pam_limits.so
-session   optional pam_elogind.so
-session optional pam_ck_connector.so nox11
```

So with this added, you could actually continue using lightdm. @VoidDuck


^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (22 preceding siblings ...)
  2020-03-14 23:37 ` daniel-eys
@ 2020-03-14 23:51 ` VoidDuck
  2020-03-15  1:30 ` daniel-eys
  24 siblings, 0 replies; 26+ messages in thread
From: VoidDuck @ 2020-03-14 23:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 343 bytes --]

New comment by VoidDuck on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-599148962

Comment:
It works. Thank you very much!

In this case I think that line should be added to the default `/etc/pam.d/lightdm` shipped in Void.
Are you able to do this or should I open another issue about it?

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: jack cannot use realtime scheduling
  2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
                   ` (23 preceding siblings ...)
  2020-03-14 23:51 ` VoidDuck
@ 2020-03-15  1:30 ` daniel-eys
  24 siblings, 0 replies; 26+ messages in thread
From: daniel-eys @ 2020-03-15  1:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 659 bytes --]

New comment by daniel-eys on void-packages repository

https://github.com/void-linux/void-packages/issues/20051#issuecomment-599155763

Comment:
You're welcome, glad to hear that it works :)

My issue here is that I'm not really sure whether this is "the proper" fix to be included in the lightdm package. This was more like my first thought how it might work and it actually did.
For example, there is also polkit which handles `pam_limits`, maybe it's elogind's job to set session limits, `gdm` and `slim` add `session include system-local-login`, which (after some redirections) pulls in `pam_limits` via `system-auth`, I'm still a bit confused here.


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2020-03-15  1:30 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-12 21:44 [ISSUE] jack cannot use realtime scheduling VoidDuck
2020-03-13 14:47 ` VoidDuck
2020-03-13 16:59 ` daniel-eys
2020-03-13 17:13 ` VoidDuck
2020-03-13 17:22 ` daniel-eys
2020-03-13 19:41 ` jrigg
2020-03-13 19:43 ` jrigg
2020-03-13 22:16 ` VoidDuck
2020-03-13 22:16 ` VoidDuck
2020-03-13 22:37 ` daniel-eys
2020-03-13 22:57 ` VoidDuck
2020-03-13 23:45 ` daniel-eys
2020-03-13 23:47 ` daniel-eys
2020-03-13 23:50 ` daniel-eys
2020-03-13 23:52 ` daniel-eys
2020-03-13 23:56 ` VoidDuck
2020-03-13 23:56 ` VoidDuck
2020-03-14  1:12 ` daniel-eys
2020-03-14  9:12 ` VoidDuck
2020-03-14 16:19 ` daniel-eys
2020-03-14 18:07 ` VoidDuck
2020-03-14 23:18 ` VoidDuck
2020-03-14 23:18 ` [ISSUE] [CLOSED] " VoidDuck
2020-03-14 23:37 ` daniel-eys
2020-03-14 23:51 ` VoidDuck
2020-03-15  1:30 ` daniel-eys

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).