[systemd-devel] udev "uaccess" tag does not support "hotplug" for some devices

2015-08-19 Thread Tom Yan
Hi all! So I added the following rules: [tom@localhost ~]$ grep . /etc/udev/rules.d/* /etc/udev/rules.d/uas.rules:DRIVERS=="uas", TAG+="uaccess" /etc/udev/rules.d/usb-storage.rules:DRIVERS=="usb-storage", TAG+="uaccess" The rules basically works, but it doesn't support "hotplug", that is, I have

[systemd-devel] REMINDER! systemd.conf 2015 Call for Papers ends soon!

2015-08-19 Thread Lennart Poettering
Heya! We'd like to remind you that the systemd.conf 2015 Call for Presentations ends on August 31st! Please submit your presentation proposals before that data on our website! We are specifically interested in submissions from projects and vendors building today's and tomorrow's products, service

[systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Ian Geiser
Greetings, I am struggling with search queries here so I need to ask this outright. "what is the role of dbus going forward?" Is dbus the preferred way going forward? Or should things really be using sd-bus.h instead? I manage an embedded product that leverages system heavily at the system le

Re: [systemd-devel] udev "uaccess" tag does not support "hotplug" for some devices

2015-08-19 Thread Robert Milasan
On Wed, 19 Aug 2015 17:45:28 +0800 "Tom Yan" wrote: > Hi all! > > So I added the following rules: > [tom@localhost ~]$ grep . /etc/udev/rules.d/* > /etc/udev/rules.d/uas.rules:DRIVERS=="uas", TAG+="uaccess" > /etc/udev/rules.d/usb-storage.rules:DRIVERS=="usb-storage", > TAG+="uaccess" > I thin

Re: [systemd-devel] udev "uaccess" tag does not support "hotplug" for some devices

2015-08-19 Thread Robert Milasan
On Wed, 19 Aug 2015 17:45:28 +0800 "Tom Yan" wrote: > Hi all! > > So I added the following rules: > [tom@localhost ~]$ grep . /etc/udev/rules.d/* > /etc/udev/rules.d/uas.rules:DRIVERS=="uas", TAG+="uaccess" > /etc/udev/rules.d/usb-storage.rules:DRIVERS=="usb-storage", > TAG+="uaccess" Can you t

Re: [systemd-devel] udev "uaccess" tag does not support "hotplug" for some devices

2015-08-19 Thread Mantas Mikulėnas
On Wed, Aug 19, 2015 at 3:18 PM, Robert Milasan wrote: > On Wed, 19 Aug 2015 17:45:28 +0800 > "Tom Yan" wrote: > >> Hi all! >> >> So I added the following rules: >> [tom@localhost ~]$ grep . /etc/udev/rules.d/* >> /etc/udev/rules.d/uas.rules:DRIVERS=="uas", TAG+="uaccess" >> /etc/udev/rules.d/usb

Re: [systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Mantas Mikulėnas
On Wed, Aug 19, 2015 at 2:55 PM, Ian Geiser wrote: > Greetings, I am struggling with search queries here so I need to ask this outright. "what is the role of dbus going forward?" Is dbus the preferred way going forward? Or should things really be using sd-bus.h instead? D-Bus is not going away

Re: [systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Ian Geiser
On Wed, Aug 19, 2015 at 2:55 PM, Ian Geiser mailto:igei...@devonit.com>> wrote: > Greetings, I am struggling with search queries here so I need to ask this > outright. "what is the role of dbus going forward?" Is dbus the preferred > way going forward? Or should things really be using sd-bus.

[systemd-devel] Pretty sure that libudev does not provide a facility

2015-08-19 Thread Anne Mulhern
for traversing sysfs directory via slaves or holders subdirectories. lsblk calls the holders direction "inverse". python-pyudev does not provide such a facility, (but it unofficially discontinued development in 2013). And lsblk does not seem to use libudev facilities directly for this traversal.

Re: [systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Mantas Mikulėnas
On Wed, Aug 19, 2015 at 4:47 PM, Ian Geiser wrote: > On Wed, Aug 19, 2015 at 2:55 PM, Ian Geiser wrote: > > Greetings, I am struggling with search queries here so I need to ask > this outright. "what is the role of dbus going forward?" Is dbus the > preferred way going forward? Or should thin

Re: [systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Ian Geiser
On 08/19/2015 11:32 AM, Mantas Mikulėnas wrote: On Wed, Aug 19, 2015 at 4:47 PM, Ian Geiser mailto:igei...@devonit.com>> wrote: ...snip... Not quite; …/systemd/private is not even a bus – it's a direct peer-to-peer connection to systemd, providing just that one service. (It is therefore in

Re: [systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Simon McVittie
On 19/08/15 14:12, Mantas Mikulėnas wrote: > sd-bus has better performance and native > kdbus support (and a better API than e.g. dbus-glib), but if you're > writing programs in GTK or Qt or EFL, then you'll still want GDBus or > QtDBus or Eldbus. To clarify, *everything* has a better API than dbu

Re: [systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Michał Zegan
I may not understand something, but how does it work when I have things like at-spi2-registryd running on my session? I cannot start one local and one remote gui session, for example? Of course I mean the user bus. W dniu 19.08.2015 o 18:13, Simon McVittie pisze: On 19/08/15 14:12, Mantas Miku

Re: [systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Mantas Mikulėnas
On Wed, Aug 19, 2015 at 7:48 PM, Michał Zegan wrote: > I may not understand something, but how does it work when I have things > like at-spi2-registryd running on my session? I cannot start one local and > one remote gui session, for example? Of course I mean the user bus. > I don't know how at-

Re: [systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Mantas Mikulėnas
On Wed, Aug 19, 2015 at 7:13 PM, Simon McVittie < simon.mcvit...@collabora.co.uk> wrote: > On 19/08/15 14:12, Mantas Mikulėnas wrote: > > > The user bus address is > > ... tried by default in libdbus 1.9, GLib 2.45, and sd-bus; so you don't > need to set DBUS_SESSION_BUS_ADDRESS at all, unless you

[systemd-devel] Unmount NBD swap on shutdown

2015-08-19 Thread Alkis Georgopoulos
Hi, systemd runs swapoff on shutdown, but unfortunately another step is needed for NBD swap: # nbd-client -d /dev/nbd1 This notifies the server that the client is shutting down, and thus the nbd-server process is terminated, the swap file is erased etc. In order to work around that issue, I'm

Re: [systemd-devel] udev "uaccess" tag does not support "hotplug" for some devices

2015-08-19 Thread Tom Yan
Woo it's a win of almighty grawity again! \o/ My rules works perfectly fine with the 70- prefix just as the shipped 70-uaccess.rules. Should have thought about it. Any pointer for details about the "consumed" here btw? On 19 August 2015 at 20:43, Mantas Mikulėnas wrote: > On Wed, Aug 19, 2015 at