libera/#devuan/ Saturday, 2023-08-26

rrqboth echi and xhci would be (guest) kernel drivers and not something Devuan has forked or changed.00:31
systemdleteso kernel drivers are not forked by Devuan?00:32
rrqno.00:32
systemdleteI knew that ?hci would be guest-side drivers, but I wasn't sure about the extent of changes by Devuan.  Thanks.00:33
rrqdoes vbox model any particular host controller?00:34
systemdleteit models ohci, ehci, and xhci00:34
systemdleteyou can choose one of them for each individual VM00:34
rrqyes that's the type; but which specific chips do the emulate?00:35
systemdleteoh00:35
systemdletelsusb reports "Linux Foundation 2.0 root hub" and "Linux Foundation 1.1 root hub"00:36
systemdleteon a VM that I've selected as USB 2.000:36
systemdleteNot sure that answers your question or not.00:37
rrqmmm for qemu I define both host and port device;00:38
rrqehci would be the host device00:38
rrqand, say, scsi-cd may be the port device00:39
systemdleteWell, for vbox, I think selecting the type would be the host-side emulation mode.00:39
rrqor usb-storage perhaps00:39
systemdleteSo the VM would see the usb bus as a ehci or xhci device00:40
systemdleteI'd think the interface would be about the same for any chipset, wouldn't it?00:40
systemdleteI don't believe that vbox will care what the guest does with it, aside from violating a protocol in the interface, of course--it would reply with an error of some kind for the guest to handle00:41
onefangCould be the "about" part that's your problem.  Different enough to trip you up.  Just a wild guess.00:42
systemdleteSure.  At this point, anything could be the cause.00:42
systemdleteJust the fact that it depends on the amount of memory alloc'd to the VM makes me hesitate to point in ANY direction.00:43
systemdleteWeirder still is the fact that as you INCREASE RAM, the problem appears.00:43
rrqso RAM size is related to USB stick size?00:44
systemdleteEh... not sure what you mean00:44
systemdleteThe ram stick doesn't change in size...00:44
rrqwasn't that what you said?00:44
systemdleteno00:44
systemdleteI meant as you increase RAM to the VM, not the size of the stick00:45
rrq"amount of memory" is not RAM size?00:45
systemdleteThe stick is 256MB (yes MB, not GB).00:45
rrqand if you increas RAM the llimit on stick size changes?00:45
systemdletewhat limit?00:45
rrqI must have misunderstood; I read it that you couldn't have more the 3Gb on the stick00:46
systemdlete> <systemdlete> So here is what I know about my USB thumb drive not being recognized.  Chimaera host and guest.  Using vbox ehci (usb 2.0) emulation, the VM is unable to enumerate the device when I give the VM, say, something over 3GB RAM.  For example, the drive is recognized and works perfectly if I give the VM 3072M.  But if I go maybe 3100M or so, it fails to enumerate the device.00:46
systemdleterrq:  I've tried this with a 16GB thumb drive also with the same behavior.  Stick size doesn't matter.00:47
rrqah. ok. how large is host RAM?00:47
systemdlete32GB00:48
systemdletehtop on host shows only 19.4GB in use00:48
systemdleteand the stick is recognized on the host, and on 2 other hosts as well.  Two of the hosts run chimaera, one daedalus.00:49
systemdletehaven't tried this in a VM under daedalus00:49
rrqok, yes, that sounds really peculiar.. why the kernel would enumerate, or not, the USB depending on minor RAM size variation (with that much host RAM)00:50
* systemdlete wonders why it is so hard to type "ae" for the release names... lol00:50
systemdletethe #vbox support indicated that the kernel versions might be significant.00:51
systemdleteI will try this on my testbox which runs daedalus.  I'll set up a similar VM with chimaera and 4G RAM, ohci+ehci00:52
rrqhave you checked if it's really the kernel enumaration and not up at udev level; i.e. does modules exist but it's not present under /dev ?00:52
systemdleteI haven't poked around in /dev, no00:52
systemdleteI'm guessing you mean in the guest00:52
systemdletesince the host(s) have no problem with enumerating thumb drives00:53
rrqyes, you might see that difference by looking at the modules;00:54
rrqone case would have an echi and the other would not00:54
rrqmmm or maybe both would have the echi module but only one would enumerate and have a usb-storage module00:57
systemdletewell, here's another data point:  It doesn't matter what the host is running.  The behavior is the same on my testbox running daedalus on host00:59
systemdleteNice to know, if nothing else.00:59
systemdletewhat are the two cases?01:00
systemdletelsmod lists ohci and ehci modules on a VM with this problem.01:00
systemdleteVM has 4GB Ram and 3 vCPUs01:01
systemdleteno usbstorage module though--I've noticed that before during my testing.01:01
rrqand if you unplug and plug in the stick it discovers it?01:02
systemdleteoh, I don't have it filtered.  I manually attach it while the VM is running.01:03
systemdletebut it does the same thing as plugging it in physically01:03
rrqand you say the guest doesn't react to that?01:04
rrqeg with a line in /var/log/syslog01:04
systemdletehttps://pastebin.com/CuXs7fCN  (syslog on guest)01:04
* systemdlete knew you were about to ask... :D01:05
rrq:) ... error -110 typically means "not enough power"01:05
systemdletein a VM?01:05
systemdleteYeah, my web searches led me to that also.  But I don't understand that.01:06
rrqmust mean something else in the USB port emulation01:06
rrqor does this go to an actual USB stick?01:07
systemdleteit attempts power cycle01:07
systemdleteoh the stick is real, yes.  It's a Sandisk Cruzer01:07
systemdletenot an emulated stick (I think vbox supports those now, but not sure)01:08
systemdletebtw, rrq:  Thank you so much for your help.  I can't thank the folks here enough.01:09
rrqone possibility is that the actual stick gets choked by the possibly larger USB bulk request, if that might relate to RAM size01:09
systemdletekeep in mind this happens with a 16GB stick also...01:09
systemdletehmmm.01:10
systemdleteis there a way to set one of those kernel params (sysctl) for the bulk request size?01:10
systemdleteI could look for it, but maybe you already know01:11
rrq(nw.. stops me from loitering the streets) .. and the transfer chain involves the actual device handling too01:11
rrqI'd be interested in that yself because I have a similar use case with a newly bought sandisk, without VM01:11
systemdleteon the host, sure.  I agree01:11
rrqthough that's through xhci01:12
systemdletethis might be interesting also:  https://pastebin.com/FfEM28y401:12
rrqthat last suggests the stick is low-speed (?)01:13
systemdletethat's output from a vbox command line debug tool01:13
systemdleteright. It would be.01:13
systemdleteThis stick is circa 2006 or so.  Very small, only 256MB.01:14
systemdleteit still works though.01:14
systemdleteNot seeing errors from it.01:14
systemdletean ex-gf gave it to me.01:14
* systemdlete thinks back... about 4 gfs ago01:15
systemdletebut I'm lucky at cards, at least.01:15
systemdletewell, not that lucky I guess.01:15
rrqlow-speed would really be uhci I guess.. maybe echi code doesn't have transfer adaption in the same way as xhci01:16
systemdleteI mean, I can do this with a 16GB usb 2.x stick if you like.01:16
systemdleteslightly different syslog messages, but still no appearance of the drive in the guest01:18
rrqstill error -110 ?01:18
systemdleteno, wait01:18
systemdletehttps://pastebin.com/AZpi0b3Y01:19
systemdleteso different errors, but same conclusion:  Can't enumberate01:20
systemdleteenumerate*01:20
rrqright .. this time the host drops to read/8 and gets -32 ... (like my stick)01:20
systemdleteoh so that slashy number is number of bytes requested?01:21
rrqI think so; number of "blocks"01:22
systemdleteah, ok01:22
systemdletemakes sense01:22
systemdleteI have an 8GB sstick here.  Try?01:23
systemdlete(last one was 16GB)01:23
rrqerror -32 would be "Endpoint stalled"01:23
systemdletelazy-assed endpoint...01:24
rrqsome comments say "usually occurs when the USB port is drawing too much power"01:24
systemdleteWell... lessee here.01:24
systemdleteI've got a FX8350 on a Gigabyte mainboard with a 600W PS01:24
systemdleteNot seeing power draw or similar errors on host... don't recall any anyway01:25
systemdleteThere's 32GB ram on the board and 2 hard drives01:25
systemdleteThere's a video card for hdmi video.  And about 5 or 6 fans01:26
rrqwell USB x.0 includes a spec of power .. 2.0 said 0.5A ona port I think01:26
systemdleteI've got a lot of USB plugged in here.  In fact, I had to use an old 1.1 usb hub to accommodate them all!01:27
systemdleteI've got a couple of 3.0 ports, but those don't work well with Linux01:27
systemdlete(maybe the new 6.x kernels will fare better, idk)01:27
rrqI'm not ure where power controls are; whether the kernel has a say in that.. and then whether associated code, if any, has changed01:28
rrqs01:28
systemdleterrq: Just tried it with that 8GB thumb drive.  Same results as last one.01:29
systemdletetries /64 then power recycle, then /801:30
systemdletethen fails with can't enumerate01:30
rrqdoes the ramp-down happen with xhci as well ?01:31
systemdletenot sure01:31
systemdletewith xhci, it doesn't fail01:31
systemdletelet me look at my testbox VM's syslog01:32
systemdleteodd.  When successfully enumerates, no such messages even appear in the syslog01:35
systemdleteit finds it immediately01:35
systemdletebut let me try some variations--that was with only 3GB ram in the VM01:35
systemdleteI tried it in a 4GB ram VM with ehci and all 3 drives (256MB, 8GB, 16GB) show the exact same pattern and then fail to enumerate01:40
systemdletenow, I'll try them with xhci01:40
rrqTL;DR; https://www.kernel.org/doc/html/v4.13/driver-api/usb/power-management.html01:45
rrqhmm 4.13 ..I guess there something newer in git01:45
systemdletehttps://pastebin.com/G0wjrHMG -- this is on 4GB VM with xhci and 4GB and all three drives in succession.01:47
rrq.. last commit on that doc is June 2019 .. so some changes01:50
rrqhmm the commit at "Fri Apr 19 13:52:38 2019" has notes about "hub being auto-suspended at bad times"01:53
systemdletewhat is that saying?  Do they mean by design, or correcting a problem?01:53
rrqit appears to document a fix in usb core to resolve that issue .. let me clip out the text..01:54
systemdletebtw, rrq:  I DO see in the vbox log (on the host) that the device is being immediately suspended.  So that matches01:54
rrqhttps://transfer.sh/4PoADxXVsK/commit2019.txt01:56
rrqI have to go.. but it seems ehci and xhci has significant code diff around usb power management;01:58
systemdleteThanks.  Do you know if this fix is "in" for 5.x or 6.x kernels?01:58
al1r4dHi01:59
systemdleteIOW, if I were to try daedalus (6.x kernel?) in a VM, maybe this would be resolved even with a ehci emulation?02:00
systemdleteah, or a backport kernel for chimaera02:00
rrqI don't know; being from 2019 it would probably be included now02:01
systemdletein 5.x kernels?02:01
systemdleteso that problem is still present even with the fix?02:01
systemdletes/that/my/02:01
rrqmaybe a larger value in /sys/module/usbcore/parameters/autosuspend would make a difference? that's seconds for auto-suspending apparently02:03
systemdleterrq:  is the fix for ehci and/or xhci, and is the fix for 5.x and/or 6.x kernels?02:04
systemdleteI'll try that parameter change02:04
rrqnot sure .. the note is in the documentation .. and talks about usbcore I think02:05
systemdleteso it should be universal then02:06
systemdletewell, I don't want to keep you.  You said you needed to go.02:06
rrqyes. cheers.02:06
eyalrozHello devuaners,14:21
eyalrozI'm apt-get dist-upgrade'ing from daedalus to excalibur, and was wondering if there are particular gotchas you would advise I look out for14:22
eyalrozHere's one experience from the agdu'ing: apt-listchanges is informing me of how I'm installing "systemd (253~rc2-1) experimental; urgency=medium" :-(14:25
fsmithredeyalroz, if you're running excalibur then you can advise most of us.14:36
fsmithreddo you know anything about changes in sudo?14:36
eyalrozfsmithred: Nope, I don't14:51
nethead23Hello Gentleman,15:21
nethead23i would like to ask if there is any instalable qcow2 / vm image of Devuan 4/5 i could use.15:21
gnarfacenethead23: i'm not sure but it would be pretty easy to make one15:34
gnarfacefrom a booted non-vm image15:35
gnarfaceeven the live iso i would think15:35
nethead23Well, i did make one, problem is that the vnc server is not working and the support is offline until monday. Without remote console i cant do the install...15:35
nethead23I would need an image which is able to get an ip address handled by the vps manager15:37
nethead23And sry, i am mostky new to vps stuff, i lost my HW servers about one month ago15:37
gnarfacehmm, well i found these really old ones... those are the last official ones i can see here... https://files.devuan.org/devuan_ascii/virtual/15:37
gnarfacebut if that one works maybe you can just update from it to current15:38
nethead23Thanks, but i cant use a 2er version. What is this "ASCII" release?15:38
gnarfaceascii was devuan 2 i believe15:39
gnarfaceit goes: jessie, ascii, beowulf, chimaera, daedalus, excalibur, ceres15:39
nethead23Oh, thats the name, got it :)15:39
gnarfacedaedalus is current15:40
gnarfaceexcalibur and ceres track debian testing and unstable, respectively15:40
nethead23I need something stable, so i would like to install daedalus. Guess i wait for monday so i can get vnc console access. Thx anyway15:41
gnarfacethe only other thing i can think of is, if there's something like this already in the repos elsewhere just not listed here15:41
nethead23BTW: Pretty cool project, i hate systemd15:41
gnarfacefeel free to stay connected and also join #devuan-offtopic15:43
Guest15Hi, I'm m_dan9er@matrix.com15:53
Guest15Apparently the bridge broke15:54
golinuxWe can count our blessings then . . . :)15:55
Guest15bruh15:55
Guest15Well uh I had upgraded my Pi400 to Daedalus 2 days ago15:56
Guest15I was asking if I needed to do anything special for the upgrade15:57
Guest15Cause of the Pi packages and stuff15:57
Guest15Though my messages were lost to the void15:58
golinuxI think there is also a #devuan-arm channel if no response here . . .16:04
Guest15Yeah, but looking at chanlogs that looks pretty dead16:06
golinuxDidn't know that . . .16:08
Guest15Well I also have another more generic question16:10
Guest15It looks like Chimaera is using unmerged /usr16:10
Guest15However merger-usr-via-simlinks is now mandatory in Bookworm/Daedalus, saw that during my upgrade16:11
Guest15s/merger/merged16:11
Guest15Though it looks like dpkg is not ready for this, and the maintainers are very upset at tech-ctte16:14
Guest15They have made a list of horribles here: https://wiki.debian.org/Teams/Dpkg/FAQ#Q:_Does_dpkg_support_merged-.2Fusr-via-aliased-dirs.3F16:15
rrqdaedalus installer still defaults to --no-merged-usr and "expert install" asks you...16:16
Guest15rrq: I upgraded my Pi400 and it did the usrmerge16:17
Guest15So there's a dilema here, Bookworm mandates merged-usr, which breaks freaking dpkg16:19
Guest15Why this was not a release critical bug, I have no idea16:20
Guest15But I don't want to upgrade my more important machines until dpkg gets their shit together16:21
Guest15Any thoughts? Am I being overly cautious? Is this situation different in Devuan?16:22
rrqno; Devuan inherits any usrmerge issues from Debian .. I'm keeping it unmerged until there's a real reason to not do so.16:24
nethead23@Guest15, so you would recommend installing/staying with the 4 release?16:29
djphrrq: so, you'll be un-usrmerge'd forever.16:31
rrqprobably :)16:31
Guest15nethead23: I'm asking for other's opinions on this16:32
fsmithredGuest15, I'm un-merged here on system upgraded to daedalus. I'm wondering how it happened to you. I will remain un-merged by choice as long as I can. And I will add that I did have a merged system way back when I did a debootstrap install of ascii when ascii/stretch was still in Testing, and I did not notice it was merged until at least a year later.16:47
fsmithredAnd I did not notice it because of a problem, I just happened to look at it and think about usr-merge.16:49
Guest15fsmithred: I just updated my sources and then did the upgrade in aptitude16:52
Guest15Not sure how you passively avoided it16:53
Guest15I would think you'll need to actively forbid the usrmerge package16:54
Guest50great, got disconnected16:55
Guest50Well, packages can't assume merged-usr until Trixie/Excalibur16:56
Guest50I hope the solution there is to mandate that packages can't install stuff in /, only /usr, or dpkg will scoff (cause then having to `--force-*` it makes it obviously broken)17:00
DelTomix I've tried running merged usr on a few systems over the past year - haven't noticed issues. Though always as fresh installs.17:00
rrqI suppose a problem would only arise if unmerged and one program refers with full but wrong path to another program.. eg using say "/usr/bin/cat" or "/bin/less"17:04
rrqthose paths are wrong in the sense of not being the installation paths for those programs17:06
rrqbut if merged one might not noice, and refer to all programs X as /bin/X or as /usr/bin/X17:09
eyalrozSo... some nuggets of experience from apt-get dist-upgrade'ing to excalibur.19:22
buZzoh , is Daedalus now stable, sweet19:23
eyalrozOne problem is with /etc/mime.types . Users sometime need to add more mime types (e.g. this may have to do with libreoffice; but never mind the details) - and this conflicts with the Debian upstream changes. The conflict may be easily mergeable, but we're not in git here, so we get a prompt for the user. It's too bad we don't have a mime-types.extra or mime-types.d etc.19:23
eyalrozStill, not a big deal, one can re-integrate manually later.19:24
eyalrozAt some point during package configuration I got this error message:19:25
eyalroz"update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults"19:25
eyalrozDon't know why "start" and "stop" are not supported19:26
eyalrozPlus, I shouldn't be getting this, anyway19:26
eyalrozAnother warning I shouldn't be getting:19:26
eyalrozdpkg: warning: unable to delete old directory '/usr/share/fonts/truetype/liberation2': Directory not empty19:26
eyalrozStrangely enough, there's a .uuid file in that directory - not sure why.19:27
eyalrozBut now for the serious issue:19:27
eyalrozdpkg: dependency problems prevent configuration of linux-headers-amd64:19:27
eyalroz linux-headers-amd64 depends on linux-headers-6.4.0-3-amd64 (= 6.4.11-1); however:19:27
eyalroz  Package linux-headers-6.4.0-3-amd64 is not configured yet.19:27
eyalrozAnd a failure to build DKMS modules19:28
eyalroz... which seems to be mostly/only a failure to build NVIDIA driver 525.60.1119:28
buZzapt-get install -f ?19:30
buZzor dpkg-reconfigure linux-headers-6.4.0-3-amd6419:31
* buZz guesses19:31
eyalrozdpkg-reconfigure linux-headers-6.4.0-3-amd64 <- tries to rebuild the DKMS kernel modules, and fails19:34
eyalrozbuZz: Installed a newer NVIDIA driver, 535.104.05 (the latest production version from their website), then apt-get install'ed to complete the configuration, and this succeeded in building the DKMS modules19:42
buZzthe dkms module of the nvidia.com driver?19:43
buZzor are you now mixing drivers between repo and website?19:43
eyalrozbuZz: Yes19:45
eyalrozthe DKMS module of the nvidia.com driver19:45
buZzah, i never use that, i use devuan19:45
eyalroznothing from any NVIDIA repo19:45
buZzi just enable non-free and apt install nvidia-driver19:45
buZzas is supported :)19:45
eyalrozbuZz: kernel upgrades should still be somewhat accommodating of incompatibilities, even with non-free code.19:46
buZzhttps://wiki.debian.org/Nvidia19:46
eyalrozi.e. to the extent of warning you in some way19:46
eyalrozor offering to proceed without the non-free DKMS module19:47
buZzi just dont see the point of messing around like a windows user with manual downloads19:47
buZzinstead of using apt install nvidia-driver19:47
eyalrozbuZz: It can't be avoided, actually, if you're doing development work19:47
buZzi do development work19:47
buZzcuda is in repo too19:47
eyalrozNVIDIA drivers age extremely quickly,19:47
eyalrozand new(-architecture) GPUs are not supported with older drivers19:48
buZzright, there's backports repo for that19:48
buZzeither way, i dont see any reason for anyone to do that19:48
buZznobody needs 'cutting edge' software beside people that want to be the first ppl finding undocumented bugs :D19:48
eyalrozbuZz: There's a non-free backports atp repository?19:48
eyalrozbuZz: I actually was _not_ using the cutting-edge thing, I was just using the CUDA 12.2 driver19:49
buZzhttp://deb.devuan.org/merged/dists/daedalus-backports/non-free/19:49
buZz11.8.89 is in normal daedalus19:50
eyalrozbuZz: http://deb.devuan.org/merged/dists/excalibur-backports/non-free/ doesn't exist yet, though19:50
buZzwhat would it be backporting from? :D there's no release beyond excalibur yet19:51
eyalrozbuZz: debian sid?19:52
buZzthats literally not a release version19:52
eyalrozor rather, devuan ceres19:52
buZzdaedalus-backports didnt exist, until excalibur started existing19:53
eyalrozAnyway, I'm not saying that Devuan should make an effort to support the newest versions of CUDA19:53
eyalrozbut an option to skip one of the DKMS modules would be nice. Although that too is more of Debian responsibility than Devuan's19:53
buZzwell, trixie/excaliber has 12.0.14619:54
buZzdebian has no mission that aligns to 'support the newest versions of $thing'19:55
buZzdebian wants battletested, stuff that can work for years, not 'number goes up' stuff outside of security fixes19:55
buZzits a fixed ecosystem for a release19:55
buZz-not- a rolling distro19:56
eyalrozbuZz: Which is why a reasonable thing to have is the ability to dynamically skip DKMS modules for some kernels - as an alternative to actually being aware of what they are and what to do with them20:10
buZzwell, 'dkms remove nvidia -k 6.6.6/arm64' or something? :)20:12
eyalrozbuZz: That would remove it from all kernels20:13
eyalrozi.e. all kernel versions20:13
buZz--all removes from all kernels20:13
buZz-k specifies a specific20:13
eyalrozOh, I see20:13
buZzaccording to https://manpages.debian.org/unstable/dkms/dkms.8.en.html20:13
eyalrozEven when the kernel DEB has not yet been fully installed?20:14
eyalrozat any rate, that could be offered during installation for the user to choose. Like the user is offered to choose between different versions of a file etc.20:14
XenguyIn the end it tends to be a question of who will do said work?21:03
XenguyHopefully people who are interested in eating their own dogfood will step up21:04
golinux^^^^ THIS!21:06
eyalroz@Xenguy: But I already have work maintaining FOSS projects which started with me eating my own dogfood21:26
eyalrozIt turns out I'm maintaining a popular stand-alone printf-family library for arduino, for example (because I needed it for GPU work)21:27
XenguyGlad to hear it, we do what we can do21:47

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!