The officially official Devuan Forum!

You are not logged in.

#1 Re: Devuan » RISCV support » 2024-10-24 21:32:16

It may depend on what you mean by "Devuan" and "support for".

Technically "Devuan" (as organisation) is merely this small group of people that publish the collection of packages that includes all debian packages except some. Those that require systemd have been forked where possible and they are maintained (by these people) towards providing relevant functionality without systemd; most are forked but a few end up just being excluded from the devuan repositories. Currently supported (i.e. maintained, built and published) architectures are amd64, arm64, armel, armhf, i386, riscv64 and ppc64el (all using debian's architecture labelling).

Though "Devuan" (as organisation) might also be understood to include the people that compose and publish filesystems and disk images that are installations of various kinds using devuan packages. Those works span a more limited range of architectures and they provide support (or not) individually for their published works. I'm aware of people having riscv64 installations of devuan packages but not of anyone publishing such for replication.

#2 Re: Hardware & System Configuration » Xorg: libseat1: failure to reclaim USB input devices » 2024-10-21 23:16:19

Sure does... smile

And you were right in that the libseat integration had lost the code path handling "devices added while VT inactive". I.e., the device got added "as per normal" and that of course failed upon opening file descriptor which resulted in Xorg dropping it. This lost code path captures the device when inserted, in a separate list, and then that list is used for "re-inserting" the device (as per normal) when VT is activated.

A patch for this is now moving through the QA and packaging steps. (step h)

#3 Re: Hardware & System Configuration » Xorg: libseat1: failure to reclaim USB input devices » 2024-10-20 20:01:33

Now we

  1. go to our fork of https://git.devuan.org/devuan/xorg-server.git

  2. check out suites/unstable

  3. use dpkg-checkbuilddeps as guide for installing build dependencies

  4. build a local Xorg with debian/rules binary

  5. temporary "install"  resulting debian/build/main/hw/xfree86/Xorg as /usr/lib/xorg/Xorg

  6. perform a verification test

  7. edit the code and repeat from d until the misbehaviour goes away without we adding some new misbehaviour

  8. update the packaging and version and stuff

  9. issue a merge request

  10. wait while that gets merged, built and published by others

  11. install the fixed version.

Easy Peasy

#5 Re: Hardware & System Configuration » Xorg: libseat1: failure to reclaim USB input devices » 2024-10-20 00:27:00

Good question, though not easy to answer. As I have some idea about the code flow, I can match (try to) it up with the log and in particular trace back from anomalous log entries. For Xorg logs you split it into the temporal strands broken by the times where the user has made a short pause in between the use case steps. Post#13 shows that clearly

Unfortunately Alverstone has hand edited the log before posting -- the log we see is not actually the log they got. But I believe that all log lines are included with their correct timestamps and only certain identifiers have been "mangle mapped" under an idea of protecting personal information.

On that assumption there's now enough for me to build a test case that should repeat the misbehaviour, with in particular the logs of #13 providing basis for log comparison.

The "bad" #13 log at timestamps 169.760--169.768 presents the setup for "the problem device" which appears to be a USB keyboard+mouse combo where after some extra logic event4 gets set up as a mouse data stream and the keyboard data stream setup gets postponed as a "virtual subdevice", at timestamps 169.812--169.812.

By the seatd calls, that uses input device with file descriptors 132.

At 174.228 the log starts showing the switch to VT 3, which in particular results in all input devices being "removed" from Xorg's internal data structures, that all their file descriptors are closed via seatd. Notably the device modules are not unloaded though.

In comparison, log good#13 shows the VT shift-away in log lines 104.675--104.744 with the same activity although logged differently. In particular that the logind log lines calls it "paused".

Next we can trace in the log that the "problem device" is unplugged and plugged back by virtue of Xorg handling the udev events while its VT is inactive. Thereafter the log (at bad#13: 192.148) represents the shift back and activation VT4 followed by (at bas#13:195.493) the Xorg termination.

The strand from bad#13:180.566--180.567 seem to represent the bug that the internal data structure discards the event4 handling and that the libinout module gets unloaded. That would result in that the subsequent VT entry does not re-establish event4 without the user again unplug/plug-in the device. The exact bug requires source review.

Notabley the log strand good#13: 160.359--160.414 where the device is plugged in while Xorg's VT is inactive doesn't present a failing attempt to aqire event4. Instead it gets "opened in paused state" that (in some way) avoids re-establsihing the "virtual sub device".

So, in short, it's a bit like reading the future in tea leaves smile

#6 Re: Hardware & System Configuration » Xorg: libseat1: failure to reclaim USB input devices » 2024-10-18 13:20:59

Yes that was noted, and I'm trying to pinpoint what the issue is more exactly. The fork was done so as to extend input mediation to have seatd as alternative mediator instead of logind.

Please post a log using seatd as Xorg backend, and libinput to handle the problem device.
Also, please post the log of the working debian package. In both cases I will need to see the whole session from start of Xorg to the return to the VT.

fsmithred's case is different since that doesn't include input mediation and the log does not report error.

#7 Re: Off-topic » The Joke Thread » 2024-10-18 01:04:28

mmm enjoying a good laugh is a reality worth pursuing, I think wink

#8 Re: Off-topic » The Joke Thread » 2024-10-17 23:59:05

Yeah I don't mind people attempting to amuse themselves and others, but that useless waste of vertical space is grating. (That's why I already added a filter to remove strands of newlines. I didn't think anyone would be s...inclined enough to force vertical space by single dots or whatever)

#9 Re: Off-topic » The Joke Thread » 2024-10-17 22:14:03

@T-A-P Can you please stop that useless vertical spacing... you just makes everything even more boring!

#10 Re: Hardware & System Configuration » Xorg: libseat1: failure to reclaim USB input devices » 2024-10-17 21:58:32

Note that there there are significant differences in your two use cases which seemingly have the same misbehaviour.

Firstly Alverstone uses logind as seatd backend, while fsmithred doesn't use seatd at all (i.e. the input mediation is disabled,  because "libseat integration requires -keeptty and -keeptty was not provided"). Secondly A's device is handled by evdev while f's device is handled by libinput.

evdev seemingly has its issues during its re-loading for the device, whereas libinput seemingly succeeds re-loading the keyboard.

Good information; it points outside the libseat integration towards something in device juggling.

It would be useful if you Alverstone could run a test using libinput rather than evdev, and make sure there is no main Xorg.conf in use (as there apperas to be since your InputClass snippets are ignored). A log from such a test would be useful.

And perhaps fsmithred could start a new thread since yours is a completely different use case.

#11 Re: Hardware & System Configuration » Xorg: libseat1: failure to reclaim USB input devices » 2024-10-17 12:32:02

Yes I'd like to see the log file from startx down to that switch back to VT4.

#12 Re: Hardware & System Configuration » Xorg: libseat1: failure to reclaim USB input devices » 2024-10-17 12:06:17

I think you mentioned having an Xorg.conf. If so, please provide that as well.

In summary the issue is that upon returning to a VT running Xorg, that Xorg does not detect or handle changes to the USB inputs compared to when previously leaving the VT.

Please also provide an Xorg log file covering the period of one test; i.e. from startx to after having returned to the VT.

#13 Re: DIY » How to replace all mentions in git soure code, » 2024-10-03 07:07:50

The command you are using,

git rev-list --all | xargs git grep -F python2.7

scans all versions of all files in reverse chronological order, to find "python2.7".

Probably you mean to only check the latest version of the files? Like

grep  -F python2.7 -r *

which would not report any match.

#14 Re: DIY » How to replace all mentions in git soure code, » 2024-10-02 21:33:01

Yes you are confused smile.

That find command of @fsmithred, when taken literally, will replace all occurrences of "old-word" (literally) with "new-word" (literally), and it will do nothing to occurrences of "python2.7".

That is a puzzle for ome and not for others.

#15 Re: Off-topic » Question about Debian issuing patches » 2024-09-29 09:23:57

Note that cups-browsed is only used for publishing the printers of your machine for use by other machines. It has nothing to do with how your machine connects to the printers.

You really don't need cups-browsed at all. (One might possibly be able to draw up some use case where it could be close to useful, even if still not necessary). Just purge it.

#16 Re: Installation » [SOLVED] Stranger: how many 'connmen' in /etc/init.d? » 2024-09-27 23:59:17

Sorry, I kind of imagined you would put an ounce of thought into the matter. Silly me.

#17 Re: Installation » [SOLVED] Stranger: how many 'connmen' in /etc/init.d? » 2024-09-27 22:48:13

Do you use emacs to edit files? Does emacs leave backup files? How are they named? Have you edited /etc/init.d/connman with emacs? Are you wasting space here?

#18 Re: Other Issues » [SOLVED] Power cut during upgrade » 2024-09-27 12:39:21

The random guess is that it got interrupted in the "middle" of preparing the initramfs, and then perhaps it gets sorted with a simple:

# update-initramfs -u -k all

#19 Re: Installation » Wine 64-bit Prefix on Devuan 5 (daedalus) » 2024-09-23 22:38:48

When you go multiarch, you also need to apt-get update and apt-get upgrade; "update" is for updating the local meta files about packages, and "upgrade" is for loading the packages supporting the new architecture.

There's good detail at https://wiki.debian.org/Multiarch/HOWTO

#20 Re: Installation » Trouble in paradise » 2024-09-21 22:07:18

Firstly, in a standard installation, the filesystem holds back 5% of space for root-only use. So your disk of 160G can only be filled to 152G by a non-root user. However wget doesn't know that so may well start downloading on the idea that there is some 8G++ space left, and then run into trouble when saving.

Secondly if only 4G of your 152G are in Downloads, you would do well in cleaning up elsewhere. Perhaps (as root) cleaning up in the /var/log and /var/cache trees would reclaim space.  Otherwise I would guess you need to tidy up the user's home area.

Use du or xdu to find where the disk usage is, and delete with care and forethought.

#21 Re: Other Issues » What is the real MAC of wlan0 ? » 2024-09-21 03:43:03

ethtool -P wlan0 might show something, probably the working address though.

#22 Re: Other Issues » What is the real MAC of wlan0 ? » 2024-09-21 01:07:12

I suppose it could store it textually?
would be 37363a30633a64313a34363a66373a3839 in hex

EDIT: would be odd to do

#23 Re: Other Issues » What is the real MAC of wlan0 ? » 2024-09-20 23:49:17

mmm then maybe it's the opposite way; that the firmware loads with some random default mac, and this eventually gets updated from the hardware. If so I suppose a binary scan of the firmware could possibly find that first mac...

#24 Re: Other Issues » What is the real MAC of wlan0 ? » 2024-09-20 20:34:28

Perhaps the MAC is changed by firmware? In that story the first would be hardware (PROM) MAC while the latter would be a firmware derivative. Guesswork.

#25 Re: Installation » [SOLVED] Very strange: is it connman or network-manager? » 2024-09-18 22:39:32

When you say "no network manager at all" you actually mean "just using ifupdown". That is the traditional network management which is configured by means of a text editor to edit its configuration files... It is indeed the simplest and easiest way with maximal flexibility.

Board footer

Forum Software