<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
Thank you, I think LC_NUMERIC will work for the number formatting, my company is also looking for something along the lines of this, and hoping to use locale/systemd to handle it:<br class="ContentPasted0">
<br class="ContentPasted0">
<a href="https://lists.freedesktop.org/archives/xdg/2023-August/014659.html" target="_blank" rel="noopener noreferrer" data-auth="NotApplicable" id="OWA8cc65bae-e598-3d4e-93e2-2705bf28771d" data-ogsc="" data-linkindex="0" class="OWAAutoLink ContentPasted0">https://lists.freedesktop.org/archives/xdg/2023-August/014659.html</a><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> systemd-devel <systemd-devel-bounces@lists.freedesktop.org> on behalf of systemd-devel-request@lists.freedesktop.org <systemd-devel-request@lists.freedesktop.org><br>
<b>Sent:</b> Tuesday, August 29, 2023 6:24 PM<br>
<b>To:</b> systemd-devel@lists.freedesktop.org <systemd-devel@lists.freedesktop.org><br>
<b>Subject:</b> systemd-devel Digest, Vol 160, Issue 37</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Send systemd-devel mailing list submissions to<br>
systemd-devel@lists.freedesktop.org<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
or, via email, send a message with subject or body 'help' to<br>
systemd-devel-request@lists.freedesktop.org<br>
<br>
You can reach the person managing the list at<br>
systemd-devel-owner@lists.freedesktop.org<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of systemd-devel digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Additional Locale Variables for Units and Number Format<br>
(Mantas Mikul?nas)<br>
2. Re: Why are the priorities of stdout and stderr the same<br>
(Nils Kattenbeck)<br>
3. Re: Why are the priorities of stdout and stderr the same<br>
(Cecil Westerhof)<br>
4. Re: oomd wake-up frequency (Christian Hergert)<br>
5. Re: Bluetooth in a multiseat (via loginctl) setup<br>
(Christian Pernegger)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 29 Aug 2023 23:19:19 +0300<br>
From: Mantas Mikul?nas <grawity@gmail.com><br>
To: TJ Shipp <OneZoomer@msn.com><br>
Cc: Systemd <systemd-devel@lists.freedesktop.org><br>
Subject: Re: [systemd-devel] Additional Locale Variables for Units and<br>
Number Format<br>
Message-ID:<br>
<CAPWNY8UpK1sXP8AOJxn4fF0GS39f33UWf8tMbQZe4y4pBr+E6w@mail.gmail.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
It sounds like you're reinventing LC_NUMERIC.<br>
<br>
The locale system has a lot more than just LANG; it already allows the<br>
number format to be overridden separately from the "language". Take a look<br>
at `locale -k LC_NUMERIC` and <<br>
<a href="https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap07.html>">https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap07.html></a>.<br>
<br>
Adding custom variables would require changing a lot ? I guess the main<br>
consumers are libc (Glibc) and libstdc++ (GCC), but of course there are<br>
many places which set the existing LC_* and expect things to change<br>
accordingly, or which might implement the standard interfaces on their own<br>
without using libc.<br>
<br>
On Tue, Aug 29, 2023, 20:17 TJ Shipp <OneZoomer@msn.com> wrote:<br>
<br>
> I am trying to add in support for a separate variable to change our unit<br>
> system, and having both LANG and UNITS to identify the "locale" of the<br>
> system.<br>
> We are also not only looking for English versus Metric, but are looking<br>
> for mixed units as well (both Imperial and Metric hybrid), as well as<br>
> looking to add number formats (1,000.00 vs 1.000,00)<br>
><br>
> And what is the best way to add support for a new system environment<br>
> variable such as UNITS?<br>
><br>
> P.S. If anyone is interested in contracting to do this work, please send<br>
> me a private message outside this list.<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://lists.freedesktop.org/archives/systemd-devel/attachments/20230829/22c38e57/attachment-0001.htm">https://lists.freedesktop.org/archives/systemd-devel/attachments/20230829/22c38e57/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 29 Aug 2023 23:05:28 +0200<br>
From: Nils Kattenbeck <nilskemail@gmail.com><br>
To: Cecil Westerhof <cldwesterhof@gmail.com><br>
Cc: systemd-devel@lists.freedesktop.org<br>
Subject: Re: [systemd-devel] Why are the priorities of stdout and<br>
stderr the same<br>
Message-ID:<br>
<CAKkJDRfpju4wcdaGc3bGYOmiVYu53QhfzbJRVpE9kRARbzPU4g@mail.gmail.com><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
No, you can use systemd-cat to then invoke your script which applies<br>
to every output of it.<br>
<br>
Also, you can just use reply-all in gmail (or even set it as the<br>
default in the settings) to have the correct behaviour of sending<br>
mails also the the mailing list.<br>
<br>
On Tue, Aug 29, 2023 at 10:25?PM Cecil Westerhof <cldwesterhof@gmail.com> wrote:<br>
><br>
> Aargh, forgot again that gmail works differently when replying. :'-{<br>
><br>
> Op di 29 aug 2023 om 21:07 schreef Cecil Westerhof <cldwesterhof@gmail.com>:<br>
>><br>
>> Op di 29 aug 2023 om 19:47 schreef Nils Kattenbeck <nilskemail@gmail.com>:<br>
>>><br>
>>> Hi, At least for simple cases you can use systemd-cat which allows<br>
>>> setting different priorities for stdout and stderr. It even explicitly<br>
>>> states that doing so will lose the ordering guarantees which are only<br>
>>> possible when attaching stdout and stderr to the same fd (as Lennart<br>
>>> said).<br>
>><br>
>><br>
>> If I understand it correctly, that is on a statement basis, not for the complete script.<br>
><br>
><br>
> --<br>
> Cecil Westerhof<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 30 Aug 2023 00:10:22 +0200<br>
From: Cecil Westerhof <cldwesterhof@gmail.com><br>
Cc: systemd-devel@lists.freedesktop.org<br>
Subject: Re: [systemd-devel] Why are the priorities of stdout and<br>
stderr the same<br>
Message-ID:<br>
<CAG-LmmAQ368iRxyP2JtcGdGydsq__EWvUh+Wff9kPkG3rETxqA@mail.gmail.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Op di 29 aug 2023 om 23:05 schreef Nils Kattenbeck <nilskemail@gmail.com>:<br>
<br>
> No, you can use systemd-cat to then invoke your script which applies<br>
> to every output of it.<br>
><br>
<br>
OK, I will dive into it.<br>
<br>
<br>
<br>
> Also, you can just use reply-all in gmail (or even set it as the<br>
> default in the settings) to have the correct behaviour of sending<br>
> mails also the the mailing list.<br>
><br>
<br>
I will do that then. Only problem is that the original poster will get the<br>
message two times.<br>
Except when I remove the To. But forgetting to remove that is not as bad as<br>
not sending it to the mailing list.<br>
<br>
<br>
<br>
> On Tue, Aug 29, 2023 at 10:25?PM Cecil Westerhof <cldwesterhof@gmail.com><br>
> wrote:<br>
> ><br>
> > Aargh, forgot again that gmail works differently when replying. :'-{<br>
> ><br>
> > Op di 29 aug 2023 om 21:07 schreef Cecil Westerhof <<br>
> cldwesterhof@gmail.com>:<br>
> >><br>
> >> Op di 29 aug 2023 om 19:47 schreef Nils Kattenbeck <<br>
> nilskemail@gmail.com>:<br>
> >>><br>
> >>> Hi, At least for simple cases you can use systemd-cat which allows<br>
> >>> setting different priorities for stdout and stderr. It even explicitly<br>
> >>> states that doing so will lose the ordering guarantees which are only<br>
> >>> possible when attaching stdout and stderr to the same fd (as Lennart<br>
> >>> said).<br>
> >><br>
> >><br>
> >> If I understand it correctly, that is on a statement basis, not for the<br>
> complete script.<br>
><br>
<br>
-- <br>
Cecil Westerhof<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://lists.freedesktop.org/archives/systemd-devel/attachments/20230830/0f6f32e9/attachment-0001.htm">https://lists.freedesktop.org/archives/systemd-devel/attachments/20230830/0f6f32e9/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 29 Aug 2023 15:20:06 -0700<br>
From: Christian Hergert <chergert@redhat.com><br>
To: Michal Koutn? <mkoutny@suse.com><br>
Cc: systemd-devel@lists.freedesktop.org, Anita Zhang<br>
<the.anitazha@gmail.com><br>
Subject: Re: [systemd-devel] oomd wake-up frequency<br>
Message-ID: <23c2d81f-f6b9-c121-62d7-c0cb85c1aae4@redhat.com><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
On 8/25/23 7:54 AM, Michal Koutn? wrote:<br>
> I think the loop's event source could be disabled when no cgroups <br>
> require swap monitoring [1] (and enabled lazily when such are configured).<br>
<br>
FYI I implemented your design this afternoon in case you have some time <br>
to review.<br>
<br>
<a href="https://github.com/systemd/systemd/pull/29011/commits/4806e203aa64bca942a780c4d92ea0b6b51ddd5c">https://github.com/systemd/systemd/pull/29011/commits/4806e203aa64bca942a780c4d92ea0b6b51ddd5c</a><br>
<br>
Thanks!<br>
<br>
-- Christian<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Wed, 30 Aug 2023 01:24:09 +0200<br>
From: Christian Pernegger <pernegger@gmail.com><br>
To: systemd-devel@lists.freedesktop.org<br>
Subject: Re: [systemd-devel] Bluetooth in a multiseat (via loginctl)<br>
setup<br>
Message-ID:<br>
<CAKbQEqGYLUZg5sRLncPqGk2_UV3YTZF4=H0oCp-mFZ6GWnbWjg@mail.gmail.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello again,<br>
<br>
shelving that multiple BT adapters idea for a moment, since that doesn't<br>
seem to be a supported configuration, more's the pity,<br>
the issue with GNOME seems to be that /dev/rfkill doesn't get the right<br>
permissions. It's tagged "uaccess" alright, the intention seems to be that<br>
(active) logged-in users get rw-, but this only actually works on seat0. If<br>
both seats idle at the greeter, gdm (or lightdm) gets rw- via ACL. If I<br>
login at seat0, that ACL is replaced by an identical one for my user, and<br>
the GNOME BT panel works. If I login at seat1 instead, nothing changes,<br>
there's still just the one ACL for the greeter's user (and obviously the<br>
GNOME BT panel is broken).<br>
<br>
Obviously I could just override the regular permissions via udev rule, give<br>
it to an "rfkill" group or something, but I'd rather do it properly.<br>
<br>
Kind regards,<br>
Christian Pernegger<br>
<br>
<br>
<br>
<br>
<br>
<br>
I login on seat0, my user gets r<br>
<br>
<br>
Am Mo., 28. Aug. 2023 um 15:12 Uhr schrieb Christian Pernegger <<br>
pernegger@gmail.com>:<br>
<br>
> Hello all!<br>
><br>
> Sorry to bother a -devel list with my user troubles, but I don't know<br>
> where (else) to start.<br>
><br>
> So, Ubuntu 22.04, multiseat setup automagically via loginctl. The only<br>
> thing I had to do extra was disable Wayland in gdm. Works beautifully.<br>
> Except for Bluetooth.<br>
><br>
> I've one USB port (with an attached hub) attached to seat one. Thought I'd<br>
> just attach a dedicated BT dongle to that hub, done. Turns out BT adapters<br>
> don't show up in the output of loginctl seat-status at all, not the USB one<br>
> on the hub, not the (USB) one integrated into the mainboard. Looking at<br>
> them with udevadm they seem to be tagged correctly, AFAICT.<br>
><br>
> In GNOME on seat1 it shows my (manually paired) BT keyboard in the system<br>
> dropdown menu, but when I open BT settings it says BT is off, no adapters<br>
> found.<br>
> In GNOME on seat0 the BT settings GUI works, but AFAICT shows the wrong<br>
> adapter.<br>
><br>
> I'm thinking I may just have the wrong end of the stick entirely--how is<br>
> BT supposed to work with multiseat? Ideally each seat would be able to pair<br>
> and configure its own BT devices in the usual GNOME GUI. But maybe it's<br>
> more of a bluetoothd access control thing than a device assignment one?<br>
><br>
> Anyway, would appreciate a few pointers,<br>
><br>
> Kind regards,<br>
> Christian Pernegger<br>
><br>
><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://lists.freedesktop.org/archives/systemd-devel/attachments/20230830/bdb00b07/attachment.htm">https://lists.freedesktop.org/archives/systemd-devel/attachments/20230830/bdb00b07/attachment.htm</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
systemd-devel mailing list<br>
systemd-devel@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
<br>
<br>
------------------------------<br>
<br>
End of systemd-devel Digest, Vol 160, Issue 37<br>
**********************************************<br>
</div>
</span></font></div>
</body>
</html>